This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPIM Transfers with delays between bytes

I am trying to communicate with a sensor that has some interesting timing requirements for reading information from it, it requires ~100us delays between the address to read and the next clock cycle to read out the data. I haven't figured out how to implement this correctly using the SPIM.

My clock speed is 2Mhz and default configs for everything else other than the pins.

I have put an oscilloscope on the lines and the MISO, MOSI, and SCLK lines are behaving as I would expect, Other than wanting to put a 100us pause between the two bytes in a transfer.

Any advice is appreciated!

Parents Reply Children
No Data
Related