I want to change the sampling rate of my STM32F303RE to 20 Hz. Is this possible with a ADC clock with 8 MHz and without a HAL_Delay() function?

  • 1
    \$\begingroup\$ Sampling time (topic) and sampling rate (text) are different concepts. I assume you mean you want to sample something 20 times per second. What methods have you tried so far and why they were not suitable? Do you want to use timer interrupts or not? Do you want to use blocking method or not? \$\endgroup\$
    – Justme
    Commented Mar 18, 2021 at 12:17

1 Answer 1


Use a timer to trigger the ADC. Then you can vary the sample time to your heart's content.

You really don't want to play around with the ADC clock rate - cranking it down low will adversely affect it's operation as it relies on capacitive charges. The datasheet will tell you how low the adc clock can be set and still perform adequately.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.