Hi. This is my first use of SPI on a Teensy (and Arduino).
I will be burst transferring 1134 bytes approximately 60 times per second at 2.5MHz.
I'm assuming that if I use SPI.transfer to send 1134 bytes (about 4 milli-seconds) that I'm effectively blocking code execution (apart from interrupt driven stuff) while doing that - i.e. I will be in a for loop while the data is clocked out and after the last SPI.transfer is complete I can continue on with my code execution.
Another way of asking this is apart from the few bytes of hardware FIFO, I assume there is no buffering in the library?
I did find a Teensy DMA SPI library, but not sure if anyone has any other suggestions or recommendations.
https://github.com/crteensy/DmaSpi
thanks
David
I will be burst transferring 1134 bytes approximately 60 times per second at 2.5MHz.
I'm assuming that if I use SPI.transfer to send 1134 bytes (about 4 milli-seconds) that I'm effectively blocking code execution (apart from interrupt driven stuff) while doing that - i.e. I will be in a for loop while the data is clocked out and after the last SPI.transfer is complete I can continue on with my code execution.
Another way of asking this is apart from the few bytes of hardware FIFO, I assume there is no buffering in the library?
I did find a Teensy DMA SPI library, but not sure if anyone has any other suggestions or recommendations.
https://github.com/crteensy/DmaSpi
thanks
David