
GD32L23x User Manual
500
21.4.
Register definition
I2C0 base address: 0x4000 5400
I2C1 base address: 0x4000 5800
I2C2 base address: 0x4000 C000
21.4.1.
Control register 0 (I2C_CTL0)
Address offset: 0x00
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
Reserved
PECEN
SMBALT
EN
SMBDAE
N
SMBHAE
N
GCEN
WUEN
SS
SBCTL
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DENR
DENT
Reserved ANOFF
DNF[3:0]
ERRIE
TCIE
STPDETI
E
NACKIE ADDMIE
RBNEIE
TIE
I2CEN
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:24
Reserved
Must be kept at reset value.
23
PECEN
PEC Calculation Switch
0: PEC Calculation off
1: PEC Calculation on
22
SMBALTEN
SMBus Alert enable
0: SMBA pin is not pulled down (device mode) or SMBus Alert pin SMBA is disabled
(host mode)
1: SMBA pin is pulled down (device mode) or SMBus Alert pin SMBA is enabled
(host mode)
21
SMBDAEN
SMBus device default address enable
0: Device default address is disabled, the default address 0b1100001x will be not
acknowledged.
1: Device default address is enabled, the default address 0b1100001x will be
acknowledged.
20
SMBHAEN
SMBus Host address enable
0: Host address is disabled, address 0b0001000x will be not acknowledged.
1: Host address is enabled, address 0b0001000x will be acknowledged.
19
GCEN
Whether or not to response to a General Call (0x00)