GD32F20x User Manual
537
20.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 - 111100: 2 MHz~50MHz
111101 - 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
Содержание 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 ...