flyweight Posted October 30, 2016 Report Share Posted October 30, 2016 I am trying to program a bunch of pic16f88's using a picket2 clone and the windows picket software (PICkit 2 v2.61).. Just connecting the pic and detecting it does not seem to be a problem But apply-ing +13.1v killed 2 pic's and a programmer :(( Ok I am aware I am a noob but I did not expect this to be so difficult. Could any one give me some hint what I am doing wrong? Picket icsp header 16F88 pin Powersuppy 1 vpp 4 2 vdd 14 +13.1V 3 GND/vss 5 - 4 PGD/DAT 13 5 PGC/CLK 12 6 Aux / NC Then I got a 10k resistor between 16F88 pin 4 and 5. +13.1V (Vdd) applied to 16F88 pin 14 and the negative to GND 16F88 pin 5 I do not have anything else connected (no crystal ed) The software is set to not power the target pic of course. Now after applying the voltage my programmer was dead and 2 pic's are not detected at all anymore. So I still have 2 working pics and another picket2 clone to give it a try. Thanks in advance, Cheers Tim From Tashikoma in another post: my pinning yours is right PICKIT_PIN1- 16F88_PIN4 a 10k resistor between PICKIT PIN 3 (so 16f88_pin5 ( vdd )) PICKIT_PIN2 -16F88_PIN14 (Vcc) to connector for external power supply PICKIT_PIN3-16F88_PIN5 ( vdd ) and to connector for external power supply PICKIT_PIN4-16F88-PIN13 PICKIT_PIN5-16F88_PIN12 Quote Link to comment Share on other sites More sharing options...
yogi Posted October 31, 2016 Report Share Posted October 31, 2016 (edited) Well, sorry to hear of your troubles. Vcc (vdd) should be no more than 5.5V, so that's the main problem. And I don't think you need the R in there, but I use a ICD2 with a simple header-to-socket board so not sure of the PicKit2. In fact, after checking, the ICD2 has PGM going to RB3 pin 9 (to enter LV Programming Mode), but this signal isn't on the PicKit2. I think the PicKit2 generates the Vpp 13.1v to enter Programming mode with Rb6 and RB7, but Vdd to the chip should never be above 5.5V http://ww1.microchip.com/downloads/en/DeviceDoc/39607c.pdf Yogi Edited October 31, 2016 by yogi Quote Link to comment Share on other sites More sharing options...
flyweight Posted October 31, 2016 Author Report Share Posted October 31, 2016 Hi Yogi, thanks for your reply. I am pretty sure the picket can deliver not more then 12v vpp which is not enought to get the 16f88 in programmin mode. Hmmm will read your link first Cheers Quote Link to comment Share on other sites More sharing options...
flyweight Posted October 31, 2016 Author Report Share Posted October 31, 2016 The Second method follows the normal Microchip Programming mode entry of holding pins RB6 and RB7 low, while raising the MCLR pin from VIL to VIHHb(13V ± 0.5V). MCLR that is pin 4 so i guess i should apply 13.1v there and use 10k from pin4 to pin5 to get 5v there? Quote Link to comment Share on other sites More sharing options...
yogi Posted November 1, 2016 Report Share Posted November 1, 2016 Well, the 16f88 is supported by the PICkit 2 and you should be able to program one directly on a breadboard. The biggest problem is if you load a Hex that sets the MCLR to a GPIO or uses timers (that use RB6 or 7), so once the code boots you can't enter PRG mode to verify or erase. I would advise against trying to 'force feed' Vpp to the chip as you can't control the timing needed and likely kill the chip. With a fresh chip you should be able to connect the PICkit 2 header, as above without external 13.1V or Vdd, and the PICkit 2 will supply Vdd and Vpp to the chip. If your USB port can't supply the needed current for the PICkit try using a powered hub. This is a very basic breadboard setup (pretty much what I use with the ICD2) : https://sites.google.com/site/picf88/16f88---tutorial Yogi 1 Quote Link to comment Share on other sites More sharing options...
latigid on Posted November 1, 2016 Report Share Posted November 1, 2016 It would be helpful to list the actual PICkit clone first (+ pictures). I use the DIAMEX one recommended here with flying connections (no external voltage) and simply buss powered from my computer. I also went for auto-detect Vdd level (choosing the correct family will ensure this). 1 Quote Link to comment Share on other sites More sharing options...
flyweight Posted November 1, 2016 Author Report Share Posted November 1, 2016 Hi Yogi and Latigid on, Thanks for the heads up. This is the picket2 clone i have, its a cheap one.http://www.ebay.com/itm/Pickit2-Pickit-2-PIC-Microchip-Development-Programmer-Seat-MP-Lab-Debugger-Tool-/121755779431 The programmer is fried so not word to show it here :) " The biggest problem is if you load a Hex that sets the MCLR to a GPIO or uses timers (that use RB6 or 7), so once the code boots you can't enter PRG mode to verify or erase. " Hmm yes actualy on the 2 chips i have left "data protect" is enabled and erasing it does not work. Perhaps i should measure the vdd if its suffiecient? Cheers Tim Quote Link to comment Share on other sites More sharing options...
yogi Posted November 1, 2016 Report Share Posted November 1, 2016 'Data Protect' should only disable reading from the chip, but should allow erase. There is a recover discussion here: http://www.microchip.com/forums/m242087.aspx Don't know if it will help you. Vdd will need to be at least 4.5V for the erase, should be able to set it in MPLab (if you are supplying Vdd from the PICkit). Yogi Quote Link to comment Share on other sites More sharing options...
flyweight Posted November 2, 2016 Author Report Share Posted November 2, 2016 Ok I will measure vdd and if needed I will calibrate vdd in the picket2 software Cheers Tim Quote Link to comment Share on other sites More sharing options...
ilmenator Posted December 5, 2016 Report Share Posted December 5, 2016 Were you able to solve the problem? I am asking because it would be nice to document here whether a solution was found or not (and whether the clone you are using can be recommended or not). Best, ilmenator Quote Link to comment Share on other sites More sharing options...
flyweight Posted February 9, 2018 Author Report Share Posted February 9, 2018 Hi ilmenator, I did not resolve it yet but I am giving it another go. Cheers, Tim Quote Link to comment Share on other sites More sharing options...
flyweight Posted February 9, 2018 Author Report Share Posted February 9, 2018 Whoohoo This noob is so happy, I managed to flash the pics with a pickit 2 clone from ebay (see the picture below). Once I connected the module to j4a 4 lights flashed and in mios is can see the IIC module is detected!!! It is much easier than I thought. Just connect the pic directly to the programmer, no external voltage. (thanks latigid on and Yogi!) 1. Connect the Pickit 2 clone to the chip icsp header 16F88 pin 1 vpp 4 2 vdd 14 3 GND/vss 5 4 PGD/DAT 13 5 PGC/CLK 12 6 Aux / NC 2. In the Pickit2 software: Select [Device Family], [Midrange], [Standard] 3. Your device should be detected. ( If not its either broken or the conenctions are wrong ) 4. Open the hex file and select [Write] after that [Verify] 5. Just to be sure I restarted the Pickit2 software and selected [Read] again. If all went well and you used (mbhp_iic_midi_v1_0c.zip) you should see the same as on the screenshot. Quote Link to comment Share on other sites More sharing options...
flyweight Posted February 9, 2018 Author Report Share Posted February 9, 2018 In the process I managed to destroy one programmer and 2 pics. ( by trying to apply 13.5v on the pic ) 3 other pics that had dataprotect enabled I could easily recover by selecting [VDD 5v] and erase the chip. Thanks everyone for your help. Cheers Tim Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.