ML620Q503/Q504 User's Manual
Chapter 23 Melody Driver
FEUL620Q504 23-11
23.3.5 Scale Codes
A scale code is set in the melody 0 scale code register (MD0TON).
In the melody driver, a frequency that can be output is expressed by the following equation.
65536
Hz (where TN is an integer of 4 to 127.)
( TN + 1 )
The bit correspondence between TN and scale codes is expressed by the following equation.
TN = 2
6
M0TN6 + 2
5
M0TN5 + 2
4
M0TN4 + 2
3
M0TN3 + 2
2
M0TN2 + 2
1
M0TN1 + 2
0
M0TN0
Table 23-4 shows the correspondence between scales and scale codes.
When the M0TN6 to M0TN2 bits are set to "0", scale becomes a rest. The rest length is set by the tone length
code (MD0LEN).
Table 23-4 Correspondence between Scales and Scale Codes
Scale
Frequency
(Hz)
Scale code (MD0TON)
M0TN6 M0TN5 M0TN4 M0TN3 M0TN2 M0TN1 M0TN0
M0TN6
0
C
1
529
1
1
1
1
0
1
1
7BH
Cis
1
560
1
1
1
0
1
0
0
74H
D
1
590
1
1
0
1
1
1
0
6EH
Dis
1
624
1
1
0
1
0
0
0
68H
E
1
662
1
1
0
0
0
1
0
62H
F
1
705
1
0
1
1
1
0
0
5CH
Fis
1
745
1
0
1
0
1
1
1
57H
G
1
790
1
0
1
0
0
1
0
52H
Gis
1
840
1
0
0
1
1
0
1
4DH
A
1
886
1
0
0
1
0
0
1
49H
Ais
1
936
1
0
0
0
1
0
1
45H
B
1
993
1
0
0
0
0
0
1
41H
C
2
1057
0
1
1
1
1
0
1
3DH
Cis
2
1111
0
1
1
1
0
1
0
3AH
D
2
1192
0
1
1
0
1
1
0
36H
Dis
2
1260
0
1
1
0
0
1
1
33H
E
2
1338
0
1
1
0
0
0
0
30H
F
2
1394
0
1
0
1
1
1
0
2EH
Fis
2
1490
0
1
0
1
0
1
1
2BH
G
2
1560
0
1
0
1
0
0
1
29H
Gis
2
1680
0
1
0
0
1
1
0
26H
A
2
1771
0
1
0
0
1
0
0
24H
Ais
2
1872
0
1
0
0
0
1
0
22H
B
2
1986
0
1
0
0
0
0
0
20H
C
3
2114
0
0
1
1
1
1
0
1EH
D
3
2341
0
0
1
1
0
1
1
1BH
Dis
3
2521
0
0
1
1
0
0
1
19H
E
3
2621
0
0
1
1
0
0
0
18H
Fis
3
2979
0
0
1
0
1
0
1
15H
Содержание LAPIS SEMICONDUCTOR ML620Q503
Страница 2: ...ML620Q503 Q504 User s Manual Issue Date Apr 16 2015 FEUL620Q504 01...
Страница 18: ...Chapter 1 Overview...
Страница 32: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 50: ...Chapter 4 Power Management...
Страница 70: ...Chapter 5 Interrupts...
Страница 134: ...Chapter 6 Clock Generation Circuit...
Страница 161: ...Chapter 7 Time Base Counter...
Страница 170: ...Chapter 8 Timers...
Страница 183: ...Chapter 9 Function Timer FTM...
Страница 231: ...Chapter 10 Watchdog Timer...
Страница 239: ...Chapter 11 Synchronous Serial Port SSIO...
Страница 251: ...Chapter 12 Synchronous Serial Port with FIFO SSIOF...
Страница 283: ...Chapter 13 UART...
Страница 303: ...Chapter 14 UART with FIFO UARTF...
Страница 327: ...Chapter 15 I2 C Bus Interface...
Страница 344: ...Chapter 16 Port XT...
Страница 350: ...Chapter 17 Port 0...
Страница 361: ...Chapter 18 Port 1...
Страница 368: ...Chapter 19 Port2...
Страница 379: ...Chapter 20 Port 3...
Страница 395: ...Chapter 21 Port 4...
Страница 410: ...Chapter 22 Port 5...
Страница 426: ...Chapter 23 Melody Driver...
Страница 439: ...Chapter 24 RC Oscillation type A D Converter RC ADC...
Страница 462: ...Chapter 25 Successive Approximation Type A D Converter SA ADC...
Страница 479: ...Chapter 26 Analog Comparator...
Страница 489: ...Chapter 27 Flash Memory Control...
Страница 505: ...Chapter 28 Voltage Level Supervisor VLS...
Страница 517: ...Chapter 29 LLD circuit...
Страница 519: ...Chapter 30 On Chip Debug Function...
Страница 522: ...Appendixes...
Страница 552: ...Revision History...