參數(shù)資料
型號(hào): GMS81C5024-XXXDT
英文描述: MICROCONTROLLER|8-BIT|CMOS|SOP|28PIN|PLASTIC
中文描述: 單片機(jī)| 8位|的CMOS |??苵 28腳|塑料
文件頁(yè)數(shù): 64/93頁(yè)
文件大小: 853K
代理商: GMS81C5024-XXXDT
GMS81C1404/GMS81C1408
62
June. 2001 Ver 1.2
17.4 External Interrupt
The external interrupt on INT0, INT1, INT2 and INT3 pins
are edge triggered depending on the edge selection register
IEDS (address 0E6
H
) as shown in Figure 17-6 .
The edge detection of external interrupt has three transition
activated mode: rising edge, falling edge, and both edge.
Figure 17-6 External Interrupt Block Diagram
Example: To use as an INT0 and INT2
:
:
;
**** Set port as an input port RB2,RD0
LDM
LDM
;
;
**** Set port as an interrupt port
LDM
LDM
;
;
**** Set Falling-edge Detection
LDM
:
:
:
RBIO,#1111_1011B
RDIO,#1111_1110B
RBFUNC,#04H
RDFUNC,#01H
IEDS,#0001_0001B
Response Time
The INT0, INT1,INT2 and INT3 edge are latched into
INT0IF, INT1IF, INT2IF and INT3IF at every machine
cycle. The values are not actually polled by the circuitry
until the next machine cycle. If a request is active and con-
ditions are right for it to be acknowledged, a hardware sub-
routine call to the requested service routine will be the next
instruction to be executed. The DIV itself takes twelve cy-
cles. Thus, a minimum of twelve complete machine cycles
elapse between activation of an external interrupt request
and the beginning of execution of the first instruction of
the service routine.
INT0IF
INT0 pin
INT0 INTERRUPT
INT1IF
INT1 pin
INT1 INTERRUPT
INT2IF
INT2 pin
INT2 INTERRUPT
IEDS
[0E6
H
]
e
INT3IF
INT3 pin
INT3 INTERRUPT
INT0 edge select
00 : Int. disable
01 : falling
10 : rising
11 : both
Ext. Interrupt Edge Selection
Register
W
IESR
ADDRESS : 0E6
RESET VALUE : 00000000
W
W
W
00 : Int. disable
01 : falling
10 : rising
11 : both
W
W
W
INT1 edge select
INT3 edge select
00 : Int. disable
01 : falling
10 : rising
11 : both
W
INT2 edge select
00 : Int. disable
01 : falling
10 : rising
11 : both
相關(guān)PDF資料
PDF描述
GMS81C5024-XXXPL MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXPLT MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXQ MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXQT MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXSK Pwr Inductor, Non-Shielded
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
GMS81C5024-XXXPL 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXPLT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|LDCC|44PIN|PLASTIC
GMS81C5024-XXXQ 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXQT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|QFP|44PIN|PLASTIC
GMS81C5024-XXXSK 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|CMOS|DIP|28PIN|PLASTIC