Q-Code User Manual
Ver. 7.0 2021/11/30
146
4.3.7 PxM.n = 1
Set the n
th
pin of Port to input mode.
Note: NY5 does not support this command.
Ex.
PBM.0=1
; PB.0 as input.
4.3.8 Px = data
Assign data to Px as output value.
Ex.
PB=0x5
; PB=0x5
4.3.9 Px = Ri
Assign Ri to Px as output value.
Ex.
R0=0x3, PB=R0
; PB=0x3
4.3.10 Px = Py
Assign the value of Py to Px as output value.
Ex.
PB=0x3, PA=PB
; PA=0x3
4.3.11 !Px
Invert to value of Px.
Ex.
PB=0x3, !PB
; PB=0xC
4.3.12 !Px.n
Invert the value of n
th
pin of Px.
Ex.
PB=0x3, !PB.0
; PB=0x2
4.3.13 Px.n = 0
Set the value of n
th
pin of Px to be 0.
Ex.
PB=0xD, PB.3=0
; PB=0x5
4.3.14 Px.n = 1
Set the value of n
th
pin of Px to be 1.
Ex.
PB=0x5, PB.3=1
; PB=0xD