我在使用S32K144 LPI2C发送数据时遇到了一些问题

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

我在使用S32K144 LPI2C发送数据时遇到了一些问题

958 Views
leleng666
Contributor I

大家好,我要使用S32K144的LPI2C功能,但我不想要使用代码生成工具(由于S32K板块不能够发表问题,只能把问题发在这个板块),遇到了以下问题:

我在向从机地址为0x78的从机发送命令时,只发送第一条8位指令START_CM时是可以发送成功的,但在发送第二条8位指令START_AD_T就发送失败,并且之后再发送其他任何8位写命令或发送8位读取命令都发送失败,,我在检查寄存器的时候,发现主机状态寄存器的TDF位和RDF位,一直是0,因此我在发送第一条指令后,就无法继续发送其他命令,,请问这种情况是什么问题?应该怎么解决?

 

5Q40~T5%~{VUP42I(G6D`@W.png

Labels (1)
0 Kudos
2 Replies

936 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello leleng666,

Since you can't reproduce this in EVB this could be a hardware problem, so if have a logic analyzer or an oscilloscope I will suggest checking the signal integrity in the I2C lines.

Also, the code generation tool can also be used in your own custom project the only, is not exclusive for the EVB,

Best Regards,

Alexis Andalon

 

0 Kudos