Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO Data Sheet

Product codes
ATSAMD20-XPRO
Page of 660
239
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
19.
EIC – External Interrupt Controller
19.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.
19.2
Features
z
16 external pins, plus one non-maskable pin
z
Dedicated interrupt line for each pin
z
Individually maskable interrupt lines
z
Interrupt on rising, falling or both edges
z
Interrupt on high or low levels
z
Asynchronous interrupts for sleep modes without clock
z
Filtering of external pins
z
Event generation
z
Configurable wake-up for sleep modes
19.3
Block Diagram
Figure 19-1. EIC Block Diagram
Filter
Edge/Level
Detection
Interrupt
Wake
Event
FILTENx
EXTINTx
intreq_extint[x]
inwake_extint[x]
evt_extint[x]
Filter
Edge/Level
Detection
Interrupt
Wake
NMIFILTEN
NMISENSE[2:0]
NMI
intreq_nmi
inwake_nmi
SENSEx[2:0]