
Rev. 1.00
406 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
19 Inter-Integrated Circuit (I2C)
19 Inter-Integrated Circuit (I2C)
Register Descriptions
I
2
C Control Register – I2CCR
This register specifies the corresponding I
2
C function enable control.
Offset:
0x000 (0)
Reset value: 0x0000_2000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
SEQFILTER
COMBFILTEREN
ENTOUT
Reserved
Type/Reset RW 0 RW 0 RW 1 RW 0
7
6
5
4
3
2
1
0
ADRM
Reserved
I2CEN
GCEN
STOP
AA
Type/Reset RW 0
RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[15:14]
SEQFILTER
SDA or SCL Input Sequential Filter Configuration Bits
00: Sequential filter is disabled
01: 1 PCLK glitch filter
1x: 2 PCLK glitch filter
Note: This setting would affect the frequency of SCL. Detail is described in
I2CSLPGR register.
[13]
COMBFILTEREN SDA or SCL Input Combinational Filter Enable Bit
0: Combinational filter is disabled
1: Combinational filter is enabled
[12]
ENTOUT
I
2
C Timeout Function Enable Control
0: Timeout Function is disabled
1: Timeout Function is enabled
This bit is used to enable or disable the I
2
C timeout function. When the I2CEN
bit is cleared to 0, the ENTOUT bit will be automatically cleared to 0 by
hardware. It is recommended that users have to properly configure the PSC
and TOUT fields in the I2CTOUT register before the timeout counter starts to
count by setting the ENOUT bit to 1.
[7]
ADRM
Addressing Mode
0: 7-bit addressing mode
1: 10-bit addressing mode
When the I
2
C master / slave module operates in the 7-bit addressing mode,
it can only send out and respond to a 7-bit address and vice versa. When the
I2CEN bit is disabled, the ADRM bit is automatically cleared to 0 by hardware.
[3]
I2CEN
I
2
C Interface Enable
0: I
2
C interface is disabled
1: I
2
C interface is enabled