S32K142 LPSPI Bare metal code

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

S32K142 LPSPI Bare metal code

754 Views
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 Kudos
Reply
3 Replies

731 Views
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 Kudos
Reply

674 Views
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 Kudos
Reply

672 Views
bhushangs101
Contributor I

i have attached my project please review

0 Kudos
Reply