Shop OBEX P1 Docs P2 Docs Learn Events
PULSOUT question? — Parallax Forums

PULSOUT question?

nightridernightrider Posts: 9
edited 2007-03-11 17:37 in BASIC Stamp
confused.gif
Why does the PULSOUT command use two millionths of a second as a value of measure instead of just one millionth?

example:
PULSOUT 13, 1 (2us)??

just curious...

thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thank you,


Alex Cordero
San Diego, Ca.
bender.gif
"what?"

robots: AIBO ERS-220, Robosapien, Roomba, Boe-bot (basic), a bunch of other little robots and toys.

"Fill your boots, man!"
-Irish saying

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-10 06:18
    If you'll notice in the PBasic manual, each different speed Stamp model has a different value of measure for the PULSOUT. The underlying instructions that implement the PULSOUT statement are essentially the same in each different version of the PBasic interpreter, but take a different amount of time to execute depending on the internal speed of the processor involved. A number of other statements also are processor dependent in their timing including serial input/output (SERIN/SEROUT). The manual has tables showing these and there's now processor-dependent conditional compilation so that the same source program can be used on several different processors without changes.
  • nightridernightrider Posts: 9
    edited 2007-03-11 17:37
    I downloaded the pbasic manual pdf from the Parallax site.· I looked up the PULSOUT command and I see what you mean. It's taking my some time to gather all the tools that I need to build my robot army(jk). I guess I should have downloaded this manual from the start. In fact, I didn't know Parallax had all that documentation on its website.· Thanks for your help Mike.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thank you,


    Alex Cordero
    San Diego, Ca.
    bender.gif
    "what?"

    robots: AIBO ERS-220, Robosapien, Roomba, Boe-bot (basic), a bunch of other little robots and toys.

    "Fill your boots, man!"
    -Irish saying
Sign In or Register to comment.