flyweight

16F88 programming issues

13 posts in this topic

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

 

Share this post


Link to post
Share on other sites

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 by yogi

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

 

 

Share this post


Link to post
Share on other sites

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 person likes this

Share this post


Link to post
Share on other sites

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 person likes this

Share this post


Link to post
Share on other sites

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

 

 

 

Share this post


Link to post
Share on other sites

'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

Share this post


Link to post
Share on other sites

Ok I will measure vdd and if needed I will calibrate vdd in the picket2 software

Cheers

Tim

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

 

 

pickit2clone.PNG

pic1-sucsess.PNG

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now