
W528X
- 10 -
SOUND1 and SOUND2 are the *.WAM files of ADPCM converted voice data;
_FL is the section control setting, for which the parameters F and L are as follows:
F: Voice output frequency setting:
0 = 4 KHz, 1 = 4.8 KHz, 2 = 6 KHz, 3 = 8 KHz;
L: LED output setting:
1: ON
0: OFF; and
[1FFFF] is a period of silence of length 1FFFF;
H4, T4: Represent head and tail ADPCM files, respectively.
E. Programmable Power-on Initialization
Whenever the W528X is powered on, the program contained in the 32nd voice group will be executed
after the power-on delay (about 160 mS), so the user can write a program into this group to set the
power-on initial state. If the user does not wish to execute a program at power-on, an "END"
instruction should be entered in group 32. The W528X power-on initialization process can be
interrupted by trigger inputs.
F. Progamming Examples
This section presents several examples of how the functions of the W528X may be programmed.
Customer programs should be written in ASCII code using a text editor; after compiling, the sound
effects resulting from the programs can be tested using a Winbond demo board.
EXAMPLE1: Four playing mode settings:
a. One-Shot Trigger Mode
0: LD EN, 0x01 ; Enable TG1 falling edge input only.
H4 + sound1 + T4
END
The timing diagram for this example is shown below:
TG1:
TG1:
AUD:
AUD:
Sound 1
case 1:
case 2:
Sound 1
b.
0:
Level-Hold Trigger Mode
LD EN, 0x11
H4 + sound1 + T4
JP 0
; Enable TG1 rising/falling edge input.
; Repeat sound1 until TG1 key released.