• 大小: 52KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: 其他
  • 标签: 红外接收  CC2530  

资源简介

基于zigbee小板 红外接收 通过串口打印

资源截图

代码片段和文件信息

#include
#include
#include

int i=0;
extern BOOL Buttoned;
extern void Learn();
extern void InitClk();  //Init clock
extern void Put();

main()
{  
  HLED=0;
  InitClk();
  
  while(1)
  {
    if(Buttoned==1)   //if buttoned 
    {
     Buttoned=0;
     Put();
    }
  }



#pragma vector=T1_VECTOR
__interrupt void T1_IRQ(void)
{
   if(T1STAT & 0x04)
    {
     Buttoned=1;//set flag
     T1STAT=0;  
     Learn();
    }
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-09 12:19  ReceiveLED\
     文件         101  2013-05-08 16:12  ReceiveLED\bol.h
     目录           0  2013-05-04 09:23  ReceiveLED\Debug\
     目录           0  2013-05-08 09:16  ReceiveLED\Debug\Exe\
     文件       18847  2013-05-08 16:16  ReceiveLED\Debug\Exe\ReceiveLED.d51
     文件        5534  2013-05-09 12:06  ReceiveLED\Debug\Exe\ReceiveLED.hex
     文件        5536  2013-05-08 16:15  ReceiveLED\Debug\Exe\test.hex
     目录           0  2013-05-04 09:23  ReceiveLED\Debug\List\
     目录           0  2013-05-09 12:19  ReceiveLED\Debug\Obj\
     文件        1245  2013-05-08 08:18  ReceiveLED\Debug\Obj\EWECD1.r51
     文件         441  2013-05-09 12:19  ReceiveLED\Debug\Obj\main.pbi
     文件        5675  2013-05-09 12:06  ReceiveLED\Debug\Obj\main.r51
     文件         441  2013-05-09 12:09  ReceiveLED\Debug\Obj\mode.pbi
     文件       14659  2013-05-09 12:06  ReceiveLED\Debug\Obj\mode.r51
     文件         445  2013-05-09 12:09  ReceiveLED\Debug\Obj\printf.pbi
     文件       16704  2013-05-09 12:06  ReceiveLED\Debug\Obj\printf.r51
     文件         197  2013-05-09 12:19  ReceiveLED\Debug\Obj\ReceiveLED.pbd
     文件           0  2013-05-08 09:59  ReceiveLED\EW86DC.tmp
     文件           0  2013-05-08 09:59  ReceiveLED\EW86DD.tmp
     文件           0  2013-05-08 10:48  ReceiveLED\EWD543.tmp
     文件           0  2013-05-08 10:48  ReceiveLED\EWD544.tmp
     文件       20093  2013-05-08 08:18  ReceiveLED\EWECD0.tmp
     文件           0  2013-05-08 08:17  ReceiveLED\EWECD1.tmp
     文件           0  2013-05-06 20:58  ReceiveLED\EWF0DC.tmp
     文件           0  2013-05-06 20:58  ReceiveLED\EWF0DD.tmp
     文件         861  2013-05-07 10:02  ReceiveLED\hal.h
     文件         492  2013-05-09 12:19  ReceiveLED\main.c
     文件        1853  2013-05-09 12:06  ReceiveLED\mode.c
     文件        1635  2013-05-09 12:06  ReceiveLED\printf.c
     文件        3905  2013-05-09 12:06  ReceiveLED\ReceiveLED.dep
     文件       34291  2013-05-08 09:12  ReceiveLED\ReceiveLED.ewd
............此处省略19个文件信息

评论

共有 条评论