Shop OBEX P1 Docs P2 Docs Learn Events
PAUSE command loses time sometimes — Parallax Forums

PAUSE command loses time sometimes

igaligal Posts: 7
edited 2004-10-23 13:46 in BASIC Stamp
Hi,

I see that PAUSE loses the time that defined in its argument·and starts· running really fast. It happens to me after running the BS2 Education board for 1-2 hours. Did somebody alos se that ? Any ideas ?

·

Comments

  • AlWilliamsAWCAlWilliamsAWC Posts: 135
    edited 2004-10-23 13:46
    I've never seen this. Is it possible you are using a variable and the variable doesn't have the value you expect?

    For example:

    top:
    v=v+10
    TOGGLE LED
    pause v
    goto top

    This will eventually go faster when v+10>65535 because v will wrap around to 0.

    Just a thought.

    Al Williams
    AWC
    Kits!
    http://www.awce.com/kits.htm
    ·
Sign In or Register to comment.