25.3.6 Interrupts
| Vector Name | Source Name | Condition | Dependency |
|---|---|---|---|
| USARTn_ERROR | ERROR |
• Auto-Baud Error/Invalid Sync Field (ISF) • Parity Error (PERR) • Frame Error (FERR) • Buffer Overflow (BUFOVF) • Transmit Collision Detected (COLL) | |
| USARTn_RXC | RXC |
• There are unread data in the receive buffer (RXC) • Receive of Start-of-Frame detected (RXS) • Received Valid Break and Synchronization (RXBRK) | |
| USARTn_DRE | DRE |
• The transmit buffer is empty/ready to receive new data (DRE) • Clear to Send Input Change (CTSIC) | |
| 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 (TXC) |
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.
