multi device on same spi bus

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

multi device on same spi bus

963 次查看
bilgekaanugur
Contributor II

I am trying  the use SPImaster_LDD component of  PE .Cpu is  mke04z128 (SPI0). there are more than one slave device on bus. PE  does not allow to select cs pin other than pins marked spi0_pcs.   how to select more than one cs pin ?  I want to use gio pins for cs. what is correct  method? 

thank you.

0 项奖励
回复
1 回复

827 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Bilge kaan ugur,

    The PE module just have one CS to select, if you want to add other CS, don't worry, just select one CS at first, but don't use it in the detail code.

    You can use the GPIO used as the according slave CS, before you want to send the data, use code set the according pin as low, after the SPI data is sent, then pull the CS pin high.

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

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

0 项奖励
回复