who who

about the STOP mode of MC1321x

Discussion created by who who on Jul 31, 2008
Latest reply on Jul 2, 2009 by Walter Torresani
Hi all:
  I'm using MC1321x and CW6.1,I hope my device can reduce current consumption,So I'm considering the STOP mode.
  As far as I knew,I should close the RF module and then MCU(HCS08) enter the STOP mode ,code as below:
/*************************************************************************/
#define ENTER_LOW_POWER _asm stop
#define MCU_STOP3_MODE()    SPMSC2 = 0x04; ENTER_LOW_POWER;        
#define MCU_STOP2_MODE()   SPMSC2 = 0x07;ENTER_LOW_POWER;                   
#define MCU_STOP1_MODE()    SPMSC2 = 0x06; ENTER_LOW_POWER; 
........
UseMcuClock();
(void)MLMEHibernateRequest();    //hibernate the RF module
MCU_STOP3_MODE();     //enter stop3 mode
.......
/************************************************************************/
IS IT RIGHT?
 
Otherwise,whether can use the STOP1 or STOP2 mode?
There is a Button on my device,whether can automatically wake up it by pressing the Button(that is a KBI interrupt)?
Call the MLMEWakeRequest() can wake-up the RF module,but how to quit the STOP mode? In other words,how to recovery it form the STOP mode to normal running mode?
So many problems,Please give me some suggestions.
 
Thanks and best regards,
Charly

Outcomes