Table 1. Available Interrupt Vectors and
Sources
Name |
Vector Description |
Conditions |
PORTx |
PORT interrupt |
INTn in PORTx.INTFLAGS is raised as configured by the
Input/Sense Configuration (ISC) bit in PORTx.PINnCTRL |
Each PORT pin n can be configured as an interrupt source. Each interrupt can
be individually enabled or disabled by writing to ISC in PORTx.PINnCTRL.
When an interrupt condition occurs, the corresponding interrupt flag is set in
the Interrupt Flags register of the peripheral (peripheral.INTFLAGS).
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.
When setting or changing interrupt settings, take these points into account:
- If an Inverted I/O Enable (INVEN) bit
is toggled in the same cycle as ISC is changed, the edge caused by the inversion
toggling may not cause an interrupt request
- Changing INLVL for a pin must be
performed while relevant interrupts and peripheral modules are disabled. Changing the
threshold while a module is active may generate a temporary state transition on the
input, regardless of the actual voltage level on that pin.
- If an input is disabled by writing to
ISC while synchronizing an interrupt, that interrupt may be requested on re-enabling
the input, even if it is re-enabled with a different interrupt setting
- If the interrupt setting is changed
by writing to ISC while synchronizing an interrupt, that interrupt may not be
requested