2025-07-30 6:41 AM - edited 2025-07-30 6:44 AM
I'm using the STM32H7B3.
ADC configuration:
Sample time : ~2us
LL_ADC_SAMPLINGTIME_64CYCLES_5
Calibrations:
HAL_ADCEx_LinearCalibration_FactorLoad(adc2)
HAL_ADCEx_Calibration_Start(adc2, ADC_CALIB_OFFSET, ADC_SINGLE_ENDED)
Observations:
The ADC counts seem to be stuck at values which are highlighted in the picture above at around 0.31 to 0.35 V and 0.62V to 0.66V
The ADC > DR also seems to be stuck and reads 255, 511 at the two voltage ranges mentioned above
Input signal source:
Analog Input voltage range is 0V - 5V in YELLOW converted to 3.3V scale which is also the Vref
Using only RED boxed channel that is connected to the ADC pin on the mcu
Things that I tried:
Nothing changes and it's repeatable
Any suggestions would be helpful
Thank you!
Solved! Go to Solution.
2025-09-17 1:15 PM - edited 2025-09-22 6:48 AM
This issue was resolved when the F_adc which was 35Mhz was reduced to 6.25Mhz
2025-09-17 3:39 PM - last edited on 2025-09-19 3:48 AM by Peter BENSCH
@Sahiel please pick a solution and mark it as solved.
2025-09-17 11:48 PM
> This issue was resolved when the F_adc which was 35Mhz was reduced to 10Mhz
According to STM32H7B3 datasheet, the maximum ADC clock frequency is 50MHz, but ADC_CR.BOOST has to be set accordingly.
@Sahiel , how was BOOST set with Fadc=35MHz, when the problem was observed - was it 0b11?
JW