Associate II
October 6, 2020
Solved
STM32G474 ADC erratic measurements when using synchronous clock source
- October 6, 2020
- 1 reply
- 1145 views
Hi,
I'm measuring a buffered voltage using injected conversions, triggered by a timer. I've limited the frequency of the ADC to F_adc < F_adc_hclk/4 as mentioned in the reference manual.
When I use the synchronous clock (ADC_CLOCK_SYNC_PCLK_DIV4) I get some erratic measurements when compared to the asynchronous clock (ADC_CLOCK_ASYNC_DIV4). I find this to be strange as both my AHB clock and SYSCLK are running at the same frequency (160MHz).
I would like to use the synchronous clock as this is recommended by ST when using timers as ADC trigger. Does anyone have an idea how to fix/circumvent this problem?
