27.3.6 Interrupts

Table 27-9. Available Interrupt Vectors and Sources
NameVector DescriptionConditions
RXCReceive Complete interrupt
  • There is unread data in the receive buffer (RXCIE)
  • Receive of Start-of-Frame detected (RXSIE)
  • Auto-Baud Error/ISFIF flag set (ABEIE)
DREData Register Empty interruptThe transmit buffer is empty/ready to receive new data (DREIE)
TXCTransmit Complete interruptThe entire frame in the transmit shift register has been shifted out and there are no new data in the transmit buffer (TXCIE)

When an interrupt condition occurs, the corresponding interrupt flag is set in the STATUS (USARTn.STATUS) register.

An interrupt source is enabled or disabled by writing to the corresponding bit in the Control A (USARTn.CTRLA) 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 USARTn.STATUS register for details on how to clear Interrupt flags.