English
Language : 

M16C80 Datasheet, PDF (354/358 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/80 SERIES
M16C/80 Group
Revision History
Version
Contents for change
Rev.1.0
Page 210 Stop Mode and Wait Mode (4),(5) --> added
(4) Follow the procedure below to enter stop mode.
• Initial Setting
Set each interrupt priority level after setting the minimum interrupt priority level
required to exit stop mode and wait mode, controlled by the RLVL2 to RLVL0
bits in the RLVL register, to "7".
• Before Execution of WAIT Instruction
[1] Set the interrupt priority level of the interrupt being used to exit stop mode
[2] Set the interrupt priority levels of the interrupts not being used to exit stop mode
[3] Set the IPL in the FLG register. Then set the minimum interrupt priority level
required to exit stop mode and wait mode to the same level as the IPL.
(Interrupt priority level of the interrupt used to exit stop mode > mimimum inter
rupt priority level to exit stop mode ≥ interrupt priority level of the interrupts not
used to exit stop mode)
[4] Set the I flag to "1"
[5] Set the CM10 bit in the CM1 register to "1" (all clocks stop) after setting the
PRC0 bit in the PRCR register to "1" (write enabled)
• After Exiting Stop Mode
Set the interrupt priority level required to exit stop mode to "7" immediately after
exiting stop mode.
(5) When microcomputer enters stop mode again after exiting from stop mode us
ing the NMI interrupt,
use the following procedure to set the CM10 bit to "1".
[1] Exit stop mode using the /NMI interrupt
[2] Generate a dummy interrupt
[3] Set the CM10 bit to "1"
example:
INT #63
; Dummy interrupt
BSET CM1
; All clocks stopped (in stop mode)
; /*for dummy interrupt* /
DUMMY:
REIT
Revision
date
02/08/'05
C - 14