problem with basic stamp 2p
demaki
Posts: 3
I have been having lots of success with the basic stamp 2, but needed to get the 2p version as to utilized the IC2 interface. Unfortunately, I can`t get the 2p to work. It is downloading the firmware all right, and I can even run the debug functions, increment a variables, ect. The problem is when I try and utilize ANY of the input output pins. I can`t even blink an LED!! To dispense with the most trivial of problems, YES I am putting the basic stamp 2p header in the file instead of the basic stamp 2 header. I can take the same program,·tokinize it on the basic stamp 2, and it runs fine - but when I tokinize it onto the 2p (changing the header and the .bs2p extension), the program doesn`t take inputs/output from the pins!! Do I need to manually configure the TRIS register?? I think not. The basic stamp compiler is supposed to do that for you. I don`t know what to do... as I have tried everything. Is it possible that the chip is defective??
Comments
BOTH of the following PBASIC compiler directives should be at the beginning of your program:
' {$STAMP BS2p}
' {$PBASIC 2.5}
Do you have them BOTH there?
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
That doesn't explain the lack of function you describe since most things will still work, just with incorrect timing (SERIN/OUT will have the wrong Baud). It would help if you would explain your setup and post a program you've tried.
If you can run some things, it's unlikely that the chip is defective. Sometimes a user will burn out a single I/O pin, but not all of them. I've had a project where I switched out a BS2 for a BS2p, just changed two constants and the chip identification directive, recompiled and downloaded and it worked fine, so things should work that easily.
If you’re using the Professional Development Board please note that the I/O pins don’t line up the same as they do on a BS2. Only half the I/O pins will appear on the P0-P15 socket and the remainder will be on the SX-I/O header. The P8 through P15 will actually be AUX P8 through P15. Please see the PDB Manual for complete details. Otherwise we would need to know which board you’re using as well the code that doesn’t work. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Are you saying they·are also paralleled in the SX header or that they should be only on the aux header? Are you referring to an earlier version of the PDB?
regards
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support