Electronic Components Datasheet Search
  English  ▼

X  

AN3397 Datasheet(PDF) 11 Page - STMicroelectronics

Part # AN3397
Description  Temperature sensor example using the STM8L-DISCOVERY board
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3397 Datasheet(HTML) 11 Page - STMicroelectronics

Back Button AN3397 Datasheet HTML 7Page - STMicroelectronics AN3397 Datasheet HTML 8Page - STMicroelectronics AN3397 Datasheet HTML 9Page - STMicroelectronics AN3397 Datasheet HTML 10Page - STMicroelectronics AN3397 Datasheet HTML 11Page - STMicroelectronics AN3397 Datasheet HTML 12Page - STMicroelectronics AN3397 Datasheet HTML 13Page - STMicroelectronics AN3397 Datasheet HTML 14Page - STMicroelectronics AN3397 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 24 page
background image
AN3397
Temperature sensor application description
Doc ID 018809 Rev 1
11/24
2.4
Temperature sensor application principle
The STM8L152C6 has a built-in temperature sensor (TS) which is internally connected to
the analog-to-digital converter (ADC) TS input channel. The ADC converts the sensor
output voltage into a digital value. The result is recalculated into standard temperature units
(°C in this example) and displayed on the LCD.
The temperature value displayed on the LCD panel is refreshed after every 1 s time period.
To improve measurement reliability, this data point is obtained by averaging 20
measurements. Between each temperature measurement, the STM8L152C6 enters active
halt mode to minimize average power consumption, then automatically wakes up 50 ms later
to get a new data point and process it.
The TS application may also display the minimum and maximum temperature values
recorded since the STM8L-DISCOVERY was powered up. By default, the current
temperature is displayed with the symbol 'T'. When the user push-button is pressed once,
the LCD displays the maximum temperature recorded with the symbol 'M'. The second time
the user push-button is pressed, the minimum temperature recorded is displayed with the
symbol 'm'. Pressing the user push-button again displays the current temperature once
more (see Figure 4).
Figure 4.
TS application user interface
The TS can also be used to detect temperature variations. Using the LCD bar graph, the
application displays the temperature trend over the past five-minute period. If the
temperature values recorded during that time have dropped, BAR0 is turned ‘on’. On the
other hand, if the temperatures have increased, BAR3 is turned on.
LCD
T +24.7 °C
Current temperature
Max temperature recorded
Min temperature recorded
USER push-button
Temperature drop
ai18761
Temperature rise
M +26.4 °C
m+21.6 °C



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com