Skip to main content
Associate II
Dec 13, 2024 10:13 AM UTC
Solved

Slelecting Voltage Reference pins

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

 

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 13, 2024 10:28 AM UTC

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 "Best answer" on the reply which solved your issue or answered your question.

5 replies

Andrew Neil
Super User
Dec 13, 2024 10:18 AM UTC

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

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.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 13, 2024 10:28 AM UTC

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 "Best answer" on the reply which solved your issue or answered your question.
Associate II
Dec 13, 2024 1:12 PM UTC

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

mƎALLEm
ST Technical Moderator
Dec 13, 2024 1:25 PM UTC

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 "Best answer" on the reply which solved your issue or answered your question.
TDK
Dec 13, 2024 9:03 PM UTC

> 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""."