Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 26, 2024, 10:20:47 22:20


Login with username, password and session length


Pages: [1]
Print
Author Topic: Need ...Pickit2 Clone mentoring .. PROBLEM SOLVED  (Read 6145 times)
0 Members and 1 Guest are viewing this topic.
lou
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 13
-Receive: 4


« on: November 17, 2012, 02:18:59 02:18 »

I need some help.  Number 1, I don't know what I'm doing.  I have built a Clone   http://cristpalma.blogspot.com/2009/05/pickit-2-clone.html   , the PIC18F2550 was not programmed by me, so accuracy is unknown . The Software being used is Microchip PicKit2 Ver 2.61.00.
I "Erase" and do a "Blank Check" (clear memory on Erase)   When I write a file to PIC16F628A, it is  written but will not verify.  After some messing around, I "Erased" the PIC16F "Blank Check" (Device is Blank), then I do a "Read Devise + Export Hex File".  When I open the exported file there are several hundred lines of code Huh?
I have tried a number of PIC16F chips with the same results.
 
Any help would be apperciated, Thanks, Lou
« Last Edit: November 19, 2012, 02:12:05 02:12 by lou » Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1203

Thank You
-Given: 554
-Receive: 409



« Reply #1 on: November 17, 2012, 06:49:08 06:49 »

Sounds like you have got code protect active this is either set in your code or the pickit2 software, if you have got it active and when you verify you will get errors, if the hex code your seeing lokks like 00000000000000 this is code protected

wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
zab
Active Member
***
Offline Offline

Posts: 137

Thank You
-Given: 25
-Receive: 58


« Reply #2 on: November 17, 2012, 10:21:57 10:21 »

Protected code can not be accessed.and  he said he saw many line of code in hex.
The better solution is connect programmer with pc and click on pickit2. software . On GUI go to tool tab and then to troubleshooting.this will open an other windows. with this you can verify your connection with ic being programmed. if any of the pin is not functioning you can find. For programming 3 lines (programming line to MCLR, clock and data) are used besides supply. while in reading 2 line clock and data are used just check status of all these.
clock and data toggle between 0 to 5 v while prog pin 0 to 13v.

 
Logged
lou
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 13
-Receive: 4


« Reply #3 on: November 17, 2012, 04:35:15 16:35 »

 I did fail to state that during the troubleshooting with the PicKit2 software, the software shows 11.9v, but I cannot find any voltage on the PIC2550 over 5v.  Sorry about the lack of information.  Doing some more searching on the net today, I did find an identical problem, with correction the 12v was restored and problem was fixed.  I'll do some more looking at the board components.  Any suggestion would be appreciated.
Thanks, Lou
Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #4 on: November 17, 2012, 09:28:49 21:28 »

Put a PDF of the schematic up
Logged
lou
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 13
-Receive: 4


« Reply #5 on: November 17, 2012, 09:52:58 21:52 »

PDF
Logged
titi
Active Member
***
Offline Offline

Posts: 230

Thank You
-Given: 3807
-Receive: 834



« Reply #6 on: November 17, 2012, 11:59:55 23:59 »

Hi Lou,

When I look at the schematic, something looks wrong.
The value of C5 of 47nF is too small, generaly the minimum value is 220nF, and the best value is 470nF.
So replace C5 this a 470nF.
This help to have good communication with the USB line.
The high voltage (12v) is generated by the boost power supply made with the parts: Q1 2N3904, L1 680uH, D1 1N4148 and C6 47uF.
If your board works well, you need to find between 11.8v and 13v across C6, you should find the same voltage on MCLR (across C7 or R12) when you do the check with the SOFTWARE of PICKit 2 Programmer (Tools, Troubleshoot..., Next, Next, Next, Test VPP).
It is also possible to check this voltage on the ZIF-SOCKET, by example check that there is nothing plug-in the ZIF, put a jumper on JP2, start the software test as above, you need find a voltage near 12v between PIN 20 and PIN 1 of the ZIF-SOCKET.
When you programs a PIC, don't forget to put the right jumpers according the selected PIC (example put a jumper on JP1, JP3 and JP4 for a PIC16F628A)
 
Best regards.
« Last Edit: November 18, 2012, 12:10:00 00:10 by titi » Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #7 on: November 18, 2012, 12:50:47 00:50 »

What value are you seeing on AN0, which is ADC channel 0 (or measure at pin 2 at the PIC)? This is a readout of your programming voltage.

Pin 12's output of the PIC is adjusted as a boost switching regulator according to the value on AN0. It appears (I'm guessing) they want the ADC Vref to be 5V. In that case, the code should be trying to get 897 decimal on a 10 bit ADC for 12V.

Anyway, measure, with respect to ground, either side of R8, and MCLR and report the three voltages back here. I suspect you swapped a PNP for an NPN or vice versa but the measurements will say what's going on. Since the s/w says 11.9V, I suspect you swapped Q2 and Q4 in the build...NPN for PNP ...just one of them the wrong polarity will do it.

YOU WILL NOT SEE 12V on the 2550...and better not  Shocked
« Last Edit: November 18, 2012, 12:56:52 00:56 by solutions » Logged
lou
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 13
-Receive: 4


« Reply #8 on: November 18, 2012, 05:05:32 05:05 »

titi,
I had already replaced C5 with 100nF.  I have replaced C5 with 470nF . Nothing has changed, I'm still only getting 4.5v.
See the attachment for jumper setting, schematics, boards, etc.
__________________________________________________________________
solutions,
USB power only          R8 4.6V and 4.5V (each side), MCLR 0V.
Software 5v                No change
software 16v               R8 4.6V and 4.5v (each side), MCLR 4.6V

After looking at the schematic this afternoon 12V on 2550 is a big NO !!
___________________________________________________________________

I spent lots of time this afternoon going thru the schematic and the board.  A couple of things I did find:
With software 5V on  pin 12 0V  pin 23 .01V Huh
With software 16v on pin 12 0V  pin 23 2.6V, pin 23 should be at 5V Huh

Thanks to both of you for the help, Lou



Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #9 on: November 18, 2012, 05:42:59 05:42 »

No...pin 23 is oscillating. You are seeing the average with your meter, not the peaks of the waveform that's on that pin. Playing with the caps won't solve your problem. Put them back the way they were or you'll be troubleshooting several problems instead of the one. The original circuit supposedly works...you can tweak it later.

The 2.6V on pin 23 confirms it is running PWM or a clock-ish signal for the pump.

Either L1 is open, or Q1 is not switching (we know the base is being driven by pin23, but we don't know anything at or past the resistor).  Check the voltage on each side of the inductor....also double check the value of Q1's base resistor....

We live for the thank you button....thank you's in posts gets the ire of the mods and they mute people for it (clutter)...since you're new, something you should know.
Logged
lou
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 13
-Receive: 4


« Reply #10 on: November 19, 2012, 02:10:37 02:10 »

BINGO !!!!
After troubleshooting all afternoon, with readings changing and would not reproduce from one test to the other finally found R9 open, replaced, working like it should.
Thank for the help, Lou
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC