PDA

View Full Version : Surface mount programming?



kevj
- 23rd October 2007, 21:47
I have one of the USB programmers with the ZIF socket for DIP packages, but my design is about to got production with the SOIC version of my pic - how do I program this thing for final prototyping? Do they make another programmer or can I just add a terminal to my Pcb?only a couple pins are actually used for programming right?

dhouston
- 23rd October 2007, 21:59
mel makes adapters with ZIF sockets for SOIC.

Or, as you surmised you can do it after the chip is mounted if you provide ways to make the connections. The PIC datasheets have a section on ICSP showing which pins are used. You may need ways to isolate the circuitry depending on how your design uses the programming pins. Start with the datasheet.

sayzer
- 24th October 2007, 08:04
Kevj,

As dhouston mentioned, you should design your circuit compatible with ICSP connector.

Attached is an example for on-board programming operation.

You can easily get the idea how it works.

Only thing to pay attention for is to isolate programming pins from the rest of the circuit.

<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2103&d=1193209441">

spuffock
- 7th November 2007, 10:12
I suggest fitting the ICSP connector to all new designs. There will always be a need to move the goalposts when in production, and you can reprogram units at any time.

mister_e
- 7th November 2007, 16:21
ICSP header are nice indeed, you could still build a cheap SMD adapter using a IC Clip, so you don't waste any PCB space.

Look at the following
http://www.picbasic.co.uk/forum/showthread.php?t=3014&highlight=dirty

Tobias
- 7th November 2007, 19:40
I posted a similar question in the schematics area. Attached is a PDF, I can't get my ICSP to work correctly. I get a message that the PIC doesn't match the selected. Please suggest some points to check based on attached PDF.
Thanks
Toby

mister_e
- 7th November 2007, 21:06
You'll never have any answer in the schematic area.. as it's the place to post working example... euh.. in theory so far.

Looking at your schematic... there's no resistor and diode on the MCLR/VPP line. compare your schematic with Sayzer's one o rthis one on the Melabs website...

http://www.melabs.com/images/icsp1.gif

Tobias
- 7th November 2007, 21:43
Reading the support page on the ICSP the diode and resistor are only for the protection of other components.

"If 13V on the MCLR pin might put at risk other components on your board, use a diode in series with the RESET pullup to keep the 13V off of the Vdd line."

mister_e
- 7th November 2007, 21:51
mmm... yes but MCLR have to be 13 volt to program the PIC... so let's say your programmer is strong enough to power up everything... your Vdd rail willl be 13Volt and blow everything --- and this include your PIC ----

also make sure the PGM pin is loaded to GND via a resistor or anything else.

The programming sequence and voltage are usually explainned in some PIC datashet or in the Microchip ICSP guide bellow

http://ww1.microchip.com/downloads/en/DeviceDoc/30277d.pdf

in that PDF, refer to figure 1 (pdf page 13)

this is a nice document. There's also few timing chart you may refer to.

spuffock
- 7th November 2007, 22:08
The schematic shows Vpp shorted to Vdd. Vpp should go to the Vpp/mclr pin of the processor, with a pullup resistor to Vdd. Vdd should also connect to the programmer.
On the ICD2, no Vdd is sometimes reported as mismatch, so check that Vdd is actually getting to the programmer.

Tobias
- 8th November 2007, 02:07
THanks for the help