ADC values are not stable in STM32H723ZG
- May 4, 2022
- 3 replies
- 3741 views
Hello everyone,
With respect to the Subject I am facing problem in reading analog voltage across the analog pins in the controller specified.
Following are the ADC configuration.
1. ADC resolution = 12Bit
2. Sclk = 256MHz
3. ADC clock source = Sclk/4
4. Prescaler = Div/1
5. Conversion data is stored in DR register
6. Conversion mode = single
7. Single ended mode
8. Calibration is done in single endded mode
Note: GPIO is configured in Analog mode
Observation: The ADC value keeps on added up by 0 to 65 counts. The error keeps on changing dynamically in run time resulting in value instability. Due to which I am not able to provide the fixed offset values in OFRy registers.
I am also attaching the code snippet of the Init function. In the init function I am trying to configure ADC1,2 and 3.
Kindly have a look at it and provide me the solution.
Thanks in advance
Regards
Arrhenius