Q-Code User Manual
Ver. 7.0 2021/11/30
152
4.3.48 Px.n = XiL.n
Assign the n
th
bit of XiL to the n
th
bit of Px.
Ex.
PB=0x0, X0=0x5, PB.2=X0L.0
; PB = 0x4
4.3.49 Px.n = XiH.n
Assign the n
th
bit of XiH to the n
th
pin of Px.
Ex.
PB=0x0, X0=0x50, PB.2=X0H.0
; PB = 0x4
4.3.50 Px.n = Xi.n
Assign the n
th
bit of Xi to the n
th
pin of Px.
Ex.
PB=0x0, X0=0x5, PB.2=X0.0
; PB = 0x4
4.3.51 [Px, Py] = Xi
Assign the output value of Px to be the high-nibble of Xi; Assign the output value of Py to be the
low-nibble of Xi.
Note: NX1 does not support this command.
Ex.
X0H=0x3, X0L=0x1, [PB, PA]=X0
; PB = 0x3, PA = 0x1
4.4 Path Command
Path Command
-
4.4.1 ASM
User can insert assembly language module defined in
[ASM]
in
Q-Code
program
.
Note: NX1 do not support this command.
Ex.
Use ASM to control IC.
[ASM]
LED
{
mvla b’0101’
mpg
pa_page