236
CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 (EDGE)
Table 10.4-2 Explanation of Functions of Each Bit in External Interrupt Control Register 2 (EIC2)
Bit name
Function
bit7
to
bit4
Unused bits
•
Bit value is undefined when being read.
•
Written value does not affect other operations.
bit3
EIR2:
External interrupt
request flag bit 2
•
When a signal with an edge or edges corresponding to edge polarity
selected by edge polarity selection bits 2 (SL21, SL20) is input to the
INT12 external interrupt pin, this bit is set to "1".
•
When this bit and interrupt request enable bit 2 (EIE2) are "1", the
interrupt request is output.
•
Writing "0" clears this bit, and writing "1" does not affect this bit (no
change).
bit2
bit1
SL21, SL20:
Edge polarity selection
bits 2
•
These bits are used to select the polarity of an edge or edges of a signal
pulse that triggers an interrupt when the signal is input to the INT12
external interrupt pin.
•
When these bits provide a value of "00
B
", edge detection is not
performed and interrupt requests are not generated.
•
These bits may specify "01
B
", indicating a rising edge, "10
B
", a falling
edge, or "11
B
", both edges to be detected.
Note:
If edge is selected while edge detection is OFF, edge detection may be
performed unconditionally. Always clear EIR2 bit after selecting an edge.
bit0
EIE2:
Interrupt request
enable bit 2
This bit enables or disables interrupt request outputs to the CPU. When this
bit and external interrupt request flag bit 2 (EIR2) are "1", the interrupt
request is output.
Notes:
•
When using the external interrupt pin, write "0" for bit6 of the port data
direction register (DDR3) so that the pin serves inputs only.
•
Regardless of the interrupt request enable bit state, the state of external
interrupt pin can be read directly from the port data register (PDR3).
Содержание 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: ......