|
M16C26A-24NT Datasheet, PDF (4/16 Pages) Renesas Technology Corp – Sample Program (24-Number Time-of-Day Clock) | |||
|
◁ |
ç
M16C/26A Group
Sample Program (24-Number Time-of-Day Clock)
5. Operational Specification
(1) Immediately after the reset switch is depressed, the LCD
shows â--:--.â
(2) Pressing the clock setting switch (SW3) places the
program into clock setup mode.
⢠In âhoursâ setup mode, the âhoursâ display flashes at 1
kHz. (During UP/DOWN manipulation, the display flashes
every 500 ms by repeatedly turning on and off.)
(3) Use the UP switch (SW1) to increment the digit by 1 or the
DOWN switch (SW2) to decrement by 1 to adjust the
âhours.â
[Operational specification of the UP and DOWN switches]
When a maximum value is reached, a minimum value
returns. When a minimum value is reached, a maximum
value returns.
If either switch is held down for 1 second or more, the
numeral continuously goes UP or DOWN every 100 ms.
(4) Pressing the clock-setting switch (SW3) fixes the âhours.â
The program goes to âminutesâ setup mode.
⢠In âminutesâ setup mode, the âminutesâ display flashes at
1 kHz. (During UP/DOWN manipulation, the display flashes
every 500 ms by repeatedly turning on and off.)
(5) Use the UP switch (SW1) to increment the digit by 1 or the
DOWN switch (SW2) to decrement by 1 to adjust the
âminutes.â
(6) Press the clock setting switch (SW3) to fix the âminutes.â
(7) The clock display starts.
⢠Low power consumption mode ï« wait mode
[Low power consumption mode]
Main clock oscillation (10 MHz) switched to sub-clock
oscillation (32.768 kHz).
[Wait mode]
The program returns from wait mode every 1 minute,
thereby starting to run.
(8) To reset the time-of-day clock, follow the above setup
steps over again beginning with (1).
(1) Reset start
Time clock not set yet
--:--
âHoursâ setting
(2) Time clock setting
(3) UP/DN
button
11 22 : - -
(4) Time clock setting
âMinutesâ setting
(5)UP/DN
button
1 2 : 00 00
(6)Time clock setting
Time of day fixed, start counting
12 : 00
REJ05B0810_0110 Rev.1.10
2007.11
Page 4 of 16
|
▷ |