SN8P1700
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 86
Revision 1.93
P2 – Port 2 Data Register
Register Name
P2
Address 0D2H
Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit’s
Name P27 P26 P25 P24 P23 P22 P21 P20
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
P20~P27
P2.0 ~ P2.7 Data Buffer
0
Data
0.
1
Data
1.
Note: In input direction, the read instructions get P2 data from external condition and the write
instructions put data into the latch buffer of P2. In output direction, the read and write instructions
access P2 data through P2 latch buffer.