English
Language : 

M16C26A-C Datasheet, PDF (4/17 Pages) Renesas Technology Corp – Sample Program (Calendar)
ç
M16C/26A Group
Sample Program (Calendar)
ç
5. Operational Specification
(1) Immediately after the reset switch is pressed,
the upper row shows “----”
and the lower row shows “----- --.”
(2) Pressing the decision switch (SW16) puts the program into
the “year” setup mode.
While setting is in progress, the “year” displayed on LCD
flashes at 1 Hz.
(3) The UP switch (SW13) increments by 1 and the DOWN switch
(SW14) decrements by 1. The numeric switches input a
numeral directly, which is shown on LCD.
The “year” is designated by only 2 lower digits of the
calendar year.
[Operational specification of the UP and DOWN switches]
When a maximum value is reached, a minimum value
returns. (2099 - 2000)
When a minimum value is reached, a maximum value
returns. (2000 - 2099)
If either switch is held down for 1 second or more, the
numeral continuously goes UP (or DOWN) every 100 ms.
[Operational specification of the numeric switches]
The LCD display shifts to the left each time a switch is nput.
Numerals can be input in the range 0 to 99.
If any value is decided outside the input range, it reverts to
the minimum value (2000).
(4) Pressing the decision switch (SW16) fixes the “year,” by which
the program is placed into the “month” setup mode
*While setting is in progress, the “month” displayed on
LCD flashes at 1 Hz.
(5) The UP switch (SW13) increments by 1 and the DOWN switch
(SW14) decrements by 1.
The numeric switches have no effect. The month is shown by
Jan through Dec.
(6) Pressing the decision switch (SW16) fixes the “month,” by which
the program is placed into the “day” setup mode.
*While setting is in progress, the “day” displayed on LCD
flashes at 1.
(7) The UP switch (SW13) increments by 1 and the DOWN switch
(SW14) decrements by 1.
The numeric switches have no effect. Numerals are displayed by
01 through 31.
(8) Pressing the decision switch (SW16) fixes the “day” and at the
same time shows a day of the week on LCD. The program goes
to calendar mode.
(9) In calendar mode, the UP switch (SW13) increments the date
by 1 and the DOWN switch (SW14) decrements the date by 1.
(10) The CLR switch (SW12) moves the program to the initial setup screen.
Note: The displayable range is January 1, 2000 to December 31, 2099.
(1) Reset switch depressed
---- ç
- - - - -ç - -
(2) Decision switch
depressed, with “year”
2 0 00 00 ç ç ç ç
- - - - -ç - -
(3) UP/DOWN
and numeric
(4) Decision switch depressed,
with “month” setup mode
2006ç ç ç ç
JJ aaç nn - - ç - -
(5) UP/DOWN
switch
(6) Decision switch depressed,
with “day” setup mode entered
2006ç ç ç ç
A p r 00 11 ç - -
(7) UP/DOWN
switch
20
Ap
(8) Decision switch
depressed, with calendar
d td
0 6ç ç ç ç
r 0 1ç S a
(9) UP/DOWN
switch
(10) CLR switch
- - - -ç ç ç ç
- - - - -ç - -
REJ05B0813-0120 Rev.1.20
2007.11
Page 4 of 17