![](http://datasheet.mmic.net.cn/370000/UPD30181GM-66-8ED_datasheet_16743710/UPD30181GM-66-8ED_243.png)
CHAPTER 13 GENERAL PURPOSE I/O UNIT (GIU)
User’s Manual U14272EJ3V0UM
243
13.2.7 Interrupt requests and wake-up events
Each of the lower sixteen GPIO pins, GPIO(15:0), can be defined as an interrupt request input. The GIU provides
a single asynchronous interrupt request output to the MBA Host Bridge, GPIOINTR. The MBA Host Bridge is
responsible for synchronizing this interrupt request with the MasterOut clock (internal).
The GIU provides a total of five registers to support GPIO interrupt requests. The interrupt enable register,
GPINTEN, is used to enable interrupt requests on a particular GPIO pin. The interrupt mask register, GPINTMSK,
permits temporary masking of an interrupt request for a particular GPIO pin. The interrupt type registers, GPINTTYPH
and GPINTTYPL, define the interrupt trigger type (edge or level) and the level type (polarity) of the interrupt requests
input to the GPIO pin. The interrupt status register, GPINTSTAT, allows software to determine the source of the
GPIO interrupt request.
The functions of the enable, mask, polarity, and type bits are shown in the following figure:
Figure 13-1. GPIO(15:0) Interrupt Request Detecting Logic
Enable bit
GPIO input
Polarity bit
Type bit
Mask bit
Other GPIO
interrupt
requests
GPIOINTR
MUX
V
DD
Level-triggered
interrupt request
Note
Note
Edge-triggered interrupt request
During Hibernate mode, any one of the GPIO(15:0) inputs can be used as a wake-up event. Wake-up event
notification is asynchronous and output on the GPWAKEUP signal (internal)
following conditions must be met.
Note
. To enable GPIO wake-up events, the
(1) Interrupt requests to the GPIO pin must be enabled (set in the GPINTEN register).
(2) Interrupt requests to the GPIO pin must be unmasked (set in the GPINTMSK register).
(3) The GPIO pin must be enabled during Hibernate mode (set in the GPHIBSTL register).
Note
The state of this signal is displayed on the GPWAKEUP bit of the PMUINTREG register in the PMU.