• PUDN用户
    了解作者
  • C/C++
    开发工具
  • 265KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 18
    下载次数
  • 2010-01-19 13:31
    上传日期
CC1100应用例子代码,可以作为应用参考
CC1100-APP.rar
  • CC1100_APP
  • Src
  • main.c
    3.5KB
  • CC1100.h.bak
    9.2KB
  • board.c
    20KB
  • simpleio.h
    104B
  • main.c.bak
    2.5KB
  • simpleio.c
    5.6KB
  • board.c.bak
    19.8KB
  • main.h
    627B
  • CC1100.c
    5.5KB
  • CC1100.h
    9.2KB
  • board.h
    5.6KB
  • settings
  • CC1100.dni
    492B
  • cc1100.wsdt
    4.9KB
  • CC1100.cspy.bat
    2.3KB
  • CC1100.dbgdt
    6KB
  • resouece
  • CC1100 CCA功能验证-RFIC-射频电路-与非网-电子社区论坛.files
  • space.gif
    157B
  • global.js
    12.5KB
  • btn_huifu.gif
    552B
  • 24551.jpg
    4.3KB
  • btn_top.gif
    76B
  • makejs.htm
    0B
  • login_bg.gif
    283B
  • icon_huida.gif
    1.2KB
  • biaoshi.gif
    499B
  • bbs_menu.js
    6.9KB
  • footer_left.gif
    71B
  • arrow.gif
    57B
  • alu.gif
    608B
  • footer_right.gif
    72B
  • icon_name.gif
    335B
  • newAjax.js
    3.6KB
  • popmenu.js
    2.9KB
  • urchin.js
    22.1KB
  • icon_public.gif
    1.2KB
  • btn_xiugai.gif
    607B
  • no_online.gif
    567B
  • bbs_common.js
    5.8KB
  • mail.gif
    1.9KB
  • mess.gif
    621B
  • table.bbs.css
    7.9KB
  • footer_middle.gif
    52B
  • rss.gif
    560B
  • btn_link.gif
    607B
  • time_star.gif
    333B
  • 0508CN_728x90_SS.jpg
    0B
  • CC1100 CCA功能验证-nkzcc的博客-与非网.files
  • 6.css
    10.1KB
  • makejs.htm
    0B
  • hc.js
    9.8KB
  • loadingAnimation.gif
    7.2KB
  • blog.js
    5.6KB
  • urchin.js
    22.1KB
  • CCA功能验证过程 - Dian团队嘉铭标记机软件组Blog.files
  • typography.css
    6.1KB
  • firefox.gif
    809B
  • link.css
    2.3KB
  • global.css
    375B
  • From.gif
    592B
  • editor.css
    2.8KB
  • rss.png
    415B
  • 1.gif
    354B
  • 8.gif
    554B
  • 3.gif
    576B
  • Cnext.gif
    129B
  • Cprevious.gif
    130B
  • cc.png
    880B
  • hn2_sunny.gif
    922B
  • hn2_t_sunny.gif
    863B
  • 7.gif
    340B
  • 22.gif
    157B
  • css.png
    1.1KB
  • urchin.js
    22.1KB
  • rss2.png
    282B
  • layout.css
    7.2KB
  • 24.gif
    167B
  • icon_trackback.gif
    582B
  • icon_quote.gif
    317B
  • common.js
    20.6KB
  • 10.gif
    623B
  • xhtml.png
    1.1KB
  • atom.png
    280B
  • tag.gif
    378B
  • level3.gif
    287B
  • cc1100的信号强度问题 - 利尔达技术论坛.files
  • navbits_finallink_ltr.gif
    1KB
  • level2.gif
    2.1KB
  • mode_threaded.gif
    562B
  • icon4.gif
    1019B
  • reputation_pos.gif
    501B
  • level1.gif
    547B
  • mode_hybrid.gif
    588B
  • vbulletin3_logo_white.gif
    5.5KB
  • quote.gif
    2KB
  • vbulletin_menu.js
    18.1KB
  • collapse_thead.gif
    580B
内容介绍
/****************************************************/ /* Application note */ /* Reference design : CC1100 RF Test Board */ /* File: board.c */ /* Revision: 1.0 */ /* Description: */ /* Microcontroller:ATmega48/48V */ /* Author: Zcg, Field Applications Engineer, SunRay*/ /****************************************************/ #include "iom88.h" #include "iomacro.h" #include "main.h" #include "CC1100.h" #include "board.h" #include "simpleio.h" #include "ina90.h" INT8U Test_RFTx_Buf[MAX_DATA_TEST]; //测试数据缓冲区 INT8U UartReceive_Buf[MAX_UT_BUFF]; //射频发送(串口接收)缓存 INT8U RFReceive_Buf[MAX_RF_BUFF]; //射频接收(串口发送)缓存 INT8U APPEND_STATUS[APPEND_STATUS_LEN]; INT8U RFSend_Start; INT8U RFSendCnt; //射频发送计数器,记录要发送的字节个数 INT8U RFReceiveCnt; //串口接收计数器 INT8U RFReceiveLen; //串口发送字节长度 INT8U RFSendFlg; //当串口接收完一包数据,置该标志 INT8U RFReceiveFlg; //当射频接收完一包数据,置该标志 INT8U RXOTFlg; //串口接收数据超时标志 INT8U RXOTCnt; //串口接收数据超时计数器 INT8U Baud_Set_Num; //跳线开关波特率 INT8U Chno_Set_Num; //跳线开关信道值 INT8U Beep_Flag; //蜂鸣器开启标志 INT16U Beep_Time; //蜂鸣器开启时间 const SYS_SETTINGS Sys_Set[8] = { {T_T0_18MS,0x40,0x03,0xC4,0x86,0x10,600},//000 600 {T_T0_10MS,0x9F,0x01,0xF5,0x83,0x15,1200},//001 1200 {T_T0_8MS ,0xCF,0x00,0xC6,0x83,0x15,2400},//010 2400 {T_T0_4MS ,0x67,0x00,0xC7,0x83,0x40,4800},//011 4800 {T_T0_2MS ,0x33,0x00,0xC8,0x83,0x34,9600},//100 9600 {T_T0_2MS ,0x19,0x00,0xC9,0x83,0x34,19200},//101 19200 {T_T0_2MS ,0x0C,0x00,0xCA,0x83,0x34,38400},//110 38400 {T_T0_2MS ,0x08,0x00,0xCB,0x83,0x45,57600},//111 57600 }; INT8U paTable[8] = {0x8D,0x8D,0x8D,0x8D,0x8D,0x8D,0x8D,0x8D}; //INT8U paTable[8] = {0xC0, 0xC8, 0x85, 0x51, 0x3A, 0x06, 0x1C, 0x6C}; #if 0 INT8U rfSettings[39] = { 0x06, //*0x0B IOCFG2 GDO2 output pin configuration. 0x2E, //*0x2E IOCFG1 GDO1 output pin configuration. 0x2E, //*0x0C IOCFG0 ==0x2E,GDO0 output pin configuration. Refer to SmartRF?Studio User Manual for detailed pseudo register explanation. 0x07, // FIFOTHR RX FIFO and TX FIFO thresholds 0xD3, // SYNC1 Sync word, high byte 0x91, // SYNC0 Sync word, low byte 0xFF, // PKTLEN Packet length. 0x24, //*0x00 PKTCTRL1 Packet automation control. 0x45, //*0x12 PKTCTRL0 Packet automation control. 0x00, // ADDR Device address. 0x00, // CHANNR Channel number. 0x0C, //*0x06 FSCTRL1 Frequency synthesizer control. 0x00, // FSCTRL0 Frequency synthesizer control. 0x10, // FREQ2 Frequency control word, high byte. 0xA7, // FREQ1 Frequency control word, middle byte. 0x62, // FREQ0 Frequency control word, low byte. 0xF5, //* MDMCFG4 Modem configuration. 0x83, //* MDMCFG3 Modem configuration. 0x03, //*0x00 MDMCFG2 Modem configuration. 0x22, // MDMCFG1 Modem configuration. 0xF8, // MDMCFG0 Modem configuration. 0x15, // DEVIATN Modem deviation setting (when FSK modulation is enabled). 0x0E, //*0x07 MCSM2 Main Radio Control State Machine configuration. 0x30, // MCSM1 Main Radio Control State Machine configuration. 0x18, // MCSM0 Main Radio Control State Machine configuration. 0x15, //*0x16 FOCCFG Frequency Offset Compensation Configuration. 0x6C, // BSCFG Bit synchronization Configuration. 0x03, // AGCCTRL2 AGC control. 0x40, // AGCCTRL1 AGC control. 0x91, // AGCCTRL0 AGC control. 0x87, // WOREVT1 0x1E //定义EVENT0时间 0x6B, // WOREVT0 0x1F //... 0xF8, // WORCTRL 0x20 //关闭RC,定义EVENT1时间 0x56, // FREND1 Front end RX configuration. 0x10, // FREND0 Front end RX configuration. 0xA9, //* FSCAL3 Frequency synthesizer calibration. 0x2A, //* FSCAL2 Frequency synthesizer calibration. 0x0D, //* FSCAL1 Frequency synthesizer calibration. 0x11, //* FSCAL0 Frequency synthesizer calibration. }; #endif #define RF_CENTER 433 #define RF_433 #if 1 const RF_SETTINGS rfSettings = { 0x06, //*0x0B IOCFG2 GDO2 output pin configuration. 0x2E, //*0x2E IOCFG1 GDO1 output pin configuration. 0x09, //*0x0C IOCFG0 ★★==0x2E GDO0 output pin configuration. Refer to SmartRF?Studio User Manual for detailed pseudo register explanation. 0x07, // FIFOTHR RX FIFO and TX FIFO thresholds 0xD3, // SYNC1 Sync word, high byte 0x91, // SYNC0 Sync word, low byte 0xFF, // PKTLEN Packet length. 0x04, //*0x00 PKTCTRL1 Packet automation control. 0x45, //*0x12 PKTCTRL0 Packet automation control. 0x00, // ADDR Device address. 0x00, // CHANNR Channel number. 0x06, //0x0C, //*0x06 FSCTRL1 Frequency synthesizer control. 0x00, // FSCTRL0 Frequency synthesizer control. #ifdef RF_429 0x10, // FREQ2 Frequency control word, high byte. 0x80, // FREQ1 Frequency control word, middle byte. 0x83, // FREQ0 Frequency control word, low byte. #endif #ifdef RF_433 0x10, // FREQ2 Frequency control word, high byte. 0xA7, // FREQ1 Frequency control word, middle byte. 0x62, // FREQ0 Frequency control word, low byte. #endif #ifdef RF_461 0x11, // FREQ2 Frequency control word, high byte. 0xBB, // FREQ1 Frequency control word, middle byte. 0x13, // FREQ0 Frequency control word, low byte. #endif 0xF5, // MDMCFG4 Modem configuration. 0x83, // MDMCFG3 Modem configuration. 0x03, //*0x00 MDMCFG2 Modem configuration. 0x22, // MDMCFG1 Modem configuration. 0xF8, // MDMCFG0 Modem configuration. 0x15, // DEVIATN Modem deviation setting (when FSK modulation is enabled). 0x0E, //*0x07 MCSM2 Main Radio Control State Machine configuration. 0x3f, // MCSM1 ★★ ==0x30 Main Radio Control State Machine configuration. 0x18, // MCSM0 Main Radio Control State Machine configuration. 0x16, // 0x15, //*0x16 FOCCFG Frequency Offset Compensation Configuration. 0x6C, // BSCFG Bit synchronization Configuration. 0xC7, // AGCCTRL2 AGC control.0x43 0x00, // AGCCTRL1 AGC control.40 0x91, // AGCCTRL0 AGC control. 0x87, // WOREVT1 0x1E //定义EVENT0时间 0x6B, // WOREVT0 0x1F //... 0xF8, // WORCTRL 0x20 //关闭RC,定义EVENT1时间 0x56, // FREND1 Front end RX configuration. 0x10, // FREND0 Front end RX configuration. 0xE9, //0xA9, //*0xE9 FSCAL3 Frequency synthesizer calibration. 0x2A, //0x2A, //*0x2A FSCAL2 Frequency synthesizer calibration. 0x00, //0x0D, //*0x00 FSCAL1 Frequency synthesizer calibration. 0x1F, //0x11, //*0x1F FSCAL0 Frequency synthesizer calibration. }; #endif INT8U RFState; //保存射频状态,共两种状态:发送、接收状态 INT8U CC1100IntHFlg; //CC1100产生高电平中断标志 INT8U CC1100IntLFlg; /* ************************************************************ *Description:RF收发中断处理函数 *Arguments :none *Returns :none *Notes : ************************************************************ */ #pragma vector = PCINT2_vect __interrupt void __INT0_vect( void ) { if (GDO2_STATE != 0x00) { CC1100IntHFlg = TRUE; //上升沿中断,等待下降沿中断 if(RFSend_Start==TRUE) { TXEN_SET_L;//打开功率放大 RXEN_SET_L;//打开功率放大 } } if ((CC1100IntHFlg == TRUE) && (GDO2_STATE == 0x00)) { CC1100IntHFlg = FALSE; //下降沿中断 CC1100IntLFlg = TRUE; if(RFSend_Start==TRUE) { TXEN_S
评论
    相关推荐
    • Zxing_a5.zip
      Zxing_a5条码扫描程序 现如今很多项目中都会应用到条码扫描解码的功能,现将源码上传,希望对大家有所帮助!
    • CC430x513x_Code_Examples.rar
      TI CC430f513x例程 该单片机为德州仪器低功耗集成RF射频的嵌入式芯片
    • CC2530-4.zip
      物联网2530的T1的使用,隔段时间LED闪烁。
    • Asp-cc.rar
      asp防御cc攻击的模块,大家可以插进自己的网站里试试,很好用的哦,欢迎使用
    • cc1100M8.rar
      CC1100的AVR下的例程。已成功编译运行
    • bivovwrldad.rar
      C常用算法程序集,包含了大量C++开发的算法程序
    • purpcsessymbolicnamespace.rar
      这里有所有扩展名的介绍,让大家在开发软件的时候更方便些,很好用的
    • 0cc715b4e0.rar
      4905PDF,有需要的朋友可以找我。我会给大家解决你意想不到的难题的!
    • BezierThreeOrderCurve.rar
      用Java3d绘制了一个球体和一条曲线的组合提,定义了颜色和背景光
    • cc.zip
      详细介绍了C++的编程方法,非常适合C++的初学者,看过后肯定大有益处