TMS320F2812各模块开发例程,适合新手学习


TMS320F2812各模块开发例程,包括有AD,IO,EV,SCI,SPI,PWM等非常全面,适合新手学习
资源截图
代码片段和文件信息

#include “DSP281x_Device.h“     // DSP281x Headerfile Include File
#include “DSP281x_Examples.h“   // DSP281x Examples Include File

// Prototype statements for functions found within this file.
interrupt void cpu_timer1_isr(void);

void main(void)
{

// Step 1. Initialize System Control:
// PLL WatchDog enable Peripheral Clocks
// This example function is found in the DSP281x_SysCtrl.c file.
   InitSysCtrl();

// Step 2. Initalize GPIO: 
// This example function is found in the DSP281x_Gpio.c file and
// illustrates how to set the GPIO to it‘s default state.
   InitGpio();   


// Step 3. Clear all interrupts and initialize PIE vector table:
// Disable CPU interrupts 
   DINT;

// Initialize the PIE control registers to their default state.
// The default state is all PIE interrupts disabled and flags
// are cleared.  
// This function is found in the DSP281x_PieCtrl.c file.
   InitPieCtrl();
   
// Disable CPU interrupts and clear all CPU interrupt flags:
   IER = 0x0000;
   IFR = 0x0000;

// Initialize the PIE vector table with pointers to the shell Interrupt 
// Service Routines (ISR).  
// This will populate the entire table even if the interrupt
// is not used in this example.  This is useful for debug purposes.
// The shell ISR routines are found in DSP281x_DefaultIsr.c.
// This function is found in DSP281x_PieVect.c.
   InitPieVectTable();

// Interrupts that are used in this example are re-mapped to
// ISR functions found within this file.  
   EALLOW;  
   PieVectTable.XINT13 = & cpu_timer1_isr;
//    PieVectTable.XNMI = &cpu_timer1_isr;
   EDIS;    

// Step 4. Initialize all the Device Peripherals:
// This function is found in DSP281x_InitPeripherals.c
// InitPeripherals(); // Not required for this example
   InitCpuTimers();   // For this example only initialize the Cpu Timers
// Configure CPU-Timer 0 to interrupt every second:

   ConfigCpuTimer(&CpuTimer1 100 200000);
   StartCpuTimer1();

// Step 5. User specific code enable interrupts:


// Enable CPU INT1 which is connected to CPU-Timer 0:
   IER |= M_INT13;

// Enable TINT0 in the PIE: Group 1 interrupt 7
//   PieCtrlRegs.PIEIER1.bit.INTx7 = 1;

// Enable global Interrupts and higher priority real-time debug events:
   EINT;   // Enable Global interrupt INTM
   ERTM;   // Enable Global realtime interrupt DBGM

// Step 6. IDLE loop. Just sit and loop forever (optional):
   for(;;);




interrupt void cpu_timer1_isr(void)
{

GpioDataRegs.GPADAT.all = 1< CpuTimer1.InterruptCount++;
if(CpuTimer1.InterruptCount == 8)
{
CpuTimer1.InterruptCount = 0;
}

}

//===========================================================================
// No more.
//===========================================================================

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     193351  2012-07-17 12:06  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)2812Aprogrammer2812A-flash-ram.out

     文件         90  2012-11-22 13:52  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)2812Aprogrammer说明.txt

     文件       2683  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDcc_build_Debug.log

     文件       4854  2009-08-04 09:30  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDcmdDSP281x_Headers_BIOS.cmd

     文件       4957  2009-08-04 09:30  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDcmdDSP281x_Headers_nonBIOS.cmd

     文件       7285  2009-08-04 09:30  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDcmdF2812.cmd

     文件       3784  2009-08-04 09:30  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDcmdF2812_RAM_lnk.cmd

     文件       1386  2011-05-04 10:27  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_CodeStartBranch.obj

     文件     147703  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_DefaultIsr.obj

     文件     119374  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_GlobalVariableDefs.obj

     文件     114166  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_Gpio.obj

     文件     114724  2011-05-04 10:19  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_InitPeripherals.obj

     文件     114797  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_PieCtrl.obj

     文件     120802  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_PieVect.obj

     文件     117776  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_SysCtrl.obj

     文件       1119  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugDSP281x_usDelay.obj

     文件      16719  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugGPIO_LED.map

     文件     140845  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugGPIO_LED.out

     文件     116248  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebugmain.obj

     文件       1152  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDDebug.lkf

     文件       3072  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_FILE.CDX

     文件       1188  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_FILE.DBF

     文件       1904  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_FILE.FPT

     文件     431104  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_SYMBOL.CDX

     文件     344319  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_SYMBOL.DBF

     文件     560475  2011-05-04 10:28  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.CS_SYMBOL.FPT

     文件       7503  2012-06-11 16:53  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.paf2

     文件       1523  2012-06-11 16:51  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.pjt

     文件       5305  2012-06-11 16:51  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDGPIO_LED.sbl

     文件       8489  2009-08-04 09:30  开发例程(如果使用CCS3.3拷贝到安装目录下的MyProject下,不能有中文路径)EX01_GPIO_LEDincludeDSP281x_Adc.h

............此处省略2721个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)