GD32F20x User Manual
535
20.4.
Register definition
I2C0 start address: 0x4000 5400
I2C1 start address: 0x4000 5800
I2C2 start address: 0x4000 C000
20.4.1.
Control register 0 (I2C_CTL0)
Address offset: 0x00
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SRESET Reserved
SALT
PECTRANS
POAP
ACKEN
STOP
START DISSTRC
GCEN
PECEN
ARPEN
SMBSEL Reserved SMBEN
I2CEN
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
15
SRESET
Software reset I2C, software should wait until the I2C lines are released to reset
the I2C
0: I2C is not under reset
1: I2C is under reset
14
Reserved
Must be kept the 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 set and clear this bit while hardware clears this bit when PEC is
transferred or START/STOP condition detectedor I2CEN=0
0: Don’t transfer PEC value
1: Transfer PEC
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
byte
1: ACKEN bit specifies whether to send ACK or NACK for the next byte that is to
be received, PECTRANS bit indicates the next byte that is to be received is a PEC
Содержание GD32F20 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F20x ARM Cortex M3 32 bit MCU User Manual Revision 2 2 Oct 2019 ...
Страница 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Страница 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Страница 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Страница 385: ...GD32F20x User Manual 385 ...
Страница 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...