S32K146 LSPI how do configuration without pcs pin

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

S32K146 LSPI how do configuration without pcs pin

458 Views
MervynZong
Contributor II

Hello,

 

The chip we use is S32K146, and the SDK we use is RTM4.0.3 version.
And use SPI2 communication with peripherals IC, but the chip select is not choice SPI funciton(PCS),
and used the normally gpio(PTB2) control, now how do I can config the pcs in S32DS platform.
Now the platform configuration panel not have disable SPI PCS function setting.
Pls help check it or bellow the configuration is or correct.

MervynZong_0-1684480276531.png

 

 

BR

Labels (1)
Tags (3)
0 Kudos
Reply
1 Reply

440 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @MervynZong,

The LPSPI module does not provide an option to disable the PCS, there are only PCS selection bits in the TCR[PCS] register

danielmartynek_0-1684490618183.png

Therefore, the drivers does not support it either.

Nevertheless, the PSC signal from the LPSPI module does not have to be MUXEd to a pin in the PORT module, and a GPIO can be used instead.

It is not recommended to use a GPIO CS along with the driver though, it would be your responsibility to assert and deassert the CS.

 

Best regards,

Daniel 

 



0 Kudos
Reply