
12-6
ML63326 User's Manual
Chapter 12 Melody Driver (MELODY63K)
Figure 12-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:
65536
(N + 2)
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 12-2 indicates the relations between tones and tone codes.
Table 12-2 Tone and Tone Code Correspondence
12.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 12-3.
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".
Tone
Frequency
(Hz)
Tone code
N6
N5
N4
N3
N2
N1
N0
N6–N0
Gis
1
A
1
Ais
1
B
1
C
2
Cis
2
D
2
840
886
936
993
1192
1111
1057
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
4CH
48H
44H
40H
3CH
39H
35H
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
0
1
1
1
0
1
1
5BH
Fis
1
745
0
1
1
0
1
1
0
56H
G
1
790
0
1
1
0
0
0
1
51H
Hz (where N is an integer from 4 to 127)
Содержание ML63326
Страница 3: ......
Страница 13: ......
Страница 14: ...Chapter 1 Overview 1 ...
Страница 15: ......
Страница 37: ...1 22 ML63326 User s Manual Chapter 1 Overview ...
Страница 38: ...Chapter 2 CPU and Memory Spaces 2 ...
Страница 39: ......
Страница 50: ...CPU Control Functions Chapter 3 3 ...
Страница 51: ......
Страница 57: ...3 6 ML63326 User s Manual Chapter 3 CPU Control Functions ...
Страница 58: ...Interrupt INT326 Chapter 4 4 ...
Страница 59: ......
Страница 71: ...4 12 ML63326 User s Manual Chapter 4 Interrupt INT326 ...
Страница 72: ...Clock Generator Circuit OSC Chapter 5 5 ...
Страница 73: ......
Страница 83: ...5 10 ML63326 User s Manual Chapter 5 Clock Generator Circuit OSC ...
Страница 84: ...Time Base Counter TBC Chapter 6 6 ...
Страница 85: ......
Страница 90: ...Timers TIMER Chapter 7 7 ...
Страница 91: ......
Страница 115: ...7 24 ML63326 User s Manual Chapter 7 Timers TIMER ...
Страница 116: ...Chapter 8 8 100 Hz Timer Counter 100HzTC ...
Страница 117: ......
Страница 121: ...8 4 ML63326 User s Manual Chapter 8 100 Hz Timer Counter 100HzTC ...
Страница 122: ...Chapter 9 9 Watchdog Timer WDT ...
Страница 123: ......
Страница 128: ...Chapter 10 10 Ports INPUT OUTPUT I O PORT ...
Страница 129: ......
Страница 170: ...Chapter 11 11 External Memory Transfer Function EXTMEM ...
Страница 171: ......
Страница 179: ...11 8 ML63326 User s Manual Chapter 11 External Memory Transfer Function EXTMEM ...
Страница 180: ...Chapter 12 12 Melody Driver MELODY63K ...
Страница 181: ......
Страница 195: ...12 14 ML63326 User s Manual Chapter 12 Melody Driver MELODY63K ...
Страница 196: ...13 Chapter 13 Voice Synthesis ...
Страница 197: ......
Страница 228: ...14 Chapter 14 Shift Register SFT ...
Страница 229: ......
Страница 236: ...15 Chapter 15 LCD Driver LCD ...
Страница 237: ......
Страница 250: ...16 Chapter 16 Battery Low Detect Circuit BLD ...
Страница 251: ......
Страница 255: ...16 4 ML63326 User s Manual Chapter 16 Battery Low Detect Circuit BLD ...
Страница 256: ...Chapter 17 17 Power Supply Circuit POWER ...
Страница 257: ......
Страница 260: ...Appendixes ...
Страница 261: ......
Страница 321: ...Appendix 60 ML63326 User s Manual Appendix G ...