CHAPTER 11: MELODY ASSEMBLER

11.4 Melody Data

11.4.1 Outline of Melody Data

To produce music or sound effects with the melody generator of the S1C63xxx, the following four data must be created:

(1)Tempo data

Two types of tempo settings are available for a piece of music. They can be selected from 16 types of tempos.

(2)Main data
a)Control bitsb)Note datac)Interval datad)Jump bite)Tempo

Attack (for separating notes), rest and the end of melody are specified. Eight types of notes are available.

The range differs according to the reference frequency (38.4 kHz or 32.768 kHz). Used to repeat a phrase and to change the flow.

Either one of the tempo data (1) can be selected.
(3)Control data

The jump destinations (main data numbers) from the main data in which the jump bit is set are described here.

(4)Option dataThe hardware option specifications for melody output are set.

11.4.2 Melody Data Creation Procedure

The following flowchart shows the melody data creation procedure.

START

Write a score.

Create a melody data from the score.

Execute the melody assembler to generate melody ROM option HEX and document data.

Execute the function option generator (winfog)

to create a function option HEX data.

Create the program for

controlling the melody generator.

Start up the db63 and the ICE and then load the program, function option HEX data and melody ROM option HEX data to the ICE.

Evaluation and debugging

NoOK?

Yes

END

Fig. 11.4.2.1 Melody Data Creation Procedure

S5U1C63000A MANUAL

EPSON

269

(S1C63 FAMILY ASSEMBLER PACKAGE)