ML63611 User’s Manual
Chapter 11 Melody Driver (MELODY)
11 – 3
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
bit 3: MSF
This flag indicates the melody output status.
When an MSA instruction starts the melody, MSF is set to “1”. After output of the last melody
data (END bit is “1”), MSF is cleared to “0”.
Setting MSF to “0” during melody output will forcibly stop the melody output. If forcibly stopped,
the melody output cannot be restarted at the address at which it was stopped.
At system reset, MSF is cleared to “0”.
Note:
If MSF (bit 3 of MDCON) is set to “0” to stop melody output forcibly, it is required to set the stop address on the
ROM table to the end-data address (8000H). In this case, set MSF to “0” after writing the melody end data
that consists of two words of melody (silence with the END bit being “1”) data. If this programming is not
executed, melody output may not be stopped even if MSF is set to “0”. Example programming is shown
below.
;*Program part***********
DI
; 0. Disable master interrupt (MIE).
MSA
MDSTOP_DATA
; 1. Write melody end data to the melody circuit.
MOV
A, #0
; 2. Set the MSF to “0”.
MOV
MDCON,A
;
MOV
A, #1101b
; 3. Clear melody end interrupt request (QMD).
AND
IRQ0, A
;
EI
; 4. Enable master interrupt (MIE).
;*ROM table data part****
;*Provide two words of melody data so that a melody will always be terminated even if a melody
;*request is issued twice.
MDSTOP_DATA:
DW
8000H
; Silence data 1
DW
8000H
; Silence data 2
;************************
In the Dr.63611 In-Circuit Emulator, melody output will be stopped only by setting MSF to “0”; writing melody
end data is not needed.
bit 2: EMBD
This bit turns the buzzer output ON or OFF.
At system reset, EMBD is cleared to “0” and buzzer output is turned OFF.
In the single tone output mode, setting EMBD to “1” turns ON the buzzer output. After the
second falling edge of the 32 Hz output, EMBD is cleared to “0” and buzzer output is turned OFF.
If melody output is started during buzzer output, EMBD is cleared to “0” and the buzzer output is
turned OFF.
!
Summary of Contents for ML63611
Page 9: ...Chapter 1 Overview...
Page 33: ...Chapter 2 CPU and Memory Spaces...
Page 42: ...Chapter 3 CPU Control Functions...
Page 49: ...Chapter 4 Interrupt INT...
Page 62: ...Chapter 5 Clock Generator Circuit OSC...
Page 71: ...Chapter 6 Time Base Counter TBC...
Page 75: ...Chapter 7 Timers TIMER...
Page 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Page 103: ...Chapter 9 Watchdog Timer WDT...
Page 108: ...Chapter 10 Ports INPUT I O PORT...
Page 140: ...Chapter 11 Melody Driver MELODY...
Page 152: ...Chapter 12 Serial Port SIO...
Page 179: ...Chapter 13 LCD Driver LCD...
Page 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Page 204: ...Chapter 15 Power Supply Circuit POWER...
Page 215: ...Chapter 16 A D Converter ADC...
Page 238: ...Appendixes...