Simultaneous pin errors
Greg C
Posts: 9
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 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?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.