25.3.6 Interrupts

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

An interrupt source is enabled or disabled by writing to the corresponding enable bit in the USART's Control A (USARTn.CTRLA) register.

An interrupt request is generated when the interrupt flag is set and the corresponding interrupt source is enabled. The interrupt request remains active until the interrupt flag is cleared, the interrupt is disabled, or the peripheral is reset. Refer to the USARTn.STATUS register description for details on how to clear interrupt flags.

Table 25-9. Available Interrupt Vectors and Sources
Vector NameSource NameConditionDependency
USARTn_RXCRXCThere is unread data in the receive buffer
RXSReceive of Start-of-Frame detected
ABEAuto-Baud Error/ISFIF flag set
USARTn_DREDREThe transmit buffer is empty and ready to receive new data
USARTn_TXCTXCThe entire frame in the transmit shift register has been shifted out, and there are no new data in the transmit buffer