Back to DRIVERS page
AVR UC3 Series Software Framework: External Interrupt Controller Driver
Copyright © 2007 Atmel Corporation
Introduction
The External Interrupt Module allows pins to be configured as external interrupts. It can wake up CPU
from sleep modes. This module has keypad support. The pressed key will trigger an interrupt, which can be identified
through the user registers of the module.
External Interrupt Controller Driver
The EIC software driver philosophy of usage is:
Configure one (or several) EIC lines [eic_init()]
Enable one (or several) lines, [eic_enable_lines()]
Enable one (or several) interrupt lines, [eic_enable_interrupt_lines()]
Eventually enable one (or several) interrupt scan lines, [eic_enable_interrupt_scan()]
Clear interrupt lines when interrupt occurs [eic_clear_interrupt_lines()] / Eventually get scan lines that generated an interrupt [eic_get_interrupt_pad_scan()]
The driver is composed of eic.c and eic.h.
EIC software driver examples
Three examples are available. All provided examples cover various use of
the EIC and demonstrate different EIC functionalities.
EXAMPLE1: how to configure the EIC to wake up the CPU,
EXAMPLE2: how to use the EIC to generate Interrupt,
EXAMPLE3: how to use the EIC to decode keypad
>