GD32A50x User Manual
535
1: Slave will response to a General Call
18
Reserved
Must be kept at reset value.
17
SS
Whether to stretch SCL low when data is not ready in slave mode.
This bit is set and cleared by software.
0: SCL Stretching is enabled
1: SCL Stretching is disabled
Note:
When in master mode, this bit must be 0. This bit can be modified when
I2CEN = 0.
16
SBCTL
Slave byte control
This bit is used to enable hardware byte control in slave mode.
0: Slave byte control is disabled
1: Slave byte control is enabled
15
DENR
DMA enable for reception
0: DMA is disabled for reception
1: DMA is enabled for reception
14
DENT
DMA enable for transmission
0: DMA is disabled for transmission
1: DMA is enabled for transmission
13
Reserved
Must be kept at reset value.
12
ANOFF
Analog noise filter disable
0: Analog noise filter is enabled
1: Analog noise filter is disabled
Note:
This bit can only be programmed when the I2C is disabled (I2CEN = 0).
11:8
DNF[3:0]
Digital noise filter
These bits are used to configure the digital noise filter on SDA and SCL input. The
digital filter will filter spikes with a length of up to
DNF[3:0]*t
I2CCLK
0000: Digital filter is disabled
0001: Digital filter is enabled and filter spikes with a length of up to 1
t
I2CCLK
...
1111: Digital filter is enabled and filter spikes with a length of up to15
t
I2CCLK
These bits can only be modified when the I2C is disabled (I2CEN = 0).
7
ERRIE
Error interrupt enable
0: Error interrupt disabled
1: Error interrupt enabled. When BERR, LOSTARB, OUERR, PECERR, TIMEOUT
or SMBALT bit is set, an interrupt will be generated.
6
TCIE
Transfer complete interrupt enable
0: Transfer complete interrupt is disabled
1: Transfer complete interrupt is enabled