2025-02-12 01:05 PM
Hi, I'm using the Cube IDE 1.17 on an H5. The HCLK is 248MHz. When I try to configure the ADC/DAC clock to use HCLK, I get a red error. According to the data sheet, the maximum clock to the ADC is 75MHz. I am configuring the clock as divide by 6.
Am I misunderstanding the maximum ADC clock rate in the datasheet? The part should be able to perform 5 MSPS.
Regards,
Mike
2025-02-12 01:18 PM
Hello @MikeInMinnesota @and welcome to the ST Community.
Could you please give me the exact part number of your MCU and a screenshot of your Clock tree and another one for the message you are receiving.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-02-12 01:41 PM - edited 2025-02-12 01:41 PM
There are limits on f_adc_ker_ck_input, which is the clock fed to the ADC before it is divided down. The limit varies by part and by run mode.
There are additional limits on f_adc_ker_ck, which is the clock after it's been divided down.
2025-02-12 01:48 PM
Hi,
so choose a somewhat lower clock... (that can work on AHB bus)
+ the "red error" telling you, whats wrong (just go with mouse pointer at it).
If you clock it at 75M , it can reach 5 Msps / 12 bit. (with minimum sampling time)
But be aware: it needs low impedance driving the input then: