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.

msp430f2618+cc2520 EndDevice 如何做到定时休眠

Other Parts Discussed in Thread: CC2520, MSP430F2618

看了TI的技术文档,也在网上搜罗了一天信息,还是没搞明白怎么做到定时去休眠。

做了如下设置后还要如何操作??

1、

Set the Poll Rate for the End Device. This parameter defines how often the node will
wake up from sleep and send a data request to the parent device to poll for queued
messages. In these measurements the Poll Rate is set to 500 ms. Set the Poll Rate
in f8wConfig.cfg in line 141:
/****************************************
 * The following are for End Devices only
 ***************************************/
 
-DRFD_RCVC_ALWAYS_ON=FALSE
 
/* The number of milliseconds to wait between data request polls to the coordinator. */
-DPOLL_RATE=500

2、

Turn off Key polling. This is done by enabling key interrupt. In the file Onboard.c,
function InitBoard( byte level ) enable interrupt by changing the following line:
OnboardKeyIntEnable = HAL_KEY_INTERRUPT_DISABLE;

To this:
OnboardKeyIntEnable = HAL_KEY_INTERRUPT_ENABLE;

文档中讲解没有任务时,自动休眠。如何来 定时休眠?