ML63611 User’s Manual
Chapter 11 Melody Driver (MELODY)
11 – 6
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
11.4.2 Melody Data
Melody data is 14-bit format data in the program ROM defining tone, tone length and end tone.
The melody data format is indicated in Figure 13-3.
Figure 11-3 Melody Data Format
(1) Tone code
The tone code is set in bits 6 through 0 of the melody data. The frequencies that can be output by the
melody circuit are defined as:
Hz (where N is an integer from 4 to 127)
The relation between N and tone code bits is:
N = 2
6
N6 + 2
5
N5 + 2
4
N4 + 2
3
N3 + 2
2
N2 + 2
1
N1 + 2
0
N0
If N6 through N2 are all set to “0”, there is no melody output for the time specified by the tone length code.
Values for N1 and N0 are irrelevant.
Table 11-2 indicates the relations between tones and tone codes.
Table 11-2 Tone and Tone Code Correspondence
Tone code
Tone
Frequency
(Hz)
N6
N5
N4
N3
N2
N1
N0
N6–N0
C
1
529
1
1
1
1
0
1
1
7BH
Cis
1
560
1
1
1
0
0
1
1
73H
D
1
590
1
1
0
1
1
0
1
6DH
Dis
1
624
1
1
0
0
1
1
1
67H
E
1
662
1
1
0
0
0
0
1
61H
F
1
705
1
0
1
1
0
1
1
5BH
Fis
1
745
1
0
1
0
1
1
0
56H
G
1
790
1
0
1
0
0
0
1
51H
Gis
1
840
1
0
0
1
1
0
0
4CH
A
1
886
1
0
0
1
0
0
0
48H
Ais
1
936
1
0
0
0
1
0
0
44H
B
1
993
1
0
0
0
0
0
0
40H
C
2
1057
0
1
1
1
1
0
0
3CH
Cis
2
1111
0
1
1
1
0
0
1
39H
D
2
1192
0
1
1
0
1
0
1
35H
65536
(N + 2)
N0
N1
N2
N3
END
*
L5
L4
L3
L2
L1
L0
*
N6
N5
N4
bit 0
bit 1
bit 2
bit 3
bit 4
bit 5
bit 6
bit 7
bit 8
bit 9
bit 10
bit 11
bit 12
bit 13
bit 14
bit 15
End bit
Tone length code
Tone code
* Bits 14 and 7 may be either “0” or “1”.
Содержание ML63611
Страница 9: ...Chapter 1 Overview...
Страница 33: ...Chapter 2 CPU and Memory Spaces...
Страница 42: ...Chapter 3 CPU Control Functions...
Страница 49: ...Chapter 4 Interrupt INT...
Страница 62: ...Chapter 5 Clock Generator Circuit OSC...
Страница 71: ...Chapter 6 Time Base Counter TBC...
Страница 75: ...Chapter 7 Timers TIMER...
Страница 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Страница 103: ...Chapter 9 Watchdog Timer WDT...
Страница 108: ...Chapter 10 Ports INPUT I O PORT...
Страница 140: ...Chapter 11 Melody Driver MELODY...
Страница 152: ...Chapter 12 Serial Port SIO...
Страница 179: ...Chapter 13 LCD Driver LCD...
Страница 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Страница 204: ...Chapter 15 Power Supply Circuit POWER...
Страница 215: ...Chapter 16 A D Converter ADC...
Страница 238: ...Appendixes...
Страница 271: ...ML63611 User s Manual First Edition May 2001 Second Edition June 2001 2001 Oki Electric Industry Co Ltd PEUL63611 02...