how is set spi communication mode?

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

how is set spi communication mode?

Jump to solution
125 Views
rlaxortn
Contributor III

i am using s32k314 and s32ds version is 3.6, RTD 4.0.0.

 

i wanna use lpspi communication. 

and i have to use spi communication mode is cpol =1 and cpha = 1. (spi mode3)

 

i already check lp_spi example. 

but i don't know how is set.

 

2.png

 

1.png

 

1. i don't know how is set cpol = 1, cpha =1.

2. can i know how is set configure for using this sensor?

i attach sensor data sheet.

 

thanks for help.

0 Kudos
Reply
1 Solution
103 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the SPI mode meaning is below

PetrS_0-1750156682292.png

So your given setting should be OK. Just SpiDataWidth should be 8, I think.

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
104 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the SPI mode meaning is below

PetrS_0-1750156682292.png

So your given setting should be OK. Just SpiDataWidth should be 8, I think.

BR, Petr

0 Kudos
Reply