Renesas M16C/60 Series Hardware Manual page 74

Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
• Exiting Stop Mode
The microcomputer is moved out of stop mode by a hardware reset, NMI interrupt or peripheral function
interrupt.
If the microcomputer is to be moved out of stop mode by a hardware reset or NMI interrupt, set the
peripheral function interrupt priority ILVL2 to ILVL0 bits to "000
CM10 bit to "1".
If the microcomputer is to be moved out of stop mode by a peripheral function interrupt, set up the
following before setting the CM10 bit to "1".
1. In the ILVL2 to ILVL0 bits of interrupt control register, set the interrupt priority level of the peripheral
function interrupt to be used to exit stop mode.
Also, for all of the peripheral function interrupts not used to exit stop mode, set the ILVL2 to ILVL0
bits to "000
2
2. Set the I flag to "1".
3. Enable the peripheral function whose interrupt is to be used to exit stop mode.
In this case, when an interrupt request is generated and the CPU clock is thereby turned on, an
interrupt service routine is executed.
Which CPU clock will be used after exiting stop mode by a peripheral function or NMI interrupt is
determined by the CPU clock that was on when the microcomputer was placed into stop mode as
follows:
• If the CPU clock before entering stop mode was derived from the sub clock: sub clock
• If the CPU clock before entering stop mode was derived from the main clock: main clock divide-by-8
• If the CPU clock before entering stop mode was derived from the ring oscillator clock: ring oscillator
clock divide-by-8
Rev.1.00
2003.05.30
page 60
".
Clock Generation Circuit
______
______
" (interrupts disable) before setting the
2
______

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents