Table of Contents

Advertisement

ML63611 User's Manual
Chapter 11 Melody Driver (MELODY)

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.
bit 15
bit 14
bit 13
END *
End bit
(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:
6
5
N = 2
N6 + 2
N5 + 2
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.
Frequency
Tone
1
C
1
Cis
1
D
1
Dis
1
E
1
F
1
Fis
1
G
1
Gis
1
A
1
Ais
1
B
2
C
2
Cis
2
D
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
bit 12
bit 11
bit 10
bit 9
L5
L4
L3
L2
Tone length code
* Bits 14 and 7 may be either "0" or "1".
Figure 11-3 Melody Data Format
Hz (where N is an integer from 4 to 127)
4
3
2
N4 + 2
N3 + 2
N2 + 2
Table 11-2 Tone and Tone Code Correspondence
(Hz)
N6
529
1
560
1
590
1
624
1
662
1
705
1
745
1
790
1
840
1
886
1
936
1
993
1
1057
0
1111
0
1192
0
bit 8
bit 7
bit 6
bit 5
*
L1
L0
N6
N5
1
0
N1 + 2
N0
Tone code
N5
N4
N3
1
1
1
1
1
0
1
0
1
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
11 – 6
bit 4
bit 3
bit 2
bit 1
N4
N3
N2
N1
Tone code
N2
N1
0
1
0
1
1
0
1
1
0
0
0
1
1
1
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
bit 0
N0
N0
N6–N0
1
7BH
1
73H
1
6DH
1
67H
1
61H
1
5BH
0
56H
1
51H
0
4CH
0
48H
0
44H
0
40H
0
3CH
1
39H
1
35H

Advertisement

Table of Contents
loading

Table of Contents