LPSPI Chip Select Pins on S32K144

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

LPSPI Chip Select Pins on S32K144

1,937 次查看
ewest
Contributor I

Is it possible to use GPIO pins as chip select for SPI and leave the chip select pins PCS[3:0] available for other functions? From what I have read in the documentation it seems like the programmer is required to use the specified chip select pins.

0 项奖励
回复
3 回复数

1,600 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

yes, it is possible to use GPIO as a chip select and toggle it manually when needed. But if you use SDK, be aware that the SPI drivers do not support this customization. If don't use the drivers, there should be no problem.

Regards,

Lukas

0 项奖励
回复

1,600 次查看
razva_tilimpea
NXP Employee
NXP Employee

Hi,

I agree with you, but I think I should add this detail: if the LPSPI is used in slave mode the is mandatory to use PCS pins.

Best regards,

Razvan

0 项奖励
回复

1,600 次查看
yashwanth411
Contributor II

Hi Erin,

You can use normal GPIO pin as chip select. I tested like that it is working fine. You select any PCS[0:3] pin and configured that pin to GPIO. Which PCS pin you are selecting, write that value in PCS field in TCR register in LPSPI.

Regards,

Yashwanth

0 项奖励
回复