I2C Slave

Top  Previous  Next
Got to SUB-20 page

Configuration

To use SUB-20 in I2C slave mode following should be done:

Configure I2C Slave module with sub_i2c_config. Set desired I2C slave address and optional flag(s).

Connect I2C Slave module to FIFO with sub_fifo_config. Set FIFO_SELECT_I2C flag.

If required write data to FIFO with sub_fifo_write. This data will be read by external I2C master.

If required read data from FIFO with sub_fifo_read. This will be data written by external I2C master.

 

Transactions

SUB-20 I2C slave module acts as zero address I2C slave device. Below are diagrams of receive and transmit transactions.

 

i2c_slave_receive

 

 

i2c_slave_transmit