微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > CC1101状态切换问题

CC1101状态切换问题

时间:12-22 整理:3721RD 点击:

CC1101的RX_OFF设置为接收,发送完成后都进入IDLE

接收使用中断方式,有CRC校验

发送非中断,有CCA,

问题1:CRC校验失败是否能进入接收中断

问题2:CCA校验失败后是否一直处于接收状态

问题1:

你设置的中断事件是什么?

问题2:请看手册15.3.3,

15.3.3 CRC Filtering
The filtering of a packet when CRC check fails
is enabled by setting
PKTCTRL1.CRC_AUTOFLUSH=1. The CRC
auto flush function will flush the entire RX
FIFO if the CRC check fails. After auto flushing
the RX FIFO, the next state depends on the
MCSM1.RXOFF_MODE setting.
When using the auto flush function, the
maximum packet length is 63 bytes in variable
packet length mode and 64 bytes in fixed
packet length mode. Note that when
PKTCTRL1.APPEND_STATUS is enabled, the
maximum allowed packet length is reduced by
two bytes in order to make room in the RX
FIFO for the two status bytes appended at the
end of the packet. Since the entire RX FIFO is
flushed when the CRC check fails, the
previously received packet must be read out of
the FIFO before receiving the current packet.
The MCU must not read from the current
packet until the CRC has been checked as
OK.

GDO0设置为0x06,中断为下跳沿中断

出中断时清除接收缓存,重新进入接收模式

自动刷新并未开启

CCA检测若有载波时,状态是如何切换的?

问题1:CRC校验失败是否能进入接收中断

设置为0X06.CRC校验失败可以进入中断,可以用smartstudio测试一下。你这个设置只跟是否检测到同步字有关。

Asserts when sync word has been sent / received, and de-asserts at the end of the packet. In RX, the pin will also deassert
when a packet is discarded due to address or maximum length filtering or when the radio enters
RXFIFO_OVERFLOW state. In TX the pin will de-assert if the TX FIFO underflows.

问题2:CCA校验失败后是否一直处于接收状态

CCA是清洁信道检测,检测信号强度是否超过阀值。你不关闭接收状态,可定一直接收。建议你参考simpliciTI协议栈familiy 1->mifi_radio.c中MRFI_Transmit()的操作。他的想法是如果有载波,说明当前有通讯,关闭接收,随机退避一段时间,再try.超过设定次数发送失败,否则,发送。

http://www.ti.com/tool/simpliciti

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top