GD32W51x User Manual
663
In master mode, the master cumulative clock low extend time t
LOW:MEXT
is detected.
In slave mode, the slave cumulative clock low extend time t
LOW:SEXT
is detected.
t
LOW:EXT
= (BUSTOB +1) x 2048 x t
I2CCLK
.
Note:
These bits can be modified only w hen EXTOEN =0.
15
TOEN
Clock timeout detection enable
If the SCL stretch time greater than t
TIMEOUT
w hen TOIDLE =0 or high for more than
t
IDLE
w hen TOIDLE =1, a timeout error is detected.
0: SCL timeout detection is disabled
1: SCL timeout detection is enabled
14:13
Reserved
Must be kept at reset value.
12
TOIDLE
Idle clock timeout detection
0: BUSTOA is used to detect SCL low timeout
1: BUSTOA is used to detect both SCL and SDA high timeout w hen the bus is idle
Note:
This bit can be w ritten only w hen TOEN =0.
11:0
BUSTOA
Bus timeout A
When TOIDLE=0, t
TIMEOUT
= (BUSTOA +1) x 2048 x t
I2CCLK
When TOIDLE=1, t
IDLE
= (BUSTOA +1) x 4 x t
I2CCLK
Note:
These bits can be w ritten only w hen TOEN =0.
19.4.7.
Status register (I2C_STAT)
Address offset: 0x18
Reset value: 0x0000 0001
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
READDR[6:0]
TR
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
I2CBSY Reserved SMBALT TIMEOUT PECERR OUERR
LOSTAR
B
BERR
TCR
TC
STPDET
NACK
ADDSEN
D
RBNE
TI
TBE
r
r
r
r
r
r
r
r
r
r
r
r
r
rw
rw
Bits
Fields
Descriptions
31:24
Reserved
Must be kept at reset value.
23:17
READDR[6:0]
Received match address in slave mode
When the ADDSEND bit is set, these bits store the matched address. In the case of
a 10-bit address, READDR[6:0] stores the header of the 10-bit address follow ed by
the 2 MSBs of the address.