Full BS2, change to BS2e?
Archiver
Posts: 46,084
I have a BS2 in which the programming EEPROM is basically full (it
has about 10 locations left according to the Memory Map). I am
using Pbasic 2.5, and the programmer is Windows 2.0 Beta 2.1. The
program had the correct directives on the first line. I purchased a
BS2e, since it has a larger program space. I changed the program
directives to indicate the BS2e. However, the memory map still
shows the same amount of memory remaining.
Am I missing something? The BS2e should have 3 times the
programming space of the BS2, yet the Memory Map shows different.
Any help would be appreciated.
Thanks,
Tracy
has about 10 locations left according to the Memory Map). I am
using Pbasic 2.5, and the programmer is Windows 2.0 Beta 2.1. The
program had the correct directives on the first line. I purchased a
BS2e, since it has a larger program space. I changed the program
directives to indicate the BS2e. However, the memory map still
shows the same amount of memory remaining.
Am I missing something? The BS2e should have 3 times the
programming space of the BS2, yet the Memory Map shows different.
Any help would be appreciated.
Thanks,
Tracy
Comments
Tracy.Hooker@p... writes:
> Am I missing something? The BS2e should have 3 times the
> programming space of the BS2, yet the Memory Map shows different
Your are looking at the memory map of Bank 0. The BS2E has 8 memory banks,
each with a capacity of 2KB. Move part of your program into Bank 1 and you
will see the difference>
Sid Weaver
W4EKQ
Port Richey, FL
Sid Weaver
W4EKQ
Port Richey, FL
[noparse][[/noparse]Non-text portions of this message have been removed]
alluded to in the Pbasic manual, pg. 38 where they talk about
multiple files?
TIA
Tracy
--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> In a message dated 8/15/2003 9:56:19 AM Eastern Standard Time,
> Tracy.Hooker@p... writes:
>
>
> > Am I missing something? The BS2e should have 3 times the
> > programming space of the BS2, yet the Memory Map shows different
>
> Your are looking at the memory map of Bank 0. The BS2E has 8
memory banks,
> each with a capacity of 2KB. Move part of your program into Bank
1 and you
> will see the difference>
>
>
> Sid Weaver
> W4EKQ
> Port Richey, FL
>
> Sid Weaver
> W4EKQ
> Port Richey, FL
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
Tracy.Hooker@p... writes:
> OK, but do you mean that I should use the 'program slots' which are
> alluded to in the Pbasic manual, pg. 38 where they talk about
> multiple files?
>
>
Absolutely. Create a file, i.e., compone.bse. Put something in the file
then tokenize it.
Go back to your original file, and in the directive line, write:
'{Stamp BS2E, compone.bse}
Save and exit the Editor, then reopen your original file. You will now see
two tabs at the top, one for Bank 0 and one for Bank 1.
Tip: ALL of the constants and variables must appear in both files and
EXACTLY in the same order. This holds true for any banks you might add.
To go to "compone", type "run 1". To go back to your orginal program, type
"run 0".
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
project. The RUN command will give you details on launching another
program slot. PUT can be used to move data to the ScratchPad RAM and
GET to retrieve it -- that way you can pass data between program slots.
I wrote an article for Nuts & Volts on multi-bank programming, #87. You
can download the PDF from this link:
http://www.parallax.com/dl/docs/cols/nv/vol3/col/NV87-Multi_Bank_Program
ming.pdf
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: lcradio2002 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=U2vpYh1uqm015J0hOTu9ULUz--0cLDLRiyuFl1avT34nGYDec-1qM9yXEaQkpMjY0YxMJTAXXpU9YcdPhs0wsAI]Tracy.Hooker@p...[/url
Sent: Friday, August 15, 2003 9:30 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Full BS2, change to BS2e?
OK, but do you mean that I should use the 'program slots' which are
alluded to in the Pbasic manual, pg. 38 where they talk about
multiple files?
TIA
Tracy
--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> In a message dated 8/15/2003 9:56:19 AM Eastern Standard Time,
> Tracy.Hooker@p... writes:
>
>
> > Am I missing something? The BS2e should have 3 times the
> > programming space of the BS2, yet the Memory Map shows different
>
> Your are looking at the memory map of Bank 0. The BS2E has 8
memory banks,
> each with a capacity of 2KB. Move part of your program into Bank
1 and you
> will see the difference>
>
>
> Sid Weaver
> W4EKQ
> Port Richey, FL
>
> Sid Weaver
> W4EKQ
> Port Richey, FL
>
>
> [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.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....
space. That said, you can't GOSUB into another program slot. What I do
is use extra slots for support routines (displays, etc.) and pass data
to them via the ScratchPad RAM. I also store a task pointer for my main
slot so that when I return from a support slot, I can pick up where I
left off.
This technique is detailed in my N&V article.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Al0y_zsFvYQsZZeY6pCknZ8ZPmoFUE3qG4sj-wirPEv0wxSF1KAFmYWeBsPTJ8qB02V9ANyY2w]Newzed@a...[/url
Sent: Friday, August 15, 2003 10:09 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: Full BS2, change to BS2e?
[noparse][[/noparse]SNIP]
Tip: ALL of the constants and variables must appear in both files and
EXACTLY in the same order. This holds true for any banks you might add.
the BS2. If you plan to do much in the way of multibank programming,
I would highly recommend springing the extra dough for a BS2p or
BS2pe.
The STORE command, available only on the 'p and 'pe, is invaluable
for cross bank programming. I can't emphasize that enough! It
allows a program running in one bank to read and write to the eeprom
in another bank. Just think about it. A table of phone numbers. A
lookup table for altitude conversions. A data logger. Prompts or
text for a display. Motion map for a 'bot. Operating parameters or
schedule for a machine. etc. etc. A programming running in one bank
can read and change all that in another bank, which is very
convoluted to do with the earlier stamps.
Again, spring for the 'p or 'pe!
-- Tracy
>You don't have to do this unless you're trying to mimic one contiguous
>space. That said, you can't GOSUB into another program slot. What I do
>is use extra slots for support routines (displays, etc.) and pass data
>to them via the ScratchPad RAM. I also store a task pointer for my main
>slot so that when I return from a support slot, I can pick up where I
>left off.
>
>This technique is detailed in my N&V article.
>
>-- Jon Williams
>-- Applications Engineer, Parallax
>-- Dallas Office
>
>
>
Original Message
>From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=HnDPtAjRZSHHdo6NDHkfqWQ9wDy0fvjHlsZIsAltaCXkEuXOQvZF5IMP7hmptJHRu2qLyzRA8w]Newzed@a...[/url
>Sent: Friday, August 15, 2003 10:09 AM
>To: basicstamps@yahoogroups.com
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Full BS2, change to BS2e?
>
>
>[noparse][[/noparse]SNIP]
>
>Tip: ALL of the constants and variables must appear in both files and
>EXACTLY in the same order. This holds true for any banks you might add.
>
>
>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.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
datalogger for my car to track the route of my vacation drive next week
(Dallas to Columbus). The BS2p helps me in several areas:
1. Speed -- 3x BS2 speed
2. SPSTR function of SERIN so I can capture GPS string for parsing after
3. STORE will let me run from slot 0, using slots 1 - 7 for trip data
(would have more with pe)
For those of you that happen to follow my Nuts & Volts column this
project will appear in November or December.
Every one of the items that Tracy discusses below have been incorporated
into one or more of my projects. Yes, I know I work for Parallax so
this seems self-serving, but the BS2p really is a great choice for many
applications. One only has to see the cool things Tracy has built with
it to bear that out.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Tracy Allen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=9aty7OI3P8D3igbktGat1r-Hg1K5UBfIbvf46h8oolGZLKoB-CNxFOf6UDxUI9_-gd_Z9g7TSmCq538]tracy@e...[/url
Sent: Friday, August 15, 2003 1:38 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Re: Full BS2, change to BS2e?
This is just an additional comment on the issue of migration up from
the BS2. If you plan to do much in the way of multibank programming,
I would highly recommend springing the extra dough for a BS2p or
BS2pe.
The STORE command, available only on the 'p and 'pe, is invaluable
for cross bank programming. I can't emphasize that enough! It
allows a program running in one bank to read and write to the eeprom
in another bank. Just think about it. A table of phone numbers. A
lookup table for altitude conversions. A data logger. Prompts or
text for a display. Motion map for a 'bot. Operating parameters or
schedule for a machine. etc. etc. A programming running in one bank
can read and change all that in another bank, which is very
convoluted to do with the earlier stamps.
Again, spring for the 'p or 'pe!
-- Tracy
>You don't have to do this unless you're trying to mimic one contiguous
>space. That said, you can't GOSUB into another program slot. What I
>do is use extra slots for support routines (displays, etc.) and pass
>data to them via the ScratchPad RAM. I also store a task pointer for
>my main slot so that when I return from a support slot, I can pick up
>where I left off.
>
>This technique is detailed in my N&V article.
>
>-- Jon Williams
>-- Applications Engineer, Parallax
>-- Dallas Office
>
>
>
Original Message
>From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=tSnMMPYOoJv29SL2yDxZ6Ks6ugkCqvCMtNXEuZ85_Q8srsVRVE7IGnVv8lBdERpsqxsA8-0azw]Newzed@a...[/url
>Sent: Friday, August 15, 2003 10:09 AM
>To: basicstamps@yahoogroups.com
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Full BS2, change to BS2e?
>
>
>[noparse][[/noparse]SNIP]
>
>Tip: ALL of the constants and variables must appear in both files and
>EXACTLY in the same order. This holds true for any banks you might
>add.
>
>
>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.
>
>
>Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
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.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
This message has been scanned by WebShield. Please report SPAM to
abuse@p....