NY6 User Manual
Ver 1.3 2019/03/28
71
4.2.3 Audio Instructions
PLAY
Function : Play voice (Head wave) on the channel
indexed by the CHNM register. The voice
(Head wave) address should be loaded
in RPT firstly.
Operation : HVPR[CHNM]
← RPT
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example : MVLA
0x1
CHNO
MVLA 0x4
MVAM RPT0
MVLA
0x3
MVLM RPT1
MVLA 0x2
MVAM
RPT2
MVLA 0x0
MVAM RPT3
MVLA 0x1
MVAM RPT4
MVLA 0x0
MVAM RPT5
PLAY
Before Instruction
HVPR[0x1]= 0xXXXXX
After Instruction
HVPR[0x1]= 0x010234, PFLG[0x1]=1
LDSEC
Function : Load Tail wave address for the channel
indexed by the CHNM register. The Tail
wave address should be loaded in
TREG[19:0] firstly.
Operation : TVPR[CHNM]
← RPT
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x4
CHNO
MVLA 0x4
MVLR RPT0
MVLA 0x3
MVLR
RPT1
MVLA 0x2
MVLR
RPT2
MVLA 0x0
MVLR
RPT3
MVLA 0x1
MVLR
RPT4
MVLA 0x0
MVLR
RPT5
LDSEC
Before Instruction
TVPR[0x1]= 0xXXXXX
After Instruction
TVPR[0x1]= 0x010234
Note : The LDSEC instruction will stop playing
current voice first. Therefore, please
always put the LDSCE instruction before
the PLAY instruction while intending to
start a new voice playing. Don’t use
LDSEC in ramp-up/ ramp-down.