S32K146 LSPI how do configuration without pcs pin

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

S32K146 LSPI how do configuration without pcs pin

562 次查看
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

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

544 次查看
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 项奖励
回复