- UID
- 863306
|
现在2-fsk 模式,接收不到数据,是不是必须OOK?
用Packet模式不停发数据包,会阻塞GDO0(一直为高),不发则变回乱码。
主要代码如下,有问题?
halRfWriteReg(CC2500_MCSM0, 0x18); // Calibration from IDLE to TX/RX
halRfWriteReg(CC2500_MCSM1, 0x00); // No CCA, IDLE after TX and RX
halRfWriteReg(CC2500_PKTCTRL0, 0x32); // serial mode ,Infinite packet length mode
halRfWriteReg(CC2500_PKTCTRL1, 0x04); //
halRfWriteReg(CC2500_PKTLEN, 0xff); // Max payload data length
halRfWriteReg(CC2500_IOCFG0, 0x0d); // direct serial out
halRfWriteReg(CC2500_IOCFG2, 0x0d); // direct serial out
halRfWriteReg(CC2500_FREND0, 0x11); // patable used for ook
halRfWriteReg(CC2500_MDMCFG2, 0x80); // no filter, 2fsk mode ,no preamble |
|