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

2019-07-18 14:36发布

CC1101 配置不对?导致无法接收有关CC1101OOK/ASK模式收发有些问题请教一下,发送端一直在发,接收端间隔一定的时间去读数据,但是读的数据有问题,我怀疑是配置不对, 配置参考如下 halSpiWriteReg(CCxxx0_IOCFG2,0x0d);halSpiWriteReg(CCxxx0_IOCFG1,0x2e);halSpiWriteReg(CCxxx0_IOCFG0,0x08);halSpiWriteReg(CCxxx0_FIFOTHR,0x47); //DN022 RX filter bandwidth 325 kHzhalSpiWriteReg(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 kHzhalSpiWriteReg(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 mikehalSpiWriteReg(CCxxx0_AGCCTRL0, 0x91);halSpiWriteReg(CCxxx0_WOREVT1, 0x43);halSpiWriteReg(CCxxx0_WOREVT0, 0xB5); //add mikehalSpiWriteReg(CCxxx0_WORCTRL,0x68);halSpiWriteReg(CCxxx0_FREND1,0xB6); //DN022 RX filter bandwidth > 101 kHzhalSpiWriteReg(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 kHzhalSpiWriteReg(CCxxx0_TEST1,0x35); //DN022 RX filter bandwidth 325 kHzhalSpiWriteReg(CCxxx0_TEST0,0x09);halSpiWriteReg(CCxxx0_RCCTRL1,0x41);halSpiWriteReg(CCxxx0_RCCTRL0,0x00);halSpiWriteReg(CCxxx0_FSTEST,0x59);halSpiWriteReg(CCxxx0_PTEST,0x7F); 麻烦各位专家看一下,代码有不正确的也请帮忙指正。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
1条回答
hejuna
1楼-- · 2019-07-18 19:37
请问CC1101 ook的问题解决了吗?

一周热门 更多>