i2c giving NACK

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

i2c giving NACK

2,918 次查看
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!!

标签 (1)
标记 (2)
0 项奖励
回复
7 回复数

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

2,897 次查看
MohitManvar
Contributor III

hello,

Find this helpful to you

MohitManvar_0-1690801461461.png

 

0 项奖励
回复

2,880 次查看
danielmartynek
NXP TechSupport
NXP TechSupport
0 项奖励
回复

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

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

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

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