AnsweredAssumed Answered

LPC11C24 I2C troubles

Question asked by Federico Fiorini on Jan 9, 2019
Latest reply on Jan 14, 2019 by Federico Fiorini

Hello to all,
I am using LPC11C24 for a project that requires me to implement I2C communication between the board (LPCXpresso LPC11C24 Rev B) and some sensors using I2C protocol.

I looked at the example code provided on LPCOpen but it doesn't really seem clear to me.

In particular, I want to read 8bit data from a particular register of the sensor.

 

In my setup, the sensor I2c address is 0x1D while the register I'm looking for is at 0x0D.

 

Which one should I put in the Chip_I2C_MasterRead function?
Furthermore, which function do you suggest me to use? Read, CmdRead or Transceive? 

Thanks in advance!
Kind regards,


Federico

Outcomes