Skip to main content
Visitor II
March 26, 2007
Question

Low power operation and wakeup interrupts

  • March 26, 2007
  • 3 replies
  • 735 views
Posted on March 26, 2007 at 10:26

Low power operation and wakeup interrupts

    This topic has been closed for replies.

    3 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Hi,

    I have two questions corresponding to wake-up interrupts and low power operation. Sequence of steps in my application are as follows:

    1. Processor sets an alarm to trigger an interrupt.

    2. SCU_EnterSleepMode() is issued to enter sleep mode.

    3. The processor has to wakeup when either the RTC alarm fires an interrupt or an I/O pin (configured to generate interrupt) interrupt occurs.

    Question 1: The moment SCU_EnterSleepMode() is issued, ULINK2 loses control over the processor (all the peripheral clocks are turned off). Is there a way of getting around (by calling a function) to leave all the peripheral clocks on inspite of entering sleep mode to allow ULINK2 to have control over the processor?

    I use the following procedure to erase the flash:

    http://www.keil.com/support/docs/3215.htm

    Question 2: Do I need to specifically configure the RTC interrupt to be a wakeup interrupt(by calling a function) or does the processor wakeup from sleep automatically after it receives an RTC interrupt?

    Thanks in advance.

    Regards,

    Vasisht.

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Hi Vasisht,

    Please find attached a working example under IAR debbuger using an RTC alarm interrupt to wake up from sleep mode.

    In fact, to enter to sleep mode P9.2 must be set. After 10 seconds, the processor switchs to normal run mode and P9.0 start toggling.

    With best regards,

    mirou

    [ This message was edited by: mirou on 26-03-2007 08:33 ]

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Thank you mirou.

    Regards,

    Vasisht.