
3802 GROUP USER’S MANUAL
3-33
APPENDIX
3.5 List of registers
3.5 List of registers
Fig. 3.5.2 Structure of Port Pi direction register (i = 0, 1, 2, 3, 4, 5, 6)
Fig. 3.5.1 Structure of Port Pi (i = 0, 1, 2, 3, 4, 5, 6)
Port Pi direction register
b7 b6 b5 b4 b3 b2 b1 b0
B
0
Function
At reset
R W
0
1
2
3
4
5
6
7
Name
Port Pi
direction register
0
0
0
0
0
0
0
Port Pi direction register (PiD) (i = 0, 1, 2, 3, 4, 5, 6)
[Address : 01
16
, 03
16
, 05
16
, 07
16
, 09
16
, 0B
16
, 0D
16
]
0 : Port Pi
0
input mode
1 : Port Pi
0
output mode
0 : Port Pi
1
input mode
1 : Port Pi
1
output mode
0 : Port Pi
2
input mode
1 : Port Pi
2
output mode
0 : Port Pi
3
input mode
1 : Port Pi
3
output mode
0 : Port Pi
4
input mode
1 : Port Pi
4
output mode
0 : Port Pi
5
input mode
1 : Port Pi
5
output mode
0 : Port Pi
6
input mode
1 : Port Pi
6
output mode
0 : Port Pi
7
input mode
1 : Port Pi
7
output mode
Port Pi
b7 b6 b5 b4 b3 b2 b1 b0
B
0
Function
At reset
R W
1
2
3
4
5
6
7
Name
Port Pi
0
Port Pi
1
Port Pi
2
Port Pi
3
Port Pi
4
Port Pi
5
Port Pi
6
Port Pi
7
In output mode
Write
Read
In input mode
Write : Port latch
Read : Value of pins
G
Port latch
G
Port Pi (Pi) (i = 0, 1, 2, 3, 4, 5, 6)
[Address : 00
16
, 02
16
, 04
16
, 06
16
, 08
16
, 0A
16
, 0C
16
]