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

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
436
Key-Input Interrupt
Operation
Figure 2.13.3. Example of circuit using the key-input interrupt
Figure 2.13.4. Example of operation of key-input interrupt
2.13.2 Operation of Key-Input Interrupt
The following is an operation of key-input interrupt. Figure 2.13.3 shows an example of a circuit that uses
the key-input interrupt, Figure 2.13.4 shows an example of operation of key-input interrupt, and Figure
2.13.5 shows the setting procedure of key-input interrupt.
P10
P10
P10
input
P10
P10
Key input
Key input
interrupt processing
(1) Set the direction register of the ports to be changed to key-input interrupt pins to input, and set
(2) Setting the key-input interrupt control register and setting the interrupt enable flag makes the
(3) If a falling edge is input to either KI
0
1
2
3
4
output
output
output
output
to P10
the pull-up function.
interrupt-enabled state ready.
7
(1) Enter to stop mode
Key OFF
(2) Cancel stop mode
(3) Key scan
Key ON
_____
0
through KI
P101
P102
P103
P104 / KI0
P105 / KI1
P106 / KI2
P107 / KI3
P100
(4) Enter to stop mode
Key OFF
_____
3
, the key-input interrupt request bit goes to “1”.
V
REF
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Key ON
I/O port
Key matrix scan
Mitsubishi microcomputers
M16C / 62 Group

Related parts for M30622MA-XXXFP