Philips LPC2194 User Manual page 299

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Handling exceptions
This section describes the importance of sharing exception handlers between RealMonitor and user application.
RealMonitor exception handling
To function properly, RealMonitor must be able to intercept certain interrupts and exceptions. Figure 55 illustrates how exceptions
can be claimed by RealMonitor itself, or shared between RealMonitor and application. If user application requires the exception
sharing, they must provide function (such as
either:
• pass control to the RealMonitor processing routine, such as rm_irqhandler2
• claim the exception for the application itself, such as
In a simple case where an application has no exception handlers of its own, the application can install the RealMonitor low-level
exception handlers directly into the vector table of the processor. Although the irq handler must get the address of the Vectored
Interrupt Controller. The easiest way to do this is to write a branch instruction
of the branch is the start address of the relevant RealMonitor exception handler.
Reset
Undef
SWI
Prefetch Abort
Data Abort
Reserved
IRQ
FIQ
RealMonitor
). Depending on the nature of the exception, this handler can
app_IRQDispatch ()
app_IRQHandler ()
Real Monitor supplied exception vector handlers
Sharing irqs between RealMonitor and User IRQ handler
app_irqDispatch
or
Figure 55: Exception Handlers
299
LPC2119/2129/2194/2292/2294
()
.
) into the vector table, where the target
(<address >
rm_undef_handler()
rm_prefetchabort_handler()
rm_dataabort_handler()
rm_irqhandler()
rm_irqhandler2()
App_IRQHandler()
Preliminary User Manual
May 03, 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents