BS2P-40 OEM - CPU not working?
chrisdlove
Posts: 53
in BASIC Stamp
Hi Parallax Team,
I have recently migrate my project from a integrated BS2P-24 to a BS2P-40 OEM microprocessor to allow for more pin as i also moved to a parallel LCD display and of course to reduce cost. I have prototype the new display using the 4 bit LCDCMD and LCDOUT commands and got the "Hello World!" test working fine so i'm not too worried about that part, but it seems when i moved the electronics onto a custom PCB - see attached PDF of the CPU schematic which closely mirrors the CPU schematic shared on Parallax webiste, (https://www.dropbox.com/s/b1t6pxbo713dkfw/BS2P-40 CPU Schematic.pdf?dl=0), the processor seems to be dead. When i upload the code onto the board into the SEEPROM from the laptop it detects that a BS2P-40 is present and all of the files (multi-program) load successfully so i have to think that the code is present and loaded correctly.
There is +5V flowing onto the board and other parts of the board work properly.
As a simple test i defined Pins 0-6 as =1 (+5V) and used a multi meter to test the values and all of them seemed to be floating around 0.5 V. I am going to see if my reset logic (using a MAXIM 706 IC - (https://www.digikey.ca/product-detail/en/maxim-integrated/MAX706SESA/MAX706SESA-ND/1513257) connected to pin 7 is working, but after that, I'm not sure how else to tell if the CPU is working properly?
Any advice would be appreciated.
Thanks,
Chris.
I have recently migrate my project from a integrated BS2P-24 to a BS2P-40 OEM microprocessor to allow for more pin as i also moved to a parallel LCD display and of course to reduce cost. I have prototype the new display using the 4 bit LCDCMD and LCDOUT commands and got the "Hello World!" test working fine so i'm not too worried about that part, but it seems when i moved the electronics onto a custom PCB - see attached PDF of the CPU schematic which closely mirrors the CPU schematic shared on Parallax webiste, (https://www.dropbox.com/s/b1t6pxbo713dkfw/BS2P-40 CPU Schematic.pdf?dl=0), the processor seems to be dead. When i upload the code onto the board into the SEEPROM from the laptop it detects that a BS2P-40 is present and all of the files (multi-program) load successfully so i have to think that the code is present and loaded correctly.
There is +5V flowing onto the board and other parts of the board work properly.
As a simple test i defined Pins 0-6 as =1 (+5V) and used a multi meter to test the values and all of them seemed to be floating around 0.5 V. I am going to see if my reset logic (using a MAXIM 706 IC - (https://www.digikey.ca/product-detail/en/maxim-integrated/MAX706SESA/MAX706SESA-ND/1513257) connected to pin 7 is working, but after that, I'm not sure how else to tell if the CPU is working properly?
Any advice would be appreciated.
Thanks,
Chris.
Comments
An I/O pin set to input mode (the power up default) looks like it's floating. If you set the I/O pins in your program to 1, this doesn't change the pin mode. You have to use an OUTPUT statement to change to output mode or you can just use a HIGH statement to set the mode and output state.
Any time you have a puzzling situation or behavior, it's helpful to attach a copy of your actual schematic and the source code for your program, otherwise we're just guessing what's going on.
--- a LED hooked to an output, simply flashing at 1Hz.
--- a DEBUG"top",13 repeating at 1Hz while connected to serial terminal.
In addition to the MAX706, check that the ATN pin is staying low after programming. If high, it holds the Stamp in reset.
I have tested everything out as you suggested and the processor is working perfectly. It is not resetting as far as i can tell - special jpeg for you guys I believe that the LCD panel may have been faulty.
Thank-you both,
Chris.
I ran into this when moving from the BS2 to the BS2P40. The PINs are different on the board.