A96G140/A96G148/A96A148 User’s manual
7. Interrupt controller
75
After a reset,
IP and IP1 are cleared to ‘00H’. If interrupts have the same priority level, lower number
interrupt is served first.
7.11.3
External Interrupt Flag Register (EIFLAG0 and EIFLAG1)
External Interrupt Flag 0 Register (EIFLAG0) and External Interrupt Flag 1 Register (EIFLAG1) are set
to ‘1’ when the external interrupt generating condition is satisfied. Th
ese flags are cleared when the
interrupt service routine is executed. Alternatively, these flags can
be cleared by writing ‘0’ on to
themselves.
7.11.4
External Interrupt Polarity Register (EIPOL0L, EIPOL0H, and EIPOL1)
External Interrupt Polarity0 high/low Register (EIPOL0H/L) and External Interrupt Polarity1 Register
(EIPOL1) determines an edge type from rising edge, falling edge, and both edges of interrupt. Initially,
default value is no interrupt at any edge.
7.11.5
Register map
Table 9. Interrupt Register Map
Name
Address
Direction
Default
Description
IE
A8H
R/W
00H
Interrupt Enable Register
IE1
A9H
R/W
00H
Interrupt Enable Register 1
IE2
AAH
R/W
00H
Interrupt Enable Register 2
IE3
ABH
R/W
00H
Interrupt Enable Register 3
IP
B8H
R/W
00H
Interrupt PriorityRegister
IP1
F8H
R/W
00H
Interrupt PriorityRegister 1
EIFLAG0
C0H
R/W
00H
External Interrupt Flag 0 Register
EIPOL0L
A4H
R/W
00H
External Interrupt Polarity 0 Low Register
EIPOL0H
A5H
R/W
00H
External Interrupt Polarity 0 High Register
EIFLAG1
A6H
R/W
00H
External Interrupt Flag 1 Register
EIPOL1
A7H
R/W
00H
External Interrupt Polarity 1 Register
7.11.6
Interrupt register description