AVR®: Using the USART to Loopback From a Serial Terminal
In this video:
- Block diagram overview of the AVR® USART (Universal Synchronous and Asynchronous serial Receiver and Transmitter).
- USART initialization: 8 data bits, 1 stop bit, 9600 baud
- USART receive function: Wait for data to be received, then store in data register.
- USART transmit function: Wait for empty transmit buffer, then put data in the buffer.
- Implement a simple loopback and test in Atmel Studio's terminal window.