Specifications

S1C62N82 TECHNICAL SOFTWARE EPSON II-59
CHAPTER 3: PERIPHERAL CIRCUITS (Melody Generator)
(2) Level hold
In this mode, after one melody has been played, the user
can change the next play to any other melody. If there is
no change, the melody is played repeatedly. The control
procedure is as follows:
Fig. 3.11.3
Control procedure of level
hold mode
MELC
MO Melody 1
Interrupt generate
Melody 2 Melody N - 1 Melody N
Set melody1 address
Set MELC bit to "1"
Set melody 2 address
Enable interrupt
Jump to
melody subroutine
Melody 1 end
interrupt
10AH
INC n
Set MELC bit to "0"
Read interrupt factor
flag to clear
Set MELD bit to "0"
Melody 2 end
interrupt
Melody 3 end
interrupt
Melody 4 end
interrupt
n = ?
n = N - 1
Set melody 3 address
Select tempo
n = 1
EI
RET
Set melody 4 address
Select tempo
n = 2 N
Set counter n = 0