This example shows how to use the Peripheral Event Controller. In the example, an I/O pin is configured to trigger a GPIO event when detecting a falling edge. Each time a new event occurs, it will trigger the PDCA to send a character to the USART without CPU usage.
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: