Help needed programming PBASIC2/P
lsalter
Posts: 12
in BASIC Stamp
I am having trouble programming a PBASIC2/P.
First, the documents I have found show the pinouts for this chip, a 16F57-I/P, 28-pin std DIP, to be the same as the SX28DP/AC which is a 28-pin skinny DIP.
Second, I have been able to program the skinny DIP, 50 MHz, but not the standard-size DIP, 20 MHz. Clock signal comes from a CTS MXO45HS oscillator module of the correct frequency.
Third, clicking the IDENTIFY button in editor reports: BASIC Stamp 2 V1.0; Loopback=yes; Echp=yes
F9 yields: Download Error BASIC Stamp 2sx not found...
Does anyone have an idea what may be going on?
TIA
Larry
First, the documents I have found show the pinouts for this chip, a 16F57-I/P, 28-pin std DIP, to be the same as the SX28DP/AC which is a 28-pin skinny DIP.
Second, I have been able to program the skinny DIP, 50 MHz, but not the standard-size DIP, 20 MHz. Clock signal comes from a CTS MXO45HS oscillator module of the correct frequency.
Third, clicking the IDENTIFY button in editor reports: BASIC Stamp 2 V1.0; Loopback=yes; Echp=yes
F9 yields: Download Error BASIC Stamp 2sx not found...
Does anyone have an idea what may be going on?
TIA
Larry
Comments
If it is for a 2p, your first two lines of code should look like this: If it is for a 2sx, your first two lines of code should look like this:
Now F9 yields:
"Error
Hardware communication failure! Check programming cable and power supply."
If I replace the chip with one of the skinny DIPs and replace the 20 MHz osc with a 50 MHz unit, the editor correctly identifies the skinny chip as a BS2SX V1.3 and programs it as it should. Programming cable/interface and power supply are the same.
What am I missing???
They were sold to me by Parallax as PBASIC2SX/P
The 3 std DIPs are Microchip 16F57-I/P. I am unable to program any of them.
Two were sold to me by Parallax as PBASIC2_P and
one was sold to me by Jameco asPBASIC2/P.
So, I don't really know what the 3 16Fs are...
I'll try to post photos
Note: The 16F57 is a perfectly fine microcontroller made by Microchip. It can be programmed in C and in Basic (not the same as Parallax's Basic). These require some sort of programming adapter. Do a web search for "microchip basic programming" for all sorts of information from Microchip, MELabs, and others.
Best regards,
Larry Salter
Thanks,
Larry
Built a new programming board with sockets for the BS2sx 28-pin skinny DIP and the BS2 28-pin std DIP so I can program either with the same hardware by simply swapping out the PBASIC chip and the crystal oscillator module. Still getting the same results:
1) skinny DIP ID's as BS2SX v1.3 and loads/runs my PBASIC program correctly. Oscillator freq. is 50 MHz. This is with the program directive ' {$Stamp BS2SX}
2) std 0.6" DIP which is a PBASIC2/P (PIC 16F57-I/P)) ID's as BS2 v1.0 but will not load/run my PBASIC program. "ERROR- Hardware Communication Failure. Check Power and Cable" Oscillator freq. is 20 MHz (+299 Hz). This is with the program directive ' {$Stamp BS2}
????
After talking with Chantal at Parallax, they sent me replacement chips. The replacements are also marked Microchip PIC16F57-I/P and exhibit the same issue: I still cannot program them with a programming setup that I know works on the sx OEM ICs. I am at a loss to know how to obtain the OEM chips- either the SX28AC/DP (preferred) or alternatively, PBASIC2/P (0.6" DIP)
I appreciate any help you can offer.
Larry
What Parallax part number did they send you?
The invoice lists them as:
Item: PBASIC2/P Desc: PIC16F57 w/BS2 v1.0
How can I determine if the interpreter is resident?
I wasn't looking specifically for SX chips, it's just that I have a few of the skinny DIP SXs and am not having any problems whatsoever with them. If I could get more of those, I would. I only bought the PBASIC2/P std DIP chips because the SX28AC/DP were out of stock.
I have an (E)EPROM programmer and read one of the 16F57 chips. There was data of some sort from $000 to $03F and $0000 from $040 through $7FF. Does this suggest anything?
Larry
I spoke with David Carrier at Parallax Tech Support about this issue and he suggested changing the EEPROM from a 24LC128I/P to a 24LC16B/P, something I had not done up to this point. Swapped it out and VIOLA all is now good!
MANY thanks to everyone who responded!!!
Larry