how is set spi communication mode?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how is set spi communication mode?

ソリューションへジャンプ
507件の閲覧回数
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 解決策
485件の閲覧回数
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 返信
486件の閲覧回数
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 件の賞賛
返信