SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 93
V1.4
Â
Example: I/O mode selecting.
CLR
P2M
CLR
P4M
CLR
P5M
MOV
A, #0FFH
; Set all ports to be output mode.
B0MOV
P2M,
A
B0MOV
P4M,
A
B0MOV
P5M,
A
B0BCLR
P2M.5
; Set P2.5 to be input mode.
B0BSET
P2M.5
; Set P2.5 to be output mode.