S32K144 IIC

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

S32K144 IIC

2,330 次查看
SimonWangyu
Contributor I

hello,dear 

I have a problem and need your help.
When I use the IIC module, it is set to master mode, and the slave address is set to 0X1A through configuration, but the address is found to be 0x34 through the logic analyzer. Moved one place to the left. How can I solve this?

SimonWangyu_0-1615375008419.pngSimonWangyu_1-1615375047287.png

 

0 项奖励
回复
3 回复数

2,322 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Simon,

The address consists of the Slave address (0x1A) at address[7:1] + the W/R bit at address[0].

Write address 0x34 = 0b0011_0100

Read address 0x35 = 0b0011_0101

 

Regards,

Daniel

0 项奖励
回复

2,313 次查看
SimonWangyu
Contributor I

Very happy to receive a reply. I want to add that the slave address that needs to communicate is 0x1A. And there are other devices that can communicate normally, and the slave address I collected through the logic analyzer is also 0X1A. But when I switch to S32K144, the configuration is also 0X1A, but the address collected by the logic analyzer is 0x34. Why is this? And because the address is wrong, the slave does not respond to the command.

0 项奖励
回复

2,305 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Simon,

As I said already, the configuration tool sets the address[7:1] bits.

Use 0x0D instead.

address[7:0] = 0x1A = 0b00011010 where address[4:1] is 0xD.

 

Regards,

Daniel

0 项奖励
回复