// TI File $Revision: /main/4 $
// Checkin $Date: September 15, 2005 11:00:48 $
//###########################################################################
//
// FILE: Example_280xSWPrioritizedDefaultIsr.c
//
// TITLE: DSP280x Device Default Software Prioritized Interrupt Service Routines.
//
// This file is based on the standard DSP280x_SWPrioritizedDefaultIsr.c
// The ISR routines have been modified slightly to provide a trace
// mechanism used for this example
//
//###########################################################################
//
// $TI Release: DSP280x, DSP2801x Header Files V1.41 $
// $Release Date: August 7th, 2006 $
//###########################################################################
#include "DSP280x_Device.h" // DSP280x Headerfile Include File
#include "DSP280x_Examples.h" // DSP280x Examples Include File
#include "DSP280x_SWPrioritizedIsrLevels.h"
// Defined in the Example_28xSWPrioritizedInterrupts.c file
// for this example only
extern Uint16 ISRTrace[50];
extern Uint16 ISRTraceIndex;
// Used for ISR delays
Uint16 i;
// 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(;;);
}
// Connected to ITRAP of CPU (non-maskable):
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(;;);
}
// Connected to USER1 of CPU (non-maskable):
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(;;);
}
// Connected to USER2 of CPU (non-maskable):
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(;;);
}
// Connected to USER3 of CPU (non-maskable):
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(;;);
}
// Connected to USER4 of CPU (non-maskable):
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(;;);
}
// Connected to USER5 of CPU (non-maskable):
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(;;);
}
// Connected to USER6 of CPU (non-maskable):
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(;;);
}
// Connected to USER7 of CPU (non-maskable):
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(;;);
}
// Connected to USER8 of CPU (non-maskable):
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(;;);
}
// Connected to USER9 of CPU (non-maskable):
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(;;);
}
// Connected to USER10 of CPU (non-maskable):
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(;;);
}
// Connected to USER11 of CPU (non-maskable):
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(;;);
}
// Connected to USER12 of CPU (non-maskable):
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; // E
没有合适的资源?快使用搜索试试~ 我知道了~
DSP280x_examples.rar_280X_280x can _DSP F280x examples_DSP280X的
共240个文件
gel:35个
pjt:35个
c:32个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 74 浏览量
2022-09-23
23:26:46
上传
评论
收藏 679KB RAR 举报
温馨提示
DSP28016的例程,所有硬件资源都调试到了,绝对值得一看.
资源推荐
资源详情
资源评论
收起资源包目录
DSP280x_examples.rar_280X_280x can _DSP F280x examples_DSP280X的 (240个子文件)
Example_280xAdcSoc.c.bak 6KB
Example_280xAdcSeqModeTest.c.bak 5KB
Example_280xSWPrioritizedDefaultIsr.c 39KB
Example_280xGpioSetup.c 21KB
Example_280xSWPrioritizedInterrupts.c 19KB
Example_280xHRPWM_SFO.c 19KB
Example_280xEPwmUpDownAQ.c 17KB
Example_280xEPwmUpAQ.c 16KB
Example_280xI2C_eeprom.c 16KB
Example_280xECanBack2Back.c 14KB
Example_280xEPwmDeadBand.c 13KB
Example_280xHRPWM_slider.c 12KB
Example_280xHRPWM.c 12KB
Example_280xFlash.c 12KB
Example_280xSci_FFDLB_int.c 10KB
Example_280xAdcSeq_ovdTest.c 10KB
Example_280xEPwmTripZone.c 9KB
Example_280xExternalInterrupt.c 9KB
Example_280xEPwmTimerInt.c 9KB
Example_280xECap_Capture_Pwm.c 9KB
Example_280xSpi_FFDLB_int.c 7KB
Example_280xSci_Echoback.c 7KB
Example_280xScia_FFDLB.c 7KB
Example_280xAdcSoc.c 6KB
Example_280xEcanA_to_B_Xmit.c 6KB
Example_280xGpioToggle.c 6KB
Example_280xECap_apwm.c 6KB
Example_280xWatchdog.c 6KB
Example_280xSpi_FFDLB.c 6KB
Example_280xEqep_freqcal.c 6KB
Example_280xAdcSeqModeTest.c 5KB
Example_280xCpuTimer.c 5KB
Example_freqcal.c 3KB
Example_EPwmSetup.c 2KB
SYMBOL.CDX 378KB
SYMBOL.CDX 268KB
SYMBOL.CDX 241KB
SYMBOL.CDX 240KB
FILE.CDX 3KB
FILE.CDX 3KB
FILE.CDX 3KB
FILE.CDX 3KB
SYMBOL.DBF 303KB
SYMBOL.DBF 232KB
SYMBOL.DBF 178KB
SYMBOL.DBF 177KB
FILE.DBF 1KB
FILE.DBF 1KB
FILE.DBF 1KB
FILE.DBF 1KB
SYMBOL.FPT 485KB
SYMBOL.FPT 398KB
SYMBOL.FPT 303KB
SYMBOL.FPT 302KB
FILE.FPT 2KB
FILE.FPT 2KB
FILE.FPT 2KB
FILE.FPT 2KB
Example_280xHRPWM_SFO.gel 2KB
Example_280xEPwmTimerInt.gel 1KB
Example_280xHRPWM_slider.gel 1KB
Example_280xECap_Capture_Pwm.gel 1KB
Example_2801_Flash.gel 1KB
Example_28015_Flash.gel 1KB
Example_2808_Flash.gel 1KB
Example_28016_Flash.gel 1KB
Example_2806_Flash.gel 1KB
Example_2809_Flash.gel 1KB
Example_280xSci_FFDLB_int.gel 1KB
Example_2802_Flash.gel 1KB
Example_280xI2C_eeprom.gel 1KB
Example_280xExternalInterrupt.gel 1KB
Example_280xAdcSoc.gel 1KB
Example_280xScia_FFDLB.gel 1KB
Example_280xHRPWM.gel 1KB
Example_280xWatchdog.gel 1KB
Example_280xECanBack2Back.gel 1KB
Example_280xSWPrioritizedInterrupts.gel 1KB
Example_280xCpuTimer.gel 1KB
Example_280xSpi_FFDLB_int.gel 1KB
Example_280xEqep_freqcal.gel 1KB
Example_280xEcanA_to_B_Xmit.gel 1KB
Example_280xSci_Echoback.gel 1KB
Example_280xEPwmUpAQ.gel 1KB
Example_280xSpi_FFDLB.gel 1KB
Example_280xEPwmUpDownAQ.gel 1KB
Example_280xAdcSeq_ovdTest.gel 1KB
Example_280xEPwmTripZone.gel 1KB
Example_280xAdcSeqModeTest.gel 1KB
Example_280xGpioToggle.gel 1KB
Example_280xEPwmDeadband.gel 1016B
Example_280xGpioSetup.gel 1008B
Example_280xECap_apwm.gel 1007B
Example_freqcal.h 3KB
SCI_96.ht 52KB
Debug.lkf 1KB
Debug.lkf 1KB
Debug.lkf 1KB
Debug.lkf 1KB
Debug.lkf 1KB
共 240 条
- 1
- 2
- 3
资源评论
钱亚锋
- 粉丝: 86
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功