Shop OBEX P1 Docs P2 Docs Learn Events
How to use a timer function and monitor the inputs at the same time — Parallax Forums

How to use a timer function and monitor the inputs at the same time

ArchiverArchiver Posts: 46,084
edited 2002-02-18 14:19 in General Discussion
Can anybody help me, I'm having a problem, I want to have a function as
follows.

I want to start a project with a start button. I want the stamp to hold
an output high for an amount of time and then make it low again.
During this timing I want to be able to read the other button for e.g. a
emergency stop. I want to be able to stop the process before it reaches
the end.

When I use the pause command, I cannot control or read anything else!

Help!


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-02-18 13:13
    At 01:33 PM 2/18/2002 +0100, you wrote:
    >Can anybody help me, I'm having a problem, I want to have a function as
    >follows.
    >
    >I want to start a project with a start button. I want the stamp to hold
    >an output high for an amount of time and then make it low again.
    >During this timing I want to be able to read the other button for e.g. a
    >emergency stop. I want to be able to stop the process before it reaches
    >the end.
    >
    >When I use the pause command, I cannot control or read anything else!
    >
    >Help!
    >
    >Don't use PAUSE to "waste time", use a tight loop as follows:

    Loop:
    ' Do whatever you wish to here, and add dummy instructions, as required
    GOTO Loop

    >[noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2002-02-18 14:19
    Thanks for the sollutions, this is what I initialy thought. I hoped
    there would be a better way to do this.
Sign In or Register to comment.