mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 137

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
6.3.3 Interrupts
The core interrupts can be generated when an exception occurs. An exception results when
certain instructions are executed or an asynchronous external event occurs. There are five
exception sources in the MPC823:
Interrupt handling is transparent to user mode code and uses the same mechanism to
handle all types of exceptions. When a user mode instruction experiences an exception, the
machine is placed into privileged state and control is transferred to a software exception
handler routine located at some offset within a memory-based vector table. Each interrupt
generated in the machine transfers control to a different address in the vector table. For
more information on initializing the base address of the vector table, refer to Table 6-6 as
well as the PowerPC definition of the machine state register. When the exception has been
handled, the handler can continue executing your program without ever knowing that an
event has occurred. As specified in the PowerPC Microprocessor Family: The Programming
Environment for 32-Bit Microprocessors , the core implements a precise interrupt model.
This means that when an interrupt is taken, the following conditions are met:
In any case, a partially completed instruction is restartable and can be reexecuted after the
interrupt is handled. This precise exception model can simplify and speed up exception
processing because the software does not have to manually save the machine’s internal
pipeline states, unwind the pipelines, or cleanly terminate the faulting instruction stream. Nor
does it have to reverse the process to resume execution of the faulting stream.
• External interrupt request
• Certain memory access conditions (protection faults and bus error)
• Internal errors, such as an attempt to execute an unimplemented opcode or
• Trap instructions
• Internal exceptions (breakpoints and debug counter’s expiration)
• No instruction that logically follows the faulting instruction in the code stream has
• All instructions preceding the faulting instruction appear to have completed with respect
• The precise location (address) of the faulting instruction is known to the exception
• The instruction causing the exception might not have started executing (before
floating-point arithmetic overflow
started executing.
to the executing processor.
handler.
interrupt), could be partially completed, or has completed (after interrupt), depending on
the interrupt and instruction types. See Table 6-2 for details.
Freescale Semiconductor, Inc.
For More Information On This Product,
MPC823 REFERENCE MANUAL
Go to: www.freescale.com
The PowerPC Core
6-7

Related parts for mpc823rg