18.3.3 Interrupts

Table 18-3. Available Interrupt Vectors and Sources
Vector NameSource NameConditionDependency
PORTx_PORTINTnThe pin n voltage matches the configurationThe Input/Sense Configuration (ISC) bit field in the Pin n Control (PORTx.PINnCTRL) register

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.

Consider the following points when setting or changing interrupt settings:

  • 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
  • If disabling an input by writing to ISC while synchronizing an interrupt, that specific interrupt may be requested on re-enabling the input, even when 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