Go for Other options

Wednesday, December 9, 2009

VDD power delivering Pickit2






This is a variation of Pickit2 clone that I have made earlier

Earlier posts are in the blog archive.

or go here Earlier Version


Update 15 aug: PCB layout files for eagle. Thanks to Toobert for sharing it. Download it from here

I recommend going through the readme and problem reported by toobert in the comment section

Updated( 4 may 2011) as the last schematic is reported as bit complicated and many find it difficult to understand and difficult to make. So I simplified it with a small idea of two different jumpers and an LM317; which is readily available....So now you may use with 3.3 or 5/ i heard that microchip have 2V devices also, so if you want with some jumper configuration or use and extra lm317 and one more jumper to derive one more voltage.


In this I have enabled the VDD power delivering capacity of the pickit2 with normal components.
Here use the jumper to switch Pickit2 VDD or External.

If u want to give VDD from PICKIT2 then use j3 and j4 according to the vdd of target PIC.

else leave the jumpers open.
If your circuit draws more than 150mA; I recommend using the external VDD supply (2-3 jumper position).
And be very cautious to use the jumpers also else u will get your pic burned with a wrong VDD.





145 comments:

  1. please,what type of diode and value is;D4,D5 AND D6. ONE MORE THING,3.3v of op-amp pin3 and3.3v out
    is it the same.thanks for your time and effort.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hi Sarin,

    Good work. However I have some comments.

    Did you test 3.3V circuit. Opamp circuit gain is 2. Therefore output wants to go up 6.6 V. However, because of supply voltage, voltage drop on opamp and transistor it can go up to 3.3 V by chance. For that circuit you do not need R20 ( open circuit ), R21 and R22 (short circuit) . R22 is used for filtering out 3.3 V from PIC with capacitor against noise.

    So any opamp may not work there if output can not go up to 4V. 4V-0.7V (Vbe of transistor)=3.3V

    ReplyDelete
  4. Here's your a wiring diagram
    like that works well.
    http://www.electro-tech-online.com/attachments/micro-controllers/21467d1218027093-gtp-programmer-lite-pickit2_sch.pdf

    And here is everything you need for programmer
    http://dlmkerode.tripod.com/PICKIT2.rar

    Vankov_Bulgaria

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. 1. You can use any general purpose diode for this.
    2. 3.3V is a 1.8 volt provided from Pic to opamp(an IO pin of PIC)
    3. 3.3V out is the 3.3V supply generated from the opamp(opamp output)

    i would like to post comments with identity
    not as anonymous please

    ReplyDelete
  7. By mistake i had mentioned in my previous post that, 3.3V is going to Op amp from the PIC.
    Actually that vas 1.8V going to opamp. so gain 2 is needed for make this to 3.3V.

    Also the R22 can be avoided, you are right.

    Any opamp that have a maximum swing up to 4V on 5V supply can be used.

    ReplyDelete
  8. Thanks SaRin,

    "2. 3.3V is a 1.8 volt provided from Pic to opamp(an IO pin of PIC)"

    In that case
    Q6 emitter voltage may go up to 3.6 V ( 1.8V*R21/R20 )instead of 3.3 V, if any op amp capable to swing up to supply voltage.

    Regards,
    Yusuf_Turkey

    ReplyDelete
  9. Yes but it is already happen in original Pickit2 and never harm the target device.

    ReplyDelete
  10. You are right for pickit2 however original pickit2 is using semiconductor switches to apply V_TGT inserting additional voltage drop.
    Yusuf

    ReplyDelete
  11. SaRin I think you are completely wrong here.
    RC2 pin is a pwm adjust output that is filtered and provides an analog value that is then adjusted with the Vdd feedback. This is that way PK2 adjust the nominal target Vdd (and like that you can apply Vpp without Vdd to have the "Vpp first" mode.

    ReplyDelete
  12. hai Mr PPA,

    I have checked this with my original pickit2 circuit.
    It was giving the exact voltages. Any way i wll assure this tomorrow.
    If so, then adding a capacitor will solve the problem.

    ReplyDelete
  13. SaRin,
    RC2 is a digital output, it cannot output 1.8V like that. When you have measured with a voltmeter you have seen the mean voltage like the one after the RC. The mean voltage at RC2 depends on the selected voltage in the PK2 software. It can vary from about 1.8V for 3.3V devices to about 2.5V for 5V devices. It is a PWM output that makes this possible. If you implement this, you do not need your jumper to select target Vdd from your op amp or direct 5V. As in the original PK2. Nevertheless, for some devices that need 4.5V min and in the case the USB "5V" is a bit low, it is a good idea to keep this option because the circuitry will fail to go to the required voltage (as in the original PK2).
    HTH.

    ReplyDelete
  14. Here you can see how it is made of tension regulatorut
    http://tomeko.net/bin/pickit2/pickit2_scheme.pdf
    Vankov_Bulgaria

    ReplyDelete
  15. Yes PPA i have checked it . even with out the filter these voltages are coming on the output.

    k i wll check it with a DSO today and then let u know.about this.

    This feature is a good thing i am first time coming across such a thing and this was a good learning experience.
    Thank you very much for the advice.

    ReplyDelete
  16. hai Vankov_Bulgaria
    I hv checked your post, then i am little bit interested how the circuit works (the variable vdd producing), can u explain this???

    ReplyDelete
  17. PPA explain it - this is the PWM output
    Vankov_Bulgaria

    ReplyDelete
  18. Can you give me the .max file or the map of component?
    I don't know Q5 is used for what?

    ReplyDelete
  19. Q5 is used instead of high speed schottky diode,
    u can use any locally available schottky diode also

    ReplyDelete
  20. SaRin,
    I don't know if you have now understood the Vdd original circuit, but I suggest that you reconsider your op-amp circuit. The original circuit uses a mosfet that can saturate. You should use a circuit build around a PNP transistor at least to allow a quite full 5V excursion.
    Tip: To workaround a low USB voltage, the external 5V may be used to power the op-amp circuitry. This option would have been welcome in original PK2...

    ReplyDelete
  21. Hai PPA,

    Yes thank you very much for the advice.
    I have assumed something and build the circuit,
    Please check about this and let me know if i am wrong.
    In Original pickit2 uses an opamp from microchip only and a mosfet, which will give both 3.3 and 5 V as output. This is because their opamp have a maximum output swing more than 4.5 V on 5VDD and the mosfet can saturate. This can never be achieved with ordinary opamp and a transistor. But 3.3V is possible.

    So i decided to get the 3.3 in the same manner as they have done and the 5V form the Jumper connection. As from my experience this will work.
    and i would like to hear from u, that is there anything wrong

    ReplyDelete
  22. SaRin,
    Watch again. The mosfet saturates when the op amp is low.
    You can do the same with a pnp transistor, just add a couple of resistors between transistor base and op-amp and reverse + and - inputs.

    ReplyDelete
  23. THANK you very much again.
    This is a perfect piece of knowledge for me.
    I will check it on board and publish my result to every one.
    i am very thankful to u to come to my blog and giving advices.
    thank you again

    ReplyDelete
  24. I would thank to mr PPA for givig the valuable advice.

    So i made the pickit2 Vdd_adj feature with simple pnp transistor.

    ReplyDelete
  25. Hi Sarin,
    Did you check if VDD=0V is necessary during operation. In that case you may need a resistor between base and emitter of PNP transistor since op amp output can not go up to enough to make pnp off.
    yusuf

    ReplyDelete
  26. SaRin,
    This does not work.
    First LM358 is rated for Vcc-1.5V max output,
    next 2N3906 has a rated Hfe of 120 @ 50 mA so for an output current of 50 mA you need a resistor of maximum (5-0.6)/50E-3*120 = 10.56K. But when op-amp output is at Vdd-1.5V, the output current would be still (1.5/10.56K)*120 = 17 mA; so you need definitively a base-emitter resistor; Some computations gives 4.7K for op-amp to b and 1.2K for Rbe. Or change your op-amp to a rail to rail one (with a 10K resistor). Also, maybe you understand now why MCHP has used a mosfet...

    ReplyDelete
  27. Sorry the remaining current is ((1.5-0.6)/10.56K)*120 = 10 mA...

    ReplyDelete
  28. Yusuf,
    Output Vdd = 0V is necessary to use the famous "Vpp first" mode that is the only way to unlock a PIC that has been programmed with MCLRE=OFF.

    ReplyDelete
  29. Thanks PPA. I think the best way is to use a mosfet. A pull up resistor between opamp output and opamp power may improve circuit performance for Vdd=0 V.
    yusuf

    ReplyDelete
  30. Or using a comparator with pull up as opamp with pnp transistor?
    yusuf

    ReplyDelete
  31. Yusuf,
    A comparator in op-amp mode may be unstable, but it may have a try if you have one... Nevertheless I would suggest to use a rail-to-rail op-amp.

    SaRin: I also suggest to add some capacitor at Vdd TGT...

    ReplyDelete
  32. hai PPA i am a little busy with works on these days,
    thats why i am not posting any thing.

    I know mosfets are much useful than transistors in these conditions.
    But i would like to make it with transistor only, Cz it will be so easy for making .

    Then i have an idea to start making a pickit3 clone, If u can support, then i wll start it soon, Cz i need an advise from u like an experienced Designer.

    ReplyDelete
  33. PNP is still possible. I would suggest to replace the op-amp by the original MCP6001 (SOT23, about 0.35€/unit) or a MAX4390 or NCS2001 (also rail-to-rail output, 8/6 pin SOT23, easy to solder, about 0.5€/unit).
    I've never studied PK3, but I may help...

    ReplyDelete
  34. Hi, Sarin
    I think you do not need R18( open circuit), R30 (short circuit) and your schematic do not have "VPP first" mode. It is controled by Pin25 of MCU.
    It seem like you did not complete your circuit. Is "+3.3/5V_Out" connected with "VDD_TGT_P"?

    ReplyDelete
  35. Sorry, it need R18 to work.

    ReplyDelete
  36. yes that is actually connected. updated the figure, thanks for the suggestion

    R30 is needed for current limiting

    ReplyDelete
  37. With 5V MCU:
    When your circuit draws about 100mA, voltage that drops on R30 is: 0.05*22=1.1. It mean your "V_TGT" is about (5-1.1)=3.9V.
    And you dont need R25 too.

    ReplyDelete
  38. I meant if your circuit draws about 50mA...

    ReplyDelete
  39. I got it,, thanks again for the advice...
    changed it...
    yes you can avoid the R25 also

    ReplyDelete
  40. hi Sarin.
    D4, D6 must be replaced by PNP transistor for 5V->3.3V signal when programing with 3.3V MCU.

    ReplyDelete
  41. Hi Thai..
    There just diodes are needed(clipper).
    i have builded the circuit and tested it.
    it works fine..

    ReplyDelete
  42. hi sarin,
    could we use IRF9520 instead of MM6420 in original pickkit2?

    ReplyDelete
  43. Bhanuj Bawdhane
    U cennot use instead of FDC6420C but u can use this instead of Q2 in FDC6420C.

    ReplyDelete
  44. HI
    thanks for the kind reply...would you please tell me why we can dispense with FDC6420C as you have shown in ur schematic. will it not effect the whole working?

    ReplyDelete
  45. Hai
    Bhanuj Bawdhane

    Microchip has put it for automatic switching of VDD from the Pickit2 and External. If external Vdd is present the Q1 will be switched on and Q2 will be switched off; vice versa if there is no external VDD. So pickit2 can supply the required VDD. Actually these MOSFETs are not easily available. So what I did I made a simple jumper instead of This (J3). Otherwise you can completely discard the power supply feature as I did in the first design. According to me compromising this feature doesn’t a matter, as your project will be having a power supply.

    ReplyDelete
  46. Hi,
    Again, don't forget to say that you will not be able to reprogram a PIC with MCLRE=OFF if the programmer can't use "Vpp first" mode that cannot be used if Vdd cannot be switched by the programmer.
    Regards,
    Philippe.

    ReplyDelete
  47. Hi PPA,
    Yes "Vpp first" feature is not available,
    Actually i was ignorant about this.

    ReplyDelete
  48. so what i am supposed to do in order to program my pic again...

    ReplyDelete
  49. HELLO SARIN,
    do tell me what to do in order to program the pic again...

    ReplyDelete
  50. Hai Bhanuj Bawdhane
    I was little busy with some other work,,, sorry for the delay
    I have updated the circuit with a transistor switch instead of MOSFET switch.
    This will enable the VPP first mode also. (I hvnt tried it on hardware, but it will work)
    (I would like if PPA give some suggestion on it)

    ReplyDelete
  51. Hi,

    Q6 and Q7 are PNP transistor in your schematic. Also, you wrote that those transistors are BC635. I cheched datasheet of BC635. In datasheet of BC635 its write that this transistor is NPN. Aren`t there any mistakes?

    ReplyDelete
  52. Actually that was a pnp transistor i think the compliment of bc635 . you can use any pnp transistor according to the current rating

    ReplyDelete
  53. Thanks, i`ll look somethink of those transistors. Can you explan me, what does the note: "should chech the configuration of transistors they are exactly reverse of the general transistor" mean? Sorry for silly questions but i really dont understand this.
    Thanks a lot for quick responds

    ReplyDelete
  54. Hi DeadZone
    Instead of bc635 you can use any pnp transistor of current ranting 500mA(but it will become hot other wise use medium current ranting transistor). there i mentioned that the transistors 2n3906 and 04 are having a pin configuration different that of general purpose transistors , take care of that. i had placed them wrongly

    ReplyDelete
  55. Hi Sarin,
    I discovered something wrong in your new schematics: the power for the Vpp pump is taken from the Vdd target (+3.3/5V_out) so "Vpp first" mode cannot work and you overload the Vdd target circuit for nothing...
    I think this is a mistake made when you've redrawed it...
    Regards,
    Philippe.

    ReplyDelete
  56. Hi i didn’t understand what u said Philippe.
    i have done what is there in Pickit2 schematic,
    they have also taken it from the VDD target.
    and i think the VPP first mode should work in this schematic. u refer the schematic once again and give me a suggestion.

    ReplyDelete
  57. Sarin,
    My fault: I was so surprised that I didn't check the original MCHP schematic. Naturally the Vpp first mode works because the Vdd_target is switched after, as in your schematic (Q7). My remark about the load remains, even if it is the same as in the original one: why to lower the +5V to pump it high after? Nevertheless it works.
    My apologies.
    Philippe.

    ReplyDelete
  58. Hi Philippe that is what i also a little bit surprised the VPP pump can be directly connected to the 5V also, I did the same in the previous design and it worked. But I don’t know why MCHP has connected it like this.
    your suggestions always helped me a lot to improve the design
    always thankful..... :)

    ReplyDelete
  59. Just one thing: on the original, there is a 10µF cap (C11) along with a 0.1µF cap (C12) on V_TGT, but on yours there's only two 0.1µF caps (C5 & C8). Maybe this is not enough for the +3.3/5V_out stability during Vpp pumping peaks, but this is only a suggestion...

    ReplyDelete
  60. can i have the eagle file?..thank you!!!

    ReplyDelete
  61. Im waiting for an eagle file sir. Or any c0mplete schematic plus bill of materials. . . M0re power to you sir.

    ReplyDelete
  62. Hi, i'm student from spain, i want to know if the circuit work fine now whit the 3.3v devices, pic24....
    Thanks for your job ....

    ReplyDelete
  63. Hi Ald3 i dont have an eagle file, if u need orcad file i can give it to u.

    ReplyDelete
  64. Mr X i it worked well with pic24 and i am currently using this.

    ReplyDelete
  65. helo sarin..good work..i have lmx321, the substitute for op amp in the original pickit2 and i would like to use your circuit except the vdd delivering circuit...do you think its better to remove the header 6 for even smaller pcb?..

    ReplyDelete
  66. UN_Leashed ...
    if u do not want to use the VDD delivering property then you can refer to my first and recomended version http://electronicsadvices.blogspot.com/2009/04/full-featured-pickit2-clone.html

    header 6 is just to program the pic18f2550, you can remove the header if u have any other options to program the pic.

    ReplyDelete
  67. thanks a lot sarin!..Good work..

    ReplyDelete
  68. hello...
    i'm jon...
    i already construct my circuit by follow your schematic...but it's not detect device..means not detect any PIC that connected.
    and i also buy a pickit 2 clone and its work properly.
    sorry to ask...i want to know why it's not detect device.

    ReplyDelete
  69. hi Jon ,
    no problem in asking doubts,,, i am always happy to give replays..
    you post screen shot of the error u get in pickit2
    ide
    check the PGC and PGD pin connections.
    check the vpp voltage.

    ReplyDelete
  70. [URL=http://img638.imageshack.us/i/pickit2err.jpg/][IMG]http://img638.imageshack.us/img638/2445/pickit2err.jpg[/IMG][/URL]

    Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]

    thanx for reply...

    i already check the connection PGD and PGC and this connection is ok.
    the vpp voltage is 0.67v
    i use bc327 pnp transistor for Q6 & Q7 and i get V_TGT just 0.26...
    thanx...

    ReplyDelete
  71. You have vpp error,, check for the portion Q1,Q5,L1
    and the vpp voltage generation part and orientation of transistors.
    the vpp voltage should go to about 15V when u press "check communication" so check this voltage rise.... also
    if u have changed any components please tell me that also

    ReplyDelete
  72. Hello,
    To conform to the original pickit 2 original schematic, I suggest you to swap the Green LED with the RED LED.(since the Green LED is intended to show power and the Red LED to show busy status)

    ReplyDelete
  73. I can't see any jumper on your schematic...?

    ReplyDelete
  74. Hi SaRin,

    Great Blog, I built the clone (on breadboard) I get connected ok. The Vpp and Vdd voltages are good. Vdd varies between 2.50 and 4.76 (Usb supply = 4.96)and the calibration goes through ok, however I keep getting an error message when I try to read a device Eg 16F628, "Vdd voltage level error check target and retry operation" it also says "No device connected" Can you help me with this as I have been trying for the past five days without any success.

    Thanks,
    Junior of Ja.

    ReplyDelete
  75. y not, i will help You .
    But you should show some patience

    Have you tried with any other PIC? If you have; try to program another one and tell me the results.

    Check with same PIC:

    Check the Voltage on VDD pin while "check communication".

    Give an external 5V to the Pic and "check communication"

    ReplyDelete
  76. Hi SaRin,
    Thanks for u'r quick responce.
    Yes I tried other Pics 12F683, 18F1320, same result.. With the external 5v I am now able to detect, read & program the device, I think my problem is Q7 as when I short Q7 emitter to its collector the unit works as well. I am using 2N3906 for Q6&7. I'll keep on working, now I am getting somewhere.

    Thanks,
    Junior of Ja.

    ReplyDelete
  77. Check the signaling Vpp_TGT_p
    I think your Q7 is not getting ON
    then report it...

    ReplyDelete
  78. Hi SaRin,

    I changed Q7 for a mosfet and everything works, I really want to get it working with the transistor as the mosfet is a power (T0220)type. I'll try again when I get some time, anyway I am now able to use the clone.

    Thanks again for your help.

    Junior of Ja.

    ReplyDelete
  79. If everything works fine, yo dont require a mosfet. you can use 2N3906 itself. by adjusting r27 and r28 you can acheive it.

    please share the result.

    ReplyDelete
  80. Thanks A lot for such a stuff.. i brought all components from market (mumbai) today ..now i am building it.. to program PIC18F2550 i am using JDM parallel programmer/.. i want to ask one thing i m using JDM programmer 1st time for PIC18F2550 so if something goes wrong then is it possible to reprogram 18F2550?? because its too costly(200 rs)..

    and is it possible to erase once programmed PIC with This clone ?? thanx in advance

    ReplyDelete
  81. Hi mastertushar
    You can erase and reprogram the pic using both the programmers

    ReplyDelete
  82. Thanx a lot for ur reply...sorry i hav more question ..

    1)exactly which file i should program into PIC18F2550 (with JDM Programmer) ,, in source file there are such files (1)PICkit2Bootloader.hex [10.9kb] (2)PK2V023200.hex [90.8kb] (3)PICkit2_FWv2.hex [65.8kb] i read all comments but didnt understand..

    2)i im trying too building ur first circuit in which we have to power the target PIC using external supply.. but i think schematic of that is not visible in this link ::::
    http://electronicsadvices.blogspot.com/2009/04/full-featured-pickit2-clone.html (only photo is visible but not circuit)

    thanx in advance..

    and where r u living ?? i m in Raigad near Mumbai..

    ReplyDelete
  83. 1)you should program it with
    PICkit2_FWv2.hex

    2)u can click on the photo

    im in pune

    ReplyDelete
  84. hi Sarin,

    I have a question here, is it i just follow the schematic exactly then it will run? from the comments above, i see that alot ppl have changed the component their own only able to run, some change the bc635 to 2n3906, im considering use this to program my 12f629 and 25lc512 serial eeprom, but im affraid that it will not work if exactly follow according to the schematic.

    ReplyDelete
  85. hi reik
    They are using components which are available to them. Its a schematic of hardware treat it like that. for serial eprom you have to upgrade the schematic.

    ReplyDelete
  86. wat kind of upgrade u means ??

    ReplyDelete
  87. and as someone mention above, the bc635 is npn but not pnp, should i just follow using bc635 ?

    ReplyDelete
  88. Hi reik,
    I meant that, I made the schematic by Only PIC in mind, so i left the part for EEPROM programing options. Like not connected the aux pin. You can analyze the pickit2 circuit and make that connections.

    sorry i used bc636,, sorry for the wrong schematic.
    you can try with a 2n3906 also instead of this, but only the metal one with at least 500mA capacity

    ReplyDelete
  89. hi sarin brother .. i still not make that clone ,,, i want to be more clear what is that j1 in ur latest power delivering pikkit2?/ which has PGD, PGC??

    as J2 is pikkit header , header 5 is usb connnection .. but what that J1(Header 6 u mentioned)?



    asking again that the files provided by microchip are (inside that output folder path = "FirmwareV2\_output")

    there are three files
    1)PICkit2_FWv2.hex 66kb
    2)PICkit2Bootloader.hex 11kb
    3)PK2V023200.hex 91kb

    from above which he is to b loaded into PIC18F2550? u tell me already that 1)PICkit2_FWv2.hex 66kb is it right na??

    and one more what is use of that 3)PK2V023200.hex 91kb file they provided?

    and which are those diode u mention in that is 4148 accepted?/ thanx a lot and so sorry for disturbance..

    ReplyDelete
  90. i made that ur pickit2 clone but whenever i connect it to usb it say usb device not recognized... i programmed that PIC18F2550 with Art2003 home maded programmer... and programmed that boot-loader file successfully.. but still giving this error.. what configration bit shold be selected for Art2003 programmer??.. plz help me..

    ReplyDelete
  91. Hi Tushar

    The problem can come from.
    1. Check the connection and value of C4
    2. Check the usb proper usb connection
    3. Firmwire should be PIckit2 bootloader.
    4.burn it with proper configuration bits.
    5. check the usb power filtering

    ReplyDelete
  92. 1)i use that C4 = 0.1uf

    2)yes i have checked that connection..

    3)yes i tried bot firmware with that PIckit2 bootloader and PK2V023200.hex but same..

    4)i am asking that what configuration bits should be selected?? i programmed that hex successfully even i verify it saying success..

    5)i am getting usb voltage 4.35V


    in the first attamp of burning bootloder it was saying that usb device not recognized... but now i erased that PIC and programmed PK2V023200.hex but now it doesnt show even any device detect.. nothing... but i tried to reprogramm PIC(2550) using art2003 it showng sucess .. i cant understantwhat happened with me.. please help me.. thanx in advance... waiting for your valuable reply..

    ReplyDelete
  93. Tushar..
    Burn only PK2V023200.hex . then connect it with PC check the USB voltage while operation.. monitor the USB voltage. Check the clock frequency also, it should be exact 20MHz. tell me the value of c2
    and c3

    ReplyDelete
  94. i burned that now ... usb voltage is same = 4.35v ... sorry but i m student and dont have CRO or any frequncy measurement device so just cant measure that frequency.. i measure volage at crystal terminal they are 2.23v and 2.23v .. means across two terminals zero volt..

    c2=c3= 22 Pico F .. and i have not modyfied any component... everything is same . . i have doubt about that configuration bit , i think i may wrong there.. but , not window is not detecting anything when i connect that ckt to usb even not saying that "device not recognized...".. but my PIC(2550) is ok because after burning i read it , it gives same code which i burned.. thanx..

    ReplyDelete
  95. i also tries to interchanged that D+ and D- terminal but same happening..

    ReplyDelete
  96. dont you getting Device not recognized notification?

    ReplyDelete
  97. is it 20MHz crystal u used?, what is the status of LEDs when you connect the DEVICE?

    ReplyDelete
  98. no now i m not getting even any notification... i gets first time when i was burn that bootloader in 2550.. andin that first situation greeen LED is continuously blinking and red and glo constantly..at that time i try to click on check comm, in Pickit2 GUI but it doesnt detect . just window was saying "Device not recognized".

    but now after burning PK2V023200.hex nothing is happen not even that "Device not recognized" attention.. yes i use 20Mhz crystal. and now when i connect to PC the LED are as follows..

    RED = ON (power)
    Green = OFF (not glowing)

    ReplyDelete
  99. Thanx a lot for quick reply.. i also tried that erising PIC and aging burn boothloader but after burning same thigs happening,, i.e. not any notifications..

    ReplyDelete
  100. hi tushar

    the problem is with your programmer
    its not getting programmed properly.
    if so the green led should blink, indicating that the firmware is not there.
    Happy new year

    ReplyDelete
  101. Ya same to you ,, Happy new year ..

    but first time when i prgram it flashing green LED ..but now not.. i have uploaded that programming video please see it ..

    http://www.youtube.com/watch?v=c9GrApzOVa0


    and that programmer i made from this document see it also..

    http://filevo.com/rguali04t0jf.html


    ... i have some 2 question ..
    1)in original pickit2 there is a switch for entering boot-loader mode . but in our schematic there is so such a switch . then how it is possible to do so??

    2)u are advised that take care about config Bits while programming PIC18F2550 firsttime by another GUI.. plz tell me what is that.. i am waiting for that answer.. i am so sorry i am very boaring you by continuously asking questions... but i m too confused now what to do.. because i have to made it at any cost.. my LED chaser project depends on it.. waiting,,

    ReplyDelete
  102. tushar i also experienced configuration bit problem when used winpic.
    so u can do one thing. use pickit2 gui and load the hex file. then there is an option which shows you the configuration bits of the hex file. note it down then load the hex in the winpic gui. then check the settings make it exactly equal. send a screen shot of that settings tab of winpic. happy programing

    ReplyDelete
  103. it is not possible to load hex in pckit2 GUI unless we connect pickit2??? isnt it? so i just cant... and i am giving screen shot of winpic setting which i use , found onedaboard ...

    here... [IMG]http://i56.tinypic.com/j0dug2.png[/IMG]


    and plz tell me this also..."1)in original pickit2 there is a switch for entering boot-loader mode . but in our schematic there is so such a switch . then how it is possible to do so??"

    ReplyDelete
  104. and most important thing is that first time during programming i was getting that green led flash also .



    i cant understand that.. as u have working pickit2 so if possible you load that hex and tell me the configuration .. thanx in advance

    ReplyDelete
  105. Hi, Sarin! Thanks to your schematic, I have built one PICKIT2 clone with some amendments. Below is the link to my album of the Making of PICKIT2 clone.
    http://www.facebook.com/photo.php?fbid=182019255155034&set=a.182017435155216.42172.100000408838944#!/album.php?fbid=182017435155216&id=100000408838944&aid=42172

    ReplyDelete
  106. Hi Toobert,
    Thats a link from your Account, that wont work outside.

    ReplyDelete
  107. HI sarin bro That link given by Toobert is working but you need to login to Facebook woth your account.. then open that link,,

    ReplyDelete
  108. Hi,

    Can you give me the link for the latest Pickit2 clone? I've finished my GTP lite but using 4550 instead of 2550...(2550 is not available in my place :( )

    Ron

    ReplyDelete
  109. hi sarin,

    I just built the circuit. Then PicKit2 is detected. But when i troubleshoot the vdd and vpp using the trouble shoot tools in pickit2 it says an external 2.3V vdd is connected and vpp is short. Any idea on this since i haven connect any external vdd yet.thank you.

    another que is, you are using BC635 or BC636?

    ReplyDelete
  110. hi sarin,
    some doubt about the circuit. will the V_TGT switch to 3.3V when 16LFXX microchip is selected?

    thank you

    ReplyDelete
  111. Hi,
    Sorry i ddnt see ur last comment.
    The V_TGT is supposed to switch between 3.3V and 5V,
    So first u check Q7 for switching. Let me know the results.
    I will help u to debug it.

    ReplyDelete
  112. hi sarin,

    i'm using BC636 for Q6 and Q7, when i measure EBC of Q7 i get this. E=4.96V, C=0.19, B=4.96.

    ReplyDelete
  113. hi sarin,

    if i use Q6=BC636(PNP) and Q7=BC635(NPN) i get this on Q7. E=4.94 C=4.15 B=4.78. At this point, i not sure actually which transistor should i use for the circuit.

    thank you.

    ReplyDelete
  114. Sir,
    i was failed to debug my previous pickit after the problem of going pickit disconnected as i do check communication.
    i have created the whole circuit on a new pcb but now it is not even detected.

    power led glow and nothing happen

    sir i have a question,if i connect just the pic 18f2550 with crystal, resistor on pin26 and cap on pin 14 to usb port should it detected as pickit 2 programmer

    ReplyDelete
  115. sir,

    would you like to see the schematic i have create in (eagle) may be you can locate the problem. it you have a little free time

    ReplyDelete
  116. ys send it to sarinsukumar@gmail.com

    ReplyDelete
  117. hi sarin,

    case1:
    i'm using BC636 for Q6 and Q7, when i measure EBC of Q7 i get this. E=4.96V, C=0.19, B=4.96.

    case2:
    if i use Q6=BC636(PNP) and Q7=BC635(NPN) i get this on Q7. E=4.94 C=4.15 B=4.78. At this point, i not sure actually which transistor should i use for the circuit.

    thank you.

    ReplyDelete
  118. hi is there any one who made this successfully

    ReplyDelete
  119. Sir
    The previous problem of not detected and going disconnected after some time ,,is solved

    Now problem is
    when i connect the pickit 2 to my pc it acts fine but
    when i start the pickit 2 ide or do check communication
    the green light start flashing for a while
    then goes off and

    a msg box shown
    Pickit 2 VDD voltage level error
    check target & retry operation

    And i do the trouble shooting results as blow

    test 1 verify vdd
    result :- short

    test 2 verify vpp
    vpp is short

    and
    MCLR on :- expected result mclr pin 7 low
    but voltage level is 4.88 volt

    MCLR off :- expected result is high
    but voltage is low

    and vpp is always low

    i can't do test 3 until this vdd and vpp issue resolve


    i google about this problem, i found a forum ,
    a guy said vpp problem may be due to the inductor

    sir i hv use 2 330uh inductor in series is okey to do that

    ReplyDelete
  120. I appreciate u for doing debugging, very good, u are learning from that.
    sorry i was busy with other things thats y couldn't replay properly.

    send me a pdf file of ur design.
    i dont have eagle to open ur file.
    which version of pickit2 ur making, with Power delivering capacity of without?
    if its without u should connect it with a target board.

    the mclr problem might be because of u might have used Pnp istead of npn

    ReplyDelete
  121. sadul u should use BC 636 transistor there

    ReplyDelete
  122. Sir

    at first i was makeing pickit 2 withot power (that was just for testing)


    but now i working on with power

    sir what do you say about inductors
    is it okey to use two 330 uh inductors

    i m just sending you the pdf of my schematic
    please conferm the Trasnsistor issue and let me know if i misken

    ReplyDelete
  123. Sir
    a new thing now happening , that

    now the error is only in VDD level not in vpp

    because when i disconnect the inductor it shows error in both

    but when i connect the inductor is shows error in vdd only

    and in trouble shooting

    the test 1 is same as before :vdd is short


    but in test 2 the result about vpp is : we can't test if vdd is short detected

    ReplyDelete
  124. sir
    i debug few thighs and now its


    WORKING WORKING >........WORKING


    but still i have 2 questions
    sir mclr still same as before
    MCLR on :- expected result mclr pin 7 low
    but voltage level is 4.88 volt

    MCLR off :- expected result is high
    but voltage is low


    in test 3 the PGD and PGC are always at high no toggling no going low


    what does it means??

    sir what is job of mclr_tgt pin??


    Thank you very much for your support

    ReplyDelete
  125. I appreciate that u debugged it, good. MCLR is good and it is used internally reset the PIC. Q4 is controlling it, by applying high and low on the base of it. you can easily debug it by checking the configuration of it.

    if u have problem on PGC and PGD then check for the resistance and diodes, D4,D5 and D6 ..

    ReplyDelete
  126. hi guys

    i have advice for you,i have built this few months ago

    if sombody want to build this clone, and have to other programmer to first burn the firmware into 18F2550

    then he can use this programmer

    http://microembeded.blogspot.com/2011/05/microchip-pic-serial-port-programmer.html

    live support will be provided

    and do't use fox deta's parrell port 18f2550 programmer that is not good i personally get tricked by that faulty programmer

    ReplyDelete
  127. Hi SaRin,

    What a nice work you've done!

    I've been reading the comments posted above. Some of the comments were very interesting, however, I couldn't track exactly what they were talking about on the schematics.
    (for example, where's Q7?)
    So is this the final schematic for PK2 Clone?

    Also, does this support "VPP FIRST" programming?
    From the comments, I think you've made a change so that it works for "VPP FIRST". However, looking at the schematics, I can't really tell.

    Thanks

    ReplyDelete
  128. hey can you get me the sch file of this schematic

    ReplyDelete
  129. hey very nice project i m going to build this

    ReplyDelete
  130. Hi every one you may refer a more explained version of the same pickit2 here http://microembeded.blogspot.com/2011/07/pickit-2-clone-universal-microchip-pic.html

    ReplyDelete
  131. Hi Sarin,
    Wow,I haven't noticed the change of the circuit lately, anyways, I am still using the old version, the one with op-amp, and made it into eagle files, which have been printed into PCB and works fine.
    Would you like to have a copy of my Eagle file of the pickit2 clone? I would be very happy to share it out.

    ReplyDelete
  132. Hi Sarin,
    One more thing, for some chips like PIC16F628A, I found that the R17 and R19 (680E) should be shorted for successful programming. If I don't do so, lots of programming errors appear, and the chip will not be auto-detected correctly, even with slow programming mode. Maybe the resistance is too large thus making the rise-time longer due to stray capacitances. I hope you should make the correction to the circuit.
    Thank you.

    ReplyDelete
  133. Hi Toobert,
    If you can share that, it will help many others.
    Please mail it to sarinsukumar@gmail.com with any text if required

    I will display it on the blog with an update notification.

    Many others have also made the clone, but you are the first one volunteer to share schematic. really appreciating your open mindedness


    Very thanks to you.

    ReplyDelete
  134. yes toobert,
    i will look into that in a couple of days
    and post the results

    ReplyDelete
  135. I made this circuit but after inseting it to usb port it gives error that VDD and VPP voltage level error..
    i try troubleshooting mode but in first step it gives error that VDD short detected.. plz suggest me any solution. thanx

    ReplyDelete
  136. Tushar
    You r not supplying proper VDD to the pic. check for 5 or 3.3V to PIC.

    ReplyDelete
  137. No i have not connected any target PIC to PICKIT2 . i just plug it to usb then giving this error

    ReplyDelete
  138. Either you can re-update the firmware using the pickit2 program, or check the voltages at USB input and the Vdd using voltmeter. It could be that your USB is not supplying enough voltage to pickit2 clone circuit.

    ReplyDelete
  139. hai, i am belon...i have made your earlier version of the pickit2 clone that needed to supply external supply to the target chip before programming, and its work!!! before i decided to duild your latest version of pickit 2 clone programmer, i just need to know that is it true that this type of clone can program a chip(PIC) without giving an external supply?

    ReplyDelete
  140. Hi,
    It has very few changes from the old one.
    The USB 5V can be used for 5V PICs,
    Generate 3.3V (use a regulator, or three diodes(.7,.7 and .3) in series ),Through a jumper give them to target Pic,thats it.

    ReplyDelete
  141. hi,
    and one more sarin, does your new designed cloned pickit 2 have the "VPP first mode" ????

    ReplyDelete
  142. does this enhanced pickit 2 cone design have the "VPP first mode"

    ReplyDelete
  143. Diodes D4, D5, D6, D7 - which diodes are these?
    Should I use diodes like IN4007/IN4001 in here? Or some other diode?

    ReplyDelete