Do you have 16F876 or 16F876A selected in your programmer, or which chip do you have?
I'm using a 16f876. Microcode Studio is also set to 16f876.
It's a thought...
How about the PGM pin on the '876? Do you have the right pullup/pulldown on that? Are you using high voltage on the breadboard and low voltage on the PCB?
I am holding MCLR high with a 4.7k resistor. I don't think I need to do any more than that. I am using a MAX232 connected to TX and RX and pin 9 of the MAX is connected thru a 100ohm resistor to MCLR on the chip.
It asks for a reset when I try to program... but pressing the reset button on my circuit board does nothing for programming the chip... it does pull pin1 of the 876 (MCLR) from 5vdc to gnd.
I'm still checking voltages... and the thing that sticks out is that the voltages on the MAX232 on my circuit board are different from those on my breadboard. And all of this works on my breadboard... using the same MAX232 and the same 876. :-[
One voltage that really stands out is on pin 8 of the MAX232. On my breadboard... with the serial cable plugged in (from my computer) and the breadboard powered up, I read -10vdc. On my circuit board... under same conditions, it reads 0vdc. There is something wrong there. I will look at it closer.
If you haven't had a chance to look... I've posted a schematic and board layout in this thread.
Thank you for helping out!
Still looking for an answer.
Ross
Bookmarks