Technical information
APPLICATION
2.1 I/O port
2-3
3800 GROUP USER’S MANUAL
2.1.2 Related registers
Fig. 2.1.2 Structure of Port Pi (i = 0, 1, 2, 3, 4, 5, 6, 7)
Port Pi
b7 b6 b5 b4 b3 b2 b1 b0
B
Function
At reset
RW
0
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
●
Port latch
In input mode
Write : Port latch
Read : Value of pins
●
?
?
?
?
?
?
?
?
Port Pi (Pi) (i = 0, 1, 2, 3, 4, 5, 6, 7)
[Address : 00
16
, 02
16
, 04
16
, 06
16
, 08
16
, 0A
16
, 0C
16
, 0E
16
]
Note :
(Note)
Port P7 register [Address : 0E
16
]
Port P7 is a 2-bit port (P7
0
, P7
1
). Accordingly, when bits 2 to 7 are read
out, the contents are “0.”
Fig. 2.1.3 Structure of Port Pi direction register (i = 0, 1, 2, 3, 4, 5, 6, 7)
Port Pi direction register
b7 b6 b5 b4 b3 b2 b1 b0
B
Function
At reset
RW
0
1
2
3
4
5
6
7
Name
Port Pi direction register
0
0
0
0
0
0
0
0
Port Pi direction register (PiD) (i =0, 1, 2, 3, 4, 5, 6, 7)
[Address : 01
16, 0316, 0516, 0716, 0916, 0B16, 0D16, 0F16]
0 : Port Pi0 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
✕
✕
✕
✕
✕
✕
✕
✕
Note :
(Note)
Port P7 direction register [Address : 0F
16]
Port P7 is a 2-bit port (P7
0, P71). Accordingly, these bits do not have a
direction register function.
(Note)
(Note)
(Note)
(Note)
(Note)