Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Fiche De Données
Codes de produits
ATSAMD21-XPRO
329
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
20.6.4 Additional Features
The non-maskable interrupt pin can also generate an interrupt on edge or level detection, but it is configured with the
dedicated NMI Control register (NMICTRL - refer to
dedicated NMI Control register (NMICTRL - refer to
). To select the sense for NMI, write to the NMISENSE bit
group in the NMI Control register (NMICTRL.NMISENSE). NMI filtering is enabled by writing a one to the NMI Filter
Enable bit (NMICTRL.NMIFILTEN).
Enable bit (NMICTRL.NMIFILTEN).
NMI detection is enabled only by the NMICTRL.NMISENSE value, and the EIC is not required to be enabled.
After reset, NMI is configured to no detection mode.
When an NMI is detected, the non-maskable interrupt flag in the NMI Flag Status and Clear register is set
(NMIFLAG.NMI). NMI interrupt generation is always enabled, and NMIFLAG.NMI generates an interrupt request when
set.
(NMIFLAG.NMI). NMI interrupt generation is always enabled, and NMIFLAG.NMI generates an interrupt request when
set.
20.6.5 DMA Operation
Not applicable.
20.6.6 Interrupts
The EIC has the following interrupt sources:
z
External interrupt pin (EXTINTx). This is an asynchronous interrupt if the corresponding WAKEUP register bit is
set, and can be used to wake-up the device from any sleep mode. See
set, and can be used to wake-up the device from any sleep mode. See
z
Non-maskable interrupt pin (NMI). This is an asynchronous interrupt and can be used to wake-up the device from
any sleep mode. See
any sleep mode. See
Each interrupt source has an interrupt flag associated with it. The interrupt flag in the Interrupt Flag Status and Clear
register (INTFLAG) is set when an interrupt condition occurs (NMIFLAG for NMI). Each interrupt, except NMI, can be
individually enabled by writing a one to the corresponding bit in the Interrupt Enable Set register (INTENSET), and
disabled by writing a one to the corresponding bit in the Interrupt Enable Clear register (INTENCLR). An interrupt request
is generated when the interrupt flag is set and the corresponding interrupt is enabled. The interrupt request remains
active until the interrupt flag is cleared, the interrupt is disabled or the EIC is reset. See the
register (INTFLAG) is set when an interrupt condition occurs (NMIFLAG for NMI). Each interrupt, except NMI, can be
individually enabled by writing a one to the corresponding bit in the Interrupt Enable Set register (INTENSET), and
disabled by writing a one to the corresponding bit in the Interrupt Enable Clear register (INTENCLR). An interrupt request
is generated when the interrupt flag is set and the corresponding interrupt is enabled. The interrupt request remains
active until the interrupt flag is cleared, the interrupt is disabled or the EIC is reset. See the
register for details
on how to clear interrupt flags. The EIC has one common interrupt request line for all the interrupt sources (except the
NMI interrupt request line). Refer to
NMI interrupt request line). Refer to
for details. The user must read the
INTFLAG (or NMIFLAG) register to determine which interrupt condition is present.
Note that interrupts must be globally enabled for interrupt requests to be generated. Refer to
for details.
20.6.7 Events
The EIC can generate the following output events:
z
External event from pin (EXTINTx).
Writing a one to an Event Output Control register (EVCTRLEXTINTEO) enables the corresponding output event. Writing
a zero to this bit disables the corresponding output event. Refer to
a zero to this bit disables the corresponding output event. Refer to
for details on
configuring the Event System.
Table 20-2. Interrupt Latency
Detection Mode
Latency (Worst Case)
Level without filter
3 CLK_EIC_APB periods
Level with filter
4 GCLK_EIC periods + 3 CLK_EIC_APB periods
Edge without filter
4 GCLK_EIC periods + 3 CLK_EIC_APB periods
Edge with filter
6 GCLK_EIC periods + 3 CLK_EIC_APB periods