
12-4
ML63326 User's Manual
Chapter 12 Melody Driver (MELODY63K)
12.4 Melody Circuit Operation
After the melody tempo is set in the tempo register (TEMP), execution of an MSA instruction
will start operation of the melody circuit.
The melody circuit outputs melody data while automatically reading melody data in ROM
(program memory) as specified by an MSA instruction. When the last melody data is read
(END bit is "1"), the melody circuit generates a melody end interrupt request. At this time, if
an MSA instruction is executed, after the last melody data is output, melody output will
continue from the melody data specified by the MSA instruction. If an MSA instruction is not
executed, the melody output will stop after the last melody data is output.
MSF (bit 3 of MDCON) is a flag indicating the melody output status. When MSF is "1", the
melody is being output, and when "0", the melody is stopped. Setting MSF to "0" during
melody output stops the melody output forcibly. To stop melody output forcibly, describe the
program in accordance with the description provided in the Note on page 12-3. If forcibly
stopped, the melody output cannot be restarted from the address at which it was stopped.
bit 1, 0: MBM1, MBM0
These bits select the buzzer output mode.
Output of two types of intermittent tones, a single tone or a continuous tone can
be selected.
At system reset, MBM1 and MBM0 are cleared to "0", selecting output of
intermittent tone 1.
Buzzer output mode
Waveform
Intermittent tone 1
Intermittent tone waveform synchronized to 8 Hz
output of time base counter
Intermittent tone 2
Intermittent tone waveform synchronized to the logical
AND of 8 Hz signal output and a "L" level of 1 Hz
signal output of the time base counter
Single tone
Single tone waveform beginning when EMBD is set
to "1" until second falling edge of 32 Hz output of time
base counter
Continuous tone
Continuous tone waveform that is constant while
EMBD is "1"
Figure 12-2 shows the output waveforms of the melody driver output pins.
Cycle specified by tone code
MD output
MDB output
Output state
No output state
Output state
Figure 12-2 Output Waveforms of Melody Driver Output Pins
Summary of Contents for ML63326
Page 3: ......
Page 13: ......
Page 14: ...Chapter 1 Overview 1 ...
Page 15: ......
Page 37: ...1 22 ML63326 User s Manual Chapter 1 Overview ...
Page 38: ...Chapter 2 CPU and Memory Spaces 2 ...
Page 39: ......
Page 50: ...CPU Control Functions Chapter 3 3 ...
Page 51: ......
Page 57: ...3 6 ML63326 User s Manual Chapter 3 CPU Control Functions ...
Page 58: ...Interrupt INT326 Chapter 4 4 ...
Page 59: ......
Page 71: ...4 12 ML63326 User s Manual Chapter 4 Interrupt INT326 ...
Page 72: ...Clock Generator Circuit OSC Chapter 5 5 ...
Page 73: ......
Page 83: ...5 10 ML63326 User s Manual Chapter 5 Clock Generator Circuit OSC ...
Page 84: ...Time Base Counter TBC Chapter 6 6 ...
Page 85: ......
Page 90: ...Timers TIMER Chapter 7 7 ...
Page 91: ......
Page 115: ...7 24 ML63326 User s Manual Chapter 7 Timers TIMER ...
Page 116: ...Chapter 8 8 100 Hz Timer Counter 100HzTC ...
Page 117: ......
Page 121: ...8 4 ML63326 User s Manual Chapter 8 100 Hz Timer Counter 100HzTC ...
Page 122: ...Chapter 9 9 Watchdog Timer WDT ...
Page 123: ......
Page 128: ...Chapter 10 10 Ports INPUT OUTPUT I O PORT ...
Page 129: ......
Page 170: ...Chapter 11 11 External Memory Transfer Function EXTMEM ...
Page 171: ......
Page 179: ...11 8 ML63326 User s Manual Chapter 11 External Memory Transfer Function EXTMEM ...
Page 180: ...Chapter 12 12 Melody Driver MELODY63K ...
Page 181: ......
Page 195: ...12 14 ML63326 User s Manual Chapter 12 Melody Driver MELODY63K ...
Page 196: ...13 Chapter 13 Voice Synthesis ...
Page 197: ......
Page 228: ...14 Chapter 14 Shift Register SFT ...
Page 229: ......
Page 236: ...15 Chapter 15 LCD Driver LCD ...
Page 237: ......
Page 250: ...16 Chapter 16 Battery Low Detect Circuit BLD ...
Page 251: ......
Page 255: ...16 4 ML63326 User s Manual Chapter 16 Battery Low Detect Circuit BLD ...
Page 256: ...Chapter 17 17 Power Supply Circuit POWER ...
Page 257: ......
Page 260: ...Appendixes ...
Page 261: ......
Page 321: ...Appendix 60 ML63326 User s Manual Appendix G ...