![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 540](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782540.webp)
GD32A50x User Manual
540
111: ADDRESS2[7:1] are masked. All 7-bit received addresses are acknowledged
except the reserved address (0b0000xxx and 0b1111xxx).
Note:
When ADDRESS2EN is set, these bits should not be written. If ADDMSK2 is
not equal to 0, the reserved I2C addresses (0b0000xxx and 0b1111xxx) are not
acknowledged 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 written.
0
Reserved
Must be kept at reset value.
20.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)*t
I2CCLK
27:24
Reserved
Must be kept at reset value.
23:20
SCLDELY[3:0]
Data setup time
A delay
t
SCLDELY
between SDA edge and SCL rising edge can be generated by
configuring these bits. And during
t
SCLDELY
, the SCL line is stretched low in master
mode and in slave mode when SS = 0.
t
SCLDELY
=(1)*t
PSC
19:16
SDADELY[3:0]
Data hold time
A delay
t
SDADELY
between SCL falling edge and SDA edge can be generated by
configuring these bits. And during
t
SDADELY
, the SCL line is stretched low in master
mode and in slave mode when SS = 0.
t
SDADELY
=SDADELY*t
PSC
15:8
SCLH[7:0]
SCL high period
SCL high period can be generated by configuring these bits.