Part Number:CC113LOther Parts Discussed in Thread:CC115L,
CC115L发送的,CC113L能收到,但读出来的数据是乱码;配置是这样的
static const registerSetting_t preferredSettings[]=
{
{CC115L_IOCFG2, 0x29},
{CC115L_IOCFG1, 0x2E},
{CC115L_IOCFG0, 0x06},
{CC115L_FIFOTHR, 0X40},
{CC115L_SYNC1, 0XD3},
{CC115L_SYNC0, 0X91},
{CC115L_PKTCTRL0, 0x05},
{CC115L_CHANNR, 0x01},
{CC115L_FREQ2, 0x0C},
{CC115L_FREQ1, 0x1D},
{CC115L_FREQ0, 0x89},
{CC115L_MDMCFG4, 0x2D},
{CC115L_MDMCFG3, 0x3B},
{CC115L_MDMCFG2, 0x03},
{CC115L_DEVIATN, 0x62},
{CC115L_MCSM0, 0x18},
{CC115L_RESERVED_0X20, 0xFB},
{CC115L_FSCAL3, 0xEA},
{CC115L_FSCAL2, 0x2A},
{CC115L_FSCAL1, 0x00},
{CC115L_FSCAL0, 0x1F},
};
static const registerSetting_t preferredSettings[]=
{
{CC113L_IOCFG2, 0x29},
{CC113L_IOCFG1, 0x2E},
{CC113L_IOCFG0, 0x06},
{CC113L_FIFOTHR, 0X40},
{CC113L_SYNC1, 0XD3},
{CC113L_SYNC0, 0X91},
{CC113L_PKTCTRL0, 0x05},
{CC113L_CHANNR, 0x01},
{CC113L_FSCTRL1, 0x0C},
{CC113L_FREQ2, 0x0C},
{CC113L_FREQ1, 0x1D},
{CC113L_FREQ0, 0x89},
{CC113L_MDMCFG4, 0x2D},
{CC113L_MDMCFG3, 0x3B},
{CC113L_MDMCFG2, 0x03},
{CC113L_DEVIATN, 0x62},
{CC113L_MCSM0, 0x18},
{CC113L_FOCCFG, 0x1D},
{CC113L_BSCFG, 0x1C},
{CC113L_AGCCTRL2, 0xC7},
{CC113L_AGCCTRL1, 0x00},
{CC113L_AGCCTRL0, 0xB0},
{CC113L_RESERVED_0X20, 0xFB},
{CC113L_FREND1, 0xB6},
{CC113L_FSCAL3, 0xEA},
{CC113L_FSCAL2, 0x2A},
{CC113L_FSCAL1, 0x00},
{CC113L_FSCAL0, 0x1F},
};
Kevin Qiu1:
用例程测一下看看是否正常:
TrxEB RF PER Test Software (Rev. C)
,
caozhen cao:
CC113L在没有收到数据时,读取CC113L的接收FIFO,读出的数据为什么不是0;还有在向CC115L的发送FIFO写入数据后,在读取发送FIFO里的数据,为什么跟写进去的不一样。
,
Kevin Qiu1:
你可以用smartRF studio或上面的例程测一下吗
smartRF studio可以直接测试而不必使用代码,可以清楚地看到寄存器配置和数据传输:
FIFO接收与数据格式和接收方式相关,你可以查看数据手册15.2和19节的说明:
https://www.ti.com.cn/cn/lit/ds/symlink/cc113l.pdf
还可参考:
https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/266006/cc113l-and-cc115l-recieve-problem/942165#942165