cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H533CET6 ADC Reading

Karol123
Associate

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?

obraz (9).pngobraz (8).pngobraz (7).pngobraz (6).pngobraz (5).pngobraz (4).pngobraz (3).pngobraz (2).pngobraz (1).pngobraz.png

3 REPLIES 3
TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".
Karol123
Associate

Thnak you for answer. Can you tell me how can I fix it?

TDK
Super User

Here is an example which uses ADC and DMA.

STM32CubeH5/Projects/NUCLEO-H533RE/Examples/ADC/ADC_MultiChannelSingleConversion at main · STMicroelectronics/STM32CubeH5

If you feel a post has answered your question, please click "Accept as Solution".