35.7.5.7 Interrupt Flag Status and Clear
Symbol | Description | Symbol | Description | Symbol | Description |
---|---|---|---|---|---|
R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
K | Write to clear | S | Software settable bit | — | — |
Name: | INTFLAG |
Offset: | 0x18 |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
ERROR | SSL | RXC | TXC | DRE | |||||
Access | R/W | R/W | R | R/W | R | ||||
Reset | 0 | 0 | 0 | 0 | 0 |
Bit 7 – ERROR Error
This flag is cleared by writing '1' to it.
This bit is set when any error is detected. Errors that will set this flag have corresponding flags in the STATUS register: TUR error, BUFOVF error, and the LENERR error.
Writing '0
' to this bit has no effect.
Writing '1
' to this bit will clear the
flag.
Bit 3 – SSL Client Select Low
This flag is cleared by writing '1
' to
it.
This bit is set when a high to low transition is detected on the SS pin in Client mode and Client Select Low Detect (CTRLB.SSDE) is enabled.
Writing '0
' to this bit has no effect.
Writing '1
' to this bit will clear the
flag.
Bit 2 – RXC Receive Complete
This flag is cleared by reading the Data (DATA) register or by disabling the receiver.
This flag is set when there are unread data in the receive buffer. If address matching is enabled (CTRLA.FORM = 0x2), the first data received in a transaction will be an address.
Writing '0
' to this bit has no effect.
Writing '1
' to this bit has no effect.
Bit 1 – TXC Transmit Complete
This flag is cleared by writing '1
' to it
or by writing new data to DATA.
In Host mode, this flag is set when the data have been shifted out and there are no new data in DATA.
In Client mode, this flag is set when the SS pin is pulled high. If address matching is enabled (CTRLA.FORM = 0x2), this flag is only set if the transaction was initiated with an address match.
Writing '0
' to this bit has no effect.
Writing '1
' to this bit will clear the
flag.
Bit 0 – DRE Data Register Empty
This flag is cleared by writing new data to DATA.
This flag is set when DATA is empty and ready for new data to transmit.
Writing '0
' to this bit has no effect.
Writing '1
' to this bit has no effect.