91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 271KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-08-13
  • 語言: 其他
  • 標簽: TMS320F2812??

資源簡介

軟件完成了系統(tǒng)整體結(jié)構(gòu)、系統(tǒng)總流程以及各個相應(yīng)模塊功能的設(shè)計,包括128點采樣的FFT算法,分析至64次諧波,液晶顯示為點陣為128*64液晶,9個功能鍵鍵盤程序,包括MODBUS通信規(guī)約。

資源截圖

代碼片段和文件信息

/*?
???FILE:????DSP281x_X1228.c
??
???title:???X1228?Program(I2C).
???
???AUTHOR:??Xu?Kangping??
??
???DEscriptION:
??
????????????This?file?define?some?function?about?I2C?to?operate?the?
????????????X1228?device(RTC).
??
????????????The?Epower_28x?headerfiles?are?required?to?build?this?file.
?????????
????????????Watch?Variables:
???????????????????real_time
*/

#include?“Epower_28x.h“

/*?define?the?initialized?data?*/
Uint16?control[3]={0x900x000x00};

/*?define?the?delay_us()?function?*/
extern?void?DSP28x_usDelay(Uint32?Count);

/*?define?a?array?of?real?time?*/
extern?Uint16?real_time[8];

/*?define?the?pin?of?SCL?*/
void?ConfigI2C_SCL_Out(void)
{
????EALLOW;
????GpioMuxRegs.GPFMUX.bit.SPISIMOA_GPIOF0?=?0;
????GpioMuxRegs.GPFDIR.bit.GPIOF0?=?1;
????EDIS;
}

/*?define?the?pin?of?SDA?to?putout?*/
void?ConfigI2C_SDA_Out(void)
{
????EALLOW;
????GpioMuxRegs.GPFMUX.bit.SPISTEA_GPIOF3?=?0;
????GpioMuxRegs.GPFDIR.bit.GPIOF3?=?1;
????EDIS;
}

/*?define?the?pin?of?SDA?to?putin?*/
void?ConfigI2C_SDA_In(void)
{
????EALLOW;
????GpioMuxRegs.GPFMUX.bit.SPISTEA_GPIOF3?=?0;
????GpioMuxRegs.GPFDIR.bit.GPIOF3?=?0;
????EDIS;
}

/*?the?Start?Condition?of?transfer?*/
void?Start_Condition(void)
{
SCL_0?;
????SDA_1;???????????????????????????//SDA?=?1
????SCL_1;
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SDA_0;???????????????????????????//SDA?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SCL_0;???????????????????????????//SCL?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
}

/*?the?Stop?Condition?of?transfer?*/
void?Stop_Condition(void)
{
????SCL_0;??????????????//??????????????//SCL?=?0
????SDA_0;???????????????????????????//SDA?=?0
????SCL_1;???????????????????????????//SCL?=?1
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SDA_1;???????????????????????????//SDA?=?1
????DELAY_US(DELAY_TIME);????????????//delay?1us
}

/*?indicating?successful?data?transfer?*/
Uint16?Acknowledge(void)
{
????Uint16?answer?=?1;
????SDA_1;???????????????????????????//SDA?=?1
????ConfigI2C_SDA_In();
????SCL_0;???????????????????????????//SCL?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SCL_1;???????????????????????????//SCL?=?1
????DELAY_US(DELAY_TIME/2);??????????//delay?1us
????answer?=?SDA;????????????????????//read?the?SDA?bus
????DELAY_US(DELAY_TIME/2);??????????//delay?1us
????SCL_0;???????????????????????????//SCL?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
????ConfigI2C_SDA_Out();
????return(answer);
}

/*?The?master?made?the?ACK?*/
void?Ack(void)
{
????SCL_0;???????????????????????????//SCL?=?0
????SDA_0;???????????????????????????//SDA?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SCL_1;???????????????????????????//SCL?=?1
????DELAY_US(DELAY_TIME);????????????//delay?1us
????SCL_0;???????????????????????????//SCL?=?0
????DELAY_US(DELAY_TIME);????????????//delay?1us
}

/*?The?master?didn‘t?make?the?AC

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????4938??2004-08-24?10:32??eletric_power\common\include\DSP281x_DefaultIsr.h

?????文件???????3728??2005-03-25?21:59??eletric_power\common\include\DSP281x_Examples.h

?????文件???????2374??2004-08-24?10:32??eletric_power\common\include\DSP281x_GlobalPrototypes.h

?????文件?????147079??2004-08-24?10:32??eletric_power\common\include\DSP281x_SWPrioritizedIsrLevels.h

?????文件??????26492??2003-11-05?18:23??eletric_power\common\source\cfft32c.asm

?????文件??????20925??2002-05-06?10:04??eletric_power\common\source\cfft32i.asm

?????文件???????2137??2004-08-24?10:32??eletric_power\common\source\DSP281x_Adc.c

?????文件???????2177??2004-08-24?10:32??eletric_power\common\source\DSP281x_CodeStartBranch.asm

?????文件???????4665??2005-04-21?17:42??eletric_power\common\source\DSP281x_CpuTimers.c

?????文件???????2481??2004-08-24?10:32??eletric_power\common\source\DSP281x_CSMPasswords.asm

?????文件????????898??2004-08-24?10:32??eletric_power\common\source\DSP281x_DBGIER.asm

?????文件??????25791??2005-07-18?09:46??eletric_power\common\source\DSP281x_DefaultIsr.c

?????文件???????5999??2004-08-24?10:32??eletric_power\common\source\DSP281x_ECan.c

?????文件???????1120??2004-08-24?10:32??eletric_power\common\source\DSP281x_Ev.c

?????文件???????1715??2004-08-24?10:32??eletric_power\common\source\DSP281x_Gpio.c

?????文件???????1920??2004-08-24?10:32??eletric_power\common\source\DSP281x_InitPeripherals.c

?????文件???????1153??2004-08-24?10:32??eletric_power\common\source\DSP281x_Mcbsp.c

?????文件???????1375??2004-08-24?10:32??eletric_power\common\source\DSP281x_MemCopy.c

?????文件???????3208??2004-08-24?10:32??eletric_power\common\source\DSP281x_PieCtrl.c

?????文件???????5551??2005-07-28?14:48??eletric_power\common\source\DSP281x_PieVect.c

?????文件???????1200??2004-08-24?10:32??eletric_power\common\source\DSP281x_Sci.c

?????文件???????1166??2004-08-24?10:32??eletric_power\common\source\DSP281x_Spi.c

?????文件??????36618??2004-08-24?10:32??eletric_power\common\source\DSP281x_SWPrioritizedDefaultIsr.c

?????文件???????9783??2004-08-24?10:32??eletric_power\common\source\DSP281x_SWPrioritizedPieVect.c

?????文件???????7995??2005-07-23?18:44??eletric_power\common\source\DSP281x_SysCtrl.c

?????文件???????2554??2004-08-24?10:32??eletric_power\common\source\DSP281x_usDelay.asm

?????文件???????6980??2005-07-04?09:31??eletric_power\common\source\DSP281x_Xintf.c

?????文件???????2265??2004-08-24?10:32??eletric_power\common\source\DSP281x_XintfBootReset.asm

?????文件???????1162??2004-08-24?10:32??eletric_power\common\source\DSP281x_XIntrupt.c

?????文件???????2536??2003-05-28?13:37??eletric_power\common\source\rfft32aq.asm

............此處省略91個文件信息

評論

共有 條評論