// TI File $Revision: /main/1 $
// Checkin $Date: December 1, 2004 17:04:36 $
//###########################################################################
//
// FILE: DSP280x_SWPrioritizedDefaultIsr.c
//
// TITLE: DSP280x Device Default Software Prioritized Interrupt Service Routines.
//
//###########################################################################
//
// $TI Release: DSP280x V1.10 $
// $Release Date: April 18, 2005 $
//###########################################################################
#include "DSP280x_Device.h" // DSP280x Headerfile Include File
#include "DSP280x_Examples.h" // DSP280x Examples Include File
#include "DSP280x_SWPrioritizedIsrLevels.h"
// Connected to INT13 of CPU (use MINT13 mask):
// Note CPU-Timer1 is reserved for TI use, however XINT13
// ISR can be used by the user.
#if (INT13PL != 0)
interrupt void INT13_ISR(void) // INT13 or CPU-Timer1
{
IER |= MINT13; // Set "global" priority
EINT;
// Insert ISR Code here
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
#endif
// Connected to INT14 of CPU (use MINT14 mask):
#if (INT14PL != 0)
interrupt void INT14_ISR(void) // CPU-Timer2
{
IER |= MINT14; // Set "global" priority
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
#endif
// Connected to INT15 of CPU (use MINT15 mask):
#if (INT15PL != 0)
interrupt void DATALOG_ISR(void) // Datalogging interrupt
{
IER |= MINT15; // Set "global" priority
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
#endif
// Connected to INT16 of CPU (use MINT16 mask):
#if (INT16PL != 0)
interrupt void RTOSINT_ISR(void) // RTOS interrupt
{
IER |= MINT16; // Set "global" priority
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
#endif
// Connected to EMUINT of CPU (non-maskable):
interrupt void EMUINT_ISR(void) // Emulation interrupt
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
// Connected to NMI of CPU (non-maskable):
interrupt void NMI_ISR(void) // Non-maskable interrupt
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER1_ISR(void) // User Defined trap 1
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER2_ISR(void) // User Defined trap 2
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER3_ISR(void) // User Defined trap 3
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER4_ISR(void) // User Defined trap 4
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER5_ISR(void) // User Defined trap 5
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER6_ISR(void) // User Defined trap 6
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER7_ISR(void) // User Defined trap 7
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER8_ISR(void) // User Defined trap 8
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER9_ISR(void) // User Defined trap 9
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER10_ISR(void) // User Defined trap 10
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER11_ISR(void) // User Defined trap 11
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
interrupt void USER12_ISR(void) // User Defined trap 12
{
EINT;
// Insert ISR Code here.......
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
// -----------------------------------------------------------
// PIE Group 1 - MUXed into CPU INT1
// -----------------------------------------------------------
// Connected to PIEIER1_1 (use MINT1 and MG11 masks):
#if (G11PL != 0)
interrupt void SEQ1INT_ISR( void ) // ADC
{
// Set interrupt priority:
volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER1.all;
IER |= M_INT1;
IER &= MINT1; // Set "global" priority
PieCtrlRegs.PIEIER1.all &= MG11; // Set "group" priority
PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts
EINT;
// Insert ISR Code here.......
// Restore registers saved:
DINT;
PieCtrlRegs.PIEIER1.all = TempPIEIER;
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
#endif
// Connected to PIEIER1_2 (use MINT1 and MG12 masks):
#if (G12PL != 0)
interrupt void SEQ2INT_ISR( void ) // ADC
{
// Set interrupt priority:
volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER1.all;
IER |= M_INT1;
IER &= MINT1; // Set "global" priority
PieCtrlRegs.PIEIER1.all &= MG12; // Set "group" priority
PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts
EINT;
// Insert ISR Code here.......
// Restore registers saved:
DINT;
PieCtrlRegs.PIEIER1.all = TempPIEIER;
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm (" ESTOP0");
for(;;);
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
F2808单相全桥SPWM逆变工程 (134个子文件)
qsqrt.asm 5KB
DSP280x_CodeStartBranch.asm 3KB
qsin.asm 3KB
DSP280x_usDelay.asm 3KB
DSP280x_CSMPasswords.asm 2KB
qinv2.asm 2KB
DSP280x_DisInt.asm 2KB
DSP280x_DBGIER.asm 856B
energy_back_main.c.bak 31KB
Arithmetics.c.bak 15KB
DSP280x_SWPrioritizedDefaultIsr.c 39KB
DSP280x_EPwm.c 30KB
DSP280x_DefaultIsr.c 25KB
energy_back_main.c 24KB
Arithmetics.c 17KB
DSP280x_ECan.c 14KB
DSP280x_Spi.c 11KB
DSP280x_GlobalVariableDefs.c 10KB
DSP280x_SWPrioritizedPieVect.c 9KB
DSP280x_SysCtrl.c 9KB
OperateEEPRom.c 8KB
DSP280x_PieVect.c 7KB
DSP280x_Adc.c 7KB
DSP280x_ECap.c 6KB
DSP280x_Sci.c 5KB
DSP280x_EQep.c 5KB
DSP280x_Gpio.c 4KB
DSP280x_CpuTimers.c 4KB
DSP280x_PieCtrl.c 3KB
DSP280x_I2C.c 3KB
DSP280x_MemCopy.c 1KB
SYMBOL.CDX 281KB
FILE.CDX 3KB
DSP280x_Headers_BIOS.cmd 8KB
DSP280x_Headers_nonBIOS.cmd 8KB
F2808.cmd 7KB
F2806.cmd 6KB
F2801.cmd 6KB
2808_eZdsp_RAM_lnk.cmd 4KB
SYMBOL.DBF 210KB
FILE.DBF 2KB
SYMBOL.FPT 349KB
FILE.FPT 3KB
DSP280x_Peripheral.gel 6KB
DSP280x_SWPrioritizedIsrLevels.h 141KB
IQmathLib.h 123KB
DSP280x_ECan.h 45KB
DSP280x_EPwm.h 16KB
DSP280x_SysCtrl.h 13KB
CommonDefine.h 10KB
DSP280x_Adc.h 10KB
DSP280x_EQep.h 10KB
DSP280x_Gpio.h 10KB
DSP280x_Sci.h 8KB
DSP280x_I2c.h 7KB
DSP280x_PieVect.h 6KB
DSP280x_Spi.h 6KB
DSP280x_ECap.h 6KB
DSP280x_PieCtrl.h 6KB
DSP280x_CpuTimers.h 6KB
DSP280x_DefaultIsr.h 5KB
DSP280x_I2c_defines.h 4KB
DSP280x_EPwm_defines.h 4KB
DSP280x_Device.h 4KB
DSP280x_GlobalPrototypes.h 4KB
DSP280x_Examples.h 3KB
Arithmetics.h 3KB
DSP280x_DevEmu.h 2KB
DSP280x_XIntrupt.h 2KB
qmath.h 690B
single phase.IAB 480KB
single phase.IAD 5KB
single phase.IMB 156KB
single phase.IMD 2KB
IQmath.lib 514KB
Debug.lkf 2KB
Release.lkf 1KB
Debug.lkv 2KB
Release.lkv 1KB
cc_build_Debug.log 7KB
cc_build_Release.log 4KB
energy_back.map 37KB
energy_back.map 29KB
DSP280x_GlobalVariableDefs.obj 109KB
DSP280x_GlobalVariableDefs.obj 89KB
energy_back_main.obj 50KB
DSP280x_DefaultIsr.obj 36KB
DSP280x_EPwm.obj 31KB
OperateEEPRom.obj 17KB
DSP280x_PieVect.obj 16KB
Arithmetics.obj 15KB
DSP280x_PieVect.obj 14KB
energy_back_main.obj 14KB
DSP280x_Adc.obj 13KB
DSP280x_DefaultIsr.obj 11KB
DSP280x_SysCtrl.obj 10KB
DSP280x_SysCtrl.obj 10KB
DSP280x_Gpio.obj 8KB
DSP280x_GlobalVariableDefs.obj 6KB
DSP280x_PieCtrl.obj 5KB
共 134 条
- 1
- 2
资源评论
fengshu562008
- 粉丝: 8
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功