Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
External Interrupt Controller Example

Purpose

The eic_example demonstrates how to use EIC driver toggle LED.

Requirements

This example can be used on SAM4L boards.

Description

The SAM4L controller waits for button press to generate external interrupt and will toggle LED.

Usage

  • Build the program and download it to the board
  1. On the computer, open, and configure a terminal application (e.g., HyperTerminal on Microsoft® Windows®) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  2. In the terminal window, the following text should appear (values depend on the board and chip used):
    * -- EIC Example xxx --
    * -- xxxxxx-xx
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    *
  3. the sent text should appear.