我在使用CC1101 学习433M 遥控器,使用异步串行数据接收,寄存器配置表如下
//异步通讯模式
//433.862M
const RF_SETTINGS rfSettings =
{
0x00,
0x08, // FSCTRL1 Frequency synthesizer control.
0x00, // FSCTRL0 Frequency synthesizer control.
0x10,//0x0c,//0x21, // FREQ2 Frequency control word, high byte. ºóÕßÊÇÅäÖÃ315M
0xA7,//0x1d,//0x65, // FREQ1 Frequency control word, middle byte.
0xDF,//0x89,//0x6A, // FREQ0 Frequency control word, low byte.
0x77, // MDMCFG4 Modem configuration.
0x83, // MDMCFG3 Modem configuration.
0xB0, // MDMCFG2 Modem configuration.
0x22, // MDMCFG1 Modem configuration.
0xF8, // MDMCFG0 Modem configuration.
0x00, // CHANNR Channel number.
0x47, // DEVIATN Modem deviation setting (when FSK modulation is enabled).
0x56, // FREND1 Front end RX configuration.
0x17, // FREND0 Front end RX configuration.
0x18, // MCSM0 Main Radio Control State Machine configuration.
0x1C, // FOCCFG Frequency Offset Compensation Configuration.
0x6C, // BSCFG Bit synchronization Configuration.
0x04, // AGCCTRL2 AGC control.
0x00, // AGCCTRL1 AGC control.
0x92, // AGCCTRL0 AGC control.
0xA9, // FSCAL3 Frequency synthesizer calibration.
0x0A, // FSCAL2 Frequency synthesizer calibration.
0x00, // FSCAL1 Frequency synthesizer calibration.
0x11, // FSCAL0 Frequency synthesizer calibration.
0x59, // FSTEST Frequency synthesizer calibration.
0x81, // TEST2 Various test settings.
0x35, // TEST1 Various test settings.
0x0B, // TEST0 Various test settings.
0x46,// 0x09,//0X07,//0x0B, // IOCFG2 GDO2 output pin configuration.---------------------------------
0x0d,//0x2d, // IOCFG0D GDO0 output pin configuration. Refer to SmartRF?Studio User Manual for detailed pseudo register explanation.
0x04, // PKTCTRL1 Packet automation control. //¿ªÆôµØÖ·¹ýÂË
0x32,//0x03, // PKTCTRL0 Packet automation control.
0x00, // ADDR Device address.
0xff // PKTLEN Packet length.×î´ó
};
使用GDO0 作为信号的输出 ,手册上说在接收模式的时候,GDO0为自动配置成输出模式,发送的时候自动配置成输入模式,现在在接收模式的时候可以使用示波器看到脉冲的到来,但是是没有规律的,无法从波形中分析出有效数据,帮我看下我的配置是否有问题