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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,161 次查看
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 项奖励
回复
1 回复

1,052 次查看
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 项奖励
回复