Controlling Power Using Stop Mode - Renesas M16C Series User Manual

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

Advertisement

M30245 Group

3.8 Controlling Power Using Stop Mode

Overview
www.DataSheet4U.com
Specifications
Operation
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
The following are steps for controlling power using stop mode. Figure 3.8.1 shows the operation
timing, Figure 3.8.2 shows an example of circuit, and Figures 3.8.3 and 3.8.4 show the set-up
procedure.
Use the following peripheral functions:
• Key-input interrupts
• Stop mode
• Pull-up function
This example is not performed USB power control. Please refer section 2.8.4 for the power
control of USB related.
(1) Use P0
through P0
for the scan output pins of a key matrix. Use the input pins (KI
0
3
_____
KI
) of the key-input interrupt function for the key-input reading pins. The pull-up function is
3
also used.
(2) If a key-input interrupt request occurs, clear the stop mode and read a key.
(1) Enable a key-input interrupt and set the pull-up function to pins KI
output of P0
through P0
0
(2) If a key is pressed, "L" is input to one of pins KI
interrupt occurs to execute the key-input interrupt handling routine.
(3) Sequentially set P0
through P0
0
(4) When the process to determine the key pressed is completed, change the output from P0
through P0
to "L" again and enter stop mode.
3
page 321 of 354
to "L" and enter stop mode.
3
_____
through KI
0
to "L" to determine which key was pressed.
3
3. Controlling Power Applications
_____
_____
_____
through KI
. Change the
0
3
_____
to clear stop mode. A key-input
3
through
0
0

Advertisement

Table of Contents
loading

Table of Contents