
W5280
Publication Release Date: March 1996
- 5 -
Revision A2
1. LOAD (LD) Command:
LD R0, value: This instruction is used to load a voice-group entry value into register R0. The voice-
group entry value may range from 0 to 255. The initial value of the R0 register is "00000000."
LD EN, operand: This instruction is used to define the trigger interrupt settings by loading the operand
message into register EN. The initial value of the EN register is "11111111."
a. The operand is an 8-bit value that can be entered in decimal (default) or hexadecimal (with
"0x" as a prefix).
b. EN is an 8-bit register that is used to enable/disable the rising/falling edge of each of the four
trigger inputs.
The 8 bits correspond to the rising/falling edges of the triggers as shown below:
Bit:
7
6
5
4
3
2
1
0
TG:
4R
3R
2R
1R
4F
3F
2F
1F
where "nR/F" represents the rising/falling edge of the n-th trigger pin.
c. When any one of the eight bits is set to "1" (default), the corresponding trigger will interrupt
the current state at the edge indicated. When the bits are set to "0," the triggers will be
disabled.
d. The voice group entry addresses correspond to the interrupt vectors as follows:
TG:
4R
3R
2R
1R
4F
3F
2F
1F
Group:
7
6
5
4
3
2
1
0
EXAMPLE:
The instruction "LD EN, 0x41" is programmed.
EXPLANATION:
a. "41" is a hexadecimal value equal to the binary value "0100 0001."
b. These 8 bits of data represent the following trigger interrupt settings:
TG:
4R
3R
2R
1R
4F
3F
2F
1F
Bit
0
1
0
0
0
0
0
1
RESULT:
a. When the rising edge of TG3 (3R) is activated, the EN register will cause TG3 to interrupt the
current playing state and jump immediately to voice group 6, the voice group that corresponds
to 3R.
b. When the falling edge of TG1 (1F) goes active, the EN register will cause TG1 to interrupt the
current playing state and jump immediately to voice group 0, the voice group that corresponds
to 1F.