AnsweredAssumed Answered

i.MX6 SPI, controlled delay of SCLK after CS

Question asked by Justin Brouwer on Oct 4, 2019
Latest reply on Oct 4, 2019 by igorpadykov

Hello,

 

I'm trying to control a SPI slave (CC1125 transceiver chip) with an i.MX6 (SPI master, MCIMX6X1EVK10AB). The SPI slave has a unique 'flavor' of SPI: When the CS pin is made low, the master needs to wait until MISO is made low as well (which indicates the slave's crystal has become stable) before the first rising edge of SCLK.

 

We have a possible solution. We can use the CS pin as a GPIO. We have not discovered how to configure the MISO pin as both a GPIO and SPI pin simultaneously, so we will physically split the MISO signal off to a secondary GPIO pin and use that to read its state. An alternative is to configure all SPI pins as GPIO's and write a custom SPI 'driver'. However, we are looking for something a bit more elegant (receiving the same identical signal on two pins of the same chip irks, and we'd like to use the provided drivers instead of reinventing them).

 

Do you have any advice for us?

 

Kind regards,

Justin

Outcomes