2025-12-07 11:20 AM - edited 2025-12-07 11:21 AM
I am encountering an issue with ADC readings on a custom board based on the STM32H533CET6.
Hardware Setup: I have a simple analog filter connected to the ADC input. I have verified the input signal with a multimeter, and it correctly varies from 0V to 3V.
The Problem: Despite the varying input voltage, the value in the ADC_DR register appears to be stuck at 1024. It does not change regardless of the voltage level applied to the pin.
Configuration details:
Resolution: 12-bit
VREF+: 3.3V
Has anyone experienced a similar issue with the H5 series or sees what I might be missing?
2025-12-07 5:04 PM
You're converting two channels, so you should be using DMA and reading values from the buffer, not from ADC->DR. Buffer size doesn't seem sufficient given that you're converting two channels.
2025-12-09 3:53 AM
Thnak you for answer. Can you tell me how can I fix it?
2025-12-15 8:01 AM
Here is an example which uses ADC and DMA.