Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO Ficha De Dados

Códigos do produto
ATSAMD20-XPRO
Página de 660
312
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
z
Event Detected Channel x interrupt (
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 the interrupt condition occurs. Each interrupt can be individually enabled by writing a one 
to the corresponding bit in the Interrupt Enable Set register (
), and disabled by writing a one to the 
corresponding bit in the Interrupt Enable Clear register (
). 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 EVSYS is reset.
See the 
 register for details on how to clear interrupt flags. The EVSYS has one common interrupt request line 
for all the interrupt sources. The user must read the INTFLAG register to determine which interrupt condition is present.
Note that interrupts must be globally enabled for interrupt requests to be generated.
22.6.3.1  The Overrun Channel x Interrupt
The Overrun Channel x interrupt flag in the Interrupt Flag Status and Clear register (INTFLAG.OVRx) is set and the 
optional interrupt is generated in the following two cases:
z
At least one of the event users on channel x is not ready when a new event occurs
z
An event occurs when the previous event on channel x has not yet been handled by all event users
INTFLAG.OVRx will be set when using a synchronous or resynchronized path, but not when using an asynchronous 
path.
22.6.3.2  The Event Detected Channel x Interrupt
The Event Detected Channel x interrupt flag in the Interrupt Flag Status and Clear register (INTFLAG.EVDx) is set when 
an event coming from the event generator configured on channel x is detected.
INTFLAG.EVDx will be set when using a synchronous and resynchronized path, but not when using an asynchronous 
path.
22.6.4 Sleep Mode Operation
The EVSYS can generate interrupts to wake up the device from any sleep mode.