This repository contains examples of bare metal source code for Universal Synchronous and Asynchronous Receiver and Transmitter (USART) as described in TB3216 - Getting Started with Universal Synchronous and Asynchronous Receiver and Transmitter (USART) document from Microchip. The repository contains an Microchip Studio Solution with multiple projects inside:
- Send Hello World: This use case demonstrates how to send a string to the PC via serial communication using the USART peripheral (for more details, see Send Hello World).
- Send Formatted Strings Using 'printf': This use case shows how to send formatted strings through USART. This example sends the value of a counter every 500 ms and then increases it (for more details, see Send Fromatted Strings Using 'printf').
- Receive Control Commands: This use case shows how to implement a command line interface using the USART peripheral (for more details, see Receive Control Commands).
- Synchronous Mode: This use case demonstrates how to send one character using the USART synchronous mode (for more details, see Synchronous Mode).
- One-Wire Mode: This use case demonstrates how to send a character string using the USART one wire mode (for more details, see One-Wire Mode).
More details and code examples on the ATMEGA4809 can be found at the following links:
- TB3216 - Getting Started with Universal Synchronous and Asynchronous Receiver and Transmitter (USART)
- ATMEGA4809 Product Page
- ATMEGA4809 Code Examples on GitHub
- ATMEGA4809 Project Examples in START
- Microchip Studio 7.0.2397 or newer (Microchip Studio for AVR® and SAM Devices)
- ATmega_DFP 1.5.362 or newer Device Pack
- ATMEGA4809 Xplained Pro (ATMEGA4809-XPRO)