SPI Timing
Posted: Tue Mar 14, 2017 6:10 am
Why is there a gap between the bytes sent on the spy port? This is not asynchronous, so there doesn't need to be a gap to indicate the beginning of each byte. The port itself is capable of up to 32 bits per word. My application needs a constant, uninterrupted stream of bits. This seams to be coming from the SPI hardware interface, since the gap is proportional to the frequency:
shows 8 bits of data in 9 bits of time at 1KHz
shows 8 bits of data in 9 bits of time at 100KHz
For my application, I need to send a minimum of 32 bits as a continuous stream. I can deal with the delays after that. It would be nice to feed the SPI port from a string, as it currently works. Perhaps it could fill the 32 bit word with 4 byte chunks from the string. Any ideas?
shows 8 bits of data in 9 bits of time at 1KHz
shows 8 bits of data in 9 bits of time at 100KHz
For my application, I need to send a minimum of 32 bits as a continuous stream. I can deal with the delays after that. It would be nice to feed the SPI port from a string, as it currently works. Perhaps it could fill the 32 bit word with 4 byte chunks from the string. Any ideas?