GD32W51x User Manual
662
A delay t
SCLDELY
betw een 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 w hen SS = 0.
t
SCLDELY
= (SCLDELY +1) x t
PSC
19:16
SDADELY[3:0]
Data hold time
A delay t
SDADELY
betw een 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 w hen SS = 0.
t
SDADELY
= SDADELY x t
PSC
15:8
SCLH[7:0]
SCL high period
SCL high period can be generated by configuring these bits.
t
SCLH
= (SCLH+1) x t
PSC
Note:
These bits can only be used in master mode.
7:0
SCLL[7:0]
SCL low period
SCL low period can be generated by configuring these bits.
t
SCLL
= (SCLL+1) x t
PSC
Note:
These bits can only be used in master mode.
19.4.6.
Timeout register (I2C_TIMEOUT)
Address offset: 0x14
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
EXTOEN
Reserved
BUSTOB[11:0]
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TOEN
Reserved
TOIDLE
BUSTOA[11:0]
rw
rw
rw
Bits
Fields
Descriptions
31
EXTOEN
Extended clock timeout detection enable
When a cumulative SCL stretch time is greater than t
LOW:EXT
, a timeout error w ill be
occurred. t
LOW:EXT
= (BUSTOB +1) x 2048 x t
I2CCLK
.
0: Extended clock timeout detection is disabled.
1: Extended clock timeout detection is enabled.
30:28
Reserved
Must be kept at reset value.
27:16
BUSTOB
Bus timeout B
Configure the cumulative clock extension timeout.