Renesas M16C/62P Series Hardware Manual page 112

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
10.4.2.4
Exiting Wait Mode
The microcomputer is moved out of wait mode by a hardware reset, NMI interrupt, low voltage detection
interrupt or peripheral function interrupt.
If the microcomputer is to be moved out of exit wait mode by a hardware reset, NMI interrupt or low voltage
detection interrupt, set the peripheral function interrupt priority ILVL2 to ILVL0 bits to "000b" (interrupts
disabled) before executing the WAIT instruction.
The peripheral function interrupts are affected by the CM02 bit. If CM02 bit is "0" (peripheral function clocks
not turned off during wait mode), peripheral function interrupts can be used to exit wait mode. If CM02 bit is
"1" (peripheral function clocks turned off during wait mode), the peripheral functions 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 10.5
Interrupts to Exit Wait Mode and Use Conditions
Interrupt
NMI Interrupt
Serial Interface
Interrupt
Key Input Interrupt
A/D Conversion
Interrupt
Timer A Interrupt
Timer B Interrupt
INT Interrupt
Low Voltage Detection
Interrupt
Table 10.5 lists the Interrupts to Exit Wait Mode and Use Conditions.
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) Set the ILVL2 to ILVL0 bits in the interrupt control register, for peripheral function interrupts used to
exit wait mode.
The ILVL2 to ILVL0 bits in all other interrupt control registers, for peripheral function interrupts not
used to exit wait mode, are set to "000b" (interrupt disable).
(2) Set the I flag to "1".
(3) Start operating the peripheral functions used to exit wait mode.
When the peripheral function interrupt is used, an interrupt routine is performed as soon as an interrupt
request is acknowledged and the CPU clock is supplied again.
When the microcomputer exits wait mode by the peripheral function interrupt, the CPU clock is the same clock
as the CPU clock executing the WAIT instruction.
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
CM02=0
Can be used
Can be used when operating with
internal or external clock
Can be used
Can be used in one-shot mode or
single sweep mode
Can be used in all modes
Can be used
Can be used
Page 97 of 390
提供单片机解密、IC解密、芯片解密业务
10. Clock Generation Circuit
CM02=1
Can be used
Can be used when operating with
external clock
Can be used
− (Do not use)
Can be used in event counter mode or
when the count source is fC32
Can be used
Can be used
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents