LPSPI Chip Select Pins on S32K144

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPSPI Chip Select Pins on S32K144

1,938件の閲覧回数
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,601件の閲覧回数
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,601件の閲覧回数
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,601件の閲覧回数
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 件の賞賛
返信