D2-D5 RENESAS [Renesas Technology Corp], D2-D5 Datasheet - Page 3
![no-image](/images/no-image-200.jpg)
D2-D5
Manufacturer Part Number
D2-D5
Description
Sample Program (Electronic Desktop Calculator)
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
1.D2-D5.pdf
(18 pages)
4.
REJ05B0812-0120 Rev.1.20
Calculation results are shown on liquid crystal display.
The display shows the result of operation when calculation results are within 7 digits (from −9999999 to 9999999) or “E” when
calculation results are equal to or more than 8 digits. For example, when you enter “1234 5678 =,” the display will show “6912.” Or
when you enter “1234567 8901234,” the display will show “E.”
When a key is depressed, the buzzer sounds.
Note: In this program, pressing two or more switches at the same time has no effect (i.e., ignored).
This function is materialized using the following microcomputer facilities:
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, key scan, and LCD display management are performed using this timer.
This timer outputs a waveform with different high and low pulse widths using the main clock of the microcomputer as the count
source.
It is used to sound a buzzer each time a key is touched.
Operational Outline
• Timer A0 (timer mode, main 2 ms cycle)
• Timer A1 (pulse modulation mode, buzzer output)
2007.11
Sample Program (Electronic Desktop Calculator)
M16C/26A Group
Page 3 of 18