AnsweredAssumed Answered

VLLSx on Coldefile+

Question asked by nz_developer on Sep 27, 2012
Latest reply on Oct 11, 2012 by nz_developer

Trying to get a coldfire+ into VLLS3 mode but when I measure the current it is not dropping (3uA according to datasheet. I am at several mA.)


Any Ideas? I call the Sleep function to put into low power mode


void deepsleep (void)


/* Set the SLEEPDEEP bit to enable deep sleep mode (STOP) */

    asm (  stop #0x2000; );



void Sleep(void){

    u8 dummyread;

    SetAlarm(10); // wake up in 10 seconds


    SetLLWU(); // setup wakeup events




         SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;

         dummyread = SMC_PMCTRL_STOPM(0x4);

         SMC_VLLSCTRL =  BIT2; 

        /*wait for write to complete to SMC before stopping core */

         dummyread = SMC_VLLSCTRL;

        dummyread = SMC_PMCTRL;