GD32F10x User Manual
473
17.4.
Register definition
I2C0 base address: 0x4000 5400
I2C1 base address: 0x4000 5800
17.4.1.
Control register 0 (I2C_CTL0)
Address offset: 0x00
Reset value: 0x0000 0000
This register can be accessed by half-word (16-bit) or word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SRESET Reserved
SALT
PECTRA
NS
POAP
ACKEN
STOP
START
SS
GCEN
PECEN
ARPEN
SMBSEL Reserved SMBEN
I2CEN
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15
SRESET
Software resets I2C, software should wait until the I2C lines are released to reset
the I2C
0: I2C is not reset
1: I2C is reset
14
Reserved
Must be kept at reset value.
13
SALT
SMBus Alert.
Issue alert through SMBA pin.
Software can set and clear this bit and hardware can clear this bit.
0: Don’t issue alert through SMBA pin
1: Issue alert through SMBA pin
12
PECTRANS
PEC transfer
Software sets and clears this bit while hardware clears this bit when PEC is
transferred or START/STOP condition is detected I2CEN=0
0: Don’t transfer PEC value
1: Transfer PEC value
11
POAP
Position of ACK and PEC when receiving
This bit is set and cleared by software and cleared by hardware when I2CEN=0
0: ACKEN bit specifies whether to send ACK or NACK for the current byte that is
being received. PECTRANS bit indicates that the current receiving byte is a PEC
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...