SPI inter-byte delay

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

I note a gap between each byte in an array being sent over SPI (using 5LP SPIM component).

Is there a way to prevent this? I assume that it is caused by software polling to see when byte has been sent.

My code is sending and receiving an array and can be blocking until all bytes have been sent.

I have seen DMA used but would this be useful mainly when you want to continue processing other commands while SPI is being sent.

Maybe I should be using an interrupt and checking the the flag instead of reading SPI status between each byte?

Thanks

0 Likes
14 Replies