M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 491

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
476
Controlling Power Applications
3.7 Controlling Power Using Stop Mode
Overview
Specifications
Operation
Figure 3.7.1. Operation timing of controlling power using stop mode
P10
P10
P10
P10
Key input
interrupt processing
CPU clock
P10
Key input
0
4
1
2
3
The following are steps for controlling power using stop mode. Figure 3.7.1 shows the operation
timing, Figure 3.7.2 shows an example of circuit, and Figures 3.7.3 and 3.7.4 show the set-up
procedure.
Use the following peripheral functions:
• Key-input interrupts
• Stop mode
• Pull-up function
(1) Use P10
(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
(2) If a key is pressed, “L” is input to one of pins KI
(3) Sequentially set P10
(4) When the process to determine the key pressed is completed, change the output from P10
output
output
to P10
output
output
through KI
function is also used.
output of P10
interrupt occurs to execute the key-input interrupt handling routine.
through P10
7
input
_____
0
through P10
3
) of the key-input interrupt function for the key-input reading pins. The pull-up
3
0
to “L” again and enter stop mode.
(1) Shift to stop mode
through P10
Key OFF
Stop mode
0
through P10
3
for the scan output pins of a key matrix. Use the input pins (KI
(2) Cancel a stop mode
3
(3) Key scan
to “L” and enter stop mode.
Key ON
3
to “L” to determine which key was pressed.
(4) Shift to stop mode
Stop mode
Key OFF
_____
0
through KI
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
_____
3
Key ON
to clear stop mode. A key-input
_____
0
Key matrix scan
through KI
Mitsubishi microcomputers
M16C / 62 Group
_____
3
. Change the
_____
0
0

Related parts for M30622MA-XXXFP