Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 13th September 2007, 08:51 AM   (permalink)
Default MCLR - Faulty? (URGENT)

I built my first programmer, and I went to test it with the software supplied on the site that i got the schematic from, however it is refusing to program my chip (Pic 16F88).

I had a look at the pin levels and found that MCLR is always sitting at +13V even when the program says it has been disabled, could this be the cause of the programming failure?

The procedure Im using is Start software, place PIC in socket, attach programmer to computer, power up programmer from an 18V power source, Erase All, Program all, Verify (Verify fails at 0000h, Read All (Returns hex data as 3FFF), Check Blank (Returns the PIC is blank).

The programmer I am using comes from www.oshonsoft.com/picprog.html

Any suggestions?
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown

Last edited by andrew12345678; 13th September 2007 at 09:16 AM.
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 09:15 AM   (permalink)
Default

It's the rapid movement from 0V to 13V that switches the PIC to programming mode, if it's sat permanently at 13V then that's not happening.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 13th September 2007, 09:18 AM   (permalink)
Default

Would the powering up of the circuit cause that or does vdd have to be high for it to detect the rapid movement from 0 to 13V?

how could I fix this?
is maybe a transistor faulty?
for a temporary quick fix could i tie vdd high and then enable VPP and then burn the program?
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 09:37 AM   (permalink)
SYE
Default

Hi,
First check the voltage on pin 5 of the cable to see if the your PC is trying to switch VPP, if it is switching the problem is most likely the transistor (probably inserted wrongly in the board or blown).
SYE is online now   Reply With Quote
Old 13th September 2007, 09:46 AM   (permalink)
Default

The voltage on pin5 is rising from 0.1V to 4.36V when VPP is enabled.
The Voltage on the programmer is sitting at 12.66V and rising to 13.41V when VPP is enabled.

So does that mean I need to replace my transistor?
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 09:50 AM   (permalink)
Default

There's a red LED on Vpp, this should ONLY light when you try and enter programming mode - so it should normally be OFF. Check the output voltage of IC1 buffer 4 - this should normally be around 12-13V, and go low (near 0V) when programming.

Did you buy it ready built, or make it yourself?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 13th September 2007, 09:58 AM   (permalink)
Default

Quote:
Originally Posted by andrew12345678
The voltage on pin5 is rising from 0.1V to 4.36V when VPP is enabled.
That's correct.

Quote:
Originally Posted by andrew12345678
So does that mean I need to replace my transistor?
No, it's working! it's not able to shut off... I would suggest changing the resistors (values) around it. You can do this test without inserting the PIC in the socket.
eng1 is offline   Reply With Quote
Old 13th September 2007, 10:05 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
There's a red LED on Vpp, this should ONLY light when you try and enter programming mode - so it should normally be OFF. Check the output voltage of IC1 buffer 4 - this should normally be around 12-13V, and go low (near 0V) when programming.

Did you buy it ready built, or make it yourself?.
Well, the LED is always on, i have only ever seen it off when the programmer has no power, I thought that was a bad sign.

I made it myself, designed the PCB and everything.

Quote:
Originally Posted by eng1
No, it's working! it's not able to shut off... I would suggest changing the resistors (values) around it. You can do this test without inserting the PIC in the socket.
Ok, so i need to increase the resistor value of the resistor coming off pin 8?

what value do you recommend?
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 10:12 AM   (permalink)
Default

Quote:
Originally Posted by andrew12345678
Well, the LED is always on, i have only ever seen it off when the programmer has no power, I thought that was a bad sign.

I made it myself, designed the PCB and everything.
Presumably you did use an open-collector buffer chip?, if you used a normal buffer this is the effect you would get. Otherwise, check the voltage on buffer 4 output as I suggested.

Quote:

Ok, so i need to increase the resistor value of the resistor coming off pin 8?

what value do you recommend?
I wouldn't suggest randomly changing values, and there's really no values that could affect your problem anyway!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 13th September 2007, 10:15 AM   (permalink)
Default

hehe... funny you should mention that chip *tugs collar* its non buffering, I could only get hold of a Non-Buffering Hex inverter, no other inverters are available where I live, I hoped it wouldnt matter, and until now it doesnt seem to have mattered, I will check the voltage on that pin and get back to you.
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 10:21 AM   (permalink)
Default

Ok, The Pin goes to 5.09V when VPP is disabled, and down to 0.04V when disabled, but the LED remains lit.

The chip I am using is 4HC04N if that helps
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 10:38 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
I wouldn't suggest randomly changing values, and there's really no values that could affect your problem anyway!.
I don't agree.

But you might have found the problem, if that chip doesn't have open collector outputs...
Quote:
Originally Posted by andrew12345678
The chip I am using is 4HC04N if that helps
Did you mean 74hc04n?

You have to get a 7406 (inverting) or 7407 (non-inverting).

Last edited by eng1; 13th September 2007 at 10:42 AM.
eng1 is offline   Reply With Quote
Old 13th September 2007, 10:45 AM   (permalink)
Default

Damn, Damn, Damn!
Do I have any other options, because I cant get hold of that chip, and I really, really need to get it working tonight.
__________________
"The glass is neither half-empty, nor half full, it's just twice as big as it needs to be" - Unknown
andrew12345678 is offline   Reply With Quote
Old 13th September 2007, 10:45 AM   (permalink)
Default

Quote:
Originally Posted by andrew12345678
hehe... funny you should mention that chip *tugs collar* its non buffering, I could only get hold of a Non-Buffering Hex inverter, no other inverters are available where I live, I hoped it wouldnt matter.
It's ABSOLUTELY crucial! - it's what makes the programmer work, you MUST have an O/C buffer!.

If it's urgent to get it working, replace that single buffer with an NPN transistor, with a resistor feeding the base (say 10K), and another base to emitter.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk

Last edited by Nigel Goodwin; 13th September 2007 at 10:49 AM.
Nigel Goodwin is online now   Reply With Quote
Old 13th September 2007, 10:47 AM   (permalink)
Default

Quote:
Originally Posted by eng1
I don't agree.
In what way?, the relevent resistor values (the two 10K's) are in no way critical, and could be varied massively up or down without any problems.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
mclr pin problem for pic16f877a neelam29 Micro Controllers 6 7th February 2007 01:04 PM
Sudden problem with MCLR on PIC16F628 Futterama Micro Controllers 16 15th October 2005 02:04 PM
faulty digital components testing,checking walters General Electronics Chat 5 22nd August 2005 07:10 PM
Question about MCLR pin with Pro40 cubdh23 Micro Controllers 9 10th October 2004 08:57 AM
Need of resistor to MCLR? HURRY! brodin Micro Controllers 3 21st February 2004 12:07 PM



All times are GMT. The time now is 10:42 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.