GD32W51x User Manual
659
the arbitration is lost, or a timeout error occurred, or I2CEN=0, this bit can also be
cleared by hardw are. It can be cleared by softw are by setting the ADDSENDC bit
in I2C_STATC register.
0: START w ill not be sent
1: START w ill be sent
12
HEAD10R
10-bit address header executes read direction only in master receive mode
0: The 10 bit master receive address sequence is START + header of 10-bit address
(w rite) + slave address byte 2 + RESTART + header of 10-bit address (read).
1: The 10 bit master receive address sequence is RESTART + header of 10-bit
address (read).
Note:
When the START bit is set, this bit can not be changed.
11
ADD10EN
10-bit addressing mode enable in master mode
0: 7-bit addressing in master mode
1: 10-bit addressing in master mode
Note:
When the START bit is set, this bit can not be modified.
10
TRDIR
Transfer direction in master mode
0: Master transmit
1: Master receive
Note:
When the START bit is set, this bit can not be modified.
9:0
SADDRESS[9:0]
Slave address to be sent
SADDRESS[9:8]: Slave address bit 9:8
If ADD10EN = 0, these bits have no effect.
If ADD10EN = 1, these bits should be w ritten w ith bits 9:8 of the slave address to
be sent.
SADDRESS[7:1]: Slave address bit 7:1
If ADD10EN = 0, these bits should be w ritten w ith the 7-bit slave address to be sent.
If ADD10EN = 1, these bits should be w ritten w ith bits 7:1 of the slave address to
be sent.
SADDRESS0: Slave address bit 0
If ADD10EN = 0, this bit have no effect.
If ADD10EN = 1, this bit should be w ritten w ith bit 0 of the slave address to be sent
Note:
When the START bit is set, the bit filed can not be modified.
19.4.3.
Slave address register 0 (I2C_SADDR0)
Address offset: 0x08
Reset value: 0x0000 0000
This register can be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved