SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 72
Revision 1.93
P4M – Port 4 Input/Output Direction Register
Register Name
P4M
Address 0C4H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name P47M P46M P45M P44M P43M P42M P41M P40M
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial
Value
0 0 0 0 0 0 0 0
P47M~P40M
Bit 7~Bit0 of Port 4 Input/Output Direction Control Bit
0
Set P4.7~P4.0 to input direction.
1
Set P4.7~P4.0 to output direction.