
Mitsubishi Microcomputers
25
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
2001-5-14 Rev.1.0
32170 Group, 32174 Group
Input/output Ports
The microcomputer has a total of 157 input/output ports
P0-P22. (However, P5 is reserved for future use.) The input/
output ports can be used as input ports or output ports by
setting up their direction registers.
Each input/output port is a dual-function pin shared with
Table 14 Outline of Input/output Ports
Item
Specification
Number of Port
Total 157 ports
P0
:
P00 - P07
(8 lines)
P1
:
P10 - P17
(8 lines)
P2
:
P20 - P27
(8 lines)
P3
:
P30 - P37
(8 lines)
P4
:
P41 - P47
(7 lines)
P6
:
P61 - P67
(7 lines)
P7
:
P70 - P77
(8 lines)
P8
:
P82 - P87
(6 lines)
P9
:
P93 - P97
(5 lines)
P10
:
P100 - P107
(8 lines)
P11
:
P110 - P117
(8 lines)
P12
:
P124 - P127
(4 lines)
P13
:
P130 - P137
(8 lines)
P14
:
P140 - P147
(8 lines)
P15
:
P150 - P157
(8 lines)
P16
:
P160 - P167
(8 lines)
P17
:
P172 - P177
(6 lines)
P18
:
P180 - P187
(8 lines)
P19
:
P190 - P197
(8 lines)
P20
:
P200 - P203
(4 lines)
P21
:
P210 - P217
(8 lines)
P22
:
P220 - P225
(6 lines)
Port function
The input/output ports can be set for input or output mode bitwise by using the input/output port
___
direction control register. (However, P64 is an SBI input-only port, and P221 is CAN input-only port.)
Pin function
Dual-functions shared with peripheral I/O or external extended signals (or multi-functions shared with
peripheral I/Os which have multiple functions.)
Pin function
P0-4, P225, P225 : Changed by setting CPU operation mode (MOD0 and MOD1 pins)
changeover
P6-22
: Changed by setting the input/output port operation mode register.
(However, peripheral I/O pin functions are selected using the peripheral I/O register.)
Table 15 CPU Operation Modes and P0-P4, P224, and P225 Pin Functions
MOD0
MOD1
Operation mode
Pin functions of P0-P4, P224, P225
VSS
Single-chip mode
nput/output port pin
VSS
VCCE
External extended mode
VCCE
VSS
Processor mode (FP pin = VSS)
VCCE
VCC
Reserved (use inhibited)
–
Note: VCC and VSS are connected to +5 V and GND, respectively.
otherinternal peripheral I/O or external extended bus signal
lines. These pin functions are selected by using the chip op-
eration mode select or the input/output port operation mode
registers. These input/output ports are interfaced using a
dedicated power supply to allow for connections to the pe-
ripheral circuits operating with 5V or 3.3V.
External extended signal pin