35.6.8.8 Interrupt Flag Status and Clear

Note: Interrupt flags must be cleared and then read back to confirm the clear before exiting the ISR to avoid double interrupts.
Table 35-17. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: INTFLAG
Offset: 0x18
Reset: 0x00
Property: -

Bit 76543210 
 ERROR RXBRKCTSICRXSRXCTXCDRE 
Access R/W/HS/KR/W/HS/KR/W/HS/KR/W/HS/KR/HS/HCR/W/HS/KR/HS/HC 
Reset 0000000 

Bit 7 – ERROR Error

This bit is set when any STATUS.(COLL, ISF, BUFOVF, FERR, and PERR) errors are detected.

ValueDescription
0No error detected
1Error detected
Note:
  1. Before clearing this flag, the user must first clear the corresponding STATUS.(COLL, ISF, BUFOVF, FERR, or PERR) error flags as appropriate. In the case of STATUS.COLL = 1 the user must also re-enable the transmitter and set TXEN = 1.
  2. Writing '1' to this bit will clear the flag.
  3. Writing ‘0x0’ to this bit has no effect.

Bit 5 – RXBRK Receive Break

This flag is set when auto-baud is enabled, (CTRLA.FORM = 0x4 or 0x5), and a break 0x55 character is received.

ValueDescription
0No Receive Break detected
1Receive Break detected
Note:
  1. Writing '1' to this bit will clear the flag.
  2. Writing ‘0x0’ to this bit has no effect.

Bit 4 – CTSIC Clear to Send Input Change

This flag is set when CTRLA.TXPO = 0x2 and a logic level change is detected on the “CTS” SERCOM PAD[3] pin.

ValueDescription
0No Clear to Send Input Change detected
1Clear to Send Input signal Change detected
Note:
  1. Writing '1' to this bit will clear the flag.
  2. Writing ‘0x0’ to this bit has no effect.

Bit 3 – RXS Receive Start

This flag is set when a start condition is detected on the RxD line and start-of-frame detection is enabled (CTRLB.SFDE = 0x1).

ValueDescription
0No Receive Start detected
1Receive Start detected
Note:
  1. Writing '1' to this bit will clear the flag.
  2. Writing ‘0x0’ to this bit has no effect.

Bit 2 – RXC Receive Complete

This flag is set when there is unread Rx data in the DATA register.

ValueDescription
0No Receive Complete detected, (Rx DATA register empty)
1Unread Rx DATA available
Note:
  1. This flag is cleared by reading the Data register (DATA) or by disabling the receiver CTRLB.RXEN = 0.
  2. Writing ‘0’ or ‘1’ to this bit has no effect.

Bit 1 – TXC Transmit Complete

This flag is set when the entire frame in the Transmit Shift register has been shifted out and there is no new data in the Tx DATA register.

ValueDescription
0No Transmit Complete detected (Tx Idle or Busy)
1Transmit Complete, Tx DATA register empty
Note:
  1. Writing '1' to this bit will clear the flag.
  2. Writing ‘0x0’ to this bit has no effect.

Bit 0 – DRE Tx Data Register Empty

This flag is set when Tx DATA is empty and ready to be written.

ValueDescription
0Tx DATA register is not empty
1Tx DATA register empty
Note:
  1. This flag is cleared by writing new data to the DATA register.
  2. Writing ‘0’ or 1 to this bit has no effect.