Pulsin
MacGeek117
Posts: 747
(Dumb questions, no experience.)
I'm posibly giong to work with the SX and Ping))), and the output of the Ping))) will be more than one byte. How do I store the value?
RoboGeek (formerly bugg)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
Formerly bugg.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 10/16/2005 12:21:17 AM GMT
I'm posibly giong to work with the SX and Ping))), and the output of the Ping))) will be more than one byte. How do I store the value?
RoboGeek (formerly bugg)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
Formerly bugg.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 10/16/2005 12:21:17 AM GMT
Comments
You store multi-byte values in multi-file register locations.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
James Newton, Host of SXList.com
james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
SX FAQ / Code / Tutorials / Documentation:
http://www.sxlist.com Pick faster!
James: The Ping))) is a low-cost ultrasonic range finder. You trigger it with a short pulse and and it returns the distance to target as a pulse width.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
Formerly bugg.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 10/16/2005 12:21:35 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 10/13/2005 10:06:29 PM GMT
I can give you lots of answers but as Paul points out, if you don't actually have SX/B and are not actively working with it then it won't be helpful. At any rate, here goes: The max expected pulse back from the Ping is 18.5 ms (Tin-max in the docs) then you could set the resolution value to 10; this would cause the PULSIN function to return a value from 100 uS to 25.5 ms (in 100 uS units).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
Formerly bugg.
www.goldmine-elec.com
www.parallax.com
www.expresspcb.com
www.startrek.com
Post Edited (RoboGeek) : 10/16/2005 12:21:52 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There are 10 kinds of people in the world,
those that know binary and those that don't.
Formerly bugg.
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com
·
I have added the pulse simulator to the SXSim wish list.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G