Interrupts

Table 1. Available Interrupt Vectors and Sources
Name Vector Description Conditions
Slave TWI Slave interrupt
  • DIF: Data Interrupt Flag in TWIn.SSTATUS set
  • APIF: Address or Stop Interrupt Flag in TWIn.SSTATUS set
Master TWI Master interrupt
  • RIF: Read Interrupt Flag in TWIn.MSTATUS set
  • WIF: Write Interrupt Flag in TWIn.MSTATUS set
When an interrupt condition occurs, the corresponding Interrupt Flag is set in the Master register (TWIn.MSTATUS) or Slave Status register (TWIn.SSTATUS).
When several interrupt request conditions are supported by an interrupt vector, the interrupt requests are ORed together into one combined interrupt request to the interrupt controller. The user must read the peripheral’s INTFLAGS register to determine which of the interrupt conditions are present.