
237
CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 (EDGE)
10.5
Interrupt of External Interrupt Circuit 1
The detection of a signal with the specified edge or edges, input to any of the external
interrupt pins, triggers external interrupt circuit 1 to generate an interrupt request.
■
Interrupt during the Operation of External Interrupt Circuit 1
When external interrupt circuit 1 detects the specified edge or edges of external interrupt input at a pin, an
external interrupt request flag bit (EIC1, EIC2:EIR0 to EIR2) corresponding to the pin is set to "1". At this
time, if the interrupt request enable bit corresponding to the pin contains the value indicating the enabled
state (EIC1, EIC2:EIE0 to EIE2=1), the external interrupt circuit 1 generates and then issues the
appropriate interrupt request (IRQ0, IRQ1, IRQ2) to the CPU.
Write "0" for the external interrupt request flag bit within the interrupt processing routine for the interrupt
request, thus clearing the interrupt request.
If external interrupts are not used for recovery from stop mode, set the edge polarity selection bits to "00
B
"
and the interrupt enable bits to "0".
Notes:
•
When edge detection OFF is selected and set with edge polarity selection bits, the occurring input is
held as is before entry to the internal edge detecting circuit. If edge is selected during the edge detection
OFF state, edge detection may be performed unconditionally with the external interrupt request flag bit
set to "1".
•
When interrupts are set enabled (EIC1, EIC2:EIE0 to EIE2=1) after the release from the reset state,
clear the appropriate external interrupt request flag bit (EIR0 to EIR2=0) at the same time.
If the external interrupt request flag bit is "1" with the interrupt request enable bit containing a value
indicating enable state, a return from the interrupt processing is not possible. Always clear the external
interrupt request flag bit within the interrupt processing routine.
•
For edge selection during the edge detection OFF state, specify an edge or edges when interrupt request
outputs are disabled and then clear the external interrupt request flag bit.
Regardless of the value of the appropriate interrupt request enable bit (EIE0 to EIE2), the external
interrupt request flag bit is set to "1" whenever edge polarity matching is detected.
Only external interrupt circuits 1 and 2 can execute a release from stop mode by an interrupt.
With the external interrupt request flag bit being set to "1", when the interrupt request enable bit setting
changes from disable to enable (0
→
1), an interrupt request is generated immediately.
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......