I have an analog to digital converter that reads in and sends data out on falling edges. I also have two MCU's the FEZ Hydra and the FEZ Cobra. I've noticed using the oscilloscope that the data into the ADC and the data out of the ADC is exactly the same, however when reading the data on the computer that the MCU's have stored I get different values.
Since the ADC only sends outputs on falling clock edges, whenever the data output bits change from a 0 to 1 the Hydra reads in a 1 while the cobra still reads in a 0; and whenever the data output bits change from a 1 to 0 the Hydra reads in a 0 and the cobra still reads in a 1. It seems like the Cobra doesn't give enough time between the negative clock edge and reading of the input to allow for the update to happen.
I am using microsoft's spi library. My question is: Is there anyway for me to delay the SPI read function? What is the reasonable output in this situation supposed to me?
Note: There is a 60ns delay on data access time on the ADC.