ADSP-BF535 Blackfin Processor Hardware Reference
4-57
Program Sequencer
+--------------+
| addr_event2 | _E 2
+--------------+
| . . . |
+--------------+
| addr_eventN | _E 2N
+--------------+
*/
Example Code for an Exception Routine
Listing 4-5
provides an example framework for an exception routine that
would be jumped to from an exception handler such as that described
above.
Listing 4-5. Exception Routine
[--SP] = RETX ; /* Push return address on stack. No change to
ILAT or IPEND. */
/* Put body of exception routine here. */
RETX = [SP++] ; /* To return, pop return address and jump. No
change to ILAT or IPEND. */
RTX ; /* Return from exception. Clear IPEND[3] (Exception Pend-
ing bit). */
Executing RTX, RTN, or RTE in a Lower Priority Event
Instructions
RTX
,
RTN
, and
RTE
are designed to return from an exception,
NMI, or emulator event, respectively. Do not use them to return from a
lower-priority event. To return from an interrupt, use the
RTI
instruction.
Failure to use the correct instruction produces the following results.
Содержание ADSP-BF535 Blackfin
Страница 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Страница 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 908: ...SDRAM Controller External Bus Interface Unit B 36 ADSP BF535 Blackfin Processor Hardware Reference...