

The zipped version of Tera Term can be downloaded and opened and the folder inside extracted to a convenient location on the PC. Terminal emulator software such as Tera Term for Windows will be needed to test this project and communicate over the virtual COM port. UART0 is shown to connect to these pins in the ATSAM4N16C datasheet. The user guide for the SAM4N board shows that pins PA10 and PA9 are used for virtual COM port connections. If you are using a different board to the SAM4N, then check the board's user guide to see if it has an EDBG and which UART from the microcontroller is connected to the virtual COM port. The virtual COM port of the EDBG then automatically appears on the PC and should be found by terminal emulator software.

This project simply uses the SAM4N Xplained Pro board and USB cable to connect to a PC. Standard I/O UART Project Hardware and Software Hardware

The virtual COM port can be opened in a terminal emulator running on the PC and data can then be sent and received between the terminal emulator and microcontroller UART. One of the functions of the EDBG, besides being used as a debugger, is to act as a virtual COM port when the board is plugged into a PC using the board's USB connector. On the Atmel SAM4N Xplained Pro ARM Cortex board, UART0 is connected to the EDBG on-board embedded debugger. Strings printed using printf() are then sent out of the UART and scanf() receives input from the UART.
TERATERM TUTORIAL SERIAL
Standard Input/Output (I/O) is configured to use a UART in an Atmel Studio ASF project so that C stdio functions such as printf() and scanf() use the serial port UART as the standard input/output device.Īn ASF module called the Standard serial I/O (stdio)(driver) is used to set up the UART as the stdio device.
