Q-Code User Manual
Ver. 7.0 2021/11/30
151
4.3.40 XiL = Px
Keep the value of Px in the low-nibble of Xi.
Ex.
PB=0x5, X0L = PB
; X0L = 0x5
4.3.41 XiH = Px
Keep the value of Px in the high-nibble of Xi.
Ex.
PB=0x5, X0H = PB
; X0H = 0x5
4.3.42 XiL.n = Px.n
Assign the n
th
pin value of Px to the n
th
bit of XiL.
Ex.
PB=0x5, X0=0x0, X0L.2 = PB.0
; X0L = 0x4
4.3.43 XiH.n = Px.n
Assign the n
th
pin value of Px to the n
th
bit of XiH.
Ex.
PB=0x5, X0=0x0, X0H.2 = PB.0
; XiH = 0x4
4.3.44 Xi.n = Px.n
Assign the n
th
pin value of Px to the n
th
bit of Xi.
Ex.
PB=0x5, X0=0x0, X0.2 = PB.0
; X0 = 0x4
4.3.45 Xi = [Px, Py]
Keep the value of Px in the high-nibble of Xi, and keep the value of Py to the low-nibble of Xi.
Note: NX1 does not support this command.
Ex.
X0 = [PB, PA]
; X0H = PB, X0L = PA
4.3.46 Px = XiL
Assign the low-nibble of Xi to be the output value of Px.
Ex.
X0L=0x3, PB=X0L
; PB = 0x3
4.3.47 Px = XiH
Assign the high-nibble of Xi to be the output value of Px.
Ex.
X0H=0x3, PB=X0H
; PB = 0x3