633
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Bit field
Name
Description
1: Start condition has been sent.
This bit is set to' 1' when the start condition is sent.
22.6.8
I2C Status register 2 (I2C_STS2)
Address offset: 0x18
Reset value: 0x0000
Bit field
Name
Description
15:8
PECVAL[7:0]
Packet error checking register
Stores the internal PEC value When I2C_CTRL1.PECEN =1.
7
DUALFLAG
Dual flag(Slave mode)
Hardware clears this bit when a stop condition or a repeated start condition is generated, or
when I2C_CTRL1.EN=0.
0: Received address matches the content in OADDR1;
1: Received address matches the content in OADDR2.
6
SMBHADDR
SMBus host header
(
Slave mode
)
Hardware clears this bit when a stop condition or a repeated start condition is generated, or
when I2C_CTRL1.EN=0.
0: SMBus host address was not received;
1: when I2C_CTRL1.SMBTYPE=1 and I2C_CTRL1.ARPEN=1, SMBus host address is
received.
5
SMBDADDR
SMBus device default address
(
Slave mode
)
Hardware clears this bit when a stop condition or a repeated start condition is generated, or
when I2C_CTRL1.EN=0.
0: The default address of SMBus device has not been received;
1: when I2C_CTRL1.ARPEN=1, the default address of SMBus device is received.
4
GCALLADDR
General call address(Slave mode)
Hardware clears this bit when a stop condition or a repeated start condition is generated, or
when I2C_CTRL1.EN=0.
0: No general call address was received;
1: when I2C_CTRL1.GCEN=1, general call address was received.
3
Reserved
Reserved, the reset value must be maintained.
2
TRF
Transmitter/receiver
After detecting the stop condition (I2C_STS1.STOPF=1), repeated start condition or bus
arbitration loss (I2C_STS1.ARLOST=1), or when I2C_CTRL1.EN=0, the hardware clears it.
0: Data receiving mode;
1: Data transmission mode;
At the end of the whole address transmission stage, this bit is set according to the R/W bit of