Shop OBEX P1 Docs P2 Docs Learn Events
Timer Routine for BS2 — Parallax Forums

Timer Routine for BS2

geneshultsgeneshults Posts: 22
edited 2011-07-26 06:43 in BASIC Stamp
Need help with timer routine for BS2.
Is it possible to have a code for a timer with the BS2 with out a clock chip added?
Maybe I have over looked it but have looked through the BS2 manual and other articles and can't find a routine to do a timer. I'm wanting to have a output pin/pins be timed to either be on or off for a period of time.
Thanks
Gene

Comments

  • dandreaedandreae Posts: 1,375
    edited 2011-07-26 06:43
    You can use the "PAUSE" command for timing of short periods. A "PAUSE 1000" equals one second. The PAUSE command goes up to 65535, however, over time it is not as accurate as a clock.

    Dave
Sign In or Register to comment.