cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G431RBT6 ADC internal Vref 2.048V

sshan.2
Associate III

Hi Team,

We are using STM32G431RBT6, we have tested the ADC1 for PA3 i.e. Channel4 with external Vref 3.3 and VDDA 3.3 with 12-bit selection and the reading we are getting with 5 to 10 counts fluctuations we are seeing but when we have changed to internal voltage ref selection for 2.048 then the PA3 i.e. Channel4 is fluctuating more than 1000 counts! but it works fine for PA0!

VDDA remains same 3.3v for both our internal and external voltage.

Please suggest us how to resolve this?? 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

TDK_0-1745502167020.png

So VREF+ isn't connected to anything? Seems like an issue to me. Should have caps on there.

TDK_1-1745502268530.png

 

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

View solution in original post

14 REPLIES 14
TDK
Guru

The ADC is a multiplexer. Hardware downstream of the pin is the same for all channels, so this must be related to what's connected to the pin (or a misinterpretation). Show the hardware schematic and connection details and a plot of the data coming out if possible.

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

Hi team,

I am attaching the code and schematic with results please look and help us 

image _stm32chik.jpeg

sshan.2
Associate III

sshan2_0-1745480107980.png

sshan2_1-1745480211774.png

sshan2_2-1745480235754.png

 

we have given 200mV and we need to get 400 counts, but we are getting values in between 250 to 430 counts.

I am unable to upload the video  

MasterT
Lead

Is it Nucleo board? 

sshan.2
Associate III

Yes Nucleo -G431RB (NUG431RB$AT3) Board and also same Microcontroller is used in our customized board.

This is nucleo board, likely PA2 & PA3 assign to serial port. Locate product description page on ST.com, navigate to CAD docs - get schematic. Also download and study nucleo board manual.

TDK
Guru

TDK_0-1745502167020.png

So VREF+ isn't connected to anything? Seems like an issue to me. Should have caps on there.

TDK_1-1745502268530.png

 

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

Hi @sshan.2 

 

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

 

Regards,

Billy

 

but we have not enabled any serial ports for this PA3 and PA2, only PA3 is used for channel4