cancel
Showing results for 
Search instead for 
Did you mean: 

LO31K6 : How to get Temperature data?

DU2
Associate II

Hello, I am using L031K6 for low battery sensor project

I made L031K6 to sense 3~4 channel of AC measure,

so that currently using ADC-DMA for measure, and succesfully get 3 channel of AC data

but additionaly, I want to make L031K6 sense temperature of surroundings

by its ADC port

The CPU mannual said that It can sense temperature by one of ADC channel,

but I think there is no more precise description or proper example code.

so Could you show me the precise way to get temperature by L031K6?

Thanks to read.

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @DU​ ,

Have a look to the RM0377 in Analog-to-digital converter (ADC)  section to calculate the temperature, and refer to the code example: A.8.17: Temperature computation code example.

0693W000004Hve3QAC.jpg

Hope that answers your question, and please mark the post of user which is the "Best".

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
TDK
Guru

It senses the chip temperature, which is typically much higher than ambient. It's just a different channel on the ADC. Works the same as converting other channels. The reference manual and datasheet will have more info.

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

Hello @DU​ ,

Have a look to the RM0377 in Analog-to-digital converter (ADC)  section to calculate the temperature, and refer to the code example: A.8.17: Temperature computation code example.

0693W000004Hve3QAC.jpg

Hope that answers your question, and please mark the post of user which is the "Best".

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen