MC81F4x16
EINTF
EXTERNAL INTERRUPT FLAG REGISTER
00CDH
7
6
5
4
3
2
1
0
INT0IF INT2IF INT4IF INT7IF INT8IF INT9IF INT10IF INT11IF
R/W R/W R/W R/W R/W R/W R/W R/W
EINTFH
Reset value: 00H
EXT0IF
EXT2IF
EXT4IF
EXT7IF
EXT8IF
EXT9IF
EXT10IF
EXT11IF
EXT0 External Interrupt Flag
EXT2 External Interrupt Flag
EXT4 External Interrupt Flag
EXT7 External Interrupt Flag
EXT8 External Interrupt Flag
EXT9 External Interrupt Flag
EXT10 External Interrupt Flag
EXT11 External Interrupt Flag
0: Not generated
1: Generated
12.2 Procedure
To generate external interrupt, following steps are required,
1. Prepare external interrupt sub-routine.
2. Set external interrupt pins to read mode
3. Enable the external interrupt and select the edge mode.
4. Make sure global interrupt is enabled(use „EI‟ instruction).
After finish above steps, the external interrupt sub-routine is calling, when the edge is detected.
When the generated external interrupt is one of the external interrupts group, the EINTF register is
used to recognize which external interrupt is generated.
104
October 19, 2009 Ver.1.35