-
大小: 76KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-06-08
- 语言: 其他
- 标签: cc1101+WOR
资源简介
cc1101的完整程序,测试通过的,可以直接编译使用,并且可无线唤醒WOR,超低功耗,实现触发发射信号
代码片段和文件信息
//----------------------------------------------------------------------------
// Description: This file contains functions that configure the CC1100/2500
// device.
//
// Demo Application for MSP430/CC1100-2500 Interface Code Library v1.0
//
// K. Quiring
// Texas Instruments Inc.
// July 2006
// IAR embedded Workbench v3.41
//----------------------------------------------------------------------------
#include “include.h“
#include “TI_CC_CC1100-CC2500.h“
//-------------------------------------------------------------------------------------------------------
// void writeRFSettings(void)
//
// DEscriptION:
// Used to configure the CCxxxx registers. There are five instances of this
// function one for each available carrier frequency. The instance compiled
// is chosen according to the system variable TI_CC_RF_FREQ assigned within
// the header file “TI_CC_hardware_board.h“.
//
// ARGUMENTS:
// none
//-------------------------------------------------------------------------------------------------------
// Product = CC1100
// Crystal accuracy = 40 ppm
// X-tal frequency = 26 MHz
// RF output power = 0 dBm
// RX filterbandwidth = 540.000000 kHz
// Deviation = 0.000000
// Return state: Return to RX state upon leaving either TX or RX
// Datarate = 250.000000 kbps
// Modulation = (7) MSK
// Manchester enable = (0) Manchester disabled
// RF Frequency = 433.000000 MHz
// Channel spacing = 199.951172 kHz
// Channel number = 0
// Optimization = Sensitivity
// Sync mode = (3) 30/32 sync word bits detected
// Format of RX/TX data = (0) Normal mode use FIFOs for RX and TX
// CRC operation = (1) CRC calculation in TX and CRC check in RX enabled
// Forward Error Correction = (0) FEC disabled
// Length configuration = (1) Variable length packets packet length configured by the first received byte after sync word.
// Packetlength = 255
// Preamble count = (2) 4 bytes
// Append status = 1
// Address check = (0) No address check
// FIFO autoflush = 0
// Device address = 0
// GDO0 signal selection = ( 6) Asserts when sync word has been sent / received and de-asserts at the end of the packet
// GDO2 signal selection = (11) Serial Clock
void writeRFSettings(void)
{
/******250khz波特率
TI_CC_SPIWriteReg(TI_CCxxx0_IOCFG0 0x06); // GDO0 output pin config.
TI_CC_SPIWriteReg(TI_CCxxx0_PKTLEN 0x3D); // Packet length.
TI_CC_SPIWriteReg(TI_CCxxx0_PKTCTRL1 0x07); // Packet automation control.
TI_CC_SPIWriteReg(TI_CCxxx0_PKTCTRL0 0x05); // Packet automation control.
TI_CC_SPIWriteReg(TI_CCxxx0_ADDR Flash_read(0xf880)); // Device address.
TI_CC_SPIWriteReg(TI_CCxxx0_CHANNR 0x00); // Channel number.
TI_CC_SPIWriteReg(TI_CCxxx0_FSCTRL1 0x12); // Freq synthesizer control.
TI_CC_SPIWriteReg(TI_CCxxx0_FSCTRL0 0x00); // Freq synthesizer control.
TI_CC_SPIWriteReg(TI_CCxxx0_FREQ2 0x10); // Freq control word high byte
TI
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11679 2011-12-02 13:57 遥控器cc1100\CC1100-CC2500.c
文件 498 2006-07-18 14:50 遥控器cc1100\CC1100-CC2500.h
文件 30211 2013-05-16 10:17 遥控器cc1100\Debug\Exe\receive_mian.d43
文件 19014 2012-11-08 15:07 遥控器cc1100\Debug\Obj\CC1100-CC2500.r43
文件 13136 2012-11-08 15:07 遥控器cc1100\Debug\Obj\DJ_control.r43
文件 864 2013-05-16 10:17 遥控器cc1100\Debug\Obj\EW1C0.r43
文件 864 2013-05-16 10:17 遥控器cc1100\Debug\Obj\EW1C2.r43
文件 864 2013-05-16 10:17 遥控器cc1100\Debug\Obj\EW1C4.r43
文件 864 2013-05-16 10:17 遥控器cc1100\Debug\Obj\EW1C6.r43
文件 864 2013-05-16 10:17 遥控器cc1100\Debug\Obj\EW1C9.r43
文件 845 2012-11-08 15:07 遥控器cc1100\Debug\Obj\EW2AA.r43
文件 845 2012-11-08 15:07 遥控器cc1100\Debug\Obj\EW2AC.r43
文件 845 2012-11-08 15:07 遥控器cc1100\Debug\Obj\EW2AE.r43
文件 845 2012-11-08 15:07 遥控器cc1100\Debug\Obj\EW2B0.r43
文件 845 2012-11-08 15:07 遥控器cc1100\Debug\Obj\EW2B3.r43
文件 845 2012-11-08 15:08 遥控器cc1100\Debug\Obj\EW2B5.r43
文件 845 2012-11-08 15:08 遥控器cc1100\Debug\Obj\EW2B7.r43
文件 845 2012-11-08 15:08 遥控器cc1100\Debug\Obj\EW2B9.r43
文件 845 2012-11-08 15:08 遥控器cc1100\Debug\Obj\EW2BB.r43
文件 845 2012-11-08 15:09 遥控器cc1100\Debug\Obj\EW2BE.r43
文件 845 2012-11-08 15:10 遥控器cc1100\Debug\Obj\EW2C3.r43
文件 845 2012-11-08 15:11 遥控器cc1100\Debug\Obj\EW2C5.r43
文件 845 2012-11-08 15:11 遥控器cc1100\Debug\Obj\EW2C7.r43
文件 845 2012-11-08 15:11 遥控器cc1100\Debug\Obj\EW2C9.r43
文件 845 2012-11-08 15:11 遥控器cc1100\Debug\Obj\EW2CB.r43
文件 845 2012-11-08 15:11 遥控器cc1100\Debug\Obj\EW2CE.r43
文件 845 2012-11-08 15:12 遥控器cc1100\Debug\Obj\EW2D0.r43
文件 845 2012-11-08 15:12 遥控器cc1100\Debug\Obj\EW2D2.r43
文件 845 2012-11-08 15:12 遥控器cc1100\Debug\Obj\EW2D4.r43
文件 845 2012-11-08 15:12 遥控器cc1100\Debug\Obj\EW2D6.r43
............此处省略44个文件信息
评论
共有 条评论