AnsweredAssumed Answered

STM32 RC5 STOP MODE ???

Question asked by futureelectronics on Aug 6, 2011
Latest reply on Oct 20, 2012 by futureelectronics
I want to use low power mode (STOP). i put two configurations here... In the first configuration i am putting 2 STOP mode but first runs... When i wait the same external interrupt despite i enable this, i cant run but why?

IMPORTANT!!! As to second configurations, it never runs? but why? After all when i put STOP mode function in while i cant run. But when i use other external button like second configuration, i can run the second configuration. I use timer for counting  RC5 clock in rc5 interrupts.  And when i came back from stop mode, should i set up the oscillator again for 24Mhz(i use it in code) or just is it enough set up HSE on oscillator? Help please? thanks in advance...

    //configuration 1
    //enable rc5 data flow and interrupt
    RC5_OnOff(ENABLE);
    
    //enter stop mode and exit from stop mode
    EnterAndReturnFromStopMode();

    while(1)
    {       

        if(BtFlags.Enable == 1)  
        {
 

            if(BtFlags.Status == 1)
            {

            }        

        }
        //i want to run again rc5 interrupt but it cant. When normally this stop is removed it runs but why?

        EnterAndReturnFromStopMode();
       
    }//end while(1)


    //configuration 2   
    //enable rc5 data flow and interrupt
    RC5_OnOff(ENABLE);
    
    //enter stop mode and exit from stop mode
    // never runs external interrupt related to RC5 but why?

    while(1)
    {       

        if(BtFlags.Enable == 1)  
        {
 

            if(BtFlags.Status == 1)
            {

            }        

        }
        //i want to run again rc5 interrupt but it cant. When normally this stop is removed it runs but why?

        EnterAndReturnFromStopMode();
       
    }//end while(1)

Outcomes