Freescale-semiconductor StarCore SC140 Bedienungsanleitung Seite 726

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 760
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 725
A-412 SC140 DSP Core Reference Manual
TRAP
TRAP Execute a Software Exception (AGU) TRAP
Description
TRAP
The starting address of the exception processing routine is VBA[31:12]:$000.
Status and Conditions that Affect Instruction
None.
Operation Assembler Syntax
Next PC (ESP), SR (ESP + 4),
ESP + 8 ESP
VBA[31:12]:trap_vector PC
0 EXP
0 C
0 T
00 S[1:0]
0 SLF
0000 LS[3:0]
TRAP {trap_vector = $000}
TRAPn
The TRAP instruction creates a precise software interrupt, halting execution and jumping to a code section
pointed to from the exception table. The term precise is defined such that the exception timing is
guaranteed to be synchronous with the instruction execution. The TRAP exception occurs immediately
after the TRAP instruction. The current state of the machine is saved by pushing the values of the SR and
the next PC onto the exception stack with two simultaneous 32-bit long-word memory accesses. The SR
bits listed below are then set or cleared, including setting the interrupt priority level to the highest value
(masking all maskable interrupts). The starting address of the exception processing routine is loaded to the
PC and the Exception working mode is entered.
Seitenansicht 725
1 2 ... 721 722 723 724 725 726 727 728 729 730 731 ... 759 760

Kommentare zu diesen Handbüchern

Keine Kommentare