
53
3807 Group
MITSUBISHI MICROCOMPUTERS
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Processor Mode
Single-chip mode, memory expansion mode, and microprocessor
mode can be selected by changing the contents of the processor
mode bits (CM
0
and CM
1
: b1 and b0 of address 003B
16
). In memory
expansion mode and microprocessor mode, memory can be ex-
panded externally through ports P0 to P3. In these modes, ports P0
to P3 lose their I/O port functions and become bus pins.
Table. 7. Port functions in memory expansion mode and microprocessor mode
Port Name
Function
Port P0
Outputs 8-bits low-order byte of address.
Port P1
Outputs 8-bits high-order byte of address.
Port P2
Operates as I/O pins for data D
7
to D
0
(including instruction code)
Port P3
P3
0
and P3
1
function only as output pins
(except that the port latch cannot be read).
P3
2
is the ONW input pin.
P3
3
is the REST
OUT
output pin. (
Note
)
P3
4
is the
φ
output pin.
P3
5
is the SYNC output pin.
P3
6
is the WR output pin, and P3
7
is the RD output
pin.
Note :
If CNV
SS
is connected to V
SS
, the microcomputer goes to
single-chip mode after a reset, so this pin cannot be used as
the RESET
OUT
output pin.
(1) Single-chip mode
Select this mode by resetting the microcomputer with CNV
SS
connected to V
SS
.
(2) Memory expansion mode
Select this mode by setting the processor mode bits (b1, b0) to "01"
in software with CNV
SS
connected to V
SS
. This mode enables
external memory expansion while maintaining the validity of the
internal ROM. However, some I/O devices will not support the memory
expansion mode. Internal ROM will take precedence over external
memory if addresses conflict.
(3) Microprocessor mode
Select this mode by resetting the microcomputer with CNV
SS
con-
nected to V
CC
, or by setting the processor mode bits to "10" in soft-
ware with CNV
SS
connected to V
SS
. In microprocessor mode, the
internal ROM is no longer valid and external memory must be used.
Fig. 59. Memory maps in various processor modes
Fig. 60. Structure of CPU mode register
0000
16
0040
16
0840
16
0008
16
SFR area
0000
16
0840
16
YYYY
16
FFFF
16
Memory expansion mode
0008
16
SFR area
0040
16
FFFF
16
Microprocessor mode
internal RAM
reserved area
internal ROM
The shaded area are external memory area.
YYYY
16
indicates the first address of internal ROM.
*
*:
internal RAM
reserved area
b0
CPU mode register
(CPUM : address 003B
16
)
Processor mode bits (CM
1
, CM
0
)
b1
b0
0 0: Single-chip mode
0 1: Memory expansion mode
1 0: Microprocessor mode
1 1: Not available
Stack page selection bit
0: 0 page
1: 1 page
b7