SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 71
Revision 1.93
P2M – Port 2 Input/Output Direction Register
SN8P1706
Register Name
P2M
Address 0C2H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
0
0
0
P24M P23M P22M P21M P20M
Read/Write
- - -
R/W R/W R/W R/W R/W
Initial
Value
- - - 0 0 0 0 0
Bit5~Bit7
0
Always write zero
P24M~P20M
Bit 4~Bit0 of Port 2 Input/Output Direction Control Bit
0
Set P2.4~P2.0 to input direction.
1
Set P2.4~P2.0 to output direction.
SN8P1707/SN8P1708
Register Name
P2M
Address 0C2H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name P27M P26M P25M P24M P23M P22M P21M P20M
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
P27M~P20M
Bit 7~Bit0 of Port 2 Input/Output Direction Control Bit
0
Set P2.7~P2.0 to input direction.
1
Set P2.7~P2.0 to output direction.