Datasheet
M16C/6S Group Clock Generation Circuit
R01DS0201EJ0502 Rev.5.02 page 38 of 203
Dec 25, 2012
Table 1.7.3. Pin Status During Wait Mode
Pin Status
I/O ports
Retains status before wait mode
Interrupt CM02=0 CM02=1
Serial I/O interrupt
Can be used when operating
with internal or external clock
Can be used when operating
with external clock
Timer A interrupt Can be used in all modes Can be used in event counter
mode
INT interrupt Can be used Can be used
Table 1.7.4. 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.