cancel
Showing results for 
Search instead for 
Did you mean: 

Auto hardware configuration

pchignon
Associate II
Posted on October 06, 2005 at 10:36

Auto hardware configuration

4 REPLIES 4
pchignon
Associate II
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

ben2
Associate II
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).

pchignon
Associate II
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.

ben2
Associate II
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