Inter-integrated circuit (I
2
C) interface
RM0090
860/1731
DocID018909 Rev 11
27.6.7 I
2
C Status register 2 (I2C_SR2)
Address offset: 0x18
Reset value: 0x0000
Note:
Reading I2C_SR2 after reading I2C_SR1 clears the ADDR flag, even if the ADDR flag was
set after reading I2C_SR1. Consequently, I2C_SR2 must be read only when ADDR is found
set in I2C_SR1 or when the STOPF bit is cleared.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PEC[7:0]
DUALF
SMB
HOST
SMBDE
FAULT
GEN
CALL
Res.
TRA
BUSY
MSL
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
Bits 15:8
PEC[7:0]
Packet error checking register
This register contains the internal PEC when ENPEC=1.
Bit 7
DUALF
: Dual flag (Slave mode)
0: Received address matched with OAR1
1: Received address matched with OAR2
– Cleared by hardware after a Stop condition or repeated Start condition, or when PE=0.
Bit 6
SMBHOST
: SMBus host header (Slave mode)
0: No SMBus Host address
1: SMBus Host address received when SMBTYPE=1 and ENARP=1.
– Cleared by hardware after a Stop condition or repeated Start condition, or when PE=0.
Bit 5
SMBDEFAULT
: SMBus device default address (Slave mode)
0: No SMBus Device Default address
1: SMBus Device Default address received when ENARP=1
– Cleared by hardware after a Stop condition or repeated Start condition, or when PE=0.
Bit 4
GENCALL
: General call address (Slave mode)
0: No General Call
1: General Call Address received when ENGC=1
– Cleared by hardware after a Stop condition or repeated Start condition, or when PE=0.
Bit 3 Reserved, must be kept at reset value