![](http://datasheet.mmic.net.cn/30000/M30622F8PGP_datasheet_2359050/M30622F8PGP_65.png)
Clock Generation Circuit
65
Mitsubishi microcomputers
M16C / 62P Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Under
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
Single-chip mode
Microprocessor mode
_______
A0 to A19, D0 to D15, CS0 to CS3,
Retains status before wait mode
________
BHE
_____
______
________
_________
RD, WR, WRL, WRH
“H”
__________
HLDA,BCLK
“H”
ALE
“H”
I/O ports
Retains status before wait mode
CLKOUT
When fC selected
Does not stop
When f8, f32 selected
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.
Interrupt
CM02=0
CM02=1
NMI interrupt
Can be used
Serial I/O interrupt
Can be used when operating
with internal or external clock
Can be used when operating
with external clock
key input interrupt
Can be used
A-D conversion
interrupt
Can be used in one-shot mode
or single sweep mode
Timer A interrupt
Can be used in all modes
Can be used in event counter
mode or when the count
source is fC32
Timer B interrupt
INT interrupt
Can be used
(Do not use)
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 “0002” (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.