Electronic – SPI modes of operation: Word size

spi

When observing SPI communication with an oscilloscope, I see that there is some time between 'words' sent over the network. Red signal is SPI clk, and the blue is MISO.

enter image description here

My question is: What exactly happens in this time? As can be seen in my case this lasts about 500 ns. Is this duration dependent on the frequency of the SPI clock or on the CPU frequency?

I know that the number of bits that can be sent without this 'interruption' is dependent on the microcontroller. I have found microcontollers with 8 bit and 16 bit mode of operation. Are there also some with 32 bit mode of operation?

Best Answer

It is very likely that this time is due to the micro-controller having to put the next byte in memory, either on a software or hardware level.

You can check the code and see if there is any bottleneck at this level, if for instance you send the data byte by byte with an interrupt.

Some micro-controllers have DMA buffer channels that can speed up transfer.

There are 8, 16 and 32bit micro-controller, depending on your application they can also speed up data transfer, although it is also related to the core frequency.