GD32W51x User Manual
656
1: Host address is enabled, address 0b0001000x w ill be acknow ledged.
19
GCEN
Whether or not to response to a General Call (0x00)
0: Slave w on’t response to a General Call
1: Slave w ill response to a General Call
18
WUEN
Wakeup from Deep-sleep mode enable
0: Wakeup from Deep-sleep mode disable.
1: Wakeup from Deep-sleep mode enable.
Note:
WUEN can be set only w hen DNF[3:0] = 0000. This bit is reserved in I2C1.
17
SS
Whether to stretch SCL low w hen data is not ready in slave mode.
This bit is set and cleared by softw are.
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 w hen
I2CEN = 0.
16
SBCTL
Slave byte control
This bit is used to enable hardw are 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 w hen 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 w ill filter spikes w ith a length of up to DNF[3:0] * t
I2CCLK
0000: Digital filter is disabled
0001: Digital filter is enabled and filter spikes w ith a length of up to 1 t
I2CCLK
...
1111: Digital filter is enabled and filter spikes w ith a length of up to15 t
I2CCLK
These bits can only be modified w hen the I2C is disabled (I2CEN = 0).
7
ERRIE
Error interrupt enable
0: Error interrupt disabled