Shop OBEX P1 Docs P2 Docs Learn Events
simple Math question. — Parallax Forums

simple Math question.

AlBot9AlBot9 Posts: 2
edited 2005-05-18 12:32 in BASIC Stamp
I'm going through the ROBOTIC WITH THE BOE-BOT course now and I'm on Chapter 2 where you read the explanation of the "PULSOUT" command in PBASIC.

I don't understand why 2 microseconds is coded as "1"

for example...

PULSOUT 13, 1

will send a pulsout signal out for 2 microseconds... why is it "1'?


thanks

-jac

Comments

  • clayljclaylj Posts: 9
    edited 2005-05-18 12:32
    If you reference the Basic Stamp manual or Help in the Basic Stamp Editor you will see that the syntax for the PULSOUT is "PULSOUT Pin, Duration" where duration is in units of 2us for the BS2, BS2e and BS2pe. For the the BS1 the unit is 10us and for the BS2sx, BS2p and BS2px the duration is 0.8us.

    See the trend? The faster the microcontroller the shorter the duration for one unit of PULSOUT.

    Larry
Sign In or Register to comment.