how is set spi communication mode?

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

how is set spi communication mode?

跳至解决方案
509 次查看
rlaxortn
Contributor IV

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 项奖励
回复
1 解答
487 次查看
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 项奖励
回复
1 回复
488 次查看
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 项奖励
回复