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.

CC1120接收中断问题



在操作CC1120芯片时,将GPIO0设置成0x07, 希望当接收的数据包CRC校验ok的时候产生中断,但是测试了一下接收板根本不产生中断,如果将GPIO0配置成0x06检测同步字中断是可以的,在中断里也能检测到CRC是ok的,我用的是变长度数据包发动的。有知道的帮忙解决一下

  • PKT_CRC_OK

    应该是在IOCFG2 - GPIO2 Pin Configuration

  • 你好  谢谢您的回答  确实是这样,但是又碰到一个问题,当IOCFG2-GPIO2配置成0x13,当一个板子发送完数据包然后转换成RX模式以后,即使板子没有接受到任何数据包也会进入接收中断服务程序,当IOCFG2-GPIO2配置成0x07的时候不会发生这种状况,按手册上说这两种配置方式应该是一样的。还有就是这两种情况都不能在接收到正确的数据包的时候进入中断服务程序。请问是怎么回事?

  • 你好,

    CRC_OK:Asserted simultaneously as PKT_CRC_OK. De-asserted when the first byte is read from the RX FIFO

    PKT_CRC_OK: 

    Asserted in RX when PKT_CFG1.CRC_CFG = 1 or 10b and a good
    packet is received. This signal is always on if the radio is in TX or if the
    radio is in RX and PKT_CFG1.CRC_CFG = 0. The signal is de-asserted
    when RX mode is entered and PKT_CFG1.CRC_CFG ≠ 0. This signal is
    also available in the LQI_VAL register

    User guide上有写到

  • 3q  搞定了