您好,我在使用贵公司的CC1120无线传输芯片,每块芯片必须完成收和发的功能,我设置为平时处于接收状态,需要发数据时,发完后继续回到接收状态,我发现状态切换总是出问题,STX,SRX命令写进去后总是到不了相应的状态,请问这是怎么回事?还有怎么实现auto ACK回复啊?谢谢回答,急!!!
以下是我的寄存器设置
{CC112X_IOCFG3, 0xB0},
{CC112X_IOCFG2, 0xB0},
{CC112X_IOCFG1, 0xB0},
{CC112X_IOCFG0, 0x06},
{CC112X_SYNC_CFG1, 0x08},
{CC112X_DEVIATION_M, 0x99},
{CC112X_MODCFG_DEV_E, 0x0D},
{CC112X_DCFILT_CFG, 0x15},
{CC112X_PREAMBLE_CFG1, 0x18},
{CC112X_FREQ_IF_CFG, 0x3A},
{CC112X_IQIC, 0x00},
{CC112X_CHAN_BW, 0x02},
{CC112X_MDMCFG0, 0x05},
{CC112X_SYMBOL_RATE2, 0x99},
{CC112X_SYMBOL_RATE1, 0x99},
{CC112X_SYMBOL_RATE0, 0x99},
{CC112X_AGC_REF, 0x3C},
{CC112X_AGC_CS_THR, 0xEF},
{CC112X_AGC_CFG1, 0xA9},
{CC112X_AGC_CFG0, 0xC0},
{CC112X_FIFO_CFG, 0x00},
{CC112X_DEV_ADDR, CURRENT_ADDRESS},
{CC112X_SETTLING_CFG, 0x03},
{CC112X_FS_CFG, 0x14},
{CC112X_PKT_CFG2, 0x0C},
{CC112X_PKT_CFG1, 0x65},
{CC112X_PKT_CFG0, 0x20},
{CC112X_RFEND_CFG1, 0x2F},//接收完后进入发射状态
{CC112X_RFEND_CFG0, 0x08},//发送完后进入IDLE状态
{CC112X_PA_CFG0, 0x79},
{CC112X_PKT_LEN, 0xFF},
{CC112X_IF_MIX_CFG, 0x00},
{CC112X_TOC_CFG, 0x0A},
{CC112X_FREQ2, 0x6C},
{CC112X_FREQ1, 0x80},
{CC112X_FS_DIG1, 0x00},
{CC112X_FS_DIG0, 0x5F},
{CC112X_FS_CAL1, 0x40},
{CC112X_FS_CAL0, 0x0E},
{CC112X_FS_DIVTWO, 0x03},
{CC112X_FS_DSM0, 0x33},
{CC112X_FS_DVC0, 0x17},
{CC112X_FS_PFD, 0x50},
{CC112X_FS_PRE, 0x6E},
{CC112X_FS_REG_DIV_CML, 0x14},
{CC112X_FS_SPARE, 0xAC},
{CC112X_FS_VCO0, 0xB4},
{CC112X_XOSC5, 0x0E},
{CC112X_XOSC1, 0x03},
Nutcracker:
建议参考一个例程找找原因。
http://processors.wiki.ti.com/images/1/15/Cc1120_easy_link_vchip_boosterpack_for_MSP430_launchpad_CCS.zip