Skip to main content
Associate II
Mar 11, 2024 11:28 AM UTC
Solved

Temperature and ADC temperature raw value increase but temperature from formula decreases

Hi,

I'm using STM32G070RBTx, and I use this formula from document RM0360 to compute temeperature:

0693W000001sk41QAA.png

From page 56 of document https://www.st.com/resource/en/datasheet/stm32g070cb.pdf, I'm using:

Avg_Slope = 2.5 and V30 = 0.76.

The temperature converted value I obtain at ambient temperature appears reasonable ( 21 °C approx. )  but when the temperature increases the  raw value I get from ADC also increases but using formula above gives a decreasing temperature value and this is wrong.

Please help.

This topic has been closed for replies.
TDK
TDKBest answer
Mar 11, 2024 12:45 PM UTC

Perhaps you are using an older version of the RM. Here it what the current version says:

TDK_0-1710161093832.png

 

This is the same as your formula except the sign on V30 and V_SENSE has changed.

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

5 replies

TDK
TDKBest answer
Mar 11, 2024 12:45 PM UTC

Perhaps you are using an older version of the RM. Here it what the current version says:

TDK_0-1710161093832.png

 

This is the same as your formula except the sign on V30 and V_SENSE has changed.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Beppe101Author
Associate II
Mar 12, 2024 2:28 PM UTC

Thanks TDK for reply, a couple of questions:

1) is VDDA in the formula the voltage power supply I use to power my board, that is 3.3 V, or is the voltage power supply used during factory calibration that is 3.0 V ?

2) in the formula provided shouldn't be Sense_DATA = TS_DATA / VDDA * 3.3 ?

 

mƎALLEm
ST Technical Moderator
Mar 12, 2024 2:34 PM UTC

Your actual VDDA value.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Beppe101Author
Associate II
Mar 12, 2024 3:56 PM UTC

Thanks for helping, the formula provided appears to be working fine.