
Under
development
Specifications in this manual are tentative and subject to change
Rev. H
I/O Ports
MITSUBISHI MICROCOMPUTERS
M30222 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
1-176
Fig. 1.145. Direction register
Fig. 1.146. Port register
Bit symbol
Bit name
Function
R W
PDi_0
Port Pi 0 direction register
PDi_1
Port Pi 1 direction register
PDi_2
Port Pi 2 direction register
PDi_3
Port Pi 3 direction register
PDi_4
Port Pi 4 direction register
PDi_5
Port Pi 5 direction register
PDi_6
Port Pi 6 direction register
PDi_7
Port Pi 7 direction register
Port Pi direction register (Note)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PDi (i = 3 to 10, except 5 and 8)
Address
03E716, 03EA16, 03EE16,
03EF16, 03F316, 03F616
When reset
0016
Note: Set bit 2 of protect register (address 000A
16
to “1” before rewriting to
the port P9 direction register
.
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 3, 4, 6, 7, 9, 10)
b7 b6 b5 b4 b3 b2 b1 b0
Port P8 direction register
Bit symbol
Bit name
Function
R W
PD8_0
Port P8 0 direction register
PD8_1
Port P8 1 direction register
PD8_2
Port P8 2 direction register
PD8_4
Port P8 4 direction register
PD8_5
Port P8 6 direction register
PD8_6
Port P8 7 direction register
Nothing is assigned.
Write “0" when writing to this bit. When read, the value is indeterminate.
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
Symbol
PD8
Address
03F216
When reset
00X000002
Nothing is assigned.
Write “0" when writing to this bit. When read, the value is indeterminate.
_ _
Bit symbol
Bit name
Function
R W
Pi_0
Port Pi 0 register
Pi_1
Port Pi 1 register
Pi_2
Port Pi 2 register
Pi_3
Port Pi 3 register
Pi_4
Port Pi 4 register
Pi_5
Port Pi 5 register
Pi_6
Port Pi 6 register
Pi_7
Port Pi 7 register
Port Pi register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Pi (i = 3 to 10, except 5 and 8)
Address
03E516, 03E816, 03EC16,
03ED16, 03F116, 03F416
When reset
Indeterminate
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
0 : “L” level data
1 : “H” level data (Note)
(i = 3, 4, 6, 7, 9, 10)
Bit symbol
Bit name
Function
R W
P8_0
Port P8 0 register
P8_1
Port P8 1 register
P8_2
Port P8 2 register
P8_3
Port P8 3 register
P8_4
Port P8 4 register
P8_5
Port P8 5 register
P8_6
Port P8 6 register
Nothing is assigned.
Write “0” when writing to this bit. When read, the value is indeterminate.
Port P8 register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
P8
Address
03F016
When reset
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
except for P83)
0 : “L” level data
1 : “H” level data
X000000016
Note: Because P7 and P71 are n-channel open drain ports, the data are high impedance.