GD32VF103 User Manual
373
17.4.2.
Control register 1 (I2C_CTL1)
Address offset: 0x04
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
Reserved
DMALST DMAON
BUFIE
EVIE
ERRIE
Reserved
I2CCLK[5:0]
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
15:13
Reserved
Must be kept the reset value.
12
DMALST
Flag indicating DMA last transfer
0: Next DMA EOT is not the last transfer
1: Next DMA EOT is the last transfer
11
DMAON
DMA mode switch
0: DMA mode disabled
1: DMA mode enabled
10
BUFIE
Buffer interrupt enable
0: No interrupt asserted when TBE = 1 or RBNE = 1
1: Interrupt asserted when TBE = 1 or RBNE = 1 if EVIE=1
9
EVIE
Event interrupt enable
0: Event interrupt disabled
1: Event interrupt enabled, means that interrupt will be generated when SBSEND,
ADDSEND, ADD10SEND, STPDET or BTC flag asserted or TBE=1 or RBNE=1 if
BUFIE=1.
8
ERRIE
Error interrupt enable
0: Error interrupt disabled
1: Error interrupt enabled, means that interrupt will be generated when BERR,
LOSTARB, AERR, OUERR, PECERR, SMBTO or SMBALT flag asserted.
7:6
Reserved
Must be kept the reset value
5:0
I2CCLK[5:0]
I2C Peripheral clock frequency
I2CCLK[5:0]should be the frequency of input APB1 clock in MHz which is at least 2.
000000 - 000001: Not allowed
000010 - 110110: 2 MHz~54MHz
110111 - 111111: Not allowed due to the limitation of APB1 clock
Note:
In I2C standard mode, the frequencies of APB1 must be equal or greater than
2MHz. In I2C fast mode, the frequencies of APB1 must be equal or greater than