Terminal I/O Window
The Terminal I/O window enables simulation of Terminal I/O commuication with a program compiled with IAR Systems' C Compiler for the AVR. When the compiler generates "Debug with Terminal I/O" link option, the linker will replace the getchar() and putchar() functions with special system calls. The Terminal I/O window supports these special function calls, allowing on screen debugging of standard I/O streams.

The window is updated when the simulator is running to always show the current state of the input and output streams. The operator can edit the input stream at any time. When a character is read from the input stream, it is removed from the Input wiew.

The output window support the VT100 terminal standard. The most important special characters are:

Note 1: The object file must be linked with the "Debug with Terminal I/O" debug format (default).

Note 2: The Terminal I/O function is only available for the simulator. The replacement getchar() and putchar() functions does not use the standard I/O of the AVR, but apply a special system call to replace the values of r16:r17 with the contents of the Terminal I/O window.

See Also