SN8P1700
8-bit micro-controller build-in 12-bit ADC
I/O PORT DATA REGISTER
P0 initial value = xxxx x000
0D0H
P0
Bit 7
-
-
Bit 6
-
-
Bit 5
-
-
Bit 4
-
-
Bit 3
-
-
Bit 2
P02
R
Bit 1
P01
R
Bit 0
P00
R
P1 initial value = xx00 0000
0D1H
P1
Bit 7
-
-
Bit 6
-
-
Bit 5
P15
R/W
Bit 4
P14
R/W
Bit 3
P13
R/W
Bit 2
P12
R/W
Bit 1
P11
R/W
Bit 0
P10
R/W
P2 initial value = 0000 0000
0D2H
P2
Bit 7
P27
R/W
Bit 6
P26
R/W
Bit 5
P25
R/W
Bit 4
P24
R/W
Bit 3
P23
R/W
Bit 2
P22
R/W
Bit 1
P21
R/W
Bit 0
P20
R/W
P4 initial value = 0000 0000
0D4H
P4
Bit 7
P47
R/W
Bit 6
P46
R/W
Bit 5
P45
R/W
Bit 4
P44
R/W
Bit 3
P43
R/W
Bit 2
P42
R/W
Bit 1
P41
R/W
Bit 0
P40
R/W
P5 initial value = 0000 0000
0D5H
P5
Bit 7
P57
R/W
Bit 6
P56
R/W
Bit 5
P55
R/W
Bit 4
P54
R/W
Bit 3
P53
R/W
Bit 2
P52
R/W
Bit 1
P51
R/W
Bit 0
P50
R/W
ꢃExample: Read data from input port.
B0MOV
B0MOV
B0MOV
B0MOV
B0MOV
A, P0
A, P1
A, P2
A, P4
A, P5
; Read data from Port 0
; Read data from Port 1
; Read data from Port 2
; Read data from Port 4
; 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
B0MOV
B0MOV
B0MOV
P1, A
P2, A
P4, A
P5, A
SONiX TECHNOLOGY CO., LTD
Page 119
Revision 1.94