S32K use rtd set I2C

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

S32K use rtd set I2C

1,018 Views
jianqun
Contributor II

I used hardware I2C to set 400K baud rate. The waveform was normal, but there were problems in the communication with the slave machine. Some data could be written and read out normally, while some were abnormal. I suspect the I2C timing is not well configured. Is there any documentation about this? How to set the parameters in the red box? The driver that used RTM before calculated the configuration by itself

1.png2.png3.png52.png

 

0 Kudos
Reply
3 Replies

999 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @jianqun,

Please refer to the RM rev. 14, Section 52.3.2.4 Timing Parameters.
As you can see, the SCL clock period depends on the bus latency as well, which is given by the capacitance of the bus and the size of the pull-up resistors.

The RTD does not calculate with the parameters of the bus.

You will get slightly different bit rate if you use different pull-ups.

 

Regards,

Daniel

0 Kudos
Reply

996 Views
jianqun
Contributor II

jianqun_0-1669274048171.png

I changed the pull-up resistance from 4.7K pull-up to 2.2K pull-up and found that the speed of 400K did not improve the waveform much

  • I want to try a 100K rate

Can the I2C parameter of RTD provide a setting parameter of 100K rate to verify the waveform? I am not sure if it is the correct parameter if I set it myself

0 Kudos
Reply

986 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @jianqun,

For example this configuration should work:

danielmartynek_0-1669377680753.png

 

Regards,

Daniel

0 Kudos
Reply