SPI S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,467件の閲覧回数
Alex19
Contributor II

Hello NXP community, 

Could you help me please, i use S32K144 board. how can i just receive the data by SPI from slave?

タグ(1)
0 件の賞賛
返信
1 解決策
2,451件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

According to the SDK documentation, the function with a NULL parameter will send bytes with 0 value.

danielmartynek_0-1628077622033.png

I don't see any option to configure a half-duplex mode in the PEX of the SDK driver.

However, the MOSI signal of the LPSPI module does not have to be routed to any pin if you use a 3-wire bus.

 

Regards,

Daniel

 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,459件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Alex,

Please have a look at the description of TXMSK in the RM.

danielmartynek_2-1628074238162.png

danielmartynek_1-1628074188843.png

danielmartynek_0-1628074157936.png

 

Regards,

Daniel

 

 

 

0 件の賞賛
返信
2,457件の閲覧回数
Alex19
Contributor II

Tnak you very much for your answer, but if i want to use the function LPSPI_DRV_MasterTransferBlocking. i have to use like LPSPI_DRV_MasterTransferBlocking(SEND,NULL, &buf, 1,100)? 

0 件の賞賛
返信
2,452件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

According to the SDK documentation, the function with a NULL parameter will send bytes with 0 value.

danielmartynek_0-1628077622033.png

I don't see any option to configure a half-duplex mode in the PEX of the SDK driver.

However, the MOSI signal of the LPSPI module does not have to be routed to any pin if you use a 3-wire bus.

 

Regards,

Daniel

 

 

 

0 件の賞賛
返信