cancel
Showing results for 
Search instead for 
Did you mean: 

Slelecting Voltage Reference pins

rabbani_sk
Associate

Hi,

STM32F405 Microcontroller(Package: LQFP64) does not have Vref pins, Can we select any alternate pins as Vref pins. Please Suggest.

rabbani_sk_0-1734084804777.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello @rabbani_sk and welcome to the community,

The answer is provided in the datasheet:

SofLit_0-1734085634988.png

"When VREF+ and VREF– are not available, they are internally connected to VDDA and VSSA."

So to answer your question: No. Vref is not exported externally on LQFP64 and none of the GPIO pins can be used for Vref pin.

Hope it does answer your question.

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.

View solution in original post

5 REPLIES 5

What does the datasheet and/or Reference Manual tell you?

SofLit
ST Employee

Hello @rabbani_sk and welcome to the community,

The answer is provided in the datasheet:

SofLit_0-1734085634988.png

"When VREF+ and VREF– are not available, they are internally connected to VDDA and VSSA."

So to answer your question: No. Vref is not exported externally on LQFP64 and none of the GPIO pins can be used for Vref pin.

Hope it does answer your question.

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.
rabbani_sk
Associate

Hi Thanks for your reply,

Requirement: I want to set 3V for the internal reference voltage which is connected to VDDA and VSSA.

Query: Is there any software configuration to set it 3Volts or any other approach to set Internal Vref.

Thank you

Hello,

You need always to refer to the documentation especially datasheet and reference manual of the given product.

Table 14 from the product datasheet, answers your question. It mentions the minimum voltage for VDDA according to a certain conditions. Also read the notes under the table.

SofLit_0-1734096112258.png

No need for any software configuration. It's something related to electrical specifications.

All you need is to take care of the VDD/VREF value in your calculation in voltage reading especially when your are using ADC or generating voltage when using DAC.

Hope I answered your question.

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.
TDK
Guru

> STM32F405 Microcontroller(Package: LQFP64) does not have Vref pins, Can we select any alternate pins as Vref pins. Please Suggest.

No, this is not possible on the LQFP64 package. It will always be the same as VDDA which must be the same as VDD.

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