English
Language : 

M38002M4 Datasheet, PDF (130/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPENDIX
3.5 List of registers
3.5 List of registers
Port Pi
b7 b6 b5 b4 b3 b2 b1 b0
Port Pi (Pi) (i = 0, 1, 2, 3, 4, 5, 6, 7)
[Address : 0016, 0216, 0416, 0616, 0816, 0A16, 0C16, 0E16]
B
Name
Function
0 Port Pi0
1 Port Pi1
q In output mode
Write
Read
Port latch
2 Port Pi2
3 Port Pi3
q In input mode
Write : Port latch
Read : Value of pins
(Note)
4 Port Pi4
At reset R W
?
?
?
?
?
5 Port Pi5
?
6 Port Pi6
?
7 Port Pi7
?
Note : Port P7 register [Address : 0E16]
Port P7 is a 2-bit port (P70, P71). Accordingly, when bits 2 to 7 are read
out, the contents are “0.”
Fig. 3.5.1 Structure of Port Pi (i = 0, 1, 2, 3, 4, 5, 6, 7)
Port Pi direction register
b7 b6 b5 b4 b3 b2 b1 b0
Port Pi direction register (PiD) (i =0, 1, 2, 3, 4, 5, 6, 7)
[Address : 0116, 0316, 0516, 0716, 0916, 0B16, 0D16, 0F16]
B
Name
Function
At reset R W
0 Port Pi direction register
1
0 : Port Pi0 input mode
1 : Port Pi0 output mode
0 : Port Pi1 input mode
1 : Port Pi1 output mode
0!
0!
2
0 : Port Pi2 input mode
0!
1 : Port Pi2 output mode (Note)
3
0 : Port Pi3 input mode
0!
1 : Port Pi3 output mode (Note)
4
0 : Port Pi4 input mode
0!
1 : Port Pi4 output mode (Note)
5
0 : Port Pi5 input mode
0!
1 : Port Pi5 output mode (Note)
6
0 : Port Pi6 input mode
0!
1 : Port Pi6 output mode (Note)
7
0 : Port Pi7 input mode
0!
1 : Port Pi7 output mode (Note)
Note : Port P7 direction register [Address : 0F16]
Port P7 is a 2-bit port (P70, P71). Accordingly, these bits do not have a
direction register function.
Fig. 3.5.2 Structure of Port Pi direction register (i = 0, 1, 2, 3, 4, 5, 6, 7)
3-28
3800 GROUP USER’S MANUAL