Hey fellow mbedians....
So I have a working SPI routine that talks to an ADC chip but the way it works requires I pull the clock low and then wait for the MISO pin to go low indicating a convertion is complete before I clock the rest of the signal. So my question is how can I do this using the SPI routines we have available?
Is there a way to use the MISO pin as an SPI pin but also read it as a digital Input? I think this would be done by bringing the clock low and with a timeout waiting for the MISO pin to go low and then write my SPI transaction to read the other 32bits.
I already have the pcb so cannot route to another I/O pin plus thats really a wasted I/O in my opinion since the MISO pin is being read at some level in the SPI routines right?
Thoughts??? Ideas???
Hey fellow mbedians....
So I have a working SPI routine that talks to an ADC chip but the way it works requires I pull the clock low and then wait for the MISO pin to go low indicating a convertion is complete before I clock the rest of the signal. So my question is how can I do this using the SPI routines we have available?
Is there a way to use the MISO pin as an SPI pin but also read it as a digital Input? I think this would be done by bringing the clock low and with a timeout waiting for the MISO pin to go low and then write my SPI transaction to read the other 32bits.
I already have the pcb so cannot route to another I/O pin plus thats really a wasted I/O in my opinion since the MISO pin is being read at some level in the SPI routines right?
Thoughts??? Ideas???