Specifications

II-58 EPSON S1C62N82 TECHNICAL SOFTWARE
CHAPTER 3: PERIPHERAL CIRCUITS (Melody Generator)
(1) One shot
In this mode, only one melody is played.
The control procedure is as follow:
Play mode
Set melody address
Set MELD bit to "0"
Set MELC bit to "0"
Set melody interrupt
mask enable
Jump to
melody subroutine
Melody end
interrupt
10AH
Melody subroutine
Read interrupt flag
to clear
EI
RET
Set MELC bit to "1"
Fig. 3.11.2
Control procedure of
one shot mode
When the MELC bit is set to "1", it makes the melody
play. The user's program should set this bit to "0" before
the end bit from the melody ROM. If not, the function will
be like the level hold mode (see next function).
MELC
MO Playing
Interrupt generate by END data setting