Results 1 to 11 of 11

Thread: BS2, BS2P Command differences

  1. #1

    Default BS2, BS2P Command differences

    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  2. #2

    Default

    Open the help file. The PBASIC Command Reference (in the Contents pane)
    shows all the instructions and which processors they work with.

    You will find that there are no syntax differences between instructions
    that work on the BS2 and the BS2p -- but there may be a difference in
    required parameters (due to processor execution speed). One of the most
    frequent requirements for a parameter change is for SEROUT and SERIN.
    Since the new compiler lets us add conditional compilation structures, I
    have this fragment built into my template:

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Open CON $8000
    Baud CON T9600


    This lets me handle SEROUT/SERIN parameter differences between members
    of the BS2 family without issue.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    -----Original Message-----
    From: dersonquilter2 [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 10:56 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] BS2, BS2P Command differences


    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  3. #3

    Default

    Thank you, John. You mention "template". This sounds like something I should be
    using. Can you tell me how?

    Dave

    Jon Williams <jwilliams@p...> wrote:
    Open the help file. The PBASIC Command Reference (in the Contents pane)
    shows all the instructions and which processors they work with.

    You will find that there are no syntax differences between instructions
    that work on the BS2 and the BS2p -- but there may be a difference in
    required parameters (due to processor execution speed). One of the most
    frequent requirements for a parameter change is for SEROUT and SERIN.
    Since the new compiler lets us add conditional compilation structures, I
    have this fragment built into my template:

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Open CON $8000
    Baud CON T9600


    This lets me handle SEROUT/SERIN parameter differences between members
    of the BS2 family without issue.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    -----Original Message-----
    From: dersonquilter2 [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 10:56 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] BS2, BS2P Command differences


    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.

    Yahoo! Groups Links






    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  4. #4

    Default

    Sure.

    Create a blank programming template includes a bit of a framework that
    promotes sound programming (I'll post mine in the files section and you
    can modify it as you like). Once you have the file saved, follow these
    steps:

    1. Click Edit >> Preferences...
    2. Click "Files & Directories" tab
    3. Click "Browse" button next to the "New file template" field
    4. Locate your file, then click "Open"
    5. Click "OK" to close the preferences dialog

    Now when you select File >> New (or use the icon on the toolbar) the
    template code will be loaded in. Makes life easy.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    -----Original Message-----
    From: David Anderson [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 8:13 PM
    To: basicstamps@yahoogroups.com
    Subject: RE: [basicstamps] BS2, BS2P Command differences


    Thank you, John. You mention "template". This sounds like something I
    should be using. Can you tell me how?

    Dave

    Jon Williams <jwilliams@p...> wrote:
    Open the help file. The PBASIC Command Reference (in the Contents pane)
    shows all the instructions and which processors they work with.

    You will find that there are no syntax differences between instructions
    that work on the BS2 and the BS2p -- but there may be a difference in
    required parameters (due to processor execution speed). One of the most
    frequent requirements for a parameter change is for SEROUT and SERIN.
    Since the new compiler lets us add conditional compilation structures, I
    have this fragment built into my template:

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Open CON $8000
    Baud CON T9600


    This lets me handle SEROUT/SERIN parameter differences between members
    of the BS2 family without issue.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    -----Original Message-----
    From: dersonquilter2 [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 10:56 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] BS2, BS2P Command differences


    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links






    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  5. #5

    Default

    Thank you again, Jon. I am a pretty meticulous hardware man, trying to continue
    this with my programming.

    Jon Williams <jwilliams@p...> wrote:Sure.

    Create a blank programming template includes a bit of a framework that
    promotes sound programming (I'll post mine in the files section and you
    can modify it as you like). Once you have the file saved, follow these
    steps:

    1. Click Edit >> Preferences...
    2. Click "Files & Directories" tab
    3. Click "Browse" button next to the "New file template" field
    4. Locate your file, then click "Open"
    5. Click "OK" to close the preferences dialog

    Now when you select File >> New (or use the icon on the toolbar) the
    template code will be loaded in. Makes life easy.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    -----Original Message-----
    From: David Anderson [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 8:13 PM
    To: basicstamps@yahoogroups.com
    Subject: RE: [basicstamps] BS2, BS2P Command differences


    Thank you, John. You mention "template". This sounds like something I
    should be using. Can you tell me how?

    Dave

    Jon Williams wrote:
    Open the help file. The PBASIC Command Reference (in the Contents pane)
    shows all the instructions and which processors they work with.

    You will find that there are no syntax differences between instructions
    that work on the BS2 and the BS2p -- but there may be a difference in
    required parameters (due to processor execution speed). One of the most
    frequent requirements for a parameter change is for SEROUT and SERIN.
    Since the new compiler lets us add conditional compilation structures, I
    have this fragment built into my template:

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Open CON $8000
    Baud CON T9600


    This lets me handle SEROUT/SERIN parameter differences between members
    of the BS2 family without issue.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    -----Original Message-----
    From: dersonquilter2 [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 10:56 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] BS2, BS2P Command differences


    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links






    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and Body of
    the message will be ignored.

    Yahoo! Groups Links







    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  6. #6

    Default

    Hey I want in on this, where is the "files section"?

    KF4HAZ - Lonnie

    ----- From: "David Anderson" <dersonquilter2@y

    > Thank you again, Jon. I am a pretty meticulous hardware man, trying to
    continue this with my programming.
    >
    > Jon Williams <jwilliams@p...> wrote:Sure.
    >
    > Create a blank programming template includes a bit of a framework that
    > promotes sound programming (I'll post mine in the files section and you
    > can modify it as you like). Once you have the file saved, follow these
    > steps:
    >
    > 1. Click Edit >> Preferences...
    > 2. Click "Files & Directories" tab
    > 3. Click "Browse" button next to the "New file template" field
    > 4. Locate your file, then click "Open"
    > 5. Click "OK" to close the preferences dialog
    >
    > Now when you select File >> New (or use the icon on the toolbar) the
    > template code will be loaded in. Makes life easy.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    > -----Original Message-----
    > From: David Anderson [mailto:dersonquilter2@y...]
    > Sent: Wednesday, April 14, 2004 8:13 PM
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [basicstamps] BS2, BS2P Command differences
    >
    >
    > Thank you, John. You mention "template". This sounds like something I
    > should be using. Can you tell me how?
    >
    > Dave
    >
    > Jon Williams wrote:
    > Open the help file. The PBASIC Command Reference (in the Contents pane)
    > shows all the instructions and which processors they work with.
    >
    > You will find that there are no syntax differences between instructions
    > that work on the BS2 and the BS2p -- but there may be a difference in
    > required parameters (due to processor execution speed). One of the most
    > frequent requirements for a parameter change is for SEROUT and SERIN.
    > Since the new compiler lets us add conditional compilation structures, I
    > have this fragment built into my template:
    >
    > #SELECT $STAMP
    > #CASE BS2, BS2E, BS2PE
    > T1200 CON 813
    > T2400 CON 396
    > T4800 CON 188
    > T9600 CON 84
    > T19K2 CON 32
    > T38K4 CON 6
    > #CASE BS2SX, BS2P
    > T1200 CON 2063
    > T2400 CON 1021
    > T4800 CON 500
    > T9600 CON 240
    > T19K2 CON 110
    > T38K4 CON 45
    > #ENDSELECT
    >
    > Inverted CON $4000
    > Open CON $8000
    > Baud CON T9600
    >
    >
    > This lets me handle SEROUT/SERIN parameter differences between members
    > of the BS2 family without issue.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  7. #7

    Default

    Thank you for that. Sloppy programming is the bane of my existance and
    I am striving to wipe it out. In case I didn't mention it, we have a
    nice little doc called "The Elements of PBASIC Style" that will give you
    some good guidelines.

    -- Jon Williams
    -- Parallax


    -----Original Message-----
    From: David Anderson [mailto:dersonquilter2@y...]
    Sent: Thursday, April 15, 2004 3:29 PM
    To: basicstamps@yahoogroups.com
    Subject: RE: [basicstamps] BS2, BS2P Command differences


    Thank you again, Jon. I am a pretty meticulous hardware man, trying to
    continue this with my programming.

    Jon Williams <jwilliams@p...> wrote:Sure.

    Create a blank programming template includes a bit of a framework that
    promotes sound programming (I'll post mine in the files section and you
    can modify it as you like). Once you have the file saved, follow these
    steps:

    1. Click Edit >> Preferences...
    2. Click "Files & Directories" tab
    3. Click "Browse" button next to the "New file template" field 4. Locate
    your file, then click "Open" 5. Click "OK" to close the preferences
    dialog

    Now when you select File >> New (or use the icon on the toolbar) the
    template code will be loaded in. Makes life easy.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    -----Original Message-----
    From: David Anderson [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 8:13 PM
    To: basicstamps@yahoogroups.com
    Subject: RE: [basicstamps] BS2, BS2P Command differences


    Thank you, John. You mention "template". This sounds like something I
    should be using. Can you tell me how?

    Dave

    Jon Williams wrote:
    Open the help file. The PBASIC Command Reference (in the Contents pane)
    shows all the instructions and which processors they work with.

    You will find that there are no syntax differences between instructions
    that work on the BS2 and the BS2p -- but there may be a difference in
    required parameters (due to processor execution speed). One of the most
    frequent requirements for a parameter change is for SEROUT and SERIN.
    Since the new compiler lets us add conditional compilation structures, I
    have this fragment built into my template:

    #SELECT $STAMP
    #CASE BS2, BS2E, BS2PE
    T1200 CON 813
    T2400 CON 396
    T4800 CON 188
    T9600 CON 84
    T19K2 CON 32
    T38K4 CON 6
    #CASE BS2SX, BS2P
    T1200 CON 2063
    T2400 CON 1021
    T4800 CON 500
    T9600 CON 240
    T19K2 CON 110
    T38K4 CON 45
    #ENDSELECT

    Inverted CON $4000
    Open CON $8000
    Baud CON T9600


    This lets me handle SEROUT/SERIN parameter differences between members
    of the BS2 family without issue.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office



    -----Original Message-----
    From: dersonquilter2 [mailto:dersonquilter2@y...]
    Sent: Wednesday, April 14, 2004 10:56 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] BS2, BS2P Command differences


    I see there are additional commands available for the "P" series. Is
    there a chart or table somewhere that shows the differences?

    Dave



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links






    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.

    Yahoo! Groups Links







    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th

    [Non-text portions of this message have been removed]



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
    Last edited by ForumTools; 10-01-2010 at 04:02 AM. Reason: Forum Migration

  8. #8

    Default

    http://groups.yahoo.com/group/basicstamps/files/

    You'll need to login to Yahoo to get to the files.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    -----Original Message-----
    From: FalconWireless Tech Support - KF4HAZ
    [mailto:techsupport@f...]
    Sent: Thursday, April 15, 2004 4:11 PM
    To: basicstamps@yahoogroups.com
    Subject: Re: [basicstamps] BS2, BS2P Command differences


    Hey I want in on this, where is the "files section"?

    KF4HAZ - Lonnie

    ----- From: "David Anderson" <dersonquilter2@y

    > Thank you again, Jon. I am a pretty meticulous hardware man, trying to

    > continue this with my programming.
    >
    > Jon Williams <jwilliams@p...> wrote:Sure.
    >
    > Create a blank programming template includes a bit of a framework that

    > promotes sound programming (I'll post mine in the files section and
    > you can modify it as you like). Once you have the file saved, follow
    > these
    > steps:
    >
    > 1. Click Edit >> Preferences...
    > 2. Click "Files & Directories" tab
    > 3. Click "Browse" button next to the "New file template" field 4.
    > Locate your file, then click "Open" 5. Click "OK" to close the
    > preferences dialog
    >
    > Now when you select File >> New (or use the icon on the toolbar) the
    > template code will be loaded in. Makes life easy.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    > -----Original Message-----
    > From: David Anderson [mailto:dersonquilter2@y...]
    > Sent: Wednesday, April 14, 2004 8:13 PM
    > To: basicstamps@yahoogroups.com
    > Subject: RE: [basicstamps] BS2, BS2P Command differences
    >
    >
    > Thank you, John. You mention "template". This sounds like something I
    > should be using. Can you tell me how?
    >
    > Dave
    >
    > Jon Williams wrote:
    > Open the help file. The PBASIC Command Reference (in the Contents
    > pane) shows all the instructions and which processors they work with.
    >
    > You will find that there are no syntax differences between
    > instructions that work on the BS2 and the BS2p -- but there may be a
    > difference in required parameters (due to processor execution speed).
    > One of the most frequent requirements for a parameter change is for
    > SEROUT and SERIN. Since the new compiler lets us add conditional
    > compilation structures, I have this fragment built into my template:
    >
    > #SELECT $STAMP
    > #CASE BS2, BS2E, BS2PE
    > T1200 CON 813
    > T2400 CON 396
    > T4800 CON 188
    > T9600 CON 84
    > T19K2 CON 32
    > T38K4 CON 6
    > #CASE BS2SX, BS2P
    > T1200 CON 2063
    > T2400 CON 1021
    > T4800 CON 500
    > T9600 CON 240
    > T19K2 CON 110
    > T38K4 CON 45
    > #ENDSELECT
    >
    > Inverted CON $4000
    > Open CON $8000
    > Baud CON T9600
    >
    >
    > This lets me handle SEROUT/SERIN parameter differences between members

    > of the BS2 family without issue.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office



    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.

    Yahoo! Groups Links







    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
    Last edited by ForumTools; 10-01-2010 at 04:03 AM. Reason: Forum Migration

  9. #9

    Default

    It would be great if we could expand upon this (maybe as a group
    project) and include constants or variables to account for the
    differences with:

    COUNT
    DTMFOUT
    FREQOUT
    PULSOUT
    PWM
    RCTIME

    Kenny
    Last edited by ForumTools; 10-01-2010 at 04:03 AM. Reason: Forum Migration

  10. #10

    Default

    I have just uploaded a ZIP of examples that cover the instructions you
    list below, as well as a couple you didn't. All programs use
    conditional compilation so that the program perfoms the same on any
    BS2-family BASIC Stamp.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    -----Original Message-----
    From: Kenny [mailto:gapdev@y...]
    Sent: Friday, April 16, 2004 10:12 AM
    To: basicstamps@yahoogroups.com
    Subject: [basicstamps] Re: BS2, BS2P Command differences


    It would be great if we could expand upon this (maybe as a group
    project) and include constants or variables to account for the
    differences with:

    COUNT
    DTMFOUT
    FREQOUT
    PULSOUT
    PWM
    RCTIME

    Kenny
    Last edited by ForumTools; 10-01-2010 at 04:03 AM. Reason: Forum Migration

  11. #11

    Default

    >> I have just uploaded a ZIP of examples that cover
    >> the instructions you list

    Thanks Jon, that is perfect!

    Kenny
    Last edited by ForumTools; 10-01-2010 at 04:03 AM. Reason: Forum Migration

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts