資源簡介
useccs、ASM、CASM、DMA、LED、DIP、TIMER、AD、DA、SCI、EPWM、ECAN、GPIO、KEY、LCD、FIR、PID例程等
代碼片段和文件信息
#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_examplesTong\DSP2833x_examples\f28335_v2.gel
?????文件???????1112??2007-11-22?11:38??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_ADC_cal.obj
?????文件???????1391??2007-11-30?17:58??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_CodeStartBranch.obj
?????文件?????113759??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_CpuTimers.obj
?????文件?????154305??2007-12-03?10:09??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_DefaultIsr.obj
?????文件?????121824??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_GlobalVariableDefs.obj
?????文件?????112206??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_I2C.obj
?????文件?????121232??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_Mcbsp.obj
?????文件?????112547??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_PieCtrl.obj
?????文件?????119445??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_PieVect.obj
?????文件?????117527??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_SysCtrl.obj
?????文件???????1123??2007-11-22?11:38??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_usDelay.obj
?????文件?????116361??2007-11-29?14:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\DSP2833x_Xintf.obj
?????文件??????28793??2007-10-15?18:46??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Example_2833xI2C_eeprom.map
?????文件?????123020??2007-10-15?18:46??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Example_2833xI2C_eeprom.obj
?????文件??????28753??2007-11-05?18:04??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Lab0701-AIC23.map
?????文件?????122735??2007-12-03?11:39??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Lab0701-AIC23.obj
?????文件?????168440??2007-11-05?18:04??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Lab0701-AIC23.out
?????文件??????28409??2007-12-03?11:39??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Lab0701-Echo.map
?????文件?????167864??2007-12-03?11:39??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug\Lab0701-Echo.out
?????文件???????1485??2007-12-03?11:39??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Debug.lkf
?????文件???????3072??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\FILE.CDX
?????文件???????1530??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\FILE.DBF
?????文件???????2858??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\FILE.FPT
?????文件?????323584??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\SYMBOL.CDX
?????文件?????239594??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\SYMBOL.DBF
?????文件?????412138??2007-10-16?09:56??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.CS_\SYMBOL.FPT
?????文件???????1213??2007-09-26?10:23??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Example_2833xI2C_eeprom.gel
?????文件??????12829??2007-12-03?11:34??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Lab0701-AIC23.c
?????文件???????3072??2007-12-03?11:39??DSP2833x_examplesTong\DSP2833x_examples\Lab0701-Echo\Lab0701-AIC23.CS_\FILE.CDX
............此處省略1058個文件信息
- 上一篇:智能垃圾分類.zip
- 下一篇:Eclipse4.5.2 64位版本
評論
共有 條評論