26.5.4 Interrupt Flags - Normal Mode
Name: | INTFLAGS |
Offset: | 0x03 |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
IF | WRCOL | ||||||||
Access | R/W | R/W | |||||||
Reset | 0 | 0 |
Bit 7 – IF Interrupt Flag
This flag is set when a serial transfer is complete, and one byte is completely
shifted in/out of the SPIn.DATA register. If
SS is configured as input and is driven
low when the SPI is in Host mode, this will also set this flag. The IF
is cleared by writing a ‘1’
to it. Alternatively, the
IF can be cleared by first reading the SPIn.INTFLAGS register when IF
is set and then accessing the SPIn.DATA register.
Bit 6 – WRCOL Write Collision
The WRCOL flag is set if the SPIn.DATA register is written before a complete byte has been shifted out. This flag is cleared by first reading the SPIn.INTFLAGS register when WRCOL is set and then accessing the SPIn.DATA register.