
UM1000
Demonstration applications
Doc ID 17964 Rev 1
Figure 15.
Warning Temperature display
The messages shown in
is displayed on the LCD when the temperature goes
under the over limit low (TEMPERATURE_THYS: Hysteresis Temperature).
The user can configure the TOS and THYS thanks to a dedicated define values in the code.
By default the STM8L1528-EVAL demo is setting them to (see demo_thermometer.c file):
#define TEMPERATURE_THYS 31
#define TEMPERATURE_TOS 32
To exit this demo, press the joystick
UP
.
Note:
Any hardware trouble on the board with the temperature sensor is detected by a test. In this
event, the message shown in
is displayed.
Figure 16.
Temperature sensor error
message
3.6 I
DD
measurement demo
The STM8L15x microcontroller features an ADC peripheral. It measures the I
DD
current in
Run mode by using the I
DD
measurement circuit available on the Root part number 1 board.
1.
Select the IDD MEASUREMENT
menu by pressing SEL from the main menu. The
message shown in
is then displayed on the LCD screen.
Figure 17.
I
DD
measurement message
2. Press
SEL
to display the current value of I
DD
in Run mode on the LCD screen (see
). I
DD
value is periodically refreshed.
Figure 18.
I
DD
Run mode message
Note:
Make sure that the JP4 jumper is installed in the I
DD
position before running the I
DD
measurement demo.
Warning
Temp exceed 32C
ERR: SD Card
Initialization
IDD MEASUREMENT
Run Mode
IDD Run Mode
x.xxx mA
www.BDTIC.com/ST