2019-02-20 09:12 AM
Need to generate a repeating waveform with external SPI 16-bit DAC.
Using a table of values in memory, repeatedly loop through table outputting values to DAC.
Delay between outputs is constant. No glitches at repeat!
DMA only (no interrupts).
What's the most effective way to do this with ST32F427?
Thanks,
Best Regards, Dave
Solved! Go to Solution.
2019-02-20 03:32 PM
I'd use an SAI port assuming there's one on your chosen MCU. More flexible and more than fast enough for what you want. And loads of TI DACs will interface easily,
2019-02-26 11:47 AM
This turns out to be much easier than I thought (I missed 'DMA circular mode' first go around).
One timer to:
DMA:
Scope picture below (top trace is CS, bottom 2 traces are SPI clock and MOSI):