Mitsubishi Electric M32R Series User Manual page 200

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

8
8.2 Selecting Pin Functions
Each input/output port serves dual functions sharing the pin with other internal peripheral I/O or
extended external bus signal line (or triple functions sharing the pin with two or more peripheral I/O
functions). Pin functions are selected depending on the device's operation mode you choose or by
setting the input/output port's Operation Mode Register.
P0-P4, P224, and P225, when the CPU is set to operate in extended external mode or processor
mode, all are switched to serve as signal pins for external access. The CPU operation mode is
determined by setting the MOD0 and MOD1 pins (see the table below).
Table 8.2.1 CPU Operation Mode and Pin Functions of P0-P4, P224, and P225
MOD0
MOD1
VSS
VSS
VSS
VCCE
VCCE
VSS
VCCE
VCCE
Note: VCCE and VSS are connected to +5 V and GND, respectively.
P6-P22 (except P64, P221, P224, and P225) have their pin functions switched between input/
output port pins and internal peripheral I/O pins by setting each port's Operation Mode Register. If
any internal peripheral I/O has multiple pin functions, you need to set the register provided for that
peripheral I/O to select the desired pin function.
Note that settings of FP pin and MOD1 pin during internal flash memory write operation do not
affect the pin functions.
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
Operation Mode
Single-chip mode
Extended external mode
Processor mode
Reserved (Use inhibited)
8-4
8.2 Selecting Pin Functions
Pin Functions of P0-P4, P224, and P225
input/output port pin
Extended external signal pin
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents