This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C123GE6PM: I2C Slave configuration

Part Number: TM4C123GE6PM

Tool/software: Code Composer Studio


Is it possible to configure an I2C of the Tiva in slave mode ? 

If yes how ? 

I have already configured several I2C in master mode but I don't know how to do it in slave mode. 

Does the functions included in the file I2C.h can be used ? Is there some functions such as 'I2c_write' and 'I2C_read' for this case? 

Thank you for your help ! 

Best regards, 


  • Hi Elisabeth,

      Yes, the I2C modules on the Tiva devices can be configured as slave. Can you please start with the TivaWare I2C examples. Please see below. The two highlighted examples have code to show how the slave mode is configured. For slave operations, you would use I2CSlaveDataPut and I2CSlaveDataGet to do the writes and reads.