19.3.3 Interrupts
Interrupt Vector Name | Interrupt Source Name | Description | Conditions |
---|---|---|---|
SLPCTRL | VOV | VMON overvoltage detected | VMON detects voltage level above high threshold |
VUV | VMON undervoltage detected | VMON detects voltage level below low threshold | |
VDENTER | VMON has entered diagnostic (fault injection) mode | CTRLB.DMODE = ‘UNDER’ or CTRLB.DMODE = ‘OVER’ | |
VDEXIT | VMON has exited diagnostic (fault injection) mode | Diagnostic mode exited due to timeout or because CTRLB.DMODE = ‘NO’ | |
VERR | VMON has an internal error | VMON is in an illegal state | |
VSLP | VMON is in sleep mode | The device has entered sleep mode and VMON thresholds are adjusted to sleep mode voltage levels. This flag will be permanently set when selecting OSC32K as main clock source. | |
VDIS | VMON is disabled | Either of these:
| |
SERR | Sleep error | SLEEP instruction was attempted with CTRLA.SEN = ‘0 ’ or CPU.SREG.I =
‘0 ’ |
When an interrupt condition occurs, the corresponding interrupt flag is set in the peripheral’s Interrupt Flags (peripheral.INTFLAGS) register.
An interrupt source is enabled or disabled by writing to the corresponding enable bit in the peripheral’s Interrupt Control (peripheral.INTCTRL) register.
An interrupt request is generated when the corresponding interrupt source is enabled, and the interrupt flag is set. The interrupt request remains active until the interrupt flag is cleared. See the peripheral’s INTFLAGS register for details on how to clear interrupt flags.