S32K144 IIC

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

S32K144 IIC

1,525 Views
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 Kudos
Reply
3 Replies

1,517 Views
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 Kudos
Reply

1,508 Views
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 Kudos
Reply

1,500 Views
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 Kudos
Reply