| Author: Alexandru Niculae, Microchip Technology Inc. |
The purpose of this document is to describe step-by-step how to configure the USART peripheral on megaAVR® 0-series and tinyAVR® 0- and 1-series. While this is a complex peripheral and can work in various modes, this document will use it in Asynchronous mode and describes the following use cases:
Demonstrates how to send a string to the PC and show it in the terminal.
printf’
Enhances the first use case with the ability to use the
‘printf’ function to send strings over USART.
Many times, the USART is used to implement a command line interface. This way, the microcontroller can receive control commands via the USART.