AnsweredAssumed Answered

Sneding STM205RBT6 in sleep mode

Question asked by A2 on May 21, 2014
Latest reply on May 23, 2014 by sung.chen_chung
Is below is right way to send STM32F205RBT6 in sleep mode:
I have to do some task, then send MCU in sleep mode for 1 sec & then again execute those tasks.


main()
{
     while(1)
     {
          // do some task
          configure_timer_1_sec();   //configure interrupt when 1 sec completes
          __wfi();
     }
}

timer_isr()
{
     clear_interrupt_flag();
}

Outcomes