EasyManuals Logo

Texas Instruments TMS320 User Manual

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #127 background imageLoading...
Page #127 background image
Hardware Interrupts
Thread Scheduling 4-23
Example 4-3. Constructing a Minimal ISR on C6000 Platform
Example 4-4. HWI Example on C55x Platform
;
; ======== myclk.s62 ========
;
.include "hwi.h62" ; macro header file
IEMASK .set 0
CCMASK .set c62_PCC_DISABLE
.text
;
; ======== myclkisr ========
;
global _myclkisr
_myclkisr:
; save all C run-time environment registers
HWI_enter C62_ABTEMPS, C62_CTEMPS, IEMASK, CCMASK
b _TSK_itick ; call TSK itick (C function)
mvkl tiret, b3
mvkh tiret, b3
nop 3
tiret:
; restore saved registers and call DSP/BIOS scheduler
HWI_exit C62_ABTEMPS, C62_CTEMPS, IEMASK, CCMASK
.end
;
; ======== _DSS_isr ========
;
_DSS_isr:
HWI_enter C55_AR_T_SAVE_BY_CALLER_MASK,
C55_ACC_SAVE_BY_CALLER_MASK,
C55_MISC1_SAVE_BY_CALLER_MASK,
C55_MISC2_SAVE_BY_CALLER_MASK,
C55_MISC3_SAVE_BY_CALLER_MASK,
0FFF7h,0
; macro has ensured ’C’ convention,
; including SP alignment!
call _DSS_cisr
HWI_exit C55_AR_T_SAVE_BY_CALLER_MASK,
C55_ACC_SAVE_BY_CALLER_MASK,
C55_MISC1_SAVE_BY_CALLER_MASK,
C55_MISC2_SAVE_BY_CALLER_MASK,
C55_MISC3_SAVE_BY_CALLER_MASK,
0FFF7h,0

Table of Contents

Other manuals for Texas Instruments TMS320

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 and is the answer not in the manual?

Texas Instruments TMS320 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320
CategoryComputer Hardware
LanguageEnglish

Related product manuals