English
Language : 

M16C26A-24NT Datasheet, PDF (3/16 Pages) Renesas Technology Corp – Sample Program (24-Number Time-of-Day Clock)
ç
M16C/26A Group
Sample Program (24-Number Time-of-Day Clock)
4. Operational Outline
A 24-number digital time-of-day clock is displayed on liquid crystal display.
Press SW3 to go to hours/minutes setup mode, adjust “hours” in the range from 00 o’clock to 23 o’clock using SW1 and SW2, and then
press SW3 to fix the “hours.” Go on and adjust “minutes” in the range from 00 minutes to 59 minutes using SW1 and SW2, and then press
SW3 to fix the “minutes,” letting the time-of-day clock start counting.
After that, operation mode is transitioned from wait mode to low power consumption mode every 1 minute, thereby updating the display of
the time-of-day clock.
Liquid crystal display
1 minute elapsed
Liquid crystal display
1 minute elapsed
M16C26A
M16C26A
SW3
SW2
SW1/
BOOT
SW3 depressed
Low power consumption mode
SW3
SW2
SW1/
BOOT
Wait mode
Wait mode
Low power consumption mode
*Timer A0 (timer mode, main 2 ms cycle)
This timer counts 2 milliseconds using the main clock of the microcomputer as the count source.
It is used as the basic timer of RSK_LIB.
Time management and LCD display management are performed using this timer.
REJ05B0810_0110 Rev.1.10
2007.11
Page 3 of 16