MC81F4x16
12. EXTERNAL INTERRUPTS
The external interrupt pins are edge triggered depending on the „external interrupt registers‟.
The edge detection of external interrupt has three transition activated mode: rising edge, falling edge,
and both edge.
12.1 Registers
EINT0H – EXT 2~5 / R04~R07
R0 PORT EXTERNAL INTERRUPT ENABLE HIGH REGISTER
00CAH
A reset clears the EINT0H register to „00H‟, disables EXT5-EXT2 interrupt. You can use EINT0H
register setting to select Disable interrupt or Enable interrupt (by falling, rising, or both falling and
rising edge).
7
6
5
4
3
2
1
0
EXT5IE
EXT4IE
EXT3IE
EXT2IE
EINT0H
Reset value: 00H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Disable Interrupt
EXT5IE
EXT4IE
EXT3IE
EXT2IE
R07/EXT5 External Interrupt Enable Bits
R06/EXT4 External Interrupt Enable Bits
R05/EXT3 External Interrupt Enable Bits
R04/EXT2 External Interrupt Enable Bits
01: Enable Interrupt by falling edge
10: Enable Interrupt by rising edge
11: Enable Interrupt by both falling and
rising edge
EINT0L – EXT 10,11,0,1 / R00~R03
R0 PORT EXTERNAL INTERRUPT ENABLE LOW REGISTER
00CBH
A reset clears the EINT0L register to „00H‟, disables EXT1-EXT0, EXT11-EXT10 interrupt. You can
use EINT0L register setting to select Disable interrupt or Enable interrupt (by falling, rising, or both
falling and rising edge).
7
6
5
4
3
2
1
0
EXT1IE
EXT0IE
EXT11IE
EXT10IE
EINT0L
Reset value: 00H
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
00: Disable Interrupt
EXT1IE
EXT0IE
R03/EXT1 External Interrupt Enable Bits
R02/EXT0 External Interrupt Enable Bits
01: Enable Interrupt by falling edge
10: Enable Interrupt by rising edge
EXT11IE
EXT10IE
R01/EXT11 External Interrupt Enable Bits
R00/EXT10 External Interrupt Enable Bits
11: Enable Interrupt by both falling and
rising edge
October 19, 2009 Ver.1.35
101