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
Jaime
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
Jaime
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.
Martin
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.
Martin
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.
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.
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
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
Jaime