9S08GT60 & 802.15.4 - PWRLib: Timer never enabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9S08GT60 & 802.15.4 - PWRLib: Timer never enabled

3,463 Views
Michele
Contributor I
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

Labels (1)
0 Kudos
4 Replies

468 Views
Michele
Contributor I
ok. because of i can't solve my problem alone, now i try to re-explain the problem.
i think(and hope!) it's not a big problem for many of you, but it is very big for me.
 
 
device--> 9S08GT60
 
START.  DEMO APPLICATION for 802.15.4
        Indirect trasmission --- My_Appl06b.c  (i'm working on the device)
 
END.    my device have to go into STOP3_MODE for X sec, then it have to RUN (to check for data from the coordinator)
        (i don't have to use KBI but only RTI)
 
WHAT I DID.
i have implemented ---My_Appl06b.c--- with ---PWRLIB--- ,
as written in the User's Guide  "ZigBee/802.15.4 MAC PWRLIB Implementation"
 (Document Number 802154PWRLIBIUG)    chapter  3.2
 
At first i try to use --PWR_CheckForAndEnterNewPowerState(PWR_Sleep,x);-- NOTHING DONE(RESET and BLOCK)--
 
Then i used PWR_CheckForAndEnterNewPowerState(PWR_DeepSleep,x); --device go in STOP3 2-3 times then it BLOCK--
 
N.B. cPWR_SetupIOWhenInPD()  =  0  ----->so i can omitted Steps 9,10,11

 
MY ASK. have i to do others Steps?
               why the device don't go IN/OUT STOP3MODE correctly?
               what's wrong in my last 45 days?      :smileyhappy:
               do you need more information?
          
Thank for collaboration,
Excuse me for my bad english...
Michele


Message Edited by Michele on 2007-05-07 11:11 AM
0 Kudos

468 Views
joerg
Contributor II
Hi Michele

If you could zip your project i will have a look on it.

Saluti Joerg


PS.
I would like to read/write in French as good as your English


0 Kudos

468 Views
Michele
Contributor I

Hi joerg,

thanks a lot for your help.

i worked on MyAppEx06b.c .

Actually i only use 2 state.

stateInit and stateRiposo

what i'd like the device should do it's to turn ON/OFF alternatively

the LED 1 every 3 seconds (for example), using DEEPSLEEP ( MCU STOP3 , wake up only on RTI)

i don't know what tell you,

very very thanks.

sorry if i answer so late , but the laboratory of my university has taken fire!!!!!!!!!!!!



Message Edited by Michele on 2007-05-07 04:13 PM

 

802_15_4_no_mac_swl_1.zip

Message Edited by t.dowe on 2009-09-22 11:33 AM
0 Kudos

468 Views
Alban
Senior Contributor II
Hello,
Please do write explanatory subject lines in the future.
This is crucial if you want to be helped.
0 Kudos