2011-08-05 05:56 PM
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-line2011-08-14 05:02 PM
I solved the problem thanks
2012-09-19 07:44 PM
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 terrance2012-10-19 07:01 PM
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...