How to use multiple slaves in I2C in S32K146

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

How to use multiple slaves in I2C in S32K146

763 Views
baseerahmadpiracha
Contributor III

Hello,

I am trying to use multiple slaves  on I2C0. 7-bit Address of one slave is 0x6C and other 2 is 0x64 and 0x65.

The slave with address 6C is working fine but when I try to interface 0x64 and 0x65 I am unable to make these slaves work. These two slaves are led driver (TLC59116) with 0x64 and 0x65 address, so I can not turn on the LEDs using I2C.

How can I use I2C to handle multiple I2C slaves. Please guide me on This topic.

BR,
Baseer

0 Kudos
Reply
3 Replies

751 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @baseerahmadpiracha,

Have you measured the I2C bus with an oscilloscope?

The address is in the 7 MSB of the byte, you sould see 0xCA for a write.

Does the driver acknowledge the address?

 

danielmartynek_0-1690807033935.png

 

BR, Daniel

0 Kudos
Reply

749 Views
baseerahmadpiracha
Contributor III

Hello @danielmartynek,

I have tried both 0xCA for (0x65) and 0xC8 for (0x64) but it does not accept this address when I am using 7 bit addressing so mostly when we use 7 bit addressing read and write bit is neglected during initializing, correct me if I am wrong.

I have not yet used oscilloscope but the other slave is working fine on same pins.

I have tried every possible combination but unfortunately unsuccessful yet. Please guide if you can. Thanks.

BR,

Baseer

0 Kudos
Reply

736 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Baseer,

The TLC59116 datasheet specifies the I2C timing in sections:

7.6 Timing Requirements

8 Parameter Measurement Information

 

Oscilloscope measurements are required here.

 

Regards,

Daniel

 

0 Kudos
Reply