SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 94
V1.4
10.4 I/O PORT DATA REGISTER
P0 initial value = xxxx xxxx
0D0H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P0
- - - -
P03
P02
P01
P00
- - - - R R R R
P2 initial value = xxxx xxxx
0D2H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P2
P27 P26 P25 P24 P23 P22 P21 P20
R/W R/W R/W R/W R/W R/W R/W R/W
P4 initial value = xxxx xxxx
0D4H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P4
P47 P46 P45 P44 P43 P42 P41 P40
R/W R/W R/W R/W R/W R/W R/W R/W
P5 initial value = xxxx xxxx
0D5H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
P5
P56 P55 P54 P53 P52 P51 P50
R/W R/W R/W R/W R/W R/W R/W
Â
Example: Read data from input port.
B0MOV
A, P0
; Read data from Port 0
B0MOV
A, P2
; Read data from Port 2
B0MOV
A, P4
; Read data from Port 4
B0MOV
A, P5
; Read data from Port 5
Â
Example: Write data to output port.
MOV
A, #55H
; Write data 55H to Port 1, Port2, Port 4, Port 5
B0MOV
P2,
A
B0MOV
P4,
A
B0MOV
P5,
A