Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
PAUSE less than 1 ms? — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
BASIC Stamp
PAUSE less than 1 ms?
Christj
Posts:
13
2007-02-13 23:53
edited 2007-02-14 02:08
in
BASIC Stamp
How to make a PAUSE less than 1 ms? Any tricks?
Comments
Mike Green
Posts:
23,101
2007-02-14 00:00
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.
PJAllen
Banned
Posts:
5,065
2007-02-14 00:27
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
TechnoRobbo
Posts:
323
2007-02-14 02:08
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.
Comments
-- and PULSOUT in 10usec increments
Post Edited (PJ Allen) : 2/14/2007 2:30:47 AM GMT
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