S32K142 LPSPI Bare metal code

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

S32K142 LPSPI Bare metal code

1,716 次查看
bhushangs101
Contributor I

Hi NXP Team, 
I am Working On S32k142 100 pin Controller. My Application uses TLE94112ES Chip to control DC motor Control through SPI communication.
Please Send Me link of LPSPI Bare Metal Code example.
Also is there any example available For S32k142 interfacing With TLE94112ES Motor Driver IC with SPI control please send the example code or Link.

Thank you,
Bhushan

0 项奖励
回复
3 回复数

1,693 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @bhushangs101 

Sample LPSPI Bare Metal code is provided in the S32K1xx Series Cookbook. Regarding the example of the S32k142 with TLE94112ES we have nothing available.

 

BR, VaneB

0 项奖励
回复

1,636 次查看
bhushangs101
Contributor I

Hi VaneB,

I am running your example in bare metal LPSPI for my Custom Board by changing the SCLK, CS , SIN , SOUT pins because of LPSPI 0 channel is used. And necessary changes Did in Function Call.
But i am facing Issue with the SCLK . SCLK is not getting on DSO , but the SOUT line gives me data that i am sending (here SOUT= 0xDD00), CS pin is also working as expected ,  visible on DSO .

bhushangs101_0-1721128455760.png

in the same Example code what are the resisters values need to change ? ,
Please let me know about CLOCK configuration is correct or not in given example ? 

0 项奖励
回复

1,634 次查看
bhushangs101
Contributor I

i have attached my project please review

0 项奖励
回复