I've always found PICs to be rather hardy creatures until last week anyrate. In that time I've managed to blow up eight PIC16f628A chips and I have no idea what the problem is.
I have a PICKit 3 and have wired up for ICSP, if I put a brand new chip in, it reads and recognizes it fine, I can program it without a problem, and it seems to do what it was programmed to do without much hassle, however - when I reprogram it that's where the problem starts, it will not recognize the chip "unexpected value returned" although it says it has cleared the chip, when I click on erase chip it it doesnt, and it fails when it tries to reprogram. Was getting really expensive over the weekend where the only store open was Jaycar and they are $15.90 each!!!
The basics of the board are as follows PORTB.3 is being used as a PWM port at 20kHz and I'm driving directly (not through a resistor) to an AND gate HEF4081BP,
PORTB.5 is toggling on and off and driving both to the AND gate, and also directly to the gate of an inverting buffer HEF4049BP.
PORTA.0-A.3 are wired to a DIP switch which are each pulled low with a 10K resistor and switched high to VDD. (should I be switching via a 1k resistor??)
The OSC pins are hooked upto a 20MHz crystal with two 15pF load caps to ground.
The supply has a 0.1uF ceramic across the PIC, with another 0.1 on another part with a 4.7uF and a 47uF further down, it also has a 5.1V zener across the supply rail to protect against over voltage.
The supply for running the circuit at this stage is solely coming from the PICKit3.
I've set the PICKit supply voltage to 5.000V
Has anyone had similar experiences? Any thoughts would be appreciated as I think I'm going to have to reprogram several more times and want to keep chip waste to a minimum - plus, its really bad form!
Thanks guys - and girl
Bookmarks