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.

[参考译文] CC2530:如果仅在 CC2530中使用802.15.4 PHY、是否需要计时器2?

Guru**** 1818760 points
Other Parts Discussed in Thread: CC2533, CC2530, Z-STACK
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1384592/cc2530-is-timer-2-needed-if-using-only-the-802-15-4-phy-in-the-cc2530

器件型号:CC2530
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?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    如果不使用802.15.4 MAC 层、这是否重要?

    代码注释中详细说明的条件仍然与 T2相关、但权变措施本身(macMcuTimer2OverflowWorkaround)仅在有效使用 MAC 时相关。 这是因为 MAC 将有代码来初始化 T2的使用(以及其它可将其用于睡眠并用作唤醒计时器的进程)。

    请注意、MAC 通常会与802.15.4 PHY 一起使用。

    谢谢!
    Toby