
NY6 User Manual
Ver 1.3 2019/03/28
72
LDPR
Function : Load ROM address to the DPR (data
pointer) indexed by the CHNM register.
The ROM address should be loaded in
RPT firstly.
Operation : DPR [CHNO]
← RPT
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x2
CHNO
MVLA 0x0
MVAM RPT0
MVLA
0x9
MVAM RPT1
MVLA
0x3
MVAM RPT2
MVLA
0xD
MVAM RPT3
MVLA
0x1
MVAM RPT4
MVLA
0x0
MVAM RPT5
LDPR
Before Instruction
DPR [0x2]= 0xXXXXX
After Instruction
DPR [0x2]= 0x01D390
LDPH
Function : Load PH value to the channel indexed by
the CHNM register. The PH value should
be loaded in RPT[11:0] firstly.
Operation : PH[CHNM]
← RPT[11:0]
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x4
CHNO
MVLA 0x4
MVAM RPT0
MVLA
0x3
MVAM RPT1
MVLA
0x2
MVAM RPT2
LDPH
Before Instruction
PH [0x4]= 0xXXXX
After Instruction
PH[0x4]= 0x234