Purpose
The pdc_uart example demonstrates how to use PDC driver to receive/send data from/to the UART.
Requirements
This example can be used on any SAM3/4 boards.
Description
The SAM controller waits for BUFFER_SIZE data to receive from the UART. As soon as the expected amount of data is received, the whole buffer is sent back to the terminal.
Usage
- Build the program and download it into the evaluation board.
- On the computer, open, and configure a terminal application (e.g., HyperTerminal on Microsoft® Windows®) with these settings:
- 115200 baud
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
- In the terminal window, the following text should appear (values depend on the board and chip used):
-- PDC Uart Example xxx --
-- xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
- The sent text should appear.