Syntax:
voice_file/compression_method
melody_file
tone_file
The source audio files must be included in your Easy program. The audio files include the voice files
with the extended name .PCM or .WAV, the melody files with .MID or .MLD format and the tone files
with Holtek s .HT8 format. The compression methods of voice files have three options such as -law
PCM, PCM8 and AD4.
Example:
voice1.wav/pcm8
; #0 voice files declaration
voice2.pcm/ad4
; #1
melody1.mid
; #2 melody files declaration
melody2.mld
; #3
tone1.ht8
; #4 tone files declaration
Stereo/Mono:
The audio output selection. If the audio output is declared as Stereo , the channel
1 voice will output via AUD1 and the channel 2 voice will output via AUD2. If the
audiooutputisdeclaredas Mono ,thechannel1andchannel2voiceswillmixedly
output via AUD1 and AUD2 is invalid. The default declaration is Mono . The au-
dio file compressed by AD4 cannot output through channel 2. If the melody file out-
putsthroughchannel2,themelodyfilecannotincludeanychannel1instructions.
Input states declaration
Syntax:
INPUT STATES
;
TRn
....
statename:
[rising_edge_path][/falling_edge_path]
....
Thebracket[ ]isdenotedasoptionalexistence.Ifthepathisassignedas X ,theinputtriggersignal
is ignored. Unassigned trigger paths will automatically be assigned as X . When TRn detects a ris-
ingedgeorafallingedgesignal,thepathnameoftherisingedgepathorfallingedgepathwillbeexe-
cuted. The statename and path label can be any name defined by the user. The / denotes the falling
edge path. The maximum number of statename are 256 and the maximum number of different pathname
are 128.
Example:
INPUT STATES
; input states declaration
;
TR1
TR2
TR3
Run:
P12Start
/P13Stop
P14Go/P15Pause
where Run denotes the input statename and P12Start , /P13Stop , P14Go and /P15Pause are
all pathnames. When a rising edge signal triggers the TR1, then the path of P12Start will be exe-
cuted. And if a falling edge signal triggers the TR1, then the signal is ignored, etc.
HT84XXX
19
April 26, 2000