Shop OBEX P1 Docs P2 Docs Learn Events
does the new windows editor adjust for the stamp in use? — Parallax Forums

does the new windows editor adjust for the stamp in use?

ArchiverArchiver Posts: 46,084
edited 2002-11-08 15:30 in General Discussion
hello,

When using the new editor, does it automatically
adjust for different processor speeds for things
like 'pause', 'pulsout', etc??

Thanks


BASIC stamp editor v1.33

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-11-08 13:45
    No. The PAUSE parameter is always specified in milliseconds, but other
    commands require adjustments to the parameters for each processor. Consult
    the help file or manual for specifics.

    -- Jon Williams
    -- Parallax


    In a message dated 11/8/02 5:47:34 AM Central Standard Time, rad0@a...
    writes:


    > hello,
    >
    > When using the new editor, does it automatically
    > adjust for different processor speeds for things
    > like 'pause', 'pulsout', etc??
    >
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-08 15:21
    Jon,
    Why is that? If pause command can compensate for processor speed, why have
    other clock dependant commands not behave the same way? It seems strange
    that you should have to look up baud rate parameters on a table for
    different Stamp models.
    Mike


    At 08:45 AM 11/8/2002 -0500, you wrote:

    >No. The PAUSE parameter is always specified in milliseconds, but other
    >commands require adjustments to the parameters for each processor. Consult
    >the help file or manual for specifics.
    >
    >-- Jon Williams

    _________________________________
    Mike Walsh
    walsh@i...


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-11-08 15:30
    PAUSE gets used far more frequently than other time dependent commands, so
    that saves some editing during migration. With other commands, the parameter
    change allows the programmer to take advantage of better resolution (i.e.,
    with PULSIN).

    You can help yourself by minimizing what we call "magic numbers" -- numeric
    values embedded in your code -- and replacing them with constant definitions.
    This is especially helpful when you have the same value over and over. By
    using constants, you can adjust your program from the definitions section
    instead of hunting through the code.

    -- Jon Williams
    -- Parallax


    In a message dated 11/8/02 9:24:05 AM Central Standard Time,
    walsh@c... writes:


    > Jon,
    > Why is that? If pause command can compensate for processor speed, why have
    > other clock dependant commands not behave the same way? It seems strange
    > that you should have to look up baud rate parameters on a table for
    > different Stamp models.
    > Mike
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.