English
Language : 

M30222 Datasheet, PDF (51/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
dUevnedloerpment
MITSUBISHI MICROCOMPUTERS
Specifications in this manual are tentative and subject to change
M30222 Group
Rev. G
Overview of Interrupts
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
NMI Interrupt
An NMI interrupt is generated when the input to the P83/NMI pin changes from “H” to “L”. The NMI interrupt is
a non-maskable external interrupt. The pin level can be checked in the Port P83 register (bit 3 at address
03F016). This pin cannot be used as a normal port input. (See Interrupt Precautions section).
Key Input Interrupt
All bits of Port 6 can be used as Key Input interrupts. Enable the interrupts using the KUPIC register, then set
the direction register of any of P60 to P67 bits for input, and a falling edge to that port will generate a key input
interrupt. A key input interrupt can also be used as a key-on wakeup function for cancelling the wait mode or
stop mode.
Figure 1.33 shows the block diagram of the key input interrupt. Note that if an “L” level is input to any pin that
has not been disabled for input, inputs to the other pins are not detected as an interrupt.
Pull-up
transistor
Port P60-P67 pull-up select bit
Port P67 direction register
P67/KI7
P66/KI6
P65/KI5
Port P67 direction register
"1"
Two edge detect
"0"
Pull-up
transistor Port P66 direction register
"1"
Two edge detect
"0"
Pull-up
transistor Port P65 direction register
"1"
Two edge detect
"0"
P64/KI4
Pull-up Port P64 direction register
transistor
"1"
Two edge detect
"0"
P60/KI0
Pull-up Port P60 direction register
transistor
"1"
Two edge detect
"0"
Figure 1.33. Block diagram of key input interrupt
Key input interrupt control register (address 004D16)
Interrupt control circuit
P6 Key input enable bit
Key input interrupt request
1-52