Do Loop will not execute
I recently bought a Board of Education and I'm going through
the "What Is a Microcontroller" course. When I came to the section
that turns an LED on and off, I noticed the DO LOOP function does not
work.
My BS2 will not execute the Do Loop command.
When I hit the run button, the program between the DO LOOP runs once.
For example the LED will go on then shut off once.
Can anyone tell me how to get the DO LOOP function working?
the "What Is a Microcontroller" course. When I came to the section
that turns an LED on and off, I noticed the DO LOOP function does not
work.
My BS2 will not execute the Do Loop command.
When I hit the run button, the program between the DO LOOP runs once.
For example the LED will go on then shut off once.
Can anyone tell me how to get the DO LOOP function working?
Comments
You aren't the first to hit this. Jon Williams of Paralax has been
helping someone the last 3 or four days. Go back through the
messages and see what you find. There are quite a few messages.
Happy Holidays,
Frank
--- In basicstamps@yahoogroups.com, "johnharvard03"
<johnharvard03@y...> wrote:
> I recently bought a Board of Education and I'm going through
> the "What Is a Microcontroller" course. When I came to the section
> that turns an LED on and off, I noticed the DO LOOP function does
not
> work.
> My BS2 will not execute the Do Loop command.
> When I hit the run button, the program between the DO LOOP runs
once.
> For example the LED will go on then shut off once.
> Can anyone tell me how to get the DO LOOP function working?
Out of curiosity...
Do you think the "bad port behavior" is preventing successful
programming of the Stamp (program download)? Or preventing normal
execution of a successfully downloaded program? If the latter,
would removing the programming cable also be effective?
Can anyone explain the technical details of the FIFO-Stamp issue?
Thanks and Merry Christmas,
Steve
DEBUG "Test"
If the program runs normally after that, the problem has to do with your
serial port. You can "fix" this problem (bad port behavior -- I'm
betting you're using a laptop) by changing your port FIFO settings to
their minimum values. I explained how to do this in an earlier post.
Happy Holidays
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RZt76-tUWDe5d9rsXwIXnKX6fMrMZqxrXlArOv94uEjs3N66L866RqFUozip-6fgbsdR24RtADFVKi3Qx3g]johnharvard03@y...[/url
Sent: Tuesday, December 23, 2003 10:20 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
I recently bought a Board of Education and I'm going through
the "What Is a Microcontroller" course. When I came to the section
that turns an LED on and off, I noticed the DO LOOP function does not
work.
My BS2 will not execute the Do Loop command.
When I hit the run button, the program between the DO LOOP runs once.
For example the LED will go on then shut off once. Can anyone tell me
how to get the DO LOOP function working?
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
sometimes does not work if I use the picBasicv2.5
syntax with an earlier version of the Basic Stamp
Editor software (v1.33). Once I upgraded the software
and chose PicBasic2.5 in the Directive menu, the
DoLoop compiled and worked just fine.
One this note, when will the Baisc Stamp manual v2.5
be available to account for the syntactical code
changes of the latest version?
thanks,
~ danielle
--- Jon Williams <jwilliams@p...> wrote:
> Put a DEBUG statement at the top of your program,
> like this:
>
> DEBUG "Test"
>
> If the program runs normally after that, the problem
> has to do with your
> serial port. You can "fix" this problem (bad port
> behavior -- I'm
> betting you're using a laptop) by changing your port
> FIFO settings to
> their minimum values. I explained how to do this in
> an earlier post.
>
> Happy Holidays
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=O6jn9y1NmPdLDX-HHVk91hdq3a8vQ99PvS9DSFZhn0GTQ5ZHXJUENV2v9iO11tbzGrfpFFIFLDLTRyiKoYmf]johnharvard03@y...[/url
>
> Sent: Tuesday, December 23, 2003 10:20 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
>
>
> I recently bought a Board of Education and I'm going
> through
> the "What Is a Microcontroller" course. When I came
> to the section
> that turns an LED on and off, I noticed the DO LOOP
> function does not
> work.
> My BS2 will not execute the Do Loop command.
> When I hit the run button, the program between the
> DO LOOP runs once.
> For example the LED will go on then shut off once.
> Can anyone tell me
> how to get the DO LOOP function working?
>
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> 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....
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
>Another thing I've noticed is that the Do Loop
>sometimes does not work if I use the picBasicv2.5
>syntax with an earlier version of the Basic Stamp
>Editor software (v1.33). Once I upgraded the software
>and chose PicBasic2.5 in the Directive menu, the
>DoLoop compiled and worked just fine.
Hi Danielle -
The '{$PBASIC 2.5} directive is only recognized by the latest compilers.
Any earlier version will only view it as a comment, by SMART design.
>On this note, when will the Baisc Stamp manual v2.5
>be available to account for the syntactical code
>changes of the latest version?
Sorry I don't have an answer here. Perhaps Jon can give us some idea.
Certainly not until after the first of the year, however.
>
>
>thanks,
>
>~ danielle
Regards,
Bruce Bates
>--- Jon Williams <jwilliams@p...> wrote:
>> Put a DEBUG statement at the top of your program,
>> like this:
>>
>> DEBUG "Test"
>>
>> If the program runs normally after that, the problem
>> has to do with your
>> serial port. You can "fix" this problem (bad port
>> behavior -- I'm
>> betting you're using a laptop) by changing your port
>> FIFO settings to
>> their minimum values. I explained how to do this in
>> an earlier post.
>>
>> Happy Holidays
>>
>> -- Jon Williams
>> -- Applications Engineer, Parallax
>> -- Dallas Office
>>
>>
>>
Original Message
>> From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=LJ4sQUDQ32rs3YYHHf5nbfJXv1DgjMZAteI1Xko3Q0vOhncQSErcfxsO-d5uToAElVAvAsw3LNXJGEOMC0xth3kq]johnharvard03@y...[/url
>>
>> Sent: Tuesday, December 23, 2003 10:20 PM
>> To: basicstamps@yahoogroups.com
>> Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
>>
>>
>> I recently bought a Board of Education and I'm going
>> through
>> the "What Is a Microcontroller" course. When I came
>> to the section
>> that turns an LED on and off, I noticed the DO LOOP
>> function does not
>> work.
>> My BS2 will not execute the Do Loop command.
>> When I hit the run button, the program between the
>> DO LOOP runs once.
>> For example the LED will go on then shut off once.
>> Can anyone tell me
>> how to get the DO LOOP function working?
>>
>>
>>
>>
>> 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
>>
>> To visit your group on the web, go to:
>> http://groups.yahoo.com/group/basicstamps/
>>
>> To unsubscribe from this group, send an email to:
>> basicstamps-unsubscribe@yahoogroups.com
>>
>> 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....
>>
>>
>> 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
>>
>> To visit your group on the web, go to:
>> http://groups.yahoo.com/group/basicstamps/
>>
>> To unsubscribe from this group, send an email to:
>> basicstamps-unsubscribe@yahoogroups.com
>>
>> Your use of Yahoo! Groups is subject to:
>> http://docs.yahoo.com/info/terms/
>>
>>
>
>
>__________________________________
>Do you Yahoo!?
>New Yahoo! Photos - easier uploading and sharing.
>http://photos.yahoo.com/
>
>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
>
>To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
>To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
>Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
only with versions 2.x of the editor. We are actively working on
updating our manual -- it's a very big process with all the language
changes, and the addition of the BS1 to the new editor. Keep in mind
that the online help file will generally be the most up-to-date source
of syntax information since it is the easiest document for us to update.
Happy Holidays.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Danielle Lee [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=jr_n6qDINyXL-C7cIBJ8PQZXYggJBTdKRqSs1vn7eth_bzTwEFjr3wTnInKBZzgXmcl7MMxsE9c]sooki1@y...[/url
Sent: Wednesday, December 24, 2003 10:27 AM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Do Loop will not execute
Another thing I've noticed is that the Do Loop
sometimes does not work if I use the picBasicv2.5
syntax with an earlier version of the Basic Stamp
Editor software (v1.33). Once I upgraded the software
and chose PicBasic2.5 in the Directive menu, the
DoLoop compiled and worked just fine.
One this note, when will the Baisc Stamp manual v2.5
be available to account for the syntactical code
changes of the latest version?
thanks,
~ danielle
--- Jon Williams <jwilliams@p...> wrote:
> Put a DEBUG statement at the top of your program,
> like this:
>
> DEBUG "Test"
>
> If the program runs normally after that, the problem
> has to do with your
> serial port. You can "fix" this problem (bad port
> behavior -- I'm
> betting you're using a laptop) by changing your port
> FIFO settings to
> their minimum values. I explained how to do this in
> an earlier post.
>
> Happy Holidays
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Y5vq3rxcUc6YyjJbNyXKWX_Bc-HefRMBREz39yRNTffdEhVS6JWlHmTroaeip5X3XYvh9F19vmnM5kwyCg]johnharvard03@y...[/url
>
> Sent: Tuesday, December 23, 2003 10:20 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
>
>
> I recently bought a Board of Education and I'm going
> through
> the "What Is a Microcontroller" course. When I came
> to the section
> that turns an LED on and off, I noticed the DO LOOP
> function does not
> work.
> My BS2 will not execute the Do Loop command.
> When I hit the run button, the program between the
> DO LOOP runs once.
> For example the LED will go on then shut off once.
> Can anyone tell me
> how to get the DO LOOP function working?
>
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> 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....
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
You asked
> Can anyone explain the technical details of the FIFO-Stamp issue?
I'll take a stab at it. I might be less wrong by way of analogy than in
specific details.
FIFO set to none/minimum: every character into the serial port is passed
immediately to the CPU.
FIFO set to maximum: characters are buffered by the serial port until a
large-enough number of characters (the buffer size) is accumulated, and then
the batch is passed to the CPU. There is a 'time-buffer' as well as a
'character-buffer'; that is: so as to prevent a partially filled buffer of
characters from languishing, periodically, the buffer is passed to the CPU
even if it is not full.
Communications that depend on tight timing sequences (a response must be
received within a certain number of milliseconds, or else an error is
signaled) requre that all serial port characters be passed on to the CPU
before the sequence's timeout.
Thus accepting greater CPU load for serial communications (FIFO = none)
preferred in these cases.
HTH,
Daniel
Original Message
From: "S Parkis" <parkiss@e...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, 24 December 2003 01:02
Subject: RE: [noparse][[/noparse]basicstamps] Do Loop will not execute
> Jon-
>
> Out of curiosity...
>
> Do you think the "bad port behavior" is preventing successful
> programming of the Stamp (program download)? Or preventing normal
> execution of a successfully downloaded program? If the latter,
> would removing the programming cable also be effective?
>
> Can anyone explain the technical details of the FIFO-Stamp issue?
>
> Thanks and Merry Christmas,
>
> Steve
> [noparse][[/noparse]...] Once I upgraded the software
> and chose PicBasic2.5 in the Directive menu, the
> DoLoop compiled and worked just fine.
>
> One this note, when will the Baisc Stamp manual v2.5
> be available to account for the syntactical code
> changes of the latest version?
>
Jon's answer as to publication plans has to be considered authoritative for
the full manual, since of course he is one of the principal authors -- but
if you simply want a reference for the syntax, you have one already,
Danielle. The version of the manual built into your upgraded software is an
excellent one. I've used nothing else and have found only one or two minor
editing issues. Click on the rightmost icon of the toolbar to open the
document.
Gary
am the keeper of our online help file.
Another feature of our help system is that you can highlight a keyword
(double-click it) in the editor, then press the [noparse][[/noparse]F1] key -- help will be
opened to that keyword.
Happy Holidays to all.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Gary W. Sims [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=a-vxmdHgDd4bC8173uytfLBrC92tdsy2aw9eZt5vBpePeSReEw3sZxV4Z73WB27wXF2IRjvZavTcMlDONA]simsgw@c...[/url
Sent: Wednesday, December 24, 2003 6:36 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Do Loop will not execute
From: "Danielle Lee" <sooki1@y...>
> [noparse][[/noparse]...] Once I upgraded the software
> and chose PicBasic2.5 in the Directive menu, the
> DoLoop compiled and worked just fine.
>
> One this note, when will the Baisc Stamp manual v2.5
> be available to account for the syntactical code
> changes of the latest version?
>
Jon's answer as to publication plans has to be considered authoritative
for the full manual, since of course he is one of the principal authors
-- but if you simply want a reference for the syntax, you have one
already, Danielle. The version of the manual built into your upgraded
software is an excellent one. I've used nothing else and have found only
one or two minor editing issues. Click on the rightmost icon of the
toolbar to open the document.
Gary
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
drivers when idle and the periodically blip them on(port scanning?) causing a
reset. I put a switch in the DTR line.
>
> Do you think the "bad port behavior" is preventing successful
> programming of the Stamp (program download)? Or preventing normal
> execution of a successfully downloaded program? If the latter, would
> removing the programming cable also be effective?
wrote:
> Put a DEBUG statement at the top of your program, like this:
>
> DEBUG "Test"
>
> If the program runs normally after that, the problem has to do with
your
> serial port. You can "fix" this problem (bad port behavior -- I'm
> betting you're using a laptop) by changing your port FIFO settings
to
> their minimum values. I explained how to do this in an earlier
post.
>
> Happy Holidays
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
Jon,
Merry Christmas.
I placed the DEBUG "Test" line at the top of my program and inside
and the Do Loop still does not function. Also, I am not using a
laptop. Is there anything else I can try to get the Do Loop working?
Thank you,
Kevin
>
>
Original Message
> From: johnharvard03 [noparse][[/noparse]mailto:johnharvard03@y...]
> Sent: Tuesday, December 23, 2003 10:20 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
>
>
> I recently bought a Board of Education and I'm going through
> the "What Is a Microcontroller" course. When I came to the section
> that turns an LED on and off, I noticed the DO LOOP function does
not
> work.
> My BS2 will not execute the Do Loop command.
> When I hit the run button, the program between the DO LOOP runs
once.
> For example the LED will go on then shut off once. Can anyone tell
me
> how to get the DO LOOP function working?
>
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> 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...
* You can always download to the Stamp, but the program only runs once.
Right?
* You have specified {$PBASIC 2.5}?
* Your connections and power-supply are good?
* You're using the latest version of our compiler (Version 2.1, Beta 1),
right?
* Have you tried the LED on a different pin with the same results?
Does this version of the program run any differently?
Main:
HIGH LedPin
PAUSE 500
LOW LedPin
PAUSE 500
GOTO Main
The code above will run on any BASIC Stamp -- even down to the Stamp 1.
If that works, try this:
Main:
DO
DEBUG, "Yes, I'm here.", CR
PAUSE 500
LOOP
If the DEBUG version doesn't work then I am going to become suspicious
of your serial port. Do you have another serial port you can use? You
may have a goofy or faulty port.
I'm sorry you're having so many frustrations -- this is way out of the
norm. The reason the BASIC Stamp is so popular is it's
plug-it-in-and-it-just-plain-works track record.
Happy Holidays.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=PMkItKLs1p_DK6rBg5ltBci-kuku2PFT-z4peRMdLW5UYPRI0I-FT2ekjGgwdrVESHL9PlU3K_mlzpRP0uGq]johnharvard03@y...[/url
Sent: Saturday, December 27, 2003 7:30 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Do Loop will not execute
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> Put a DEBUG statement at the top of your program, like this:
>
> DEBUG "Test"
>
> If the program runs normally after that, the problem has to do with
your
> serial port. You can "fix" this problem (bad port behavior -- I'm
> betting you're using a laptop) by changing your port FIFO settings
to
> their minimum values. I explained how to do this in an earlier
post.
>
> Happy Holidays
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
Jon,
Merry Christmas.
I placed the DEBUG "Test" line at the top of my program and inside
and the Do Loop still does not function. Also, I am not using a
laptop. Is there anything else I can try to get the Do Loop working?
Thank you, Kevin
>
>
Original Message
> From: johnharvard03 [noparse][[/noparse]mailto:johnharvard03@y...]
> Sent: Tuesday, December 23, 2003 10:20 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Do Loop will not execute
>
>
> I recently bought a Board of Education and I'm going through
> the "What Is a Microcontroller" course. When I came to the section
> that turns an LED on and off, I noticed the DO LOOP function does
not
> work.
> My BS2 will not execute the Do Loop command.
> When I hit the run button, the program between the DO LOOP runs
once.
> For example the LED will go on then shut off once. Can anyone tell
me
> how to get the DO LOOP function working?
>
>
>
>
> 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
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> 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...
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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
serial port, although you would think that if he can download the serial
cable/port would be OK.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
separate thread and can interpret special codes from the Stamp -- it's
built-in and easier to setup than Hyperterminal.
-- Jon
Original Message
From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1fTtQ2dcjD7PnMQD4RcwlliFjcfWrlBv5wuCH4suyX33jkerreIWgG-S9FPBOj53XMSsPQ]Newzed@a...[/url
Sent: Saturday, December 27, 2003 10:57 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: Do Loop will not execute
Jon, maybe a try with Hyperterminal would help identify a bad serial
cable or
serial port, although you would think that if he can download the serial
cable/port would be OK.
Sid
[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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
jwilliams@p... writes:
> The compiler's DEBUG window is just a terminal program that runs in a
> separate thread and can interpret special codes from the Stamp -- it's
> built-in and easier to setup than Hyperterminal.
>
Then the other weird thought I had was that as the Stamp reads the EEPROM
and runs the program, it erases the EEPROM. Is that possible?
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
-- Jon Williams
-- Parallax
Original Message
From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=gZbJfwhD69yp8dZhrgj9-xcLEv29ZO-ZDW33rK5-jIeFh9zcN0FQyMm6_b9nUxto-zX6XQjIJw]Newzed@a...[/url
Sent: Saturday, December 27, 2003 11:06 AM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] Re: Do Loop will not execute
In a message dated 12/27/2003 11:59:38 AM Eastern Standard Time,
jwilliams@p... writes:
> The compiler's DEBUG window is just a terminal program that runs in a
> separate thread and can interpret special codes from the Stamp -- it's
> built-in and easier to setup than Hyperterminal.
>
Then the other weird thought I had was that as the Stamp reads the
EEPROM and runs the program, it erases the EEPROM. Is that possible?
Sid
[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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
Thank you for your response.
The Main: GOTO Main function does work on my board. I will continue
through the "What Is a Microcontroller" course using
the NAME: GOTO NAME function whenever a DO LOOP is required.
The Main:
> DO
> DEBUG, "Yes, I'm here.", CR
> PAUSE 500
> LOOP
did not work.
I don't have a second com port to try.
I am using the serial cable that was supplied with the BOE.
Also, I did change my computer's Com Port 1 Receive Buffer and
Transmit Buffer
to the lowest settings, but that did not help.
Regarding your other questions:
* You can always download to the Stamp, but the program only runs
once.
Right?
YES
* You have specified {$PBASIC 2.5}?
YES
* Your connections and power-supply are good?
YES
* You're using the latest version of our compiler (Version 2.1, Beta
1),
right?
The CD sent with my BOE has version 2.0 Beta 2 as the latest.
* Have you tried the LED on a different pin with the same results?
Yes, I tried the LED on different pins, but same results.
Regards,
Kevin
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> To be honest, I'm a bit stumped ... but we'll keep trying.
>
> * You can always download to the Stamp, but the program only runs
once.
> Right?
> * You have specified {$PBASIC 2.5}?
> * Your connections and power-supply are good?
> * You're using the latest version of our compiler (Version 2.1,
Beta 1),
> right?
> * Have you tried the LED on a different pin with the same results?
>
> Does this version of the program run any differently?
>
> Main:
> HIGH LedPin
> PAUSE 500
> LOW LedPin
> PAUSE 500
> GOTO Main
>
> The code above will run on any BASIC Stamp -- even down to the
Stamp 1.
>
> If that works, try this:
>
> Main:
> DO
> DEBUG, "Yes, I'm here.", CR
> PAUSE 500
> LOOP
>
> If the DEBUG version doesn't work then I am going to become
suspicious
> of your serial port. Do you have another serial port you can use?
You
> may have a goofy or faulty port.
>
> I'm sorry you're having so many frustrations -- this is way out of
the
> norm. The reason the BASIC Stamp is so popular is it's
> plug-it-in-and-it-just-plain-works track record.
>
> Happy Holidays.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
install the latest version of our compiler. We are only able to update
CDs a couple times a year, so the software on the CD is not always the
latest. Here's the page:
http://www.parallax.com/html_pages/downloads/software/software_basic_sta
mp.asp
In case the link gets broken, go to our web site, then select Downloads
-> Basic Stamp Software from the menu bar.
DO-LOOP is very powerful and goes beyond GOTO-Label, so we'd like you to
be able to use it.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: johnharvard03 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=7seo0pr2IfiPhDobXx1nISBlq7vYJXPLrqfXlG3I-1gbJ5DB_3Ap7ctwtCr8_VGso__h7xdHbzjR-cTgrhNA]johnharvard03@y...[/url
Sent: Saturday, December 27, 2003 9:19 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Do Loop will not execute
Jon,
Thank you for your response.
The Main: GOTO Main function does work on my board. I will continue
through the "What Is a Microcontroller" course using
the NAME: GOTO NAME function whenever a DO LOOP is required.
The Main:
> DO
> DEBUG, "Yes, I'm here.", CR
> PAUSE 500
> LOOP
did not work.
I don't have a second com port to try.
I am using the serial cable that was supplied with the BOE.
Also, I did change my computer's Com Port 1 Receive Buffer and
Transmit Buffer
to the lowest settings, but that did not help.
Regarding your other questions:
* You can always download to the Stamp, but the program only runs
once.
Right?
YES
* You have specified {$PBASIC 2.5}?
YES
* Your connections and power-supply are good?
YES
* You're using the latest version of our compiler (Version 2.1, Beta
1),
right?
The CD sent with my BOE has version 2.0 Beta 2 as the latest.
* Have you tried the LED on a different pin with the same results? Yes,
I tried the LED on different pins, but same results.
Regards,
Kevin
--- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
wrote:
> To be honest, I'm a bit stumped ... but we'll keep trying.
>
> * You can always download to the Stamp, but the program only runs
once.
> Right?
> * You have specified {$PBASIC 2.5}?
> * Your connections and power-supply are good?
> * You're using the latest version of our compiler (Version 2.1,
Beta 1),
> right?
> * Have you tried the LED on a different pin with the same results?
>
> Does this version of the program run any differently?
>
> Main:
> HIGH LedPin
> PAUSE 500
> LOW LedPin
> PAUSE 500
> GOTO Main
>
> The code above will run on any BASIC Stamp -- even down to the
Stamp 1.
>
> If that works, try this:
>
> Main:
> DO
> DEBUG, "Yes, I'm here.", CR
> PAUSE 500
> LOOP
>
> If the DEBUG version doesn't work then I am going to become
suspicious
> of your serial port. Do you have another serial port you can use?
You
> may have a goofy or faulty port.
>
> I'm sorry you're having so many frustrations -- this is way out of
the
> norm. The reason the BASIC Stamp is so popular is it's
> plug-it-in-and-it-just-plain-works track record.
>
> Happy Holidays.
>
> -- 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
To visit your group on the web, go to:
http://groups.yahoo.com/group/basicstamps/
To unsubscribe from this group, send an email to:
basicstamps-unsubscribe@yahoogroups.com
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....
do allow you to read and write the EEPROM.
If you don't use the 'Write' call, though,
I don't think there is ANY OTHER way to
write to the EEPROM during normal use.
Of course, the IDE writes to the EEPROM
when it first compiles the program, but
you're not talking about that part.
--- In basicstamps@yahoogroups.com, Newzed@a... wrote:
> In a message dated 12/27/2003 11:59:38 AM Eastern Standard Time,
> jwilliams@p... writes:
>
>
> > The compiler's DEBUG window is just a terminal program that runs
in a
> > separate thread and can interpret special codes from the Stamp --
it's
> > built-in and easier to setup than Hyperterminal.
> >
>
> Then the other weird thought I had was that as the Stamp reads the
EEPROM
> and runs the program, it erases the EEPROM. Is that possible?
>
> Sid
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]