Shop OBEX P1 Docs P2 Docs Learn Events
sx/b vs stamp basic — Parallax Forums

sx/b vs stamp basic

SawmillerSawmiller Posts: 276
edited 2006-04-21 20:11 in General Discussion
hi ppl,
i picked up a boebot hardware kit from ebay, and thought i would use a extra sx/52 proto board with a bread board for experiments.....
however i would like to see for the next sx/b rev a pulsout that has at least the resolution of the basic stamp... i mean here we have a faster, slimmed down proccessor than the stamp... and the stamps resolution is 2 uS sx/b's is 10 uS· quite a difference when your looking to , for example finetune the difference between the servo speeds...
anyways, anyone that has any hints , other than going to assembly.. ( i can, just dont want to burger.gif )turn.gif

thanks for the great support
dan

Comments

  • BeanBean Posts: 8,129
    edited 2006-04-21 18:10
    Dan,
    SX/B pulsout resolution was set to 10uSec to allow byte variables (which up to now is all SX/B has) to control servos. So 0 to 255 generates 0 to 2.55 mSec pulses.

    You can always just just do this:
     OUTPUT servoPin ' This only needs done once
     
     servoPin = 1 ' Faster than HIGH 
     pauseus pulseTime * pulseUnits ' One of the few place '*' is allows for parameters
     servoPin = 0 ' Faster than LOW
     
    


    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012


    "SX-Video OSD module"·available·for only·$49.95·www.sxvm.com
    Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • SawmillerSawmiller Posts: 276
    edited 2006-04-21 20:11
    cool,

    thanks bean

    will try that

    dan
Sign In or Register to comment.