cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U Series Ultra Low Power No-Vref Pin

tensaisakuragi06
Associate III

Hi friends. With using STM32U535 microcontroller, i plan to make a project. The project includes 3.6V battery cell. We read adc values when this battery cell supplies the microcontroller. When the battery voltage decreases, the reference voltage should not be altered. Because of this situation, i think i need a vref pin on microcontroller. If i am not wrong, this microcontroller does not have vref pin for this purpose. Do you have any recommendation for me about this situation?

10 REPLIES 10
tensaisakuragi06
Associate III

The actual name of the microcontroller is STM32U545CB (LQFP48 package).

AScha.3
Chief II

Hi,

which U535 ?

see ds:

AScha3_0-1727170671416.png

100pin case has vref+.

 

But you dont need the vref pins, you have the RefINT .

So you just get the actual value, refint is giving and calculate the actual ADC vref+ (= VDD, battery /supply voltage).

Then you know (calculate) the ADC input voltages . Of course needs some 3rd grade mathematc skills.

 

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

I know the calculation of adc voltage from PIC microcontrollers. That anwer is not i seek for. But thank you anyway.

tensaisakuragi06
Associate III

I just now inspect some of the pages of datasheet. It refer to some four levels of Vref voltage. If i understand correctly, i must supply the Vdda pins with certain amount of voltage. But i am curious about if it is enough to supply Vdda pin with just amount of voltage or am i have to program some kind of registers etc. ?stm32_vref issue.png

What voltage IS your supply ?

-> If maybe 2.5V, you only can use the 2.xx Vref to measure the reference. (The reference needs some headroom to the supply VDDA (bonded to VREF+ , so same).

 

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

If we adjust Vrefbuf as HOLD to 2.5V, does the adc have 2.5V reference voltage? Some of the code is attached.software.png

Still no answer.   What voltage IS your supply ?

+

see U535 maual:

AScha3_0-1727178039946.png

AScha3_1-1727178087897.png

But VREF+ is not on a pin on your chip. So - what then ??

+

>I know the calculation of adc voltage from PIC microcontrollers. That anwer is not i seek for.   <

What else then ?

 

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

Hello,

As VREF is connected to VDDA, I suggest to connect VDDA to an external reference voltage. The power consumption on VDDA is low as it supplies only ADC, DAC, comparators and opamp (cf datasheet).

Bertrand

 

As we supply the Vdd with 3.3V and Vdda with 2.5V individually, i can get 2.5V reference voltage? Am i understand you correctly?