30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 31: LPC2300 RealMonitor<br />

4.5 Prefetch Abort Mode<br />

RealMonitor uses four words on entry to its Prefetch abort interrupt handler.<br />

4.6 Data Abort Mode<br />

RealMonitor uses four words on entry to its data abort interrupt handler.<br />

4.7 User/System Mode<br />

RealMonitor makes no use of this stack.<br />

4.8 FIQ Mode<br />

RealMonitor makes no use of this stack.<br />

4.9 Handling Exceptions<br />

This section describes the importance of sharing exception handlers between<br />

RealMonitor and user application.<br />

4.9.1 RealMonitor Exception Handling<br />

To function properly, RealMonitor must be able to intercept certain interrupts and<br />

exceptions. Figure 31–115 illustrates how exceptions can be claimed by RealMonitor<br />

itself, or shared between RealMonitor and application. If user application requires the<br />

exception sharing, they must provide function (such as app_IRQDispatch ()). Depending<br />

on the nature of the exception, this handler can either:<br />

• Pass control to the RealMonitor processing routine, such as rm_irqhandler2().<br />

• Claim the exception for the application itself, such as app_IRQHandler ().<br />

In a simple case where an application has no exception handlers of its own, the<br />

application can install the RealMonitor low-level exception handlers directly into the vector<br />

table of the processor. Although the irq handler must get the address of the Vectored<br />

Interrupt Controller. The easiest way to do this is to write a branch instruction ()<br />

into the vector table, where the target of the branch is the start address of the relevant<br />

RealMonitor exception handler.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 574 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!