English
Language : 

M16C26A-MS Datasheet, PDF (4/17 Pages) Renesas Technology Corp – Sample Program (Musical Scale)
ç
M16C/26A Group
Sample Program (Musical Scale)
5. Operational Specification
(1) Immediately after the reset switch is depressed, the scale
corresponding to a variable resistor position is output.
(2) Scale output and display are changed using the variable
resistor (R9).
(3) Scale output is turned on or off by pressing SW1.
When scale output is turned off, a string “mute” is
displayed.
(1) Reset switch depressed
s cal e
2 5 9H z
do
(2) Variable resistor
Relationship between VR Input (Input Voltage) and Scale Output
Input voltage
Frequency
0 -0.625V do
0.625 -1.25V re
1.25 -1.875V mi
1.875 - 2.5V fa
2.5 - 3.125V so
3.125 - 3.75V la
3.75 - 4.375V si
4.375 - 5V do
259Hz
292Hz
327Hz
347Hz
393Hz
441Hz
498Hz
524Hz
s cal e
2 9 2H z
re
(3) SW1 depressed
s cal e
mu t e
(4) SW1 depressed
* The AD values are set by calling the common function “AD
average” (RL_AdVeraging). Within the function, a value is
sampled 6 times, and the sampled values except the maximum
and minimum values are averaged, the result of which is
returned. This average value is acquired 8 times, the average of
which is made a fixed value.
s cal e
2 9 2H z r e
REJ05B0817-0110 Rev.1.10
2007.12
Page 4 of 17