John Waters

MC9RS08KA2 Stop Mode not working.

Discussion created by John Waters on Jun 3, 2008
Latest reply on Nov 19, 2014 by Braulio_Cespedes
I'm trying out the Stop Mode for MC9RS08KA2. The following is my code and it didn't seem to be working. The Stop mode supply current was about 1 ma all the time and never dropped even after the "STOP" instruction. Could someone tell me where the problem is?
 
void main(void)
{
    PTADD = PTADD | PTADD_PTADD0_MASK;
    PTAD |= PTAD_PTAD0_MASK; 
    SOPT |= SOPT_STOPE_MASK; 
    asm
    {
        STOP;
    }
    for( ; ; )
    { 
        PTAD &= ~PTAD_PTAD0_MASK; 
    }
}
 


Message Edited by John FM on 2008-06-03 03:38 AM

Outcomes