DSPI communication

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

DSPI communication

901 次查看
johnsonzhang1
Contributor II

SPI communication, the pin DSPIPCS0/1/2/5  are used out.

Can i use the another common GPIO to select the CS for SPI communication ?

pastedImage_1.png

标记 (1)
0 项奖励
回复
2 回复数

804 次查看
TomE
Specialist II

Yes, this is possible. But it prevents you using all of the advanced features of the QSPI. Using its own chip-selects you can load the QSPI RAM with up to 16 transfers to different chips and let it run all of them automatically. To use a GPIO instead of a chip select the driver has to program one transfer only in the QSPI RAM, and then assert and deassert the chip select around that transfer.

If you're not using these features and don't need the efficiency, CPU offloading and speed, then it doesn't matter.

It might be better to swap spare GPIOs with any of the QSPI Chip Selects that are being used as GPIOs.

Also, if you can free up one chip-select, to have two QSPI CS pins, then you can use an external address decoder to generate three chip-selects. Or three pins to generate seven chip-selects.

Tom

0 项奖励
回复

804 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Yes, customer can use the GPIO pin to emulate SPI chip select signal.

Please make sure during SPI communication, the SPI chip select should be active. Thanks.


Have a great day,
Mike

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复