This is the quickstart guide for SAM3A/3N/3S/3U/3X/4E/4N/4S/G Peripheral DMA Controller (PDC) Driver with step-by-step instructions on how to configure and use the driver.
A handler is required for the interrupt, below is a simple example:
First initialise the board:
Now setup the PDC registers:
Enable UART IRQ:
Enable UART interrupt
Once the required number of bytes have been transferred, an interrupt is triggered and the handler will run. The main program may execute other code or be busy-waiting: