i2c giving NACK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i2c giving NACK

3,029件の閲覧回数
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 返答(返信)

3,011件の閲覧回数
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 件の賞賛
返信

3,008件の閲覧回数
MohitManvar
Contributor III

hello,

Find this helpful to you

MohitManvar_0-1690801461461.png

 

0 件の賞賛
返信

2,991件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

2,981件の閲覧回数
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,945件の閲覧回数
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,937件の閲覧回数
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,929件の閲覧回数
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 件の賞賛
返信