rockets4kids 204 Posted June 20, 2011 Share Posted June 20, 2011 This has been mentioned a few times before but as not too many people know about it I thought I would bring it up again with my particular spin on things. It is a little known fact that the Launchpad can easily program external chips. In fact, I only programmed a chip in the Launchpad socket itself just a few times before connecting it to an external breadboard. A picture is worth a thousand words, so here are some of my Launchpad-breadboard setup: http://imgur.com/a/UA46s#Qmjp7 Very high resolution versions of the image are available through the "Image Options" menu. Physically, the breadboard is taped (double-sided foam tape) to a piece of scrap plastic. The Launchpad is held in place with a rubber band -- the ones that hold broccoli are perfect. I didn't have any "proper" connectors, so I simply trimmed (cut and sanded) one of the 10-pin female connectors that comes with the Launchpad. I also didn't have any heat-shrink small enough, so I just "potted" the solder connections with epoxy. It's not pretty, but it works just fine. To understand what is going on here, it is best to look at the schematic and PCB layout that is included in the Launchpad User's Guide: http://focus.ti.com/lit/ug/slau318/slau318.pdf It is important to note that the "Emulation" side is completely separate from the "EXP-MSP430G2" or "target" side. You can actually (physically) cut the board along the dashed line if you want. Aside from power and ground, all of the signals cross the dashed line via the jumper pins. If you remove the jumper pins, you have access to all of the signals required to program an external chip. It may not be clear in the picture, but the jumpers are hanging off one pin on the target side -- that is the easiest way to keep from losing them when the external programming header is connected. Many people also seem to be confused about the minimal support circuitry required for the MSP430, so that is definitely worth going over. The schematic in slau318 is nicely split on multiple pages to show G2/target side of things on a single page. This is essentially what you will be building on the breadboard. Obviously the chip requires power and ground, and these are provided via the Launchpad. The power supply must be properly decoupled for proper operation. This involves a 10 uF cap (electrolytic or tantalum) somewhere on the breadboard and a 0.1 uF (a cheap ceramic is just fine) as close to the MSP430 as possible. The RST line must be held high with a 47 k resistor. If you wish to reset the chip, just apply a jumper from RST to ground. You could use a switch, but a simple wire works just fine when needed. I have a watch crystal on XIN-XOUT, but this is not necessary. My xtal requires two 22 pF caps for proper loading, but I have not used these, instead enabling the internal 14 pF caps on the MSP430. The xtal seems to oscillate just fine with the improper loading, but I am certain that it effects the frequency. I don't have a frequency counter, so I don't know how far off it really is. The important thing is that oscillator does not seem to fault even when I touch it with the case ungrounded. If you don't want to use an xtal, you can use the pins as GPIOs. It is important to note that the chip is programmed over the TEST/RST lines, *not* the TX/RX serial lines. If you do not need serial communication, TX/RX do not need to be connected to the launchpad, and the pins can be used as GPIOs. Even more important to note is that the TX/RX lines used by the chips with a hardware UART (The 2xx3 chips) are *reversed* from the pins used for software serial! The breadboard in the photograph is populated with a 2553, so TX from the 2553 goes to RX on the jumper block and vice-versa. The only real "application circuit" here is the LED/resistor on P1.0 -- which happens to match LED1 on the Launchpad. As you can see, this leaves quite a fair bit of board space to experiment with, even with a small 400 pin breadboard. These little breadboards can be had for just a little more than two bucks when you get 10 of them, and it's really nice to be able to leave multiple small circuits all wired up at the same time. It's also useful to wire up each board as a discrete function, just like a "shield" on an Arduino. For example, you can wire a 2x16 LCD display for 2-pin serial display, and then easily connect that among multiple other boards. Hopefully this will be helpful to others just getting started! jsolarski, fj604, bluehash and 5 others 8 Quote Link to post Share on other sites
bluehash 1,581 Posted June 22, 2011 Share Posted June 22, 2011 Thanks for the nice writeup, r4k. Quote Link to post Share on other sites
RobG 1,892 Posted June 27, 2011 Share Posted June 27, 2011 Alternatively, you could just solder 4 or 6 wires to J4. As you have already mentioned it, those dashed lines suggest something, they are saying "cut me, cut me." Though it's not that easy, it's possible. I wanted to do that for a long time, but your post really motivated me. So today, out of boredom, I decided to sacrifice one of my LPs and turn it into EmuPad. FYI, my suggestion is to use J4 to get those signals out to your proto board. EMuPad is just a proof that this can be done, but it is a really difficult task, some thin traces run under the header and there is de-soldering involved which can damage those delicate pads. zeke, zborgerd, xpg and 1 other 4 Quote Link to post Share on other sites
zeke 693 Posted June 27, 2011 Share Posted June 27, 2011 I've been very tempted to do the same thing to one of my LPs just to see if it could be done. Good on you for having the courage Quote Link to post Share on other sites
nobody 47 Posted June 27, 2011 Share Posted June 27, 2011 To me it makes no sense. Why cut a functioning board? It is much easier to use a USB stick with SPY-BI-WIRE interface (such as this or this). Quote Link to post Share on other sites
RobG 1,892 Posted June 27, 2011 Share Posted June 27, 2011 Just like zeke said, just to see if it could be done. World's greatest innovations are the result of doing things that make no sense Quote Link to post Share on other sites
zeke 693 Posted June 27, 2011 Share Posted June 27, 2011 This is worth $20.00. This is worth $4.30. But they both do the exact same thing. Who's first in line?! :shock: 8-) jsolarski 1 Quote Link to post Share on other sites
cde 334 Posted June 27, 2011 Share Posted June 27, 2011 This is worth $20.00.This is worth $4.30. But they both do the exact same thing. Unless of course, you got a couple of the ez430's for free. I got four. Quote Link to post Share on other sites
RobG 1,892 Posted June 27, 2011 Share Posted June 27, 2011 If you decide to cut it, my suggestion is to cut 1/8" below dashed line, between header and components, where Rev.1.x text is. Quote Link to post Share on other sites
zeke 693 Posted June 28, 2011 Share Posted June 28, 2011 It's too bad they didn't nudge J4 up a little bit. A snap line of mouse-bites would have been cool too. Quote Link to post Share on other sites
gordon 229 Posted June 28, 2011 Share Posted June 28, 2011 What too bad is that they don't make only the FET part in a proper USB case; sort of like the EZ430-F2013 (or similar item), without the target board, and with a proper IDC connector instead of the flea-sized headers (say an AVRISP-like 6-pin connector, and just let me worry about the cable). I wouldn't for a split second think to throw 10 bucks at one such item (maybe several times over -- one for the pocket, one for the desk, one to pick chix up with 8-) ) given that estore was in the mood to let me spend my nickels, of course :twisted: . Quote Link to post Share on other sites
bluehash 1,581 Posted June 28, 2011 Share Posted June 28, 2011 Bineman/SimpleAVR( was very active here, hope he comes back) made a cable for it: http://www.43oh.com/2010/11/ez430-f2013 ... out-cable/ gordon 1 Quote Link to post Share on other sites
TomKraut 17 Posted August 21, 2012 Share Posted August 21, 2012 Okay, this is a really old thread, but the cut-off LP programmer is just too cool to not try it... However, I was wondering: where did you get the GND from? It looks like you drilled another hole for the sixth pin shown in the picture, am I right? Thanks TomKraut Quote Link to post Share on other sites
RobG 1,892 Posted August 21, 2012 Share Posted August 21, 2012 Yes, drilled the hole for GND. BTW, don't cut like I did in the picture few posts back, do it like in the one below. You can also use TP3 (next to USB socket.) Quote Link to post Share on other sites
hawwwran 2 Posted November 22, 2012 Share Posted November 22, 2012 Is there any reason why do not cut it right under the dashed line? You know, it looks more cool... the first picture of yours. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.