
13-28
ML63326 User's Manual
Chapter 13 Voice Synthesis
13.10.1 Buzzer Output Procedure
Follow the procedure below when making a buzzer output.
q
Set which pin to use for the output among DACOUT/AOUT and MD/MDB.
• Set PD1DIR and PD0DIR (bit 1 and bit 0 of PDDIR) to "1".
• When outputting at MD/MDB: Set PD1 and PD0 (bit 1 and bit 0 of PDD) to "1".
• When outputting at DACOUT/AOUT: Set PD1 to "1" and PD0 to "0".
w
Select voice synthesis/external memory transfer instruction.
• Set P82DIR (bit 2 of P8DIR) to "1".
• Set P82 (bit 2 of P8D) to "0".
e
Select the internal voice ROM or the external memory.
• Set P83DIR (bit 3 of P8DIR) to "1".
• When using the internal voice ROM: Set P83 (bit 3 of P8D) to "0".
• When using the external memory: Set P83 to "1".
r
Make the setting of PCDIR.
• Set PC2DIR, PC1DIR, and PC0DIR all to "1".
t
Set PC2 (bit 2 of PCD) to "1" (
CS
of the voice synthesis section is disabled).
y
Enable high-speed oscillation.
• For the crystal oscillation mode: Set bit 2 and bit 1 of FCON (062H) to "1".
• For the RC oscillation mode: Set bit 1 of FCON (062H) to "1".
Note: Wait for 10 ms for crystal oscillation and 5 ms for RC oscillation so that the high-speed
oscillation waveform becomes stable.
u
The contents of the program differ depending on the timing of inputting the stop code, etc.
When carrying out control using interrupts, make the necessary settings.
i
Set PC1 (bit 1 of PCD) to "1" (releasing the reset state of the voice synthesis section).
o
Set the phrase address in P3D and P2D. (P33 is the MSB and P20 is the LSB.)
!0
Set PC2 (bit 2 of PCD) to "0" (
CS
of the voice synthesis section is enabled).
!1
First set PC0 (bit 0 of PCD) to "1" and then set it to "0" (start of transfer).
The serial transfer of the phrase address is started.
!2
The buzzer sound is output.
!3
The buzzer output is terminated when the stop code is input.
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 ...