SN8F2250B Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
7.3 I/O PORT DATA REGISTER
0D0H
P0
Read/Write
After reset
Bit 7
Bit 6
Bit 5
Bit 4
P04
R
Bit 3
P03
R/W
0
Bit 2
P02
R/W
0
Bit 1
P01
R/W
0
Bit 0
P00
R/W
0
-
-
-
-
-
-
-
-
-
0
0D1H
P1
Read/Write
After reset
Bit 7
P17
R/W
0
Bit 6
P16
R/W
0
Bit 5
P15
R/W
0
Bit 4
P14
R/W
0
Bit 3
P13
R/W
0
Bit 2
P12
R/W
0
Bit 1
P11
R/W
0
Bit 0
P10
R/W
0
0D2H
P2
Read/Write
After reset
Bit 7
Bit 6
Bit 5
P25
R/W
0
Bit 4
P24
R/W
0
Bit 3
P23
R/W
0
Bit 2
P22
R/W
0
Bit 1
P21
R/W
0
Bit 0
P20
R/W
0
-
-
-
-
-
-
0D5H
P5
Read/Write
After reset
Bit 7
Bit 6
Bit 5
Bit 4
P54
R/W
0
Bit 3
P53
R/W
0
Bit 2
P52
R/W
0
Bit 1
P51
R/W
0
Bit 0
P50
R/W
0
-
-
-
-
-
-
-
-
-
¾
Note: The P0.4 keeps “1” when external reset enable by code option.
Example: Read data from input port.
B0MOV
B0MOV
B0MOV
A, P0
A, P1
A, P5
; Read data from Port 0
; Read data from Port 1
; Read data from Port 5
¾
¾
Example: Write data to output port.
MOV
A, #0FFH
P0, A
P1, A
; Write data FFH to all Port.
B0MOV
B0MOV
B0MOV
P5, A
Example: Write one bit data to output port.
B0BSET
B0BSET
P1.3
P5.3
; Set P1.3 and P5.3 to be “1”.
; Set P1.3 and P5.3 to be “0”.
B0BCLR
B0BCLR
P1.3
P5.3
SONiX TECHNOLOGY CO., LTD
Page 72
Version 1.1