CC1120跪求 解答!
最近在使用CC1120进行无线传输,发射数据可以,接收到数据后也可以进接收中断,可是cc112xSpiReadReg(CC112X_NUM_RXBYTES, &rxBytes, 1);这句话读出来rxBytes的值总是为0,急求急求。谢谢解答!
请问您MCU用的是哪一款?是否在接收之前的接收buffer已经配置好?
您好,我用的贵公司的MSP430F5418,是不是我寄存器配的有问题?
{CC112X_FREQ2 ,0x6c},//
{CC112X_FREQ1 ,0x80}, //
{CC112X_FREQ0 ,0x00},
{CC112X_IOCFG3 ,0xB0},
{CC112X_IOCFG2 ,0x14},
{CC112X_IOCFG1 ,0xB0},
{CC112X_IOCFG0 ,0xB0},
{CC112X_FS_DIG1 ,0x00},//
{CC112X_FS_DIG0 ,0x5F},//
{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_XOSC5 ,0x0E},
{CC112X_XOSC4 ,0xA0},
{CC112X_XOSC3 ,0x03},
{CC112X_XOSC2 ,0x04},
{CC112X_XOSC1 ,0x03},
{CC112X_ANALOG_SPARE ,0x00},
{CC112X_FIFO_CFG ,0x00}, //
{CC112X_SETTLING_CFG ,0x0b},//
{CC112X_FS_CFG ,0x12},//
{CC112X_PKT_CFG2 ,0x0c},
{CC112X_PKT_CFG1 ,0x68},
{CC112X_PKT_CFG0 ,0x20},//
{CC112X_PKT_LEN ,0xFF},//
{CC112X_RFEND_CFG1 ,0x3F},//
{CC112X_RFEND_CFG0 ,0x30}, //
{CC112X_SYNC3 ,0x93},//
{CC112X_SYNC2 ,0x0B},//
{CC112X_SYNC1 ,0x51},//
{CC112X_SYNC0 ,0xDE}, //
{CC112X_SYNC_CFG1 ,0x0B}, //0x07
{CC112X_SYNC_CFG0 ,0x17}, //
{CC112X_DEVIATION_M ,0x53},//
{CC112X_MODCFG_DEV_E ,0x2f},//
{CC112X_DCFILT_CFG ,0x04},//
{CC112X_PREAMBLE_CFG1 ,0x18},//
{CC112X_PREAMBLE_CFG0 ,0x2A}, //
{CC112X_FREQ_IF_CFG ,0x00},//
{CC112X_IQIC ,0x00},//
{CC112X_CHAN_BW ,0x01},//
{CC112X_MDMCFG1 ,0xc6}, //
{CC112X_MDMCFG0 ,0x2f}, //
{CC112X_SYMBOL_RATE2 ,0xA9},
{CC112X_SYMBOL_RATE1 ,0x99},
{CC112X_SYMBOL_RATE0 ,0x99},
{CC112X_AGC_REF ,0x31},//
{CC112X_AGC_CS_THR ,0xec},//
{CC112X_AGC_GAIN_ADJUST ,0x00},
{CC112X_AGC_CFG3 ,0x83},//
{CC112X_AGC_CFG2 ,0x60},
{CC112X_AGC_CFG1 ,0x29},
{CC112X_AGC_CFG0 ,0xC0},
{CC112X_PA_CFG2 ,0x7F},/
{CC112X_PA_CFG1 ,0x56},
{CC112X_PA_CFG0 ,0x01},
{CC112X_IF_MIX_CFG ,0x00},
{CC112X_FREQOFF_CFG ,0x20},
{CC112X_TOC_CFG ,0x0a},//
{CC112X_CFM_DATA_CFG ,0x00}
请问同样的寄存器配置 是否已经用smartRF studio软件测试过收发已经没有问题了?
现在硬件已经制好,只留有JTAG口,请问该如何连接Smart Studio?
通过 USB 端口或并行端口与评估板通信。可以参考链接 http://home.eeworld.com.cn/my/space-uid-441639-blogid-77717.html
需要把 SPI 口连出来的。
MOSI, MISO, SCLK, CS_N
请参考 VChip CC1120 的设计。
http://www.digirf.com/EN/ProView/80.html