Professional Documents
Culture Documents
Interrupts
1.
2.
Polling
Not possible to
priority since it
priority assigned to it .
method.
Round Robin
Not possible.
Efficient use of
Waste of time.
INTERRUPT
(Interrupt Vector)
ROM Location
PIN
(hex)
1. Reset
2. External hardware
interrupt 0 (INT0)
3. Timer 0
interrupt (TF0)
4. External hardware
interrupt 1(INT1)
5. Timer 1 interrupt (TF1)
6. Serial COM interrupt
(R1 and T1)
0000
0003
9
P3.2
000B
0013
001B
0023
P3.3
EA
----- ET2 ES
BIT SYMBOL
7
6
5
4
3
2
1
0
FUNCTION0
EA
--ET2
ES
ET1
EX1
ET0
EX0
TF INTERRUPT
TF0
Timer 0
Interrupt VectorTF1
00BH
Jumps to
001BH
Jumps to
4 machine cycles
to INT0
or INT1 PINS
4*1.085 s
1.085 s
1 MC
TCON
TF0
TR0
TF1
TR1
Register
IE1
IT1
IE0
IT0
is
INTERRUPT PRIORITY(IP)
------
------
Bit
7
8
9
10
bit
11
12
bit
13
Q : Program
0
priority to
bit
------
PS
Symbol
---------------PS
PT1
PX1
PT0
the IP
PX0register
PT1
PX1
PT0
PX0
Definition
Reserved
Reserved
Reserved
Serial port interrupt priority
Timer 1 interrupt Priority bit
External interrupt 1 priority
Timer 0 interrupt Priority bit
toExternal
assign interrupt
the highest
0 priority
A :priority
MOV IP,#00000100B ; IP.2 = 1 to assign INT1