cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F042C6U6 ADC DMA Read Multi Channel

Sergen
Associate III

Hello,

I made a Motor Driver Circuit and I want to read the ADC via DMA, but it has different settings compared to other microcontrollers such as F4, G4, F0. How can I do it or is there a code or video that can be an example?  

STM32F042C6U6 Settings

f042 settings.png

f042 settings 2.png

Other MCU`s Settings

  

other mcu settings 2.png

other mcu settings.png

1 ACCEPTED SOLUTION

Accepted Solutions
Karl Yamashita
Lead III

It's not too much difference. Instead of Rank where you can select the order of the channels, you now just go in numeric order, forward or backwards. The F042 sample time is the same for all the channels where the other STM32 you can have different sampling time for each channel

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.

View solution in original post

1 REPLY 1
Karl Yamashita
Lead III

It's not too much difference. Instead of Rank where you can select the order of the channels, you now just go in numeric order, forward or backwards. The F042 sample time is the same for all the channels where the other STM32 you can have different sampling time for each channel

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.