Renesas M16C/26A Series Hardware Manual page 71

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
7.6.2.3 Pin Status During Wait Mode
Table 7.6.2.3.1 lists pin status during wait mode.
Table 7.6.2.3.1 Pin Status in Wait Mode
Pin
I/O ports
When fC selected
CLK
OUT
When f1, f8, f32 selected
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 the CM02 bit is set to "0" (peripheral
function clocks not turned off during wait mode), all peripheral function interrupts can be used to exit
wait mode. If the CM02 bit is set to "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 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
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 in the 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.
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
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
" (interrupt disable).
2
page 52
f o
3
2
9
6
C
2 /
6
) T
Status
Retains status before wait mode
Does not stop
Does not stop when the CM02 bit is set to "0".
Retains status before wait mode when the CM02 bit is set to "1".
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
7. Clock Generation Circuit
______
______
" (interrupts disabled) before execut-
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents