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.
| Vector Name | Source Name | Condition | Dependency |
|---|---|---|---|
| USARTn_RXC | RXC | There is unread data in the receive buffer | |
| RXS | Receive of Start-of-Frame detected | ||
| ABE | Auto-Baud Error/ISFIF flag set | ||
| USARTn_DRE | DRE | The transmit buffer is empty and ready to receive new data | |
| USARTn_TXC | TXC | The entire frame in the transmit shift register has been shifted out, and there are no new data in the transmit buffer |
