Jump to content
43oh

Using the Launchpad with a Breadboard


Recommended Posts

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

 

VN9Qhl.jpg

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!

Link to post
Share on other sites

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.

 

post-197-135135502702_thumb.jpg

 

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.

Link to post
Share on other sites

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

Link to post
Share on other sites
  • 1 year later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...