Shop OBEX P1 Docs P2 Docs Learn Events
PAUSE less than 1 ms? — Parallax Forums

PAUSE less than 1 ms?

ChristjChristj Posts: 13
edited 2007-02-14 02:08 in BASIC Stamp
How to make a PAUSE less than 1 ms? Any tricks?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-02-14 00:00
    If you have an unused I/O pin, use a PULSOUT statement to get an unused pulse of that width. Keep in mind that there will be some overhead in executing the PULSOUT statement, so the time may be a little more than what you're expecting.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-02-14 00:27
    Get an SX.· In SX/B you can do "PAUSEUS" (Pause Microseconds)

    -- and PULSOUT in 10usec increments

    Post Edited (PJ Allen) : 2/14/2007 2:30:47 AM GMT
  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-02-14 02:08
    Try Dr. Tracy Allen's site:

    http://www.emesystems.com/BS2speed.htm

    A simple "Low" command will burn up 140 microseconds while a pulsout 4,1 uses 216 microseconds.

    Go figure.





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR
Sign In or Register to comment.