how to use S32K 118 to drive a 3-wires SPI device

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

how to use S32K 118 to drive a 3-wires SPI device

跳至解决方案
1,483 次查看
Lanson
Contributor I

I am using the S32K 118 MCU ,and now  i want to drive a device thr 3-wires SPI interface,from the device datasheet ,the comunicate sequence show below

Lanson_0-1645514189806.png

How can i conect the device to the MCU and configure correctly,and it seem that there is no any useful information from the RM about this.

Best Regard.

标记 (1)
0 项奖励
回复
1 解答
1,394 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is a bit nonstandard configuration and how I understand RM, I guess it is even not possible. Because it this case you would have to change CPHA parameter during transfer, what's apparently not possible.

davidtosenovjan_0-1646395110866.png

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,457 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it seems you don't have configured clock phase for both sides (master and slave) same way what's necessary.

davidtosenovjan_0-1645707677406.png

 

0 项奖励
回复
1,441 次查看
Lanson
Contributor I

Hello davidtosenovjan,

       The image of the comunicate sequence which I post before is not the real capture sequence, it is the 3 wires SPI protocol  provided by the device's supplier,and i need to obey this protocol  to comunicate with the device use S32K 118,but I don't know how to configure correctly.Now i have no way but only try to use GPIO to emulate this nonstandard 3-wires SPI protocal.Will u have any other good ideal?Thank you!

 

Best regards,

0 项奖励
回复
1,395 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is a bit nonstandard configuration and how I understand RM, I guess it is even not possible. Because it this case you would have to change CPHA parameter during transfer, what's apparently not possible.

davidtosenovjan_0-1646395110866.png

 

0 项奖励
回复
1,385 次查看
Lanson
Contributor I

Hi Davidtosenovjan,

     Thank you for your reply, and i have implemented this by using the GPIO rather than the LPSPI module.Looking for the RM over and over,and i got almost the same conception with you.

 

Best regards,

0 项奖励
回复