资源简介

本程序是鉴于cc1101无线模块实现的自组网技术,目前可以自动添加从机,也可以网内通信,格式的话是自动长度的数据包长,有crc校验,开发环境是iccavr,对于那些想研究cc1101开发的小伙伴,可以直接拿过来开发,单片机是meg48,可以仔细研究一下吧

资源截图

代码片段和文件信息

/******************************************************************************/
//  People Counter RX Program
//  ICCAVR6.31A Atmega48
//  delay.c
//  Author:softli
//  2010-09-01
//  Park Suzhou
//  Crystal:7.3728Mhz
//  Testing 
/******************************************************************************/
//include header files 
#include “iom48v.h“
#include “macros.h“
#include “Debug.h“
#include “delay.h“

//define crystal 7.3728Mhz 
#define XTAL   7.3728

//1us延时函数
void delay_1us(void)                                                 
   {           
    _NOP_;
_NOP_;
_NOP_;
_NOP_;
_NOP_;
    _NOP_;
_NOP_;
_NOP_;
   }

//N us延时函数
void delay_nus(unsigned int n)       
   {
    unsigned int i=0;
    for(i=0;i       delay_1us();
   }
  
//1ms延时函数
void delay_1ms(void)                
   {
    unsigned int idelay;
delay=(unsigned int)(XTAL*143-2);
    for(i=0;i    _NOP_;
   }
  
//N ms延时函数
void delay_nms(unsigned int n)       
   {
    unsigned int i=0;
    for(i=0;i       delay_1ms();
   }

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

     文件      79283  2010-12-22 22:07  Connect_to_computer\12.DSN

     文件      11407  2010-12-25 00:49  Connect_to_computer\cc1101.h

     文件       1926  2010-12-24 16:16  Connect_to_computer\Debug.h

     文件       1113  2010-12-23 12:37  Connect_to_computer\delay.c

     文件        204  2011-01-10 09:27  Connect_to_computer\delay.dp2

     文件        571  2010-12-21 11:04  Connect_to_computer\delay.h

     文件          0  2011-01-10 09:27  Connect_to_computer\delay.i

     文件       6803  2010-12-27 20:24  Connect_to_computer\delay.lis

     文件       1575  2010-12-27 20:24  Connect_to_computer\delay.o

     文件       3070  2010-12-27 20:24  Connect_to_computer\delay.s

     文件       1186  2010-12-26 10:32  Connect_to_computer\headerfile.h

     文件       8496  2010-12-28 23:29  Connect_to_computer\main.c

     文件        574  2011-01-10 09:27  Connect_to_computer\main.dp2

     文件          0  2011-01-10 09:27  Connect_to_computer\main.i

     文件      50666  2010-12-28 23:29  Connect_to_computer\main.lis

     文件      12928  2010-12-28 23:29  Connect_to_computer\main.o

     文件      23250  2010-12-28 23:29  Connect_to_computer\main.s

     文件       8496  2010-12-28 23:27  Connect_to_computer\main._c

     文件      10246  2010-12-28 22:14  Connect_to_computer\rf_cc1101.c

     文件        409  2011-01-10 09:27  Connect_to_computer\rf_cc1101.dp2

     文件       5187  2010-12-28 22:15  Connect_to_computer\rf_cc1101.h

     文件          0  2011-01-10 09:27  Connect_to_computer\rf_cc1101.i

     文件      63261  2010-12-28 23:12  Connect_to_computer\rf_cc1101.lis

     文件      14721  2010-12-28 23:12  Connect_to_computer\rf_cc1101.o

     文件      29334  2010-12-28 23:12  Connect_to_computer\rf_cc1101.s

     文件      10265  2010-12-26 18:51  Connect_to_computer\rf_cc1101._c

     文件       5193  2010-12-26 10:19  Connect_to_computer\rf_cc1101._h

     文件       8480  2010-12-29 09:12  Connect_to_computer\Serial.c

     文件        338  2011-01-10 09:27  Connect_to_computer\Serial.dp2

     文件       1337  2010-12-28 12:41  Connect_to_computer\Serial.h

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

评论

共有 条评论