BS2, BS2P Command differences
Archiver
Posts: 46,084
I see there are additional commands available for the "P" series. Is
there a chart or table somewhere that shows the differences?
Dave
there a chart or table somewhere that shows the differences?
Dave
Comments
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ocMT7qEhN3C6OzoI5XaC_ruFHS5ynMWCXi6kAttgGZ4R5k-egiLJjP4DrxOOIakV1G6cWuUWIytdz_U5-tQZc84]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 10:56 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=6GmEgbMPYVmVVhZK6VERPN459Tg2tuIBOMtVXTrP5yq5u8D-ves9YEgLt-FbZb2WSi-7qG3ClJs1ua6YJFpA5m81]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 10:56 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
[noparse][[/noparse]Non-text portions of this message have been removed]
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZgaqBpbiUSc1ShPeKL94TobO4ez65N1yIhEn5NlrLkPjhvJ1AQCulvEORIu4xaqd8oDBT5vj-_euFjdZDWw]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 8:13 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ZgaqBpbiUSc1ShPeKL94TobO4ez65N1yIhEn5NlrLkPjhvJ1AQCulvEORIu4xaqd8oDBT5vj-_euFjdZDWw]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 10:56 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
[noparse][[/noparse]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....
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ivV16hq6Ty9s3_X_kJwcHaBaaFasNgaF7wI-WB0AtqIiu5ImWbCLaKi9PjewkYNnYWgocNolj6BHysGygbMjgPdtYw]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 8:13 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ivV16hq6Ty9s3_X_kJwcHaBaaFasNgaF7wI-WB0AtqIiu5ImWbCLaKi9PjewkYNnYWgocNolj6BHysGygbMjgPdtYw]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 10:56 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
[noparse][[/noparse]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
[noparse][[/noparse]Non-text portions of this message have been removed]
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wK3B1wgx0jU6-4l0Fe8MXHtAFpVEgiI10V5Ne2O4wgGFp826l40ZA5_ihJuSb-739vxVrnm9nBbrSZdELB0]dersonquilter2@y...[/url
> Sent: Wednesday, April 14, 2004 8:13 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]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
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kgfikJeW_YDbhXHFdMCyjmZx9ruM2S3HMhS5edG1i4e1Daz6-IQLTg85gmE1rEr_ssddL6k_y_lvN_3ZGwXsI_8F]dersonquilter2@y...[/url
Sent: Thursday, April 15, 2004 3:29 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kgfikJeW_YDbhXHFdMCyjmZx9ruM2S3HMhS5edG1i4e1Daz6-IQLTg85gmE1rEr_ssddL6k_y_lvN_3ZGwXsI_8F]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 8:13 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kgfikJeW_YDbhXHFdMCyjmZx9ruM2S3HMhS5edG1i4e1Daz6-IQLTg85gmE1rEr_ssddL6k_y_lvN_3ZGwXsI_8F]dersonquilter2@y...[/url
Sent: Wednesday, April 14, 2004 10:56 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
[noparse][[/noparse]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
[noparse][[/noparse]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....
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
[noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=t4rX86jDqd7Ron7PomdwsIvLh0f6ueHti98ujyRU0EoWCmNQwJGApA4bB1nygxAUQzVB0iKmHGFrK9MgvyJLX78Jtdg]techsupport@f...[/url
Sent: Thursday, April 15, 2004 4:11 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=YSIawW94Le8bY2-uhEgob-JeEykZwHYV0hLd0M4uMu8TLaiA4DsChpQWZ7e9afZd17QTRBzbXE6DA74Jvj2Xb7Ltvg]dersonquilter2@y...[/url
> Sent: Wednesday, April 14, 2004 8:13 PM
> To: basicstamps@yahoogroups.com
> Subject: RE: [noparse][[/noparse]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....
project) and include constants or variables to account for the
differences with:
COUNT
DTMFOUT
FREQOUT
PULSOUT
PWM
RCTIME
Kenny
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 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=lDvkBZrBz1NRKkVp4kXhPdrPuxUbP3BEpkR5_IWNyESMBu5L2TBaHVG7WG073U-NttOYzt55bNAKhQ]gapdev@y...[/url
Sent: Friday, April 16, 2004 10:12 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]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
>> the instructions you list
Thanks Jon, that is perfect!
Kenny