CoX Peripheral Interface V2.1
API Reference
I2C

I2C Serial Interface Controller. More...

Collaboration diagram for I2C:

Modules

 xI2C
 

CoX I2C Peripheral Interface.



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 configure as master mode or slave mode. Master mode provide the 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 chage will cause an interrupt if the interrupt enable bit 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.