• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > 无线通信 > 技术讨论 > CC1101 配置不对?导致无法接收

CC1101 配置不对?导致无法接收

录入:edatop.com     点击:

CC1101 配置不对?导致无法接收

有关CC1101的OOK/ASK模式收发有些问题请教一下,发送端一直在发,接收端间隔一定的时间去读数据,但是读的数据有问题,我怀疑是配置不对,

配置参考如下

halSpiWriteReg(CCxxx0_IOCFG2,0x0d);

halSpiWriteReg(CCxxx0_IOCFG1,0x2e);

halSpiWriteReg(CCxxx0_IOCFG0,0x08);

halSpiWriteReg(CCxxx0_FIFOTHR,0x47); //DN022 RX filter bandwidth ≤ 325 kHz

halSpiWriteReg(CCxxx0_SYNC1,0xD3);

halSpiWriteReg(CCxxx0_SYNC0,0x91);

halSpiWriteReg(CCxxx0_PKTLEN,0x20);

halSpiWriteReg(CCxxx0_ADDR,0x00);

halSpiWriteReg(CCxxx0_CHANNR,0x00);

halSpiWriteReg(CCxxx0_PKTCTRL0,0x32);

halSpiWriteReg(CCxxx0_FSCTRL1,0x06);

halSpiWriteReg(CCxxx0_FSCTRL0,0x00);

halSpiWriteReg(CCxxx0_FREQ2,0x10); //433.92MHz

halSpiWriteReg(CCxxx0_FREQ1,0xB0);

halSpiWriteReg(CCxxx0_FREQ0,0x71);

halSpiWriteReg(CCxxx0_MDMCFG4,0xbB);

halSpiWriteReg(CCxxx0_MDMCFG3,0x83); //76K RX filter bandwidth = 203 kHz

halSpiWriteReg(CCxxx0_MDMCFG2,0x30);

halSpiWriteReg(CCxxx0_MDMCFG1,0x42);

halSpiWriteReg(CCxxx0_MDMCFG0,0xf8);

halSpiWriteReg(CCxxx0_DEVIATN,0x15);

halSpiWriteReg(CCxxx0_MCSM2,0x07);

halSpiWriteReg(CCxxx0_MCSM1,0x30);

halSpiWriteReg(CCxxx0_MCSM0,0x18);

halSpiWriteReg(CCxxx0_FOCCFG,0x14);

halSpiWriteReg(CCxxx0_BSCFG,0x6C);

halSpiWriteReg(CCxxx0_AGCCTRL2, 0xff);

halSpiWriteReg(CCxxx0_AGCCTRL1, 0x00); //add mike

halSpiWriteReg(CCxxx0_AGCCTRL0, 0x91);

halSpiWriteReg(CCxxx0_WOREVT1, 0x43);

halSpiWriteReg(CCxxx0_WOREVT0, 0xB5); //add mike

halSpiWriteReg(CCxxx0_WORCTRL,0x68);

halSpiWriteReg(CCxxx0_FREND1,0xB6); //DN022 RX filter bandwidth > 101 kHz

halSpiWriteReg(CCxxx0_FREND0,0x11);

halSpiWriteReg(CCxxx0_FSCAL3,0xE9);

halSpiWriteReg(CCxxx0_FSCAL2,0x2A);

halSpiWriteReg(CCxxx0_FSCAL1,0x00);

halSpiWriteReg(CCxxx0_FSCAL0,0x1F);

halSpiWriteReg(CCxxx0_TEST2,0x81); //DN022 RX filter bandwidth ≤ 325 kHz

halSpiWriteReg(CCxxx0_TEST1,0x35); //DN022 RX filter bandwidth ≤ 325 kHz

halSpiWriteReg(CCxxx0_TEST0,0x09);

halSpiWriteReg(CCxxx0_RCCTRL1,0x41);

halSpiWriteReg(CCxxx0_RCCTRL0,0x00);

halSpiWriteReg(CCxxx0_FSTEST,0x59);

halSpiWriteReg(CCxxx0_PTEST,0x7F);

麻烦各位专家看一下,代码有不正确的也请帮忙指正。


请问CC1101 ook的问题解决了吗?

上一篇:CC2640和CC2541分别有多少个串口?
下一篇:基于51单片机的NRF24L01通讯问题。

手机天线设计培训教程详情>>

手机天线设计培训教程 国内最全面、系统、专业的手机天线设计培训课程,没有之一;是您学习手机天线设计的最佳选择...【More..

射频和天线工程师培训课程详情>>

  网站地图