
GD32A50x User Manual
539
15
ADDRESSEN
I2C address enable
0: I2C address disable.
1: I2C address enable.
14:11
Reserved
Must be kept at reset value.
10
ADDFORMAT
Address mode for the I2C slave
0: 7-bit address
1: 10-bit address
Note:
When ADDRESSEN is set, this bit should not be written.
9:8
ADDRESS[9:8]
Highest two bits of a 10-bit address
Note:
When ADDRESSEN is set, this bit should not be written.
7:1
ADDRESS[7:1]
7-bit address or bits 7:1 of a 10-bit address
Note:
When ADDRESSEN is set, this bit should not be written.
0
ADDRESS0
Bit 0 of a 10-bit address
Note:
When ADDRESSEN is set, this bit should not be written.
20.4.4.
Slave address register 1 (I2C_SADDR1)
Address offset: 0x0C
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
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ADDRES
S2EN
Reserved
ADDMSK2[2:0]
ADDRESS2[7:1]
Reserved
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15
ADDRESS2EN
Second I2C address enable
0: Second I2C address disable.
1: Second I2C address enable.
14:11
Reserved
Must be kept at reset value.
10:8
ADDMSK2[2:0]
ADDRESS2[7:1] mask
Defines which bits of ADDRESS2[7:1] are compared with an incoming address byte,
and which bits are masked (don’t care).
000: No mask, all the bits must be compared.
n(001~110): ADDRESS2[n:0] is masked. Only ADDRESS2[7:n+1] are compared.