BS2 Stamp Defective? or what am I doing wrong
Archiver
Posts: 46,084
Hello,
I'm having trouble getting my stamp to run more than a few
instructions at a time and I'm hoping someone more knowledgable than
myself can lend me a hand.
Its a BS2 BOE board, everything appears to work fine as far as
detecting the stamp and running programs.
The problem is the program will terminate without completing all the
steps and sometimes output a strange character to the debugger. The
program in question is below.
'{$STAMP BS2}
Counter VAR Byte
Init:
DEBUG "INIT"
Main:
FOR Counter = 1 TO 10
DEBUG ? Counter
PAUSE 500
NEXT
DEBUG "MAIN FINISHED"
END
Three runs produced the following output to the debugger
Run#1
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Run#2
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Counter = 5
Counter = 6
Cou
I'm having trouble getting my stamp to run more than a few
instructions at a time and I'm hoping someone more knowledgable than
myself can lend me a hand.
Its a BS2 BOE board, everything appears to work fine as far as
detecting the stamp and running programs.
The problem is the program will terminate without completing all the
steps and sometimes output a strange character to the debugger. The
program in question is below.
'{$STAMP BS2}
Counter VAR Byte
Init:
DEBUG "INIT"
Main:
FOR Counter = 1 TO 10
DEBUG ? Counter
PAUSE 500
NEXT
DEBUG "MAIN FINISHED"
END
Three runs produced the following output to the debugger
Run#1
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Run#2
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Counter = 5
Counter = 6
Cou
Comments
lyn913@y... writes:
> Main:
> FOR Counter = 1 TO 10
> DEBUG ? Counter
> PAUSE 500
> NEXT
> DEBUG "MAIN FINISHED"
> END
>
Change "END" to "goto main" and see what happens.
Sid Weaver
512K plug-in EEPROM.......
http://www.visualmuses.com/chipcircuit/index.html
[noparse][[/noparse]Non-text portions of this message have been removed]
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: lyn913 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=R-brwdNfi-DVirPoYiLc8AXr_U4FcK5FVzdAkmmVy8iWCOoEXJZrgZxiYp92lCROPZwMOv01]lyn913@y...[/url
Sent: Monday, May 31, 2004 1:18 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] BS2 Stamp Defective? or what am I doing wrong
Hello,
I'm having trouble getting my stamp to run more than a few
instructions at a time and I'm hoping someone more knowledgable than
myself can lend me a hand.
Its a BS2 BOE board, everything appears to work fine as far as
detecting the stamp and running programs.
The problem is the program will terminate without completing all the
steps and sometimes output a strange character to the debugger. The
program in question is below.
'{$STAMP BS2}
Counter VAR Byte
Init:
DEBUG "INIT"
Main:
FOR Counter = 1 TO 10
DEBUG ? Counter
PAUSE 500
NEXT
DEBUG "MAIN FINISHED"
END
Three runs produced the following output to the debugger
Run#1
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Run#2
=========
INITCounter = 1
Counter = 2
Counter = 3
Counter = 4
Counter = 5
Counter = 6
Cou
insufficient power. What type of power supply are you using? If its a 9V
battery try replacing with an fresh 9V alkaline battery. the BS2 uses very
little power but certain instructions tend to pull peak current for very
brief periods. sometimes batteries and even cheap wall-warts just can't
keep up. Suggest using the DC adapter that came with your BOE board. It can
also be the length and type of your serial cable as well.
At 01:18 AM 5/31/2004, you wrote:
>Hello,
>
>I'm having trouble getting my stamp to run more than a few
>instructions at a time and I'm hoping someone more knowledgable than
>myself can lend me a hand.
>
>Its a BS2 BOE board, everything appears to work fine as far as
>detecting the stamp and running programs.
>
>The problem is the program will terminate without completing all the
>steps and sometimes output a strange character to the debugger. The
>program in question is below.
>
>'{$STAMP BS2}
>
>Counter VAR Byte
>
>Init:
>DEBUG "INIT"
>
>Main:
> FOR Counter = 1 TO 10
> DEBUG ? Counter
> PAUSE 500
> NEXT
> DEBUG "MAIN FINISHED"
> END
>
>Three runs produced the following output to the debugger
>
>Run#1
>=========
>INITCounter = 1
>Counter = 2
>Counter = 3
>Counter = 4
>
>Run#2
>=========
>INITCounter = 1
>Counter = 2
>Counter = 3
>Counter = 4
>Counter = 5
>Counter = 6
>Cou