SN8P275X Series
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 78
Version 0.7
¾
Example: I/O mode selecting
CLR
P0M
; Set all ports to be input mode.
CLR
P4M
CLR
P5M
MOV
A, #0FFH
; Set all ports to be output mode.
B0MOV
P0M,
A
B0MOV
P4M,A
B0MOV
P5M,
A
B0BCLR
P4M.0
; Set P4.0 to be input mode.
B0BSET
P4M.0
; Set P4.0 to be output mode.