After reading this thread, I suspected that I may encounter similar issues in KL25 or KL26, and therefore couldn't use SPI for an application (radio modulation) that requires a perfectly isochronous data stream. But then I ran a few small tests, just to be sure, and I couldn't see anything that looked like an inter-byte delay. My setup is as follows:
- KL25 or KL26 (both behaved identically),
- SPI0, master, with SPI clock = bus clock / 2 (i.e., maximum speed),
- 8 bit words, MSB first,
- no DMA, no FIFO,
- CPHA = 1, CPOL = 0,
- my code polls SPTEF and puts the next byte in the transmit buffer when SPTEF is set.
Was I just lucky to hit a configuration that doesn't have inter-byte delays or do KL25 and KL26 not have the issue at all (as long as the program keeps up, of course) ?
Thanks,
- Werner