This example shows how to use the Peripheral Event Controller. In the example, the AST generates a periodic event which is transmitted to the PDCA. Each time a new event occurs, a character is sent to the USART without the use of the CPU. The main loop of the function is a delay 500ms and toggle a LED continuously to show CPU activity.
This software is written for GNU GCC and IAR Embedded Workbench® for Atmel®. Other compilers may or may not work.
SAM4L device can be used.
This example has been tested with the following configuration: