Skip to main content
Visitor II
October 6, 2005
Question

Auto hardware configuration

  • October 6, 2005
  • 4 replies
  • 999 views
Posted on October 06, 2005 at 10:36

Auto hardware configuration

    This topic has been closed for replies.

    4 replies

    pchignonAuthor
    Visitor II
    October 5, 2005
    Posted on October 05, 2005 at 14:17

    I am working on a project using WFI sleep mode to reduce power consumption. In that mode, I want to wake up only under an IO.

    I am looking for a sample code to save the hardware configuration of all the embeded devices of the STR71x, and another function to restore it. That way, I can stop all devices except WDG, RTC and GPIO.

    Do you think it is as simple as saving hardware registers in RAM.

    Maybe the soft already exist?

    Ludo

    Visitor II
    October 6, 2005
    Posted on October 06, 2005 at 04:56

    You shouldnt need to save any register values when going into any of the low power modes (not Standby).

    pchignonAuthor
    Visitor II
    October 6, 2005
    Posted on October 06, 2005 at 10:34

    Yes, but I wanted to disable devices(through APB command) during wait and reenable it after wakeup.

    Visitor II
    October 6, 2005
    Posted on October 06, 2005 at 10:36

    if you just stop the clock using the apb registers then you just need to restart them again before using the peripherals