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.

CC2430 TIAMC hal sleep timer problem

Other Parts Discussed in Thread: TIMAC

HI,

I'm using Halsleep() function to send the TImac end node to sleep ,

My requirement is to send the data at  once in a 2 hour to the co-ordinator , and send the node to sleep ..

the follwoing is the sudo code I have written to do the same ..

 

halsleep(48000) ;// since this can goes up to  maxium 8.4 min here I'm fixing this 8 min . i.e (2hour/8=15) so I need to call this 15 times before sending the data ...

That uint8 sleepconut=15;

 for(i=0;i<15;i++{

halsleep(48000);

}

But it is not going to sleep  becoz of for loop ; if I remove the loop and call it once it will go to the sleep for 8 min ;;

how to implement this for two hours ;;?

regards

chethan