
Rev. 1.00
391 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
19 Inter-Integrated Circuit (I2C)
19
Inter-Integrated Circuit (I
2
C)
Introduction
The I
2
C Module is an internal circuit allowing communication with an external I
2
C interface which
is an industry standard two-wire serial interface used for connection to external hardware. These
two serial lines are known as a serial data line, SDA, and a serial clock line, SCL. The I
2
C module
provides three data transfer rates: (1) 100 kHz in the Standard mode, (2) 400 kHz in the Fast
mode and (3) 1 MHz in the Fast mode plus. The SCL period generation registers are used to setup
different kinds of duty cycle implementation for the SCL pulse.
The SDA line which is connected to the whole I
2
C bus is a bidirectional data line between the
master and slave devices used for the transmission and reception of data. The I
2
C module also has
an arbitration detection function to prevent the situation where more than one master attempts to
transmit data on the I
2
C bus at the same time.
SCL High/Low
period
Generation
SCL
Generator
Target Register
Data Shift Register
Address
Register
Address
Comparator
Control Register
APB Bus
Status
Register
SCL out
control
SCL Sync
SDA out
control
M
UX
Address/Data
SCL Edge
Detect
Sync
Bit
Counter
Arbitration
Bus Status
SCL_out
SDA_out
SDA_in
SCL_in
Data Register
Interrupts
Figure 138. I
2
C Module Block Diagram