資源簡介
CC1101溫度收發程序,經過測試可以使用,cc1101模塊51單片機無線測溫收發程序
代碼片段和文件信息
#include?
#include?
#define INT8U unsigned?char
#define INT16U unsigned?int
#define? WRITE_BURST????? 0x40 //連續寫入
#define? READ_SINGLE????? 0x80 //讀
#define? READ_BURST?????? 0xC0 //連續讀
#define? BYTES_IN_RXFIFO?????0x7F?? //接收緩沖區的有效字節數
#define? CRC_OK??????????????0x80? //CRC校驗通過位標志
//*****************************************************************************************
sbit? GDO0 =P2^1;
sbit? GDO2 =P2^2;
sbit MISO =P2^3;
sbit MOSI =P2^5;
sbit SCK =P2^4;
sbit CSN =P2^0;
//*****************************************************************************************
sbit????KEY1????=P3^6;
sbit????KEY2????=P3^7;
//*****************************************************************************************
sbit?st=P2^6;
//**
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????22462??2012-09-26?21:03??CC1101溫度收發程序\收發程序\發射程序.c
?????文件??????23585??2012-09-26?20:50??CC1101溫度收發程序\收發程序\接收程序.c
?????文件?????????95??2013-01-15?14:10??CC1101溫度收發程序\收發程序\說明.txt
?????目錄??????????0??2013-01-15?14:10??CC1101溫度收發程序\收發程序
?????目錄??????????0??2013-01-15?14:09??CC1101溫度收發程序
-----------?---------??----------?-----??----
????????????????46142????????????????????5
評論
共有 條評論