物联网技术
直播中

fejlkel

8年用户 1046经验值
擅长:制造/封装
私信 关注
[问答]

CC1101 在2FSK模式下怎么修改添加ASK模式?

本帖最后由 冒汗的心情 于 2016-3-10 14:27 编辑

CC1101 在2FSK模式下怎么修改添加ASK模式?


这是2FSK发送的寄存器配置,现在想修改添加ASK模式请问各位大神我应该怎么修改程序?
const RF_SETtiNGS rfSettings = //channel number变了
{
0x00, //FSCTRL2;
0x08, // FSCTRL1 Frequency synthesizer control.
0x00, // FSCTRL0 Frequency synthesizer control.
0x10, // FREQ2 Frequency control word, high byte.
0xA3, // FREQ1 Frequency control word, middle byte.
0x72, // FREQ0 Frequency control word, low byte.
0x5C, // MDMCFG4 Modem configuration.
0x15, // MDMCFG3 Modem configuration.
0x03, // MDMCFG2 Modem configuration.
0x02, // MDMCFG1 Modem configuration.
0xF8, // MDMCFG0 Modem configuration.
0x0f, // CHANNR Channel number.
0x47, // DEVIATN Modem deviation setting (when FSK modulation is enabled).
0xB6, // FREND1 Front end RX configuration.
0x10, // FREND0 Front end RX configuration.
0x18, // MCSM0 Main Radio Control State Machine configuration.
0x1D, // FOCCFG Frequency Offset Compensation Configuration.
0x1C, // BSCFG Bit synchronization Configuration.
0xC7, // AGCCTRL2 AGC control.
0x00, // AGCCTRL1 AGC control.
0xB2, // AGCCTRL0 AGC control.
0xEA, // FSCAL3 Frequency synthesizer calibration.
0x2A, // 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.
0x09, // TEST0 Various test settings.
0x2E, // IOCFG2 GDO2 output pin configuration.
0x06, // IOCFG0 GDO0 output pin configuration. Refer to SmartRF?Studio User Manual for detailed pseudo register explanation.
0x04, // PKTCTRL1 Packet automation control.
0x45, // PKTCTRL0 Packet automation control.
0x00, // ADDR Device address.
0xFF // PKTLEN Packet length.
};
怎么改呢?请各位大神指教。

附件: 您需要登录才可以下载或查看附件。没有帐号?注册

回帖(1)

发烧友推温针

2016-3-10 14:25:38

修改MDMCFG2寄存器

6:4 bit

MOD_FORMAT[2:0]

建议通过SmartRF Studio 7来生成寄存器Table
举报
附件: 您需要登录才可以下载或查看附件。没有帐号?注册

更多回帖

发帖
×
20
完善资料,
赚取积分