SPI Communication with Timer to clock the SPI
Hello,
I am building a time critical application with SPI output communication using DMA circular buffer
I need to output data at a very precise frequency that is a multiple of 0.125 ns. Normally it should be 4us but It would need to be sometime 3.9us or 3.8.
For the moment I use SPI1 as Master with 64 MHz and a prescaler of 256 to get 4us data pulse.
Quick question:
Can I use a timer to clock the SPI ? in that case does it mean that I have to change it to slave mode ? Can I init transfer in slave mode and trigger DMA transmit buffer still in circular mode ?
That way I can define the period if the timer and adjust the output frequency of the SPI clock
Is there any exemple of this (if it make sens)
Thanks
Vincent
