// TI File $Revision: /main/3 $
// Checkin $Date: July 6, 2009 16:52:04 $
//###########################################################################
//
// FILE: DSP2802x_SWPrioritizedDefaultIsr.c
//
// TITLE: DSP2802x Device Default Software Prioritized Interrupt Service Routines.
//
//###########################################################################
//
// $TI Release: 2802x C/C++ Header Files V1.25 $
// $Release Date: December 18, 2009 $
//###########################################################################
#include "DSP2802x_Device.h" // DSP2802x Headerfile Include File
#include "DSP2802x_Examples.h" // DSP2802x Examples Include File
#include "DSP2802x_SWPrioritizedIsrLevels.h"
// Connected to INT13 of CPU (use MINT13 mask):
#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) // INT14 or 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 ADCINT1_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 ADCINT2_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(;;);
}
#endif
// Connected to PIEIER1_4 (use MINT1 and MG14 masks):
#if (G14PL != 0)
interrupt void XINT1_ISR(void)
{
// Set interrupt
没有合适的资源?快使用搜索试试~ 我知道了~
TMS320F28027 自带串口中断收发数据例子
共120个文件
h:27个
c:21个
cmd:16个
5星 · 超过95%的资源 需积分: 50 78 下载量 120 浏览量
2014-04-18
23:45:57
上传
评论 2
收藏 458KB RAR 举报
温馨提示
TMS320F28027自带有串口,利用串口中断与上位机(电脑)进行数据交换,软件设置成 上位机所发数据要以‘*’结束。 仅供DSP板的学习所用,软件用的是CCS4.1,编译如果不能通过,就把工程存放目录名中的汉字去掉!
资源推荐
资源详情
资源评论
收起资源包目录
TMS320F28027 自带串口中断收发数据例子 (120个子文件)
DSP2802x_CodeStartBranch.asm 3KB
DSP2802x_usDelay.asm 3KB
DSP2802x_CSMPasswords.asm 3KB
DSP2802x_DisInt.asm 2KB
DSP2802x_DBGIER.asm 878B
DSP2802x_SWPrioritizedDefaultIsr.c 30KB
DSP2802x_DefaultIsr.c 20KB
DSP2802x_SysCtrl.c 15KB
DSP2802x_Adc.c 11KB
DSP2802x_EPwm.c 9KB
DSP2802x_SWPrioritizedPieVect.c 8KB
DSP2802x_GlobalVariableDefs.c 8KB
DSP2802x_PieVect.c 7KB
Example_2802xScia_FFDLB.c 5KB
DSP2802x_OscComp.c 4KB
DSP2802x_CpuTimers.c 4KB
DSP2802x_Comp.c 4KB
DSP2802x_Sci.c 3KB
DSP2802x_Spi.c 3KB
DSP2802x_I2C.c 3KB
DSP2802x_Gpio.c 3KB
DSP2802x_ECap.c 3KB
DSP2802x_TempSensorConv.c 3KB
DSP2802x_PieCtrl.c 3KB
DSP2802x_MemCopy.c 1KB
my_subfunction.c 1KB
NewTargetConfiguration.ccxml 945B
.cdtbuild 12KB
.cdtproject 553B
F28027.cmd 8KB
F28022.cmd 8KB
F28026.cmd 8KB
F28020.cmd 8KB
F28023.cmd 8KB
F28021.cmd 8KB
F280200.cmd 8KB
28026_RAM_lnk.cmd 6KB
28023_RAM_lnk.cmd 6KB
28021_RAM_lnk.cmd 6KB
28022_RAM_lnk.cmd 6KB
28027_RAM_lnk.cmd 6KB
28020_RAM_lnk.cmd 6KB
DSP2802x_Headers_nonBIOS.cmd 6KB
DSP2802x_Headers_BIOS.cmd 6KB
280200_RAM_lnk.cmd 6KB
f28027.gel 60KB
f28026.gel 60KB
f28023.gel 60KB
f28022.gel 60KB
f280200.gel 59KB
f28020.gel 59KB
f28021.gel 59KB
f28020.gel 19KB
f280200.gel 19KB
f28027.gel 19KB
f28022.gel 19KB
f28021.gel 19KB
f28026.gel 19KB
f28023.gel 19KB
DSP2802x_Peripheral.gel 5KB
IQmathLib.h 148KB
DSP2802x_SWPrioritizedIsrLevels.h 141KB
DSP2802x_EPwm.h 22KB
DSP2802x_Adc.h 16KB
DSP2802x_SysCtrl.h 15KB
DSP2802x_Gpio.h 12KB
DSP2802x_Sci.h 8KB
DSP2802x_I2c.h 7KB
DSP2802x_Examples.h 6KB
DSP2802x_PieVect.h 6KB
DSP2802x_Spi.h 6KB
DSP2802x_PieCtrl.h 6KB
DSP2802x_Device.h 6KB
DSP2802x_CpuTimers.h 6KB
DSP2802x_ECap.h 6KB
DSP2802x_EPwm_defines.h 5KB
DSP2802x_DefaultISR.h 5KB
DSP2802x_I2c_defines.h 4KB
DSP2802x_GlobalPrototypes.h 3KB
DSP2802x_NmiIntrupt.h 3KB
SFO_V6.h 3KB
DSP2802x_Comp.h 3KB
DSP2802x_DevEmu.h 3KB
DSP2802x_XIntrupt.h 2KB
DSP2802x_BootVars.h 1KB
DSP28x_Project.h 759B
my_subfunc_declare.h 323B
macros.ini 35B
Example_2802xScia_FFDLB.launch 4KB
IQmath.lib 611KB
SFO_TI_Build_V6b.lib 15KB
SFO_TI_Build_V6.lib 15KB
makefile 5KB
Example_2802xScia_FFDLB.map 18KB
subdir.mk 13KB
sources.mk 2KB
objects.mk 273B
DSP2802x_DefaultIsr.obj 101KB
DSP2802x_SysCtrl.obj 76KB
DSP2802x_GlobalVariableDefs.obj 75KB
共 120 条
- 1
- 2
资源评论
- yangzx19832015-02-23正好要用串口收发数据,实在难得。
- flowerchild0072016-09-05具有一定的参考价值。
- wspytu2018-03-08学习下,自编的串口收发有问题
Zssfff
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 流程图转PAD-N-S图和伪码(软件工程).doc
- C#winform excel导入导出
- 毕业论文上传111111111111
- raisin.zip
- 322个地级市-市场分割指数、市场一体化指数+居民消费价格指数(2004-2022年).txt
- 《基于Java实现自定义控件-天气温度折线图 》+源代码+设计资料
- 希尔伯特矩阵来综合演示数值矩阵与符号矩阵的基本操作
- 《基于51单片机和DS18B20的温度检测和报警系统,可设置报警温度上下限,输出温度采用数码管显示 》+源代码+设计资料
- ESP8266WIFI系统工作原理图.schdoc
- C语言《基于STM32的测量温度与压力的数据处理设计 》+源代码+设计资料
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功