How to use multiple I2C devices on the same bus with KE02 using Processor Expert?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use multiple I2C devices on the same bus with KE02 using Processor Expert?

641 Views
varma_s
Contributor I

I need to use DS1307 and AT24c32 with the same I2C bus. I am using FRDM-KE02Z with Kinetis Design Studio. With KDS, there is only option of specifying only one I2C Slave Address. How can I set another slave address for a second device? 

I have seen the method CI2Cx_SelectSlaveDevice(), with which one can select another slave. But this does not seem to be working. I tried calling before CI2C_Init, MasterSendBlock and MasterReceiveBlock methods. Nothing seems to work. 

Kindly advice on this.

Regards

Varma

0 Kudos
1 Reply

532 Views
BlackNight
NXP Employee
NXP Employee

Yes, CI2Cx_SelectSlaveDevice() is used to select a different slave address.

Not sure why things are not working on your end, but have a look at the example code in the help for the component (Getting Help on Processor Expert Components | MCU on Eclipse ).

I hope this helps,

Erich

0 Kudos