95
ABOV Semiconductor Co., Ltd.
EIFLAG0 (External Interrupt Flag0 Register): C0H
Initial value :00H
When an External Interrupt 0-7 is occurred, the flag becomes ‘1’.The flag is cleared
only by writing ‘0’ to the bit. So, the flag should be cleared by software.
External Interrupt0 ~ 7 not occurred
External Interrupt0 ~ 7 occurred
NOTE)
1. Do not use the “direct bit test and branch” instruction for input port. More detail information is at chapter
17.2 Instructions on how to use the input port.
Example) Avoid direct input port bit test and branch condition as below
if(FLAG0) → if(EIFLAG0 & 0x01)
EIPOL0H (External Interrupt Polarity 0High Register): A5H
Initial value: 00H
External interrupt (EINT7, EINT6, EINT5, EINT4) polarity selection
Interrupt on falling edge
Interrupt on both of rising and falling edge
EIPOL0L (External Interrupt Polarity 0Low Register): A4H
Initial value: 00H
External interrupt (EINT0, EINT1, EINT2, EINT3) polarity selection
Interrupt on falling edge
Interrupt on both of rising and falling edge