Skip to main content
TB5BYO
Associate II
May 15, 2023
Solved

stm32f303re wrong adc value reading

I am using stm32f303re nucleo board, I apply a voltage of 3.3 volts directly to the adc2_in2 analog pin of the stm32f303 microcontroller. My adc resolution rate is 12 bits and the value I read is around 3975. this causes me to get wrong results, why does it do this? Why can't I read properly with the 446re but not the 303?

This topic has been closed for replies.
AScha.3
AScha.3Best answer
Super User
May 15, 2023

call ->


_legacyfs_online_stmicro_images_0693W00000bk5YmQAI.pngis this :


_legacyfs_online_stmicro_images_0693W00000bk5YrQAI.png

If you feel a post has answered your question, please click on " Best Answer ".

5 replies

TB5BYO
TB5BYOAuthor
Associate II
May 15, 2023

..

waclawek.jan
Super User
May 15, 2023

Did you perform ADC calibration as outlined in the RM?

JW

TB5BYO
TB5BYOAuthor
Associate II
May 15, 2023

How do i calibrate?

AScha.3
AScha.3Best answer
Super User
May 15, 2023

call ->


_legacyfs_online_stmicro_images_0693W00000bk5YmQAI.pngis this :


_legacyfs_online_stmicro_images_0693W00000bk5YrQAI.png

If you feel a post has answered your question, please click on " Best Answer ".