Specifications

II-60 EPSON S1C62N82 TECHNICAL SOFTWARE
CHAPTER 3: PERIPHERAL CIRCUITS (Melody Generator)
(3) Retrigger play
In this mode, the melody can be stopped anywhere dur-
ing playing, and it can be set to any another melody. The
control procedure is as follows:
With this function, the user can force the melody to stop
if there is a rest note with the End data = "1" in the
melody ROM (See melody ROM data setting).
MELC
MO Melody 1
Melody 1 stopped mid-way Interrupt generate by END data setting
Melody n
Fig. 3.11.4
Control procedure of
retriggrer play mode
Set melody n address
Set MELC bit to "1"
Set MELC bit to "0"
Jump to
melody subroutine
Melody n end
interrupt
10AH
Melody subroutine
EI
RET
Set MELD bit to "0"
Set MELC bit to "1"
Set MELC bit to "0"
Enable interrupt
Mid-way of
melody 1
Start of
melody n
Set melody address