SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 70
Revision 1.93
P1M – Port 1 Input/Output Direction Register
SN8P1702
Register Name
P1M
Address 0C1H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
0 0 0 0 0 0
P11M
P10M
Read/Write
- - - - - -
R/W
R/W
Initial
Value
- - - - - - 0 0
Bit2~Bit7
0
Always write zero
P11M,P10M
Bit 4~Bit0 of Port 1 Input/Output Direction Control Bit
0
Set P1.1~P1.0 to input direction.
1
Set P1.1~P1.0 to output direction.
Example :
Mov
a,#01h
B0mov
p1m,a
; Set the p1.0 as output pin and the p1.1 as intput pin.
B0bset
fp10m
; set the p1.0 as output pin by the bit set instruction.
SN8P1704
Register Name
P1M
Address 0C1H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
0
0
0
P14M P13M P12M P11M P10M
Read/Write
- - -
R/W R/W R/W R/W R/W
Initial
Value
- - - - - - - -
Bit5~Bit7
0
Always write zero.
P14M~P10M
Bit 4~Bit0 of Port 1 Input/Output Direction Control Bit
0
Set P1.4~P1.0 to input direction.
1
Set P1.4~P1.0 to output direction.
SN8P1706/SN8P1707/SN8P1708
Register Name
P1M
Address 0C1H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name
0
0
P15M P14M P13M P12M P11M P10M
Read/Write -
- R/W R/W R/W R/W R/W R/W
Initial
Value
- - 0 0 0 0 0 0
Bit6,Bit7
-
Always write zero.
P15M~P10M
Bit 5~Bit0 of Port 1 Input/Output Direction Control Bit
0
Set P1.5~P1.0 to input direction.
1
Set P1.5~P1.0 to output direction.