MB89190/190A series
Chapter 11 External Interrupt Circuit 2 (Level)
11-5
11.
3 PinsforExternalInterruptCircuit2
The pins, their block diagram, related to the external interrupt circuit 2 are shown.
T Pins related to external interrupt circuit 2
The pins related to the external interrupt circuit 2 are the eight external interrupt pins.
P00/--------------------
INT20/AN4 to P03/
--------------------
INT23/AN7 pins
These external interrupt pins function as an external interrupt input (hysteresis input) and as a
general-purpose I/O port and analog input (only MB89190A seriese).
The P00/
——————
INT20/AN4 to
P03/
———-----———
INT23 /AN7 pins function as external interrupt input pins (
———----------—
INT20 to /
———----------—
INT23 ) under the following
conditions: when the corresponding pin is set to input by using the port direction register (DDR0),
when the corresponding pin is set to external interrupt input enable (ENI = 1) by using the input
disable register (ENI), and when the external interrupt input is enabled (EIE2: IE20 to IE27=1) using
the external interrupt 2 control register. The pin states can be read from the port data register (PDR0)
at any time when the pins are set to an input port by using the DDR0 register.
P04/ -----------------
INT24 to P07/
-----------------
INT27
These external interrupt pins function as an external interrupt input (hysteresis input) and as a
general-purpose I/O port. The P04/
——————
INT24 to P07/
——————
INT27 pins function as external interrupt input pins
(I0
————————
INT20 to
——————
INT27) under the following conditions: when the corresponding pin is set to an input port
by using the port direction register (DDR0) and when external interrupt input is enabled using the
external interrupt 2 control register (EIE2). The pin states can be read from the port data register
(PDR0) at any time when the pins are set to an input port.
Table 11.3a shows the pins related to the external interrupt circuit 2.
Table 11.3a Pins Related to External Interrupt Circuit 2
External interrupt
pin
Used as external interrupt input
(interrupt input enabled)
Used as general-purpose I/O port
(interrupt input disabled)
P00/
——————
INT20/AN4
——————
INT20/AN4 (EIE2: IE20 = 1, DDR0: bit 0 = 0)
P00 (EIE2: IE20 = 0)
P01/
——————
INT21/AN5
--------------------
INT21 /AN5 (EIE2: IE21 = 1, DDR0: bit 1 = 0)
P01 (EIE2: IE21 = 0)
P02/
——————
INT22/AN6
——————
INT22/AN6 (EIE2: IE22 = 1, DDR0: bit 2 = 0)
P02 (EIE2: IE22 = 0)
P03/
——————
INT23/AN7
——————
INT23/AN7 (EIE2: IE23 = 1, DDR0: bit 3 = 0)
P03 (EIE2: IE23 = 0)
P04/
——————
INT24
——————
INT24 (EIE2: IE24 = 1, DDR0: bit 4 = 0)
P04 (EIE2: IE24 = 0)
P05/
——————
INT25
——————
INT25 (EIE2: IE25 = 1, DDR0: bit 5 = 0)
P05 (EIE2: IE25 = 0)
P06/
——————
INT26
——————
INT26 (EIE2: IE26 = 1, DDR0: bit 6 = 0)
P06 (EIE2: IE26 = 0)
P07/
——————
INT27
——————
INT27 (EIE2: IE27 = 1, DDR0: bit 7 = 0)
P07 (EIE2: IE27 = 0)