Clock Generation Circuit
65
Mitsubishi microcomputers
M16C / 62P Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
development
Preliminary Specifications Rev.1.0
Specifications in this manual are tentative and subject to change.
Table 1.9.4. Pin Status During Wait Mode
Pin
Memory expansion mode
Microprocessor mode
Single-chip mode
A
0
to A
19
, D
0
to D
15
, CS0 to CS3,
________
RD, WR, WRL, WRH
__________
ALE
I/O ports
CLK
OUT
Retains status before wait mode
“H”
“H”
“H”
Retains status before wait mode
Retains status before wait mode
Does not stop
Does not stop when the CM02
bit is “0”.
When the CM02 bit is “1”, the
status immediately prior to
entering wait mode is main-
tained.
When f
C
selected
When f
8
, f
32
selected
Interrupt
NMI interrupt
Serial I/O interrupt
CM02=0
Can be used
Can be used when operating
with internal or external clock
CM02=1
Can be used
Can be used when operating
with external clock
key input interrupt
A-D conversion
interrupt
Can be used
Can be used in one-shot mode
or single sweep mode
Can be used
(Do not use)
Timer A interrupt
Timer B interrupt
Can be used in all modes
Can be used in event counter
mode or when the count
source is fC32
INT interrupt
Can be used
Can be used
Table 1.9.5. Interrupts to Exit Wait Mode
mode. If CM02 bit is “1” (peripheral function clocks turned off during wait mode), the peripheral func-
tions using the peripheral function clocks stop operating, so that only the peripheral functions clocked
by external signals can be used to exit wait mode.
Table 1.9.5 lists the interrupts to exit wait mode.
If the microcomputer is to be moved out of wait mode by a peripheral function interrupt, set up the
following before executing the WAIT instruction.
1. In the ILVL2 to ILVL0 bits of interrupt control register, set the interrupt priority level of the periph
eral function interrupt to be used to exit wait mode.
Also, for all of the peripheral function interrupts not used to exit wait mode, set the ILVL2 to ILVL0
bits to “000
2
” (interrupt disable).
2. Set the I flag to “1”.
3. Enable the peripheral function whose interrupt is to be used to exit wait mode.
In this case, when an interrupt request is generated and the CPU clock is thereby turned on, an
interrupt routine is executed.
The CPU clock turned on when exiting wait mode by a peripheral function interrupt is the same CPU
clock that was on when the WAIT instruction was executed.