Specifications

II-66 EPSON S1C62N82 TECHNICAL SOFTWARE
CHAPTER 3: PERIPHERAL CIRCUITS (Melody Generator)
Volume: 00H–1FH (32 words)
Word: 8 bits/word
Address 1FH is set to a rest note. The data contained is not
connected with the scale. The scale may be selected accord-
ing to the definition of the scale ROM address, which is
defined by melody ROM data D5–D1. The scale data defini-
tion is as the table on the next page. The user has the
choice of 31 types of scale from this table.
Melody ROM
(D5D1) Scale ROM data C major
00H 04H C4 (Do)
01H 20H D4 (Re)
02H 3BH E4 (Mi)
03H 44H F4 (Fa)
::
1EH C4H C6 (Do)
1FH FFH Rest
For level hold
Label Mnemonic/operand Comment
ORG 10AH
PSET 004H
JP 000H
:
LD A,00H ;Set counter (melody point)
LD M0,A
LD X,0F0H ;Set first melody address (00)
LD MX,00H
INC X
LD MX,00H
LD X,0F4H ;Enable melody output
AND MX,0111B
LD Y,0F2H ;Start melody with TEMPC0
LD MY,01H
LD X,0F0H ;Set second melody address (06)
Scale ROM
Examples of
melody control
program