DSP2833x_examples官方例程
标签:
•
文件类型: .rar
•
文件大小: 11.88MB
•
下载次数: 1
•
useccs、ASM、CASM、DMA、LED、DIP、TIMER、AD、DA、SCI、EPWM、ECAN、GPIO、KEY、LCD、FIR、PID例程等
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 123315 2007-12-04 19:06 DSP2833x_examplesTongDSP2833x_examplesf28335_v2.gel
文件 1112 2007-11-22 11:38 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_ADC_cal.obj
文件 1391 2007-11-30 17:58 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_CodeStartBranch.obj
文件 113759 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_CpuTimers.obj
文件 154305 2007-12-03 10:09 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_DefaultIsr.obj
文件 121824 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_GlobalVariableDefs.obj
文件 112206 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_I2C.obj
文件 121232 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_Mcbsp.obj
文件 112547 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_PieCtrl.obj
文件 119445 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_PieVect.obj
文件 117527 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_SysCtrl.obj
文件 1123 2007-11-22 11:38 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_usDelay.obj
文件 116361 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_Xintf.obj
文件 28793 2007-10-15 18:46 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugExample_2833xI2C_eeprom.map
文件 123020 2007-10-15 18:46 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugExample_2833xI2C_eeprom.obj
文件 28753 2007-11-05 18:04 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.map
文件 122735 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.obj
文件 168440 2007-11-05 18:04 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.out
文件 28409 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-Echo.map
文件 167864 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-Echo.out
文件 1485 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebug.lkf
文件 3072 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.CDX
文件 1530 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.DBF
文件 2858 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.FPT
文件 323584 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.CDX
文件 239594 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.DBF
文件 412138 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.FPT
文件 1213 2007-09-26 10:23 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.gel
文件 12829 2007-12-03 11:34 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoLab0701-AIC23.c
文件 3072 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoLab0701-AIC23.CS_FILE.CDX
............此处省略1058个文件信息
#include “DSP2833x_Device.h“ // DSP2833x Headerfile Include File
#include “DSP2833x_Examples.h“ // DSP2833x Examples Include File
void I2CA_Init(void);
Uint16 I2CA_WriteData(struct I2CMSG *msg);
Uint16 I2CA_ReadData(struct I2CMSG *msg);
interrupt void i2c_int1a_isr(void);
Uint16 AIC23Write(int Addressint Data);
void Delay(int time);
void pass(void);
void fail(void);
#define I2C_SLAVE_ADDR 0x1A
#define I2C_NUMBYTES 20
#define I2C_EEPROM_HIGH_ADDR 0x00
#define I2C_EEPROM_LOW_ADDR 0x17
struct I2CMSG I2cMsgOut1={I2C_MSGSTAT_SEND_WITHSTOP
I2C_SLAVE_ADDR
I2C_NUMBYTES
I2C_EEPROM_HIGH_ADDR
I2C_EEPROM_LOW_ADDR
0x02 // Msg Byte 1
0x17 // Msg Byte 2
0x05 // Msg Byte 3
0x79 // Msg Byte 4
0x07 // Msg Byte 5
0x79 // Msg Byte 6
0x08 // Msg Byte 7
0x15 // Msg Byte 8
0x0A // Msg Byte 9
0x00 // Msg Byte 10
0x0C // Msg Byte 11
0x02 // Msg Byte 12
0x0E // Msg Byte 13
0x43 // Msg Byte 14
0x10 // Msg Byte 15
0x82 // Msg Byte 16
0x12 // Msg Byte 17
0x01 // Msg Byte 18
0x1E // Msg Byte 19
0x00}; // Msg Byte 20
struct I2CMSG I2cMsgIn1={ I2C_MSGSTAT_SEND_NOSTOP
I2C_SLAVE_ADDR
I2C_NUMBYTES
I2C_EEPROM_HIGH_ADDR
I2C_EEPROM_LOW_ADDR};
struct I2CMSG *CurrentMsgPtr; // Used in interrupts
Uint16 PassCount;
Uint16 FailCount;
#define AUDIOEN (*(unsigned short int *)0x180002)
void main(void)
{
Uint16 Error;
int nWork;
CurrentMsgPtr = &I2cMsgOut1;
InitSysCtrl();
InitXintf16Gpio(); //zq
InitMcbspaGpio(); //zq
InitI2CGpio();
AUDIOEN = 0;
// Disable CPU interrupts
DINT;
InitPieCtrl();
// Disable CPU interrupts and clear all CPU interrupt flags:
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
EALLOW; // This is needed to write to EALLOW protected registers
PieVectTable.I2CINT1A = &i2c_int1a_isr;
EDIS; // This is needed to disable write to EALLOW protected registers
I2CA_Init();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 123315 2007-12-04 19:06 DSP2833x_examplesTongDSP2833x_examplesf28335_v2.gel
文件 1112 2007-11-22 11:38 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_ADC_cal.obj
文件 1391 2007-11-30 17:58 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_CodeStartBranch.obj
文件 113759 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_CpuTimers.obj
文件 154305 2007-12-03 10:09 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_DefaultIsr.obj
文件 121824 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_GlobalVariableDefs.obj
文件 112206 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_I2C.obj
文件 121232 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_Mcbsp.obj
文件 112547 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_PieCtrl.obj
文件 119445 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_PieVect.obj
文件 117527 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_SysCtrl.obj
文件 1123 2007-11-22 11:38 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_usDelay.obj
文件 116361 2007-11-29 14:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugDSP2833x_Xintf.obj
文件 28793 2007-10-15 18:46 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugExample_2833xI2C_eeprom.map
文件 123020 2007-10-15 18:46 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugExample_2833xI2C_eeprom.obj
文件 28753 2007-11-05 18:04 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.map
文件 122735 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.obj
文件 168440 2007-11-05 18:04 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-AIC23.out
文件 28409 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-Echo.map
文件 167864 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebugLab0701-Echo.out
文件 1485 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoDebug.lkf
文件 3072 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.CDX
文件 1530 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.DBF
文件 2858 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_FILE.FPT
文件 323584 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.CDX
文件 239594 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.DBF
文件 412138 2007-10-16 09:56 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.CS_SYMBOL.FPT
文件 1213 2007-09-26 10:23 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoExample_2833xI2C_eeprom.gel
文件 12829 2007-12-03 11:34 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoLab0701-AIC23.c
文件 3072 2007-12-03 11:39 DSP2833x_examplesTongDSP2833x_examplesLab0701-EchoLab0701-AIC23.CS_FILE.CDX
............此处省略1058个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)