您好、朋友、
我使用 CC1101来解码 NRZ 433.92MHz 数据速率9600bps。 并通过 GDO0输出原始数据、并通过 GDO2输出同步字接收指示以中断 MCU。 现在、SPI 在第五个字节插入1位"1"时出现问题、导致后续数据不正确。 有人可以帮我解决这个问题吗? 提前感谢您。 初始数据和信号如下。
祝你一切顺利
吴德华


//FSK, 433.92MHz, datarate 9600bps, bandwidth 300k, deviation 50k,
static const uint8_t CC1101_GFSK_9_6_kb[] = {
0x06, // IOCFG2 GDO2 Output Pin Configuration
0x2E, // IOCFG1 GDO1 Output Pin Configuration
0x0D, // IOCFG0 GDO0 Output Pin Configuration
0x47, // FIFOTHR RX FIFO and TX FIFO Thresholds
0x01, // SYNC1 Sync Word, High Byte
0x01, // SYNC0 Sync Word, Low Byte
0xFF, // PKTLEN Packet Length
0x24, // PKTCTRL1 Packet Automation Control, (PQT*4=1*4)
0x01, // PKTCTRL0 Packet Automation Control
0x00, // ADDR Device Address
0x00, // CHANNR Channel Number
0x06, // FSCTRL1 Frequency Synthesizer Control
0x00, // FSCTRL0 Frequency Synthesizer Control
0x10, // FREQ2 Frequency Control Word, High Byte
0xB0, // FREQ1 Frequency Control Word, Middle Byte
0x71, // FREQ0 Frequency Control Word, Low Byte
0x58, // MDMCFG4 Modem Configuration
0x83, // MDMCFG3 Modem Configuration
0x12, // MDMCFG2 Modem Configuration (GFSK, 16/16 sync word bits detected)
0x22, // MDMCFG1 Modem Configuration
0xF8, // MDMCFG0 Modem Configuration
0x50, // DEVIATN Modem Deviation Setting
0x07, // MCSM2 Main Radio Control State Machine Configuration
0x30, // MCSM1 Main Radio Control State Machine Configuration
0x18, // MCSM0 Main Radio Control State Machine Configuration
0x16, // FOCCFG Frequency Offset Compensation Configuration
0x6C, // BSCFG Bit Synchronization Configuration
0x07, // AGCCTRL2 AGC Control
0x00, // AGCCTRL1 AGC Control
0x92, // AGCCTRL0 AGC Control
0x87, // WOREVT1 High Byte Event0 Timeout
0x6B, // WOREVT0 Low Byte Event0 Timeout
0xFB, // WORCTRL Wake On Radio Control
0x56, // FREND1 Front End RX Configuration
0x17, // FREND0 Front End TX Configuration
0xE9, // FSCAL3 Frequency Synthesizer Calibration
0x2A, // FSCAL2 Frequency Synthesizer Calibration
0x00, // FSCAL1 Frequency Synthesizer Calibration
0x1F, // FSCAL0 Frequency Synthesizer Calibration
0x41, // RCCTRL1 RC Oscillator Configuration
0x00, // RCCTRL0 RC Oscillator Configuration
0x59, // FSTEST Frequency Synthesizer Calibration Control
0x7F, // PTEST Production Test
0x3F, // AGCTEST AGC Test
0x81, // TEST2 Various Test Settings
0x35, // TEST1 Various Test Settings
0x09, // TEST0 Various Test Settings
};

