Author :
Craig
Steiner
Source :
8052.com
What Happens When an Interrupt Ends?
An
interrupt
ends
when
your
program
executes
the RETI
(Return
from
Interrupt)
instruction.
When the
RETI
instruction
is
executed
the
following
actions
are
taken by
the
microcontroller:
-
Two
bytes
are
popped
off
the
stack
into
the
Program
Counter
to
restore
normal
program
execution.
-
Interrupt
status
is
restored
to
its
pre-interrupt
status.
<<< Click
here to
come
back on
(8051
-
Interrupts)
|