GD32F20x User Manual
517
20.
Inter-integrated circuit interface (I2C)
20.1.
Overview
The I2C (inter-integrated circuit) module provides an I2C interface which is an industry
standard two-line serial interface for MCU to communicate with external I2C interface. I2C
bus uses two serial lines: a serial data line, SDA, and a serial clock line, SCL.
The I2C interface implements standard I2C protocol
with standard-mode and fast-mode
as
well as CRC calculation and checking, SMBus (system management bus) and PMBus (power
management bus). It also supports multi-master I2C bus. The I2C interface provides DMA
mode for users to reduce CPU overload.
20.2.
Characteristics
Parallel-bus to I2C-bus protocol converter and interface
Both master and slave functions with the same interface
Bi-directional data transfer between master and slave
Supports 7-bit and 10-bit addressing and general call addressing
Multi-master capability
Supports standard-mode (up to 100 kHz) and fast-mode (up to 400 kHz)
Configurable SCL stretching in slave mode
Supports DMA mode
SMBus 2.0 and PMBus compatible
2 Interrupts: one for successful byte transmission and the other for error event
Optional PEC (packet error checking) generation and check
20.3.
Function overview
Figure 20-1. I2C module block diagram
below provides details on the internal configuration
of the I2C interface.
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...