PDA

View Full Version : simple Math question.



AlBot9
05-18-2005, 02:37 PM
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

claylj
05-18-2005, 07:32 PM
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