Pin Status During Wait Mode; Exiting Wait Mode - Renesas M16C/29 Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

7.6.2.3 Pin Status During Wait Mode

The I/O port pins retain their status held just prior to wait mode.

7.6.2.4 Exiting Wait Mode

The microcomputer is moved out of wait mode by a hardware reset, NMI interrupt or peripheral func-
tion interrupt.
If the microcomputer is to be moved out of exit wait mode by a hardware reset or NMI interrupt, set the
peripheral function interrupt priority ILVL2 to ILVL0 bits to "000
ing 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), all 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 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 7.6.2.4.1 lists the interrupts to exit wait mode.
Table 7.6.2.4.1. Interrupts to Exit Wait Mode
Interrupt
NMI interrupt
Serial I/O interrupt
key input interrupt
A/D conversion
interrupt
Timer A interrupt
Timer B interrupt
INT interrupt
CAN0 Wake_up
interrupt
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. 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.
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
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 in CAN sleep
mode
" (interrupt disable).
2
page 52 of 402
______
" (interrupts disabled) before execut-
2
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 in CAN sleep
mode
7. Clock Generation Circuit
______

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents