SN8P1600
8-bit micro-controller
ꢃ
ꢃ
ꢃ
Example: Read data from input port.
B0MOV
B0MOV
B0MOV
A, P0
A, P1
A, P2
; Read data from Port 0
; Read data from Port 1
; Read data from Port 2
Example: Write data to output port.
MOV
B0MOV
B0MOV
A, #55H
P1, A
P2, A
; Write data 55H to Port 1 and Port 2
Example: Write one bit data to output port.
B0BSET
B0BSET
P1.3
P2.5
; Set P1.3 and P2.5 to be “1”.
; Set P1.3 and P2.5 to be “0”.
B0BCLR
B0BCLR
P1.3
P2.5
ꢃ
Example: Port bit test.
B0BTS1
.
B0BTS0
.
P0.0
P1.2
; Bit test 1 for P0.0
; Bit test 0 for P1.2
SONiX TECHNOLOGY CO., LTD
Page 75
Revision 1.94