PCS software control by using S32DS SDK of S32K144

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

PCS software control by using S32DS SDK of S32K144

跳至解决方案
1,817 次查看
ldj979
Contributor III
Dear NXP Community.

There is a problem while using the S32DS's LPSPI SDK of the S32K144 chip.

I am controlling SPI Mode3 communication using the LPSPI_DRV_MasterTransferBlocking module, but the PCS pin is automatically selected.

I want to control SPI ENABLE and SPI DISABLE through software through PCS pin control. Is there a separate module in S32DS SDK that can control PCS pins through software instead of automatic control?
标记 (3)
0 项奖励
回复
1 解答
1,809 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ldj979,

Why do you need to control the PCS with the SW, what is the use case?

Because the LPSPI_PCS is automatic but configurable.

If it really needs to be done by SW, you can select the GPIO function on the pin instead of LPSPI_PCS in the PORT module. 

 

Regards,

Daniel

 

在原帖中查看解决方案

2 回复数
1,810 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ldj979,

Why do you need to control the PCS with the SW, what is the use case?

Because the LPSPI_PCS is automatic but configurable.

If it really needs to be done by SW, you can select the GPIO function on the pin instead of LPSPI_PCS in the PORT module. 

 

Regards,

Daniel

 

1,799 次查看
ldj979
Contributor III

I implemented it separately in software as you advised, thank you