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.
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!
-----------------------------------------------------------------------------------------------------------------------