ATtiny1624/1626/1627

INTFLAGS

Interrupt Flags - Normal Mode

  0x03 8 - 0x00  

Interrupt Flags - Normal Mode

Bit  7 6 5 4 3 2 1 0  
  IF WRCOL              
Access  R/W R/W              
Reset  0 0              

Bit 7 – IF: Interrupt Flag

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 hardware when executing the corresponding interrupt vector. 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

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.