Dominique Branche

wake from stop mode2

Discussion created by Dominique Branche on Feb 21, 2008
Latest reply on Feb 22, 2008 by Brett Wallace
Hello,
I have some troubles to exit stop mode 2.

Here is my code (it is just to test stop mode):

#define STOPMODE2 0x03
#define STOPMODE3 0x00

/* Init Stop Mode*/
SPMSC1 = 0x10 ; //disable low-voltage detect to enable stop mode 1 and 2
SPMSC2=STOPMODE3 ;

/* Init RTI Mode*/
SRTISC_RTIACK=1 ;
SRTISC=0x57; /*overflow every 1.024s*/

for( ; ; )
{
    asm stop;
}

interrupt void vrti()
{
  SRTISC_RTIACK=1 ;
  LED2=~LED2 ;
}

This code works with stop mode3, should I modify anything for stop mode 2 ?

Outcomes