Interrupt Processing
4-50
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Software Interrupts
Software cannot set bits of the
ILAT
register directly, as writes to
ILAT
cause write-1-to-clear (W1C) operation. Instead, use the
RAISE
instruction
to set individual
ILAT
bits by software. It safely sets any of the
ILAT
bits
without affecting the rest of the register.
RAISE 1; /* fire reset interrupt request */
The
RAISE
instruction must not be used to fire emulation events or excep-
tions, which are managed by the related
EMUEXCPT
and
EXCPT
instructions.
For details, see
Chapter 16, “External Event Management.”
Often, the
RAISE
instruction is executed in interrupt service routines to
degrade the interrupt priority. This enables less urgent parts of the service
routine to be interrupted even by low priority interrupts.
isr7: /* service routine for IVG7 */
...
/* execute high priority instructions here */
/* handshake with signalling peripheral */
RAISE 14;
RTI;
isr7.end:
isr14: /* service routine for IVG14 */
...
/* further process event initiated by IVG7 */
RTI;
isr14.end:
The example above may read data from any receiving interface, post it to a
queue, and let the lower priority service routine process the queue after
the
isr7
routine returns. Since
IVG15
is used for normal program execu-
tion in non-multi-tasking system,
IVG14
is often dedicated to software
interrupt purposes.
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...