Interrupts With and Without Nesting
4-52
ADSP-BF535 Blackfin Processor Hardware Reference
/* Execute RTI, which jumps to return address, re-enables inter-
rupts, and switches to User mode if this is the last nested
interrupt in service. */
RTI;
The
RTI
instruction causes the return from an interrupt. The return
address is popped into the
RETI
register from the stack, an action that sus-
pends interrupts from the time that
RETI
is restored until
RTI
finishes
executing. The suspension of interrupts prevents a subsequent interrupt
from corrupting the
RETI
register.
Next, the
RTI
instruction clears the highest priority bit that is currently set
in
IPEND
. The processor then jumps to the address pointed to by the value
in the
RETI
register and re-enables the interrupts by clearing
IPEND[4]
.
Logging of Nested Interrupt Requests
The SIC detects level-sensitive interrupt requests from the peripherals.
The CEC provides edge-sensitive detection for its general-purpose inter-
rupts (
IVG7-IVG15
). Consequently, the SIC generates a synchronous
interrupt pulse to the CEC and then waits for interrupt acknowledgement
from the CEC. When the interrupt has been acknowledged by the core
(via assertion of the appropriate
IPEND
output), the SIC generates another
synchronous interrupt pulse to the CEC if the peripheral interrupt is still
asserted. This way, the system does not lose peripheral interrupt requests
that occur during servicing of another interrupt.
Because multiple interrupt sources can map to a single core processor gen-
eral-purpose interrupt, multiple pulse assertions from the SIC can occur
simultaneously, before, or during interrupt processing for an interrupt
event that is already detected on this interrupt input. For a shared inter-
rupt, the
IPEND
interrupt acknowledge mechanism described above
re-enables all shared interrupts. If any of the shared interrupt sources are
Содержание 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...