|
MC68HC05JJ6 Datasheet, PDF (48/216 Pages) Freescale Semiconductor, Inc – General Release Specification Microcontrollers | |||
|
◁ |
Interrupts
4.4 Interrupt Processing
The CPU does these actions to begin servicing an interrupt:
⢠Stores the CPU registers on the stack in the order shown in
Figure 4-1
⢠Sets the I bit in the condition code register to prevent further
interrupts
⢠Loads the program counter with the contents of the appropriate
interrupt vector locations as shown in Table 4-1
The return-from-interrupt (RTI) instruction causes the CPU to recover its
register contents from the stack as shown in Figure 4-1. The sequence
of events caused by an interrupt is shown in the flowchart in Figure 4-2.
$0020
$0021
Bottom of RAM
$00BE
$00BF
$00C0
$00C1
$00C2
n
n+1
n+2
n+3
n+4
$00FD
$00FE
$00FF
Bottom of Stack
Condition Code Register
Accumulator
Index Register
Program Counter (High Byte)
Program Counter (Low Byte)
5
4
3
2
1
â
Stacking
Order
Unstacking
Order
â
1
2
3
4
5
Top of Stack (RAM)
Figure 4-1. Interrupt Stacking Order
General Release Specification
48
Interrupts
MC68HC05JJ6/MC68HC05JP6 â Rev. 3.2
Freescale Semiconductor
|
▷ |