mike moro

9S08GT60 & 802.15.4 - PWRLib: Timer never enabled

Discussion created by mike moro on May 2, 2007
Latest reply on May 7, 2007 by mike moro
Hello guys,
i have a problem, waiting for a technical response i also write my problem to you.
 
my device is a 9S08GT60
 
i'm trying to implement the DEMO APPLICATION for 802.15.4 with PWRLIB.
in particular i was trying to implemend the indirect transmission( MyApp_Ex06b.c ).
STARTING I ONLY WANT TO CHECK IF THE DEVICE ENTERS IN PD.
i implemented PWRLib as written in "ZigBee/802.15.4 MAC PWRLIB Implementation, Rev. 0.0" section 3.2(MAC).
i have 2 problem with 2 function:
problem 1). PWR_CheckForAndEnterNewPowerState(PWR_Sleep,x);
   #define cPWR_SleepMode  1  (<--in PWR_Config)
   
i think there's a problem in the  function "Handle_Sleep()" 
...
//// check whether timer is enabled ?
if (TPM1SC & 0x40 == 0x40) {   
...
this condition is not verified so it's verified the
...
...
else {
   
EnableInterrupts;
    
   return Res;
 }
...
 i can't understand why.
problem 2). PWR_CheckForAndEnterNewPowerState(PWR_DeepSleep,x);
           #define cPWR_DeepSleepMode   2  (<--in PWR_Config)
  
device enter STOP3 for 6-7 time, then it arrests itself.
 i don't know why.
 
can you help me, please?
excuse me if i missed something, if you need other information i will
send you as soon as a as possible.
thanks very much.
Michele        

Message Edited by Alban on 2007-05-02 04:44 PM

Outcomes