Microchip® Advanced Software Framework

Example for the Peripheral Event System - GPIO/PDCA

Introduction

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.

Main Files

Compilation Information

This software is written for GNU GCC and IAR Embedded Workbench for Atmel. Other compilers may or may not work.

Device Information

SAM4L device can be used.

Configuration Information

This example has been tested with the following configuration:

  • PC terminal settings:
    • 115200 baud
    • 8 data bits
    • no parity bit
    • 1 stop bit
    • no flow control