
Demonstration applications
UM1000
Doc ID 17964 Rev 1
3.4.2 Setting
the
date
The
DATE
submenu offers two options allowing to adjust and display the current date.
Once
set, the time is used to configure the RTC date.
Date Adjust
Use the
Date adjust
option to modify the current date, or to change the default date
(09/17/2010) to the current date after the STM8L1528-EVAL evaluation board is powered
up.
1.
To set the current date, select the
Date adjust
option. The date is then displayed on 8
digits: MM/DD/YYYY (see
Figure 8
).
2.
Enter the first digit of the month field:
–
Pressing the joystick
UP
increments the current digit value.
–
Pressing the joystick
DOWN
decrements the current digit value.
The digit value is limited to a range depending on the date field (month, day or year).
3.
After selecting the digit value press
SEL
. The cursor then jumps automatically to the
next digit.
4.
When all the date digits are set, the
Date adjust
submenu is displayed again to show
the current date. (see
Figure 8
).
Figure 8.
Date Adjust message
Date show
Select
Date show
to display the current date. After power-up, the default date (09/17/2010)
is displayed till the Date adjust option is used to configure the current date.
The following message is displayed on the LCD screen when this submenu is selected:
Figure 9.
Date Adjust message
To exit from this sub menu press the joystick
UP
push.
Date Adjust
09/17/2010
Date Show
FRI SEP 17 2010
www.BDTIC.com/ST