Stop Mode Set-Up - Renesas M16C Series User Manual

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

Advertisement

M30240 Group

2.12.2 Stop Mode Set-Up

Settings and operation for entering stop mode are described here.
(1) Enable the interrupt that is to be used for returning from stop mode.
(2) Set the interrupt enable flag (I flag) to "1".
(3) Clear the protection register
(4) Set all the clock stop bits to "1".
Figure 2.128 shows the set-up of the stop mode.
(1) Setting interrupt to cancel stop mode
Interrupt control register
BCNIC
[Address 004A
KUPIC
[Address 004D
SiTIC(i=0 to 2)
[Address 0051
SiRIC(i=0 to 2)
[Address 0052
TAiIC(i=0 to 4)
[Address 0055
TBiIC(i=0 to 1)
[Address 005A
SUSPIC
[Address 0044
RSMIC
[Address 0046
RSTIC
[Address 005C
USBFIC
[Address 005F
b7
b0
(2) Interrupt enable flag (I flag)
(3) Canceling protect
b7
(4) All clocks off (stop mode)
b7
0 0 0
0
Figure 2.128: Set-up for the Stop mode
Rev.1.00 Sep 24, 2003 Page 279 of 360
]
16
]
16
, 0053
, 004F
]
16
16
16
, 0054
, 0050
]
16
16
16
to 0059
]
16
16
to 005B
]
16
16
]
16
]
16
]
16
]
16
b7
Interrupt priority level select bit
Make sure that the interrupt priority
level of the interrupt which is used to
cancel the wait mode is higher than
the processor interrupt priority(IPL) of
the routine where the WAIT
instruction is executed.
"1"
b0
Protect register [Address 000A
]
16
1
PRCR
Enables writing to system clock control registers 0 and 1
(addresses 0006
and 0007
)
16
16
1 : Write-enabled
b0
System clock control register [Address 0007
1
CM1
All clock stop control bit
1 : All clocks off (stop mode)
Reserved bit
Must be set to "0"
All clocks off (stop mode)
SOFIC
INTiIC (i=0 to 1)
b0
0
Interrupt priority level select bit
Make sure that the interrupt priority level of the
interrupt which is used to cancel the wait mode is
higher than the processor interrupt priority(IPL) of
the routine where the WAIT instruction is executed.
Reserved bit
Must be set to "0"
]
16
Power Control
[Address 0047
]
16
[Address 005D
to 005E
]
16
16

Advertisement

Table of Contents
loading

Table of Contents