Download Renesas M16C/6NK User's Manual

Transcript
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
Table 8.5 Interrupts to Exit Wait Mode and Use Conditions
Interrupt
CM02 Bit = 0
_______
NMI Interrupt
Can be used
Serial Interface Interrupt
Can be used when operating with
internal or external clock
Key Input Interrupt
Can be used
A/D Conversion Interrupt Can be used in one-shot mode or
single sweep mode
Timer A Interrupt
Can be used in all modes
Timer
B interrupt
______
INT Interrupt
Can be used
CAN0/1 Wake-up Interrupt Can be used in CAN sleep mode
8. Clock Generating Circuit
CM02 Bit = 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
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.00 Nov 28, 2005
REJ09B0124-0200
page 72 of 378