开发工具:
文件大小: 236kb
下载次数: 0
上传时间: 2009-05-20
详细说明: void radioConfigure_rx() { PA_TABLE0 = 0xFE;//1=0xff,-2=0xbf,-6=0x7f,-10=0xcb,-16=0x87,-20=0xc1,-30=0x44 /* FREQ2 = 0x5F;// 2480 MHz FREQ1 = 0x62; FREQ0 = 0x76;*/ FREQ2 = 0x5E;// 2460 MHz FREQ1 = 0x9D; FREQ0 = 0x89; /* FREQ2 = 0x5D;// 2440 MHz FREQ1 = 0xD8; FREQ0 = 0x9D; FREQ2 = 0x5D;// 2420 MHz FREQ1 = 0x13; FREQ0 = 0xB1; */ FSCTRL1 = 0x0A; // Frequency synthesizer control. FSCTRL0 = 0x00; // Frequency synthesizer control. MDMCFG4 = 0x2D; // Modem configuration. MDMCFG3 = 0x3B; // Modem configuration. MDMCFG2 = 0x73; // Modem configuration. MDMCFG1 = 0x22; // Modem configuration. MDMCFG0 = 0xF8; // Modem configuration. DEVIATN = 0x00; // Modem deviation setting (when FSK modulation is enabled). FREND1 = 0xB6; // Front end RX configuration. FREND0 = 0x10; // Front end RX configuration. MCSM0 = 0x14; // Main Radio Control State Machine configuration. FOCCFG = 0x1D; // Frequency Offset Compensation Configuration. BSCFG = 0x1C; // Bit synchronization Configuration. AGCCTRL2 = 0xC7; // AGC control. AGCCTRL1 = 0x00; // AGC control. AGCCTRL0 = 0xB2; // AGC control. FSCAL3 = 0xEA; // Frequency synthesizer calibration. FSCAL2 = 0x0A; // Frequency synthesizer calibration. FSCAL0 = 0x11; // Frequency synthesizer calibration. TEST2 = 0x88; // Various test settings. TEST1 = 0x31; // Various test settings. TEST0 = 0x0B; // Various test settings. // Common radio settings for CCxx10, any frequency and data rate CHANNR = 0x00; // Channel number. MCSM1 = 0x30; // Main Radio Control State Machine configuration. IOCFG2 = 0x0B; // GDO2 output pin configuration. IOCFG0 = 0x06; // GDO0 output pin configuration. Sync word. PKTCTRL1 = 0x04; // Packet automation control. PKTCTRL0 = 0x45; // Packet automation control. Data whitening on. ADDR = 0x00; // Device address. Not used. PKTLEN = PACKET_LENGTH_RX; // Packet length. return; } ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.