Busted BS2?
hawkeye89736
Posts: 6
I have been trying to program the BS2 and the debug·functions·are working but when i use the I/O pins they all hold the state of the other in the groups, I/O 0-7 hold low if program tells I/O 0 (or any other·I/O 0-7) to hold low, same problem with other 8 I/O's. I have been using programs given with Parallax BASIC Stamp editor download. Using a hello world for debug, and the HIGH_LOW.bs2 file for the I/O.
' HIGH_LOW.BS2
' This simple program sets I/O pin 0 high for 1/2 second and low for
' 1/2 second in an endless loop.· Connect an LED to P0 for a simple
' blinker.
' {$STAMP BS2}
Main:
· HIGH 0
· PAUSE 500
· LOW 0
· PAUSE 500
· GOTO Main
· END
I found problem when programing a scrolling 10 LED bargraph. I used the above program and used single LED to check all pins. I also tried using:
DATA 0(2048)
for the sake of just clearinr EEPROM (yes I know when reset of BS2 clears the EEPROM but just did it for the heck of it) and Mem map showed all 00 as should be.
So after all that is my chip not working right or am I doing something wrong?
Thanks
·
' HIGH_LOW.BS2
' This simple program sets I/O pin 0 high for 1/2 second and low for
' 1/2 second in an endless loop.· Connect an LED to P0 for a simple
' blinker.
' {$STAMP BS2}
Main:
· HIGH 0
· PAUSE 500
· LOW 0
· PAUSE 500
· GOTO Main
· END
I found problem when programing a scrolling 10 LED bargraph. I used the above program and used single LED to check all pins. I also tried using:
DATA 0(2048)
for the sake of just clearinr EEPROM (yes I know when reset of BS2 clears the EEPROM but just did it for the heck of it) and Mem map showed all 00 as should be.
So after all that is my chip not working right or am I doing something wrong?
Thanks
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen