Skip to main content
Explorer
March 11, 2024
Solved

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

  • March 11, 2024
  • 3 replies
  • 1914 views

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.
    Best answer by TDK

    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.

    3 replies

    TDKAnswer
    Super User
    March 11, 2024

    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.

    Beppe101Author
    Explorer
    March 12, 2024

    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 ?

     

    Technical Moderator
    March 12, 2024

    Your actual VDDA value.

    Beppe101Author
    Explorer
    March 12, 2024

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