Interrupt Processing
4-48
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Interrupt Processing
The following sections describe interrupt processing.
Global Enabling/Disabling of Interrupts
General-purpose interrupts can be globally disabled with the
CLI Dreg
instruction and re-enabled with the
STI Dreg
instruction, both of which
are only available in Supervisor mode. Reset, NMI, emulation, and excep-
tion events cannot be globally disabled. Globally disabling interrupts
clears
IMASK[15:5]
after saving
IMASK
’s current state.
CLI R5; /* save IMASK to R5 and mask all */
/* place critical instructions here */
STI R5; /* restore IMASK from R5 again */
See “Enable Interrupts” and “Disable Interrupts” in
Chapter 16, “External
Event Management.”
When multiple instructions need to be atomic or are too time-critical to
be delayed by an interrupt, disable the general-purpose interrupts, but be
sure to re-enable them at the conclusion of the code sequence.
Servicing Interrupts
The Core Event Controller (CEC) has a single interrupt queueing element
per event—a bit in the
ILAT
register. The appropriate
ILAT
bit is set when
an interrupt rising edge is detected (which takes two core clock cycles) and
cleared when the respective
IPEND
register bit is set. The
IPEND
bit indi-
cates that the event vector has entered the core pipeline. At this point, the
CEC recognizes and queues the next rising edge event on the correspond-
ing interrupt input. The minimum latency from the rising edge transition
of the general-purpose interrupt to the
IPEND
output assertion is three core
clock cycles. However, the latency can be much higher, depending on the
core’s activity level and state.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...