Thread 中讨论的其他器件:CC2533、、 Z-stack
工具与软件:
在 CC2530和 CC2533上、如果使用802.15.4 PHY、但不使用802.15.4 MAC、是否需要计时器2 (MAC 计时器)? 用户指南说明
定时器2主要用于为802.15.4命令选通处理器算法提供时序 对于 CC253x 器件上802.15.4 MAC 层的一般计时、
这是否意味着在将程序执行模式与 CSP 配合使用时需要使用、或者它是否也适用于立即命令选通执行(向 RFST 写入单个命令)。
但是、在 Z-Stack 3.02中的 CC2530B 版本 HAL_SLEEP 中、存在以下代码。
/* power on the MAC; blocks until completion */
MAC_PwrOnReq();
HAL_ENABLE_INTERRUPTS();
/* For CC2530, T2 interrupt won’t be generated when the current count is greater than
* the comparator. The interrupt is only generated when the current count is equal to
* the comparator. When the CC2530 is waking up from sleep, there is a small window
* that the count may be grater than the comparator, therefore, missing the interrupt.
* This workaround will call the T2 ISR when the current T2 count is greater than the
* comparator. The problem only occurs when POWER_SAVING is turned on, i.e. the 32KHz
* drives the chip in sleep and SYNC start is used.
*/
macMcuTimer2OverflowWorkaround();
Does this matter if not using the 802.15.4 MAC layer?