English
Language : 

M30222 Datasheet, PDF (175/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
deUvnedlSoeppr meceniftications in this manual are tentative and subject to change
MITSUBISHI MICROCOMPUTERS
M30222 Group
Rev. G
I/O Ports
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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
Bit symbol
Bit name
Function
RW
PDi_0
PDi_1
PDi_2
PDi_3
PDi_4
Port Pi 0 direction register
Port Pi 1 direction register
Port Pi 2 direction register
Port Pi 3 direction register
Port Pi 4 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)
PDi_5
Port Pi 5 direction register
PDi_6
Port Pi 6 direction register
PDi_7
Port Pi 7 direction register
Note: Set bit 2 of protect register (address 000A 16 to “1” before rewriting to
the port P9 direction register .
Port P8 direction register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PD8
Address
03F216
When reset
00X000002
Bit symbol
Bit name
Function
PD8_0
PD8_1
PD8_2
Port P8 0 direction register
Port P8 1 direction register
Port P8 2 direction register
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
Nothing is assigned.
Write “0" when writing to this bit. When read, the value is indeterminate.
RW
__
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.
Fig. 1.145. Direction 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
Bit symbol
Pi_0
Pi_1
Pi_2
Pi_3
Pi_4
Pi_5
Pi_6
Pi_7
Bit name
Port Pi 0 register
Port Pi 1 register
Port Pi 2 register
Port Pi 3 register
Port Pi 4 register
Port Pi 5 register
Port Pi 6 register
Port Pi 7 register
Function
RW
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)
Note: Because P7 and P71 are n-channel open drain ports, the data are high impedance.
Port P8 register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
P8
Address
03F016
When reset
X000000016
Bit symbol
P8_0
P8_1
P8_2
P8_3
P8_4
P8_5
P8_6
Bit name
Port P8 0 register
Port P8 1 register
Port P8 2 register
Port P8 3 register
Port P8 4 register
Port P8 5 register
Port P8 6 register
Function
RW
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
Nothing is assigned.
Write “0” when writing to this bit. When read, the value is indeterminate.
Fig. 1.146. Port register
1-176