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
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