Shop OBEX P1 Docs P2 Docs Learn Events
Does Wakeup reset RAM values ? — Parallax Forums

Does Wakeup reset RAM values ?

inakiinaki Posts: 262
edited 2006-11-02 04:52 in General Discussion
When I exit from SLEEP mode, RAM variables are preserved ?
Does Wakeup have the same effect as a RESET ?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • BeanBean Posts: 8,129
    edited 2006-10-27 17:55
    Download this application note. It explains it.

    http://www.parallax.com/dl/appnt/sx/An18Reset.pdf

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    "People who are willing to trade their freedom for·security deserve neither and will lose both." Benjamin Franklin
    ·
  • inakiinaki Posts: 262
    edited 2006-10-27 18:42
    Thanks Bean.

    I understand by this document that on a SX28AC wakeup process takes about 18ms and SRAM is preserved.
    I think this may work well for my project. Thank you!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • dkemppaidkemppai Posts: 315
    edited 2006-11-02 04:52
    inaki said...
    Thanks Bean.

    I understand by this document that on a SX28AC wakeup process takes about 18ms and SRAM is preserved.
    I think this may work well for my project. Thank you!

    FYI, Be careful when looking at the pin data. This can get messed up on a wakeup. Note, it says that it's the same,
    but in some cases it may change states on you. Notice the direction registers on wakeup, and then watch your pin data
    closely. In one of my programs/hardware I found I needed to shadow the pin data before going into a sleep, and reset
    that data on wakeup. This 'feature' almost cost a bunch of time and $$$. I've seen reference to this before, but couldn't
    seem to find it again.

    -Dan


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    "A saint-like quantity of patience is a help, if this is unavailable, a salty vocabulary works nearly as well." - A. S. Weaver
Sign In or Register to comment.