
12-13
ML63326 User's Manual
Chapter 12 Melody Driver (MELODY63K)
12
12.7 Differences with Voice Synthesis Section Melody/Buzzer Output
While the ML63326 has melody drivers built into the microcontroller section and the voice
synthesis section, the driving methods are different in these two sections.
The differences in the melody outputs of the microcontroller section and the voice synthesis
section are shown in Table 12-6 and the differences in the buzzer outputs are shown in Table
12-7. Further, see Chapter 13, "Voice Synthesis" for details of the melody/buzzer outputs of
the voice synthesis section.
Table 12-6 Differences in the Melody Outputs of the Microcontroller Section and the
Voice Synthesis Section
Microcontroller section
Voice synthesis section
Item
Execute the MSA instruction.
Set the phrase address in P2D and P3D, and
transfer it to the voice synthesis section.
Start of melody
Not necessary. Automatic sound production
is made until the last melody data is played
completely.
Same as at left.
Preparation of
the next sound
and termination
of melody
Set MSF (bit 3 of MDCON) to "0".
Set the stop code in P2D and P3D, and
transfer it to the voice synthesis section.
Forced
termination of
melody
Set MSF (bit 3 of MDCON) to "1".
(Starts with the sound next to the one that
was forcibly terminated earlier.)
Not possible.
Forced starting
of melody
The melody interrupt (MDINT) is generated
after reading the last melody data into the
melody section.
The voice output interrupt (VOINT) is generated
when the transfer of one phrase address is
completed and the transfer of the next
phrase address is enabled.
Interrupt
The melody output state can be monitored
using MSF (bit 3 of MDCON).
It is possible to recognize the reading in of
the final data by the generation of the
interrupt (MDINT).
The melody output state can be monitored
using P10 (bit 0 of P1D).
Judgment of whether or not the next sound
can be set is made using P11 (bit 1 of P1D).
The generation of the interrupt (VOINT) is
used for judging whether the next sound can
be set.
Control method
as seen from
the CPU
Table 12-7 Differences in the Buzzer Outputs of the Microcontroller Section and the
Voice Synthesis Section
Microcontroller section
Voice synthesis section
Item
Set EMBD (bit 1 of MDCON) to "1".
Set the phrase address in P2D and P3D, and
transfer it to the voice synthesis section.
Buzzer start
Set EMBD (bit 1 of MDCON) to "0"
(excepting during the single tone mode).
Set the stop code in P2D and P3D, and
transfer it to the voice synthesis section.
Buzzer stop
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 ...