![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 542](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782542.webp)
GD32A50x User Manual
542
0: BUSTOA is used to detect SCL low timeout
1: BUSTOA is used to detect both SCL and SDA high timeout when the bus is idle
Note:
This bit can be written only when TOEN =0.
11:0
BUSTOA
Bus timeout A
When TOIDLE=0,
t
TIMEOUT
=(1)*2048*t
I2CCLK
When TOIDLE=1,
t
IDLE
=(1)*4*t
I2CCLK
Note:
These bits can be written only when TOEN =0.
20.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 followed by
the 2 MSBs of the address.
16
TR
Whether the I2C is a transmitter or a receiver in slave mode
This bit is updated when the ADDSEND bit is set.
0: Receiver
1: Transmitter
15
I2CBSY
Busy flag
This bit is set by hardware when a START signal is detected and cleared by
hardware after a STOP signal. When I2CEN=0, this bit is also cleared by hardware.
0: No I2C communication.
1: I2C communication active.
14
Reserved
Must be kept at reset value.
13
SMBALT
SMBus Alert
When SMBHAEN=1, SMBALTEN=1, and a SMBALERT event (falling edge) is
detected on SMBA pin, this bit will be set by hardware. It is cleared by software by