ADC Reading Sequence with DMA on STM32

Setup

ADC is configured to sample one regular channel, trigger sourced set to Timer 2 TRGO event.

DMA is configured to use normal mode and 16bit transfer size.

Timer 2 is configured to generate a 10 kHz signal on TRGO with counter update event.

Code

The terminal correctly prints the audio waveform of a 800 Hz test sound.

Last updated