![](http://datasheet.mmic.net.cn/30000/M30245MC-XXXGP_datasheet_2358670/M30245MC-XXXGP_28.png)
M30245 Group
Processor Mode
Rev.2.00
Oct 16, 2006
page 26 of 264
REJ03B0005-0200
Processor Modes
One of three processor modes can be selected: single-chip mode, memory expansion mode, and microprocessor
mode. The functions of some pins, the memory map, and the access space differ according to the selected
processor mode. Figure 1.10 shows the processor mode register 0 and 1.
Single-chip mode
In single-chip mode, only internal memory space (SFR, internal RAM, and internal ROM) can be accessed.
However, if microprocessor mode is set ("H" applied to the CNVss pin) when coming out of reset, the internal
ROM cannot be accessed even if the CPU shifts to single-chip mode.
Ports P0 to P10 can be used as programmable I/O ports or I/O ports for the internal peripheral functions.
Memory expansion mode
In memory expansion mode, external memory can be accessed in addition to the internal memory space (SFR,
internal RAM, and internal ROM). However, if microprocessor mode is set ("H" applied to CNVss pin) when
coming out of a reset, the internal ROM cannot be accessed even if the CPU shifts to memory expansion mode.
In memory expansion mode, some of the pins function as the address bus, the data bus, and as control
signals. The number of pins assigned to these functions depends on the bus and register settings. (See "Bus
Settings"for details.)
Microprocessor mode
In microprocessor mode, the SFR, internal RAM, and external memory space can be accessed. However, the
internal ROM area cannot be accessed.
In this mode, some of the pins function as the address bus, the data bus, and as control signals. The number
of pins assigned to these functions depends on the bus and register settings. (See "Bus Settings" for details).
Setting Processor Modes
The processor mode is set using the CNVss pin and the processor mode bits (bits 1 and 0 at address 000416).
Do not set the processor mode bits t o "102".
Regardless of the level of the CNVss pin, changing the processor mode bits selects the mode. However, the
processor mode bits cannot be changed to "012" (memory expansion mode) or "112" (microprocessor mode)
at the same time the PM07-PM02 bits are rewritten. Also do not attempt to change to or from microprocessor
mode within the program stored in the internal ROM area.
Applying Vss to CNVss pin
The microcomputer begins operation in single-chip mode after being reset. Memory expansion mode is
selected by writing "012" to the processor mode bits in the Processor Mode register 0 (000416).
Applying Vcc to CNVss pin
The microcomputer starts to operate in microprocessor mode after being reset.
Figure 1.11 shows the applicable memory maps for each mode. Figure 1.12 shows the memory maps and
chip-select areas in normal mode.