14
\$\begingroup\$

Often when you buy an SMD microcontroller (say AVR) or a PCB with an SMD microcontroller it comes preloaded with whatever program that board uses to run. I was wondering how it is preloaded - I guess DIP ICs could be programmed using DIP sockets, so are there special SMD sockets?

\$\endgroup\$
1

3 Answers 3

13
\$\begingroup\$

Most microcontrollers have an in-circuit programming (ICP) capability; you can program them over a few digital I/O lines through JTAG or whatever, by powering up the printed circuit board and hooking up a cable from the board to a PC. This is possible by using programming signals that are at regular logic levels. (Microchip had a high-voltage in-circuit programming approach where the reset line MCLR had to be held at a high voltage (12V?) which was OK only by adding an isolating diode between MCLR and the rest of the circuit.)

In the earlier days before ICP, you could buy large numbers of ICs from the manufacturer, programmed by them, as a value-added service. Small numbers would have to be programmed by you or someone else.

As far as sockets go -- there are sockets for almost everything. A few years ago I was working recently with an MSP430 kit that had a clamshell socket for a 64-pin QFP. They're not cheap but they work well. (Here's one for a 400-pin BGA good to 10GHz) They get used mostly for testing purposes rather than programming.

\$\endgroup\$
1
  • 3
    \$\begingroup\$ You can still buy ICs programmed by the manufacturer; even with ICP it takes time on the line to flash parts and board space to add ICP probe points. For large production runs, this is quite common. For example, Microchip does this through Microchip Direct, in quantities down to 1 (as well as in reel-and-above quantities). \$\endgroup\$ Commented Sep 16, 2011 at 16:05
12
\$\begingroup\$

Yes, there certainly are device sockets for SMD devices. They are routinely used for production and reliability testing of SMT components. Production testing is usually done using a device handler, essentially a robotic device that transfers the parts to be tested to and from the socket(s) on the production test equipment.

The same production test equipment is capable of programming the devices at the factory (practical only for large volume purchases), or a distributor and/or end customer can program the parts.

-- edited to add a link to a stand-alone automated programming system. --

http://dataio.com/Solutions/AUTOMATEDPROGRAMMING/PS588.aspx

\$\endgroup\$
1
  • 6
    \$\begingroup\$ For large volumes (thousands), I think they program them at the same point as the e-test, which is in bare-die form. They already have to connect to the IC die to test it before packaging it in the SMT package. \$\endgroup\$ Commented Sep 3, 2011 at 6:12
3
\$\begingroup\$

I see you have already gotten a couple of good answer. Perhaps my writeup on in-circuit programming of Microchip PICs will give you some additional background and help demystify the process in general.

\$\endgroup\$
3
  • \$\begingroup\$ Argh. I used a HTML A tag for the link, which I thought was supported here. Apparently not. Unfortunately, it seems impossible to look up the editing details when you actually need them in the post editor. Oh well. In any case, the link is embedinc.com/picprg/icsp.htm \$\endgroup\$ Commented Sep 3, 2011 at 14:10
  • \$\begingroup\$ HTML <a> tags do work, you just forgot the quotes around the URL. The syntax is <a href="URL" title="Hover text">in-line text</a>. The title attribute is optional, the quotes around the URL (and title) are not. See the <a href="electronics.stackexchange.com/editing-help">Markdown Editing Help</a> and <a href="meta.stackexchange.com/q/1777/146495" title="What HTML tags are allowed on Stack Overflow, Server Fault, and Super User?">this MSO question</a> for more info. \$\endgroup\$ Commented Sep 16, 2011 at 15:33
  • \$\begingroup\$ Note that you'll still have to use mini-markdown [text](URL) syntax in comments. The above is just for demonstration. Not sure why the semicolon got added, though. \$\endgroup\$ Commented Sep 16, 2011 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.