
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8
8-3
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
8.2 Selecting Pin Functions
Each input/output port has double or triple functions shared with other internal peripheral I/O or external bus
interface related signal lines, or multiple functions shared with multi-function peripheral I/Os. Pin functions are
selected depending on the operation mode of the CPU or by setting the operation mode register and peripheral
function select register for the input/output port. (If any internal peripheral I/O has still another function, it is also
necessary to set the register provided for that internal peripheral I/O.)
P0–P4, P124, P125, P224 and P225, when the CPU is set to operate in processor mode, all are switched to
serve as signal pins for external access. The CPU operation mode is determined depending on how the MOD0
and MOD1 pins are set (see the table below).
Table 8.2.1 CPU Operation Modes and P0–P4, P124, P125, P224 and P225 Pin Functions
MOD0
MOD1
Operation Mode
P0–P4, P124, P125, P224 and P225 Pin Function
VSS
Single-chip mode
Input/output port pin
VSS
VCCE
External extension mode
Input/output port or external bus interface signal pin (Note 1)
VCCE
VSS
Processor mode
External bus interface signal pin
VCCE
(Settings inhibited)
–
Note 1: P41–P43 only function as external bus interface signal pins.
Note: VCCE and VSS are connected to main power supply and GND, respectively.
Each input/output port has their functions switched between input/output port pins and internal peripheral I/O
pins by setting the respective port operation mode and peripheral function select registers. If any internal periph-
eral I/O has two or more pin functions, use the register provided for that internal peripheral I/O to select the
desired pin function.
Note that FP operations during internal flash memory programming do not affect the pin functions.