CoX Peripheral Interface(M051 Implement) V2.1.1.0
API Reference
I2C

I2C Serial Interface Controller. More...

Collaboration diagram for I2C:

Modules

 M051 I2C Register
 

Here are the detailed info of I2C registers.


 xI2C
 

CoX I2C Peripheral Interface.


 M051 I2C
 

M051 I2C Peripheral Driver.



Detailed Description

I2C Serial Interface Controller.

I2C is two-wire, bi-directional serial bus to transfer data. One bus is SCL which provide the clock pulse for each data bit transfer on the other SDA bus.

I2c can be configured as master mode or slave mode.Master mode provide clock and start/stop signal. Arbitration exist between simultaneously transmitting masters.

Programmable clocks allow versatile rate control, i2c supports multiple address with mask option.

Any of the status change will cause an interrupt if the interrupt enable bit has been set.


Contents


1. Function Description


1.1 I2C Protocol

Normally, a standard communication consists of four parts:

i2c_protocol.png


1.2 Data transfer

Master Transmits Data to Slave:

master_to_slave.png

Master Reads Data form Slave:

slave_to_master.png


2. Mode Operation


2.1 Slave Mode


2.2 Master Mode


3. I2C Applications

Add in the future...


Note:
Here describe the common function of the I2C Peripheral. The CoX Peripheral Interface is based on the functions above.