Professional Documents
Culture Documents
Lecture 10 (Interrupts in 8051)
Lecture 10 (Interrupts in 8051)
Timers overflow
Reset
• 1 for High Priority
• 0 for Low Priority
In 8051 the Interrupt Vector means the starting
address of the interrupt service routine i.e. the code
memory location where the execution is
transferred on the occurrence of interrupt
Difference between interrupt vectors is very small
3 bytes for Reset and 8 bytes for others
ISRs for interrupts other than reset, if smaller than 9
bytes of code, can be placed within the 8 bytes
For larger ISRs one must has to use jumps to transfer
control of execution to other locations where the
large ISRs are written in code memory
TF0/TF1/TF2 are set by hardware when
Timer0/Timer1/Timer2 overflows
EXF2 set by hardware when a capture/reload is caused by
a high to low transition on T2EX pin of 8052
TF0/TF1 are set by hardware when CPU starts executing
the relevant ISR or by software
Same ISR for TF2 and EXF2