cancel
Showing results for 
Search instead for 
Did you mean: 

ADC just giving raw value of 4095 on all channels

harshpanchal_6
Associate III

Hello Community,

I’m working on a custom board using the STM32G474VET3 MCU and encountering an issue with the ADC readings. I’m consistently getting a raw value of 4095 on all the ADC channels I’m using. It seems like something might be misconfigured, but I haven’t been able to pinpoint the cause.

Any insights or suggestions would be greatly appreciated.

Thank you!

25 REPLIES 25
TDK
Guru

Sounds like VREF+ might not be connected. 18 replies in this thread and still no schematic that includes this pin.

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

 

MCU-pwr.PNG

I am providing +3V3DC to analog pin for Vref based on datasheet its and output pin.  

MCU-pwr.PNG

I am providing +3V3DC to analog pin for Vref based on datasheet its and output pin.  

MCU-pwr.PNG

I think if you update this circuit by connection VREF+ also to 3V3 as VDDA, ADC will work correctly.   

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

VREF+ needs to be powered. Connect it to VDDA.

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

@harshpanchal_6  Note that everyone can see all replies - there's no need to repeat the same thing in reply to different people.

You can use '@' to mention people ...

 


@harshpanchal_6 wrote:

I am providing +3V3DC to analog pin for Vref based   


No, your schematic shows that you are not providing any supply at all to Vref.

This is why it is so important that you show your full schematic in your first post.

It shouldn't have taken 20  posts to get here!

 

Thank you for marking the solution - don't forget to also do that in your previous posts...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.