This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

不reste芯片CC1101发送不出信号

Other Parts Discussed in Thread: CC1101

while(1){

RESET_CC1101();
halRfWriteRfSettings();
halSpiWriteBurstReg(CCxxx0_PATABLE, PaTabel, 8);

halRfSendPacket(TxBuf,8); }

上电之后reset芯片,设置各项参数,设置发射功率,然后进入发送模式可以发射信号

RESET_CC1101();

halRfWriteRfSettings();
halSpiWriteBurstReg(CCxxx0_PATABLE, PaTabel, 8);

while(1){halRfSendPacket(TxBuf,8); }

但是如果只重置一次芯片,然后配置,再循环发送,就无法发出信号

请教下各位问题可能出现在哪里呢,困扰好多天了,要实现快速跳频,重置芯片的方法速度太慢不可取啊,谢谢

  • 请问您发送的代码怎么写的, 如下有个例子可以参考

    static uint8 txSendPacket(uint8* data, uint8 length)
    {
    uint16 key;
    packetSent = FALSE;

    // Write data to FIFO
    halRfWriteFifo(data, length);

    // Set radio in transmit mode
    halRfStrobe(CC1101_STX);

    // Wait for packet to be sent
    key = halIntLock();
    while(!packetSent)
    {
    halMcuSetLowPowerMode(HAL_MCU_LPM_3);
    key = halIntLock();
    }
    halIntUnlock(key);
    return(0);
    }

  • 后来找到问题了 上电之后要先延时再配置芯片 之前一直没配置上