Hello,
In your scope of the frame I don't know which one is the data you are receiving from your ADC, so I'll suppose that in the frame you see first byte of the MISO is the data you expect from your ADC (Hi byte) and so on right?
Then yes there is a problem with the SPI, and if you can share which signal is MISO, MOSI and CLK it would help a lot.
If not, then you are processing the data in the wrong way, let's say that the first byte in MISO is thrash data, and the second byte corresponds to your ADC first byte, then in your code you'll need to ignore the first read of MISO, and take the second byte as your correct ADC first byte.
So the SPI is working as it should just the wrong way to process the bytes you are receiving from your ADC.
Hope this helps,
Regards,
Aldo.
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------