cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 RC5 STOP MODE ???

irmakci
Associate II
Posted on August 06, 2011 at 02:56

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)

#stm32-stop-mode-ext-line
3 REPLIES 3
irmakci
Associate II
Posted on August 15, 2011 at 02:02

I solved the problem thanks

tpeiris
Associate
Posted on September 20, 2012 at 04:44

Hi future electronics,

I have a probelm to go to stop mode and wake up from stop uisng IAR, can  you share your code please

terrance

irmakci
Associate II
Posted on October 20, 2012 at 04:01

Hi, it has been a long time... sorry for late answer but what is the problem ? if i have time for fixing, i will look...