Kris Shankar

How do I exit stop2 mode?

Discussion created by Kris Shankar on Jul 11, 2006
Latest reply on Jan 12, 2013 by fls'zen
Hi,

I am attempting to use stop2, once the board enters stop mode it does not exit, it should exit the mode every 1sec due to the RTI interrupt but it is stuck. Here is my code any ideas why?

void TxAccel(void)
{

/**************************************************************
* TX_accel initialization
**************************************************************/
LED1=LED_ON;
EnableInterrupts;
SOPT_STOPE= 1; /*Enable stop modes*/
SRTISC_RTIS0= 1; /* Real-Time Interrupt Delay Select Bit 0 */
SRTISC_RTIS1= 1; /* Real-Time Interrupt Delay Select Bit 1 */
SRTISC_RTIS2= 1; /* Real-Time Interrupt Delay Select Bit 2 */
SRTISC_RTIE= 1; /* Real-Time Interrupt Enable */
SRTISC_RTICLKS= 0; /* Real-Time Interrupt Clock Select internal */

/* Enable deep sleep mode stop2. */
SPMSC2_PPDC= 1; /* Partial Power Down Control */
SPMSC2_PDC= 1; /* Power Down Control */

//TX_accel main loop

for (;:smileywink:
{
/ADC code

_asm stop;

} /* end for */

} /* end main */

thanks in advance

Kris

Outcomes