Nicolas Houarche

MC1322x Software Driver for I2C

Discussion created by Nicolas Houarche on Jan 14, 2010
Latest reply on Jan 15, 2010 by Tom Thompson

Hi everybody


I am trying to use a I2C connection to communicate with a slave device.
I am using functions provided and I have a few questions about them.


First, when I configure the I2C with I2c_SetConfig function, what is the "slave adress" ? Is it the slave adress of my device with which I am trying to communicate or is it the slave adress of my micro ?


Then, in the I2c_ReceiveData function, is slaveDestAddr parameter the adress of the device I am trying to reach ? If yes, how can I read one register of my device ?


Thanks for your answers.