![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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). |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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?. |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
|
|||
|
|
|
|
|
(permalink) | ||
|
Quote:
I made it myself, designed the PCB and everything. Quote:
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 |
|||
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
|
|||
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) | ||
|
Quote:
But you might have found the problem, if that chip doesn't have open collector outputs... Quote:
You have to get a 7406 (inverting) or 7407 (non-inverting). Last edited by eng1; 13th September 2007 at 10:42 AM. |
|||
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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. Last edited by Nigel Goodwin; 13th September 2007 at 10:49 AM. |
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |