i2c giving NACK

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

i2c giving NACK

1,402 Views
MohitManvar
Contributor III

Hello,

I am using S32 design studio and S32K142-100pin Eval board.

I am trying to connect board with TI's TAS5720 with i2c configuration example using peripheral option in IDE.

it is giving NACK although I am giving proper address of slave and having pin connection as per standard.

This configuration is working with other i2c device and I checked with HW there is no problem from HW. so can anyone have idea or share some details on this.

 

Thanks!!

Labels (1)
Tags (2)
0 Kudos
Reply
7 Replies

1,384 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @MohitManvar,

Have you measured the bus with an oscilloscope?

Can you share the oscillograms?

If there is no problem with the signal from the S32K MCU, please contact TI support.

 

Regards,

Daniel

0 Kudos
Reply

1,381 Views
MohitManvar
Contributor III

hello,

Find this helpful to you

MohitManvar_0-1690801461461.png

 

0 Kudos
Reply

1,364 Views
danielmartynek
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,354 Views
MohitManvar
Contributor III

Hello,

 

i used 0x6C as address this is only snap of I have  from other slave device.

 

Please consider 6c as address and provide solution

 

Thanks!!

0 Kudos
Reply

1,318 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @MohitManvar,

Does it mean the waveform you posted shows a completely different communication?

It is hard to say what is wrong if you do not measure the signals.

The satasheet of the slave device specifies the required I2C format and timimng.

 

Regards,

Daniel

0 Kudos
Reply

1,310 Views
MohitManvar
Contributor III

Hello @danielmartynek 

please find below snap for your reference

MohitManvar_0-1690874992541.png

 

slave address : 0x6C

slave speed: 100kbps

blue:SCL   ,   Red:SDA

 

Br,
Mohit

0 Kudos
Reply

1,302 Views
danielmartynek
NXP TechSupport
NXP TechSupport

The address is correct assuming correct HW configuration.

7 MSB 0x6C

0xD8 for a write.

 

Why is the volatage of the SDA signal higher that SCL?

The datasheet of the slave device specifies the I2C.

Can you double-check the timing?

danielmartynek_0-1690878589320.png

danielmartynek_1-1690878618547.png

 

BR, Daniel

0 Kudos
Reply