Surface mount programming?


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2007
    Posts
    67

    Default Surface mount programming?

    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?

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    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.

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    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">
    Attached Images Attached Images  
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    Nov 2007
    Location
    oxfordshire uk
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    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.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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/show...ighlight=dirty
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    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
    Attached Images Attached Images

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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...

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8


    Did you find this post helpful? Yes | No

    Default

    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."

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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/e...Doc/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.
    Last edited by mister_e; - 7th November 2007 at 22:08.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  10. #10
    Join Date
    Nov 2007
    Location
    oxfordshire uk
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    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.

  11. #11


    Did you find this post helpful? Yes | No

    Default

    THanks for the help

Similar Threads

  1. Data Programming Error at 0000
    By cpatnoi in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd May 2009, 03:37
  2. Problems programming
    By Lionheart in forum General
    Replies: 4
    Last Post: - 7th December 2008, 16:51
  3. Killing blue led's
    By Steve_88 in forum Off Topic
    Replies: 3
    Last Post: - 31st January 2008, 02:37
  4. Surface Mount Reflow oven
    By sean-h in forum Adverts
    Replies: 0
    Last Post: - 14th April 2006, 15:45
  5. 16F628 & In-Circuit Programming?
    By Len in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th March 2004, 13:02

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts