I2CxPIR

I2CxPIR

I2C Interrupt Flag Register
Notes:
  1. 1.Enabled interrupt flags are OR’ed to produce the PIRx[I2CxIF] bit.
  2. 2.ACKTIF is not set by a matching 10-bit high address byte with the R/W bit clear. It is only set after the matching low address byte is shifted in.
0x01EA 8         1 1 x

I2CxPIR

Bit  7 6 5 4 3 2 1 0  
  CNTIF ACKTIF   WRIF ADRIF PCIF RSCIF SCIF  
Access  R/W/HS R/W/HS   R/W/HS R/W/HS R/W/HS R/W/HS R/W/HS  
Reset  0 0   0 0 0 0 0  

Bit 7 – CNTIF: Byte Count Interrupt Flag(1)

Byte Count Interrupt Flag(1)

ValueDescription
1 Set on the 9th falling SCL edge when I2CxCNT = 0
0 I2CxCNT value is not zero

Bit 6 – ACKTIF: Acknowledge Status Time Interrupt Flag (used only when MODE I2C Mode Select = 0xx or MODE = 11x)(1,2)

Acknowledge Status Time Interrupt Flag (used only when MODE = 0xx or MODE = 11x)(1,2)

ValueDescription
1 Acknowledge sequence detected, set on the 9th falling SCL edge for any byte when addressed as a client
0 Acknowledge sequence not detected

Bit 4 – WRIF: Data Write Interrupt Flag (used only when MODE I2C Mode Select = 0xx or MODE = 11x)(1)

Data Write Interrupt Flag (used only when MODE = 0xx or MODE = 11x)(1)

ValueDescription
1 Data byte detected, set on the 8th falling SCL edge for a received data byte
0 Data byte not detected

Bit 3 – ADRIF: Address Interrupt Flag (used only when MODE I2C Mode Select = 0xx or MODE = 11x)(1)

Address Interrupt Flag (used only when MODE = 0xx or MODE = 11x)(1)

ValueDescription
1 Address detected, set on the 8th falling SCL edge for a matching received address byte
0 Address not detected

Bit 2 – PCIF: Stop Condition Interrupt Flag(1)

Stop Condition Interrupt Flag(1)

ValueDescription
1 Stop condition detected
0 Stop condition not detected

Bit 1 – RSCIF: Restart Condition Interrupt Flag(1)

Restart Condition Interrupt Flag(1)

ValueDescription
1 Restart condition detected
0 Restart condition not detected

Bit 0 – SCIF: Start Condition Interrupt Flag(1)

Start Condition Interrupt Flag(1)

ValueDescription
1 Start condition detected
0 Start condition not detected