SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 163
Version 1.1
1
1
1
4
4
4
I2C
14.1 OVERVIEW
The I2C bus is bidirectional for inter-IC control using only two wires: Serial Clock Line (SCL) and Serial Data line (SDA).
Each device is recognized by a unique address and can operate as either a receiver-only device (e.g., an LCD driver) or
a transmitter with the capability to both receive and send information (such as memory). Transmitters and/or receivers
can operate in either master or slave mode, depending on whether the chip has to initiate a data transfer or is only
addressed. The I2C is a multi-master bus and can be controlled by more than one bus master connected to it. It is also
SMBus 2.0 compatible.
The I2C interface is byte oriented and has four operating modes:
Master transmitter mode
Master receiver mode
Slave transmitter mode
Slave receiver mode
14.2 FEATURES
The I2C interface complies with the entire I2C specification, supporting the ability to turn power off to the ARM
Cortex-M0 without interfering with other devices on the same I2C-bus.
Standard I2C-compliant bus interfaces may be configured as Master or Slave.
I2C Master features:
Clock generation
Start and Stop generation
I2C Slave features:
Programmable I2C Address detection
Optional recognition of up to four distinct slave addresses
Stop bit detection
Supports different communication speeds:
Standard Speed (up to 100KHz)
Fast Speed (up to 400 KHz)
Arbitration is handled between simultaneously transmitting masters without corruption of serial data on the
bus.
Programmable clock allows adjustment of I2C transfer rates.
Data transfer is bidirectional between masters and slaves.
Serial clock synchronization allows devices with different bit rates to communicate via one serial bus.
Serial clock synchronization is used as a handshake mechanism to suspend and resume serial transfer.
I2C-bus can be used for test and diagnostic purposes.
Generation and detection of 7-bit/10-bit addressing and General Call.
14.3 PIN DESCRIPTION
Pin Name
Type
Description
GPIO Configuration
SCLn
I/O
I2C Serial clock
Output with Open-drain
Input depends on GPIOn_CFG
SDAn
I/O
I2C Serial data
Output with Open-drain
Input depends on GPIOn_CFG