Skip to main content
Graduate
December 13, 2024
Solved

Slelecting Voltage Reference pins

  • December 13, 2024
  • 4 replies
  • 1114 views

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.
    Best answer by mƎALLEm

    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.

    4 replies

    Super User
    December 13, 2024

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

    mƎALLEmAnswer
    Technical Moderator
    December 13, 2024

    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.

    Graduate
    December 13, 2024

    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

    Technical Moderator
    December 13, 2024

    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.

    Super User
    December 13, 2024

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