2025-03-19 4:44 PM
Hello,
I am trying to read from the ADC of an STM32H750VBT6 on a custom PCB at 16 bits and am getting a constant value of 32768 when sending data over USB. When factors like the number of bits is changed, the value also changes to be around half the max value even if the ADC input is re-connected to ground. I measured Vref and it is at 3.3V and I had a voltage divider circuit with 1.6 V going directly to the analog pin. Could there be an issue with the settings or how the ADC is being initialized?
2025-03-19 6:00 PM
Do you calibrate the ADC with HAL_ADCEx_Calibration_Start on startup? This is required.
Consider converting an internal channel like temperature or VREFINT to see if results vary.