11:23 am
March 24, 2017
Am I doing something wrong or is the SPI function poorly implemented? Even if I set the Transfer Mode to Continue there is still huge 5ms delay between transferred bytes. How can I get rid of it?
And what about Data Command? How can I set whenever the transferred data are data or command. I can see that everything is sent as Command automatically.
1:46 pm
August 1, 2016
2:28 pm
March 12, 2015
undermeadow said
Am I doing something wrong or is the SPI function poorly implemented? Even if I set the Transfer Mode to Continue there is still huge 5ms delay between transferred bytes. How can I get rid of it?
And what about Data Command? How can I set whenever the transferred data are data or command. I can see that everything is sent as Command automatically.
Yes, unfortunately for AVR boards (non Due), there is an intentional delay added between CS low and start of transfer. This is because the AVR boards to not handle CS in hardware and it has to be handled in software using a GPIO output. There has to be some delay between CS low and transfer for slave devices. If you use a Due, the CS is handled by the SPI peripheral so that delay should be smaller. To control that delay on AVR boards, you could wrap a custom library to achieve what you want.
26
1 Guest(s)