Programming SMD PIC on Board?

I’m using a SOTC test clip wired up to connect to my PIC programmer (see photo below) and this seems to work well to program SMD PICs off board (as long as I’m careful not to bend the leads). Can I use this to reprogram the SMD PIC when its soldered in place on the PCB? I’m not sure if the clip will make a good enough connection once the PIC is soldered down, and I’m not sure once my other components are also soldered in whether that will affect the ability to reprogram the chip.

[<LINK_TEXT text=“http://i188.photobucket.com/albums/z301 … 4ztakd.jpg”>http://i188.photobucket.com/albums/z301/RossAWaddell/th_IMG_3340_zpsz84ztakd.jpg</LINK_TEXT>

This is the schematic for my board - a typical 0.1uF cap between +5V & GND pins with series resistors & LEDs.

[<LINK_TEXT text=“http://i188.photobucket.com/albums/z301 … jtpnid.png”>http://i188.photobucket.com/albums/z301/RossAWaddell/th_SMD%20PIC%20Schematic_zps1ljtpnid.png</LINK_TEXT>](Photo Storage)](Photo Storage)

Probably have to ‘hold’ the test clip on the PIC while programming is taking place…if only to make sure you’ve got a solid connection.

And the resistor/LEDs may load down the PGC/PGD lines too much to let the programmer function properly as well.

Desolder the resistors and/or add a jumper to those particular lines… I don’t see why it won’t work.

Read the datasheets. Talks all about putting extra loads on PGC/PGD and the effects on ICSP.

skimask:
Probably have to ‘hold’ the test clip on the PIC while programming is taking place…if only to make sure you’ve got a solid connection.

And the resistor/LEDs may load down the PGC/PGD lines too much to let the programmer function properly as well.

Desolder the resistors and/or add a jumper to those particular lines… I don’t see why it won’t work.

Read the datasheets. Talks all about putting extra loads on PGC/PGD and the effects on ICSP.

Thanks skimask. By "add a jumper to those particular lines" do you mean adding something like a low-profile DIP switch (e.g. [http://www.digikey.ca/product-search/en ... s=679-3565](http://www.digikey.ca/product-search/en?keywords=679-3565)) so that the ICSP pins can be switched to GND (or left hanging) for in-circuit programming? Looking at the 12F683 data sheet, it says pins 6 & 7 are the ICSP pins, so just those 2 need to be jumpered?

Pretty much. DIP switches, 2 pin jumper, leave the resistors out…whatever works.

You just don’t want extra loads on the ICSP pins that the programmer doesn’t expect and/or can’t handle.

Look at the PICKIT2 user’s manual datasheet. Talks all about that sort of thing.

Have I put together circuits with stuff on the ICSP pins and did it work without any extra jumpers or otherwise? Yes.

Was it the correct way to do things? No. And if it wouldn’t have worked, I would’ve known exactly where to go to fix the problem.

skimask:
Pretty much. DIP switches, 2 pin jumper, leave the resistors out…whatever works.

You just don’t want extra loads on the ICSP pins that the programmer doesn’t expect and/or can’t handle.

Look at the PICKIT2 user’s manual datasheet. Talks all about that sort of thing.

Have I put together circuits with stuff on the ICSP pins and did it work without any extra jumpers or otherwise? Yes.

Was it the correct way to do things? No. And if it wouldn’t have worked, I would’ve known exactly where to go to fix the problem.

Thanks again skimask!

It should work. I have a small board with a Tiny13 that I program with a SOIC test clip. As long as you leave enough room for the clip it works just fine.