Skip to main content
Halra.1
Associate II
Solved

hi everyone ! need some help with STM32F401RE i m gana read 6 analog input using ADC with DMA and timer then i wana call the values from the memory to use it in the same time i wana made PWM output for my servo motor .

 I solved ADC and DMA part but i have problem whit calling the the values from memory and with PWM output that my servo motor cant work any way . plz help me:smiling_face_with_smiling_eyes: .

NOT: im new in stm32

This topic has been closed for replies.
YAY.1
YAY.1Best answer
Senior

hadc1.Init.Resolution = ADC_RESOLUTION_8B;

Can you change with 6B ?

AND

sConfig.SamplingTime = ADC_SAMPLETIME_15CYCLES;

Can you delete this code ?

12 replies

waclawek.jan
Super User

> i have problem whit calling the the values from memory and with PWM output

What problem, exactly?

JW

Halra.1
Halra.1Author
Associate II

the PWM output for servo motor doesnt work while the ADC working and i couldn't write the code for calling the values from memory.

im using two timer and 6 analog input (ADC) .

YAY.1
Senior

Have you try to connect multimeter to pwm signal ?

Is there voltage fall down or grow up ?