GD32W51x User Manual
661
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 w hich bits of ADDRESS2[7:1] are compared w ith an incoming address byte,
and w hich 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.
111: ADDRESS2[7:1] are masked. All 7-bit received addresses are acknow ledged
except the reserved address (0b0000xxx and 0b1111xxx).
Note:
When ADDRESS2EN is set, these bits should not be w ritten. If ADDMSK2 is
not equal to 0, the reserved I2C addresses (0b0000xxx and 0b1111xxx) are not
acknow ledged even if all the bits are matched.
7:1
ADDRESS2[7:1]
Second I2C address for the slave
Note:
When ADDRESS2EN is set, these bits should not be w ritten.
0
Reserved
Must be kept at reset value.
19.4.5.
Timing register (I2C_TIMING)
Address offset: 0x10
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
PSC[3:0]
Reserved
SCLDELY[3:0]
SDADELY[3:0]
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SCLH[7:0]
SCLL[7:0]
rw
rw
Bits
Fields
Descriptions
31:28
PSC[3:0]
Timing prescaler
In order to generate the clock period t
PSC
used for data setup and data hold counters,
these bits are used to configure the prescaler for I2CCLK. The t
PSC
is also used for
SCL high and low level counters.
t
PSC
= (PSC+1) x t
I2CCLK
27:24
Reserved
Must be kept at reset value.
23:20
SCLDELY[3:0]
Data setup time