MITSUBISHI MICROCOMPUTERS
3806 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
30
Processor Modes
Single-chip mode, memory expansion mode, and microprocessor
mode can be selected by changing the contents of the processor
mode bits CM0 and CM1 (bits 0 and 1 of address 003B16). In
memory expansion mode and microprocessor mode, memory can
be expanded externally through ports P0 to P3. In these modes,
ports P0 to P3 lose their I/O port functions and become bus pins.
Fig. 28 Memory maps in various processor modes
Fig. 29 Structure of CPU mode register
Single-Chip Mode
Select this mode by resetting the microcomputer with CNVSS con-
nected to VSS.
Memory Expansion Mode
Select this mode by setting the processor mode bits to “01” in soft-
ware with CNVSS connected to VSS. This mode enables external
memory expansion while maintaining the validity of the internal
ROM. Internal ROM will take precedence over external memory if
addresses conflict.
Microprocessor Mode
Select this mode by resetting the microcomputer with CNVSS con-
nected to VCC, or by setting the processor mode bits to “10” in
software with CNVSS connected to VSS. In microprocessor mode,
the internal ROM is no longer valid and external memory must be
used.
Port Name
Port P0
Port P1
Port P2
Port P3
Function
Outputs low-order byte of address.
Outputs high-order byte of address.
Operates as I/O pins for data D7 to D0
(including instruction codes).
P30 and P31 function only as output pins
(except that the port latch cannot be read).
_____
P32 is the ONW input pin.
_________
P33 is the RESETOUT output pin. (Note)
P34 is the
φ output pin.
P35 is the SYNC output pin.
___
P36 is the WR output pin, and P37 is the
___
RD output pin.
Note: If CNVSS is connected to VSS, the microcomputer goes to
single-chip mode after a reset, so this pin cannot be used
_________
as the RESETOUT output pin.
Table 2.
Functions of ports in memory expansion mode and
microprocessor mode
000016
004016
000816
000016
YYYY16
FFFF16
000816
004016
FFFF16
Internal RAM
reserved area
Internal ROM
Memory expansion mode
The shaded areas are external memory areas.
SFR area
:
YYYY16 is the start address of internal ROM.
SFR area
Microprocessor mode
V
Internal RAM
reserved area
044016
V
044016
b0
CPU mode register
(CPUM : address 003B16)
Processor mode bits
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
Not used (return “0” when read)
b1 b0