SPI delay between bytes read?

18 Feb 2011

Does anybody know if there is a way to decrease the delay between bytes when reading them via SPI? in the code below there is a delay of 1.5 usec that I would like to decrease as much as possible I'm using a SPI frequency of 4.8 Mhz.

for (i = 0; i < 50; i++) { MSB_array[i] = spi.write(0); LSB_array[i] = spi.write(0); }

thanks in advance


11 Jan 2012

I have run into this exact problem.

Does anyone know of a way to decrease the delay between reading or writing bytes on the SPI bus?

This is causing me a real headache as I am writing to external memory using SPI and to write 1 byte takes 5 bytes of data. So writing 20kb is taking around 130ms when it should take about 20ms.


11 Jan 2012

Take a look at my other post http://mbed.org/forum/mbed/topic/2978. Maybe you can remove checking of DR for your device. For communication with Nokia LCD I needed it.

11 Jan 2012

Thanks Rene, I'll take a look at it tonight.