For save power--about STOP mode and KBI-MC13213

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

For save power--about STOP mode and KBI-MC13213

1,276 Views
Beijing2008
Contributor I
Hi all:
  I'm using CodeWarrior6.1 and MC13213(HCS08).
 
  I would like to get a answer from you.My problem as follows:
  "The KBI(keyboard interrupt) will be disable if HCS08 turn into the STOP1 or STOP2 mode,but in STOP3 mode, the KBI is enable",is it Right about above description??
  Currently,I add some codes as below for going into the STOP1 mode,add up to 7 lines:

#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; 
//.enter STOP1...
UseMcuClock();
(void)MLMEHibernateRequest();
MCU_STOP1_MODE();

But then,I press the button on PCB,it still can trigger the KBI and light one LED.Why??
My aim is save power.
Maybe any register hadn't been config successfully,please give me some hints.
 
Thanks and best regards,
Charly
Labels (1)
0 Kudos
1 Reply

240 Views
Beijing2008
Contributor I
Hi,all:
 
  Maybe the above description was not clear,I'm very sorry!
 
  In short,I want to know how to enter the STOP1/2/3 mode with HCS08(bind in the MC13213)? How to test the save power effect?  And how to wake up it from STOP mode?
 
Thanks and best regards,
Charly
 
 
0 Kudos