Simultaneous pin errors
Hi, yes I'm a noob to BS2 but not to programming or electronics.
I've been working with my BS2 using Discovery kit with USB communication.· I'm able to enable one pin at a time for output but unable to enable two or more pins without having an erroneous errors.· Even a simple program to turn on two leds using pins 14 and 15 simultaneously creates erroneous flashing with no apparent pattern.· The program loops even without a loop statement.· Any help is appreciated.
I've unplugged the device to try to reset and pressed the reset button.· Same results each time.· I'm hoping I didn't recieve a bad BS2.· If you need further information I will post as needed.
Thanks in advance.
Greg
I've been working with my BS2 using Discovery kit with USB communication.· I'm able to enable one pin at a time for output but unable to enable two or more pins without having an erroneous errors.· Even a simple program to turn on two leds using pins 14 and 15 simultaneously creates erroneous flashing with no apparent pattern.· The program loops even without a loop statement.· Any help is appreciated.
I've unplugged the device to try to reset and pressed the reset button.· Same results each time.· I'm hoping I didn't recieve a bad BS2.· If you need further information I will post as needed.
Thanks in advance.
Greg

Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
' {$STAMP BS2} ' {$PBASIC 2.5} OUTH = %00000000 DIRH = %11111111 OUTH = %11100111 PAUSE 1000 OUTH = %10000100 PAUSE 1000 DIRH = %00000000 ENDStamp Pin >----[noparse][[/noparse] 1K]
|>|---- Vss
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
For a sanity check try swapping the "0" and "1" in code to see if you get a flashing "1" instead.
What is the rate of flash? (approx)
Are you using a fresh battery?
' {$STAMP BS2} ' {$PBASIC 2.5} OUTH = %00000000 DIRH = %11111111 OUTH = %10000100 PAUSE 1000 OUTH = %11100111 PAUSE 1000 DIRH = %00000000 END▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
it sounds like the stamp keeps reseting for whatever reason.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
additional filter capacitors.
Do you have a battery that you can temporarily try instead of the power supply?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
causing the BS2 to go into brownout. At each interval you are increasing the current demand by about 5mA.
This program should find a make or break situation if there is a problem here.
Another thing you could try is an external regulated 5 volt supply connected to pin 21. This will determine
if the on-board regulator has been damaged or not.
' {$STAMP BS2} ' {$PBASIC 2.5} OUTH = %00000000 DIRH = %11111111 TestLoop: DEBUG CLS OUTH = %10000000 DEBUG "1",CR PAUSE 1000 OUTH = %11000000 DEBUG "2",CR PAUSE 1000 OUTH = %11100000 DEBUG "3",CR PAUSE 1000 OUTH = %11110000 DEBUG "4",CR PAUSE 1000 OUTH = %11111000 DEBUG "5",CR PAUSE 1000 OUTH = %11111100 DEBUG "6",CR PAUSE 1000 OUTH = %11111110 DEBUG "7",CR PAUSE 1000 OUTH = %11111111 DEBUG "8",CR PAUSE 1000 GOTO TestLoop DIRH = %00000000 END▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.