PCS software control by using S32DS SDK of S32K144

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

PCS software control by using S32DS SDK of S32K144

Jump to solution
812 Views
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?
Tags (3)
0 Kudos
1 Solution
804 Views
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

 

View solution in original post

2 Replies
805 Views
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

 

794 Views
ldj979
Contributor III

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