36.5.12 I2CxCNT
I2C Byte Count Register(1,2)
Note:
- It is recommended to write
this register only when the module is Idle (MMA =
0
or SMA =0
) or when the module is clock stretching (CSTR =1
or MDR =1
). - CNTIF is set on the 9th falling SCL
edge when I2CxCNT =
0
. - The individual bytes in this
multibyte register can be accessed with the following register names:
- I2CxCNTH: Accesses the high byte I2CxCNT[15:8]
- I2CxCNTL: Accesses the low byte I2CxCNT[7:0]
- The I2CxCNTH register is buffered for automatic write operation. The actual register value gets updated when the user writes to the I2CxCNTL register. There is no buffering for read operation, it is recommended to perform a double read to ensure a valid count value.
Name: | I2CxCNT |
Address: | 0x01ED |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
CNT[15:8] | |||||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CNT[7:0] | |||||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |