27.
EIC – External Interrupt Controller
27.1. Overview
The External Interrupt Controller (EIC) allows external pins to be configured as interrupt lines. Each
interrupt line can be individually masked and can generate an interrupt on rising, falling, or both edges, or
on high or low levels. Each external pin has a configurable filter to remove spikes. Each external pin can
also be configured to be asynchronous in order to wake up the device from sleep modes where all clocks
have been disabled. External pins can also generate an event.
A separate non-maskable interrupt (NMI) is also supported. It has properties similar to the other external
interrupts, but is connected to the NMI request of the CPU, enabling it to interrupt any other interrupt
mode.
27.2. Features
•
Up to 16 external pins, plus one non-maskable pin
•
Dedicated, individually maskable interrupt for each pin
•
Interrupt on rising, falling, or both edges
•
synchronous or asynchronous edge detection mode
•
Interrupt on high or low levels
•
Asynchronous interrupts for sleep modes without clock
•
Filtering of external pins
•
Event generation
27.3. Block Diagram
Figure 27-1. EIC Block Diagram
Filter
Edge/Level
Detection
Interrupt
Wake
Event
FILTENx
EXTINTx
intreq_extint
inwake_extint
evt_extint
Filter
Edge/Level
Detection
Interrupt
Wake
NMIFILTEN
NMISENSE[2:0]
NMI
intreq_nmi
inwake_nmi
SENSEx[2:0]
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
496