1. So if I want to use 2 SPI slaves I have to configure kDSPI_Ctar0 for PCS0 and kDSPI_Ctar1 for PCS1, isn't it?
2. And what about if I want to use my own PIN as slave select (I mean custom pin to set high and low from GPIO driver)? Is it possible? For example, can I configure in SPI3 one slave with the PCS0 and another using an external GPIO as slave select pin for a second device?
3. And what about to use only custom PINs as slave select? Is it possible?
Thank you,
Antonio
Hi Antonio,
Please see below my answers:
1. Not necessarely, if you want to have the same Ctar configuration for both SPI slaves you can use the same.
2,3. Using GPIO pins as slave pins is possible but you need to disable FIFO by setting the DIS_TXF in SPIx_MCR register.
Please give it a try and let me know your findings.
Best regards,
Felipe