Shop OBEX P1 Docs P2 Docs Learn Events
Busted BS2? — Parallax Forums

Busted BS2?

hawkeye89736hawkeye89736 Posts: 6
edited 2007-03-05 00:17 in BASIC Stamp
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

·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-04 06:25
    What you've shown should only affect I/O pin 0. The other pins should all be inputs since that's how they're initialized. What's connected to the BS2?
  • hawkeye89736hawkeye89736 Posts: 6
    edited 2007-03-04 06:48
    I have 220 ohm resistor packs connected to I/O pins and after reading FAQ's i added another 220 ohm to bring it closer to 470 ohm sugested in FAQ and still same problem. I got the programming board from a Robotics book. Using just a standard LED and the LED bargraph has the folowing stamped on it, 08DC10IDA F. These parts are from a kit I had from school.
  • FranklinFranklin Posts: 4,747
    edited 2007-03-04 21:46
    They make more than one configuration of resistor packs. Make sure yours are wired the way you expect them to be. just a thought

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • hawkeye89736hawkeye89736 Posts: 6
    edited 2007-03-05 00:17
    Yea actualy thats what i found, I orderd bussed res pack rather than Isolated pack. Hopefuly isolated pack clears up problem. Thanks for help all.
Sign In or Register to comment.