Learn To Debug Msp430 Chips Using IAR

If you haven’t done any debugging with microcontroller programs [Kphlight] posted a follow-along guide for debugging MSP430 chips. You can see above that he’s using the TI Launchpad and has chosen the free (but code limited) IAR Embedded Workbench that is one of the IDE’s that TI provides for the kit. The example builds a Pomodoro timer with just five LEDs and one resistor. You’ll flash the code to the chip, step through each line of the firmware, and learn how to manipulate register data during code execution.

It’s a great primer for the uninitiated, and we’d love to see one using open-source tools like DDD and GDB. If you do write one, don’t forget to send us a tip about it. If you want to give open source a try with this hardware check out our own tutorial.

Nokia LCD, Nunchuck, And MSP430 Join Forces

[JB’s] driving a Nokia 6100 LCD using an MSP430 with input from a Wii Nunchuck. He’s using the G2211 microprocessor that came with the Launchpad, and developing his code with MSP-GCC. As you can see in the video after the break, this works but there’s some room for improvement. That’s being said, he is bumping up against the code memory limit, with just around 500 bytes left to work with. The LCD screen is SPI and currently it’s hogging the pins that are used for the hardware i2c. Since he needs an i2c bus to talk to the nunchuck he had to go with software i2c which explains part of his program memory troubles.

We’re in no way experts on this, but it seems like he could save space (and improve the input responsiveness) by rewriting his LCD drivers in order to remap the pins. Then again, it might just be better to move up to a larger MSP430. If you’ve got some advice, make sure to share it by leaving a comment.

Continue reading “Nokia LCD, Nunchuck, And MSP430 Join Forces”

Hands-on With EZ430-F2013

At the beginning of the Month we came across a coupon code for a free eZ430-F2013 development stick. TI has given these things now and again so we took the opportunity to acquire one. It arrived yesterday and we’ve spent just a bit of time looking it over. Above you can see the first project completed; Hello World on a salvaged Nokia cell phone screen. Join us after the break for our thoughts on the device, as well as more pictures and details.

Continue reading “Hands-on With EZ430-F2013”

Alarm And Wake Up Light

On the shortest day of the year wouldn’t it be nice to wake up to a bright room? This alarm clock with an integrated wake-up light is one way to do just that. It has some nice features, like a wood veneer that allows the seven-segment display to shine through, but hides it when the display is turned off. There’s also a feature to adjust the color based on ambient room temperature (another way to dwell on how cold it is in your bedroom).

A CC1101 RF chip came to the party, but we can’t figure out what it’s purpose is in this circuit. If you can shed some light on its involvement please do so in the comments.

[Thanks Eric]

Launchpad Takes Ultra Low Power To The Extreme

We’ve all known the MSP430s under the Launchpad are designed to be low power, but who wants to bet how long the chip can last on only 20F worth of capacitors? A couple of hours? A day at max? [Kenneth Finnegan] setup a MSP430 with supercaps to find out. To make sure the chip is actually running, [Kenneth] programmed it to count from 0 to 9 over a period of 10 seconds, and then reset. To get it ultra low power, the chip is in sleep mode most of the time, and a raw low current LCD is used to display the output. While [Kenneth] simply checks the chip every few hours to see if it’s still counting, a setup much like the Flash Destroyer, tracking a clock and then storing the current value would get a more exact time of death. Either way, it’s been over 3 weeks…and still counting. Video after the rift.

Continue reading “Launchpad Takes Ultra Low Power To The Extreme”

Wireless Electrocardiography… With IPhone

This module is a sensor package for monitoring the electrical activity of the heart. It is the product of an effort to create a Wireless Body Sensor Network node that is dependable while consuming very little electricity, which means a longer battery life. To accomplish this, the microcontroller in charge of the node compresses the data (not usually done with wireless ECG hardware) so that the radio transmissions are as short and infrequent as possible.

[Igor] sent us this tip and had a short question and answer session with one of the developers. It seems they are working with the MSP430 chips right now because of their low power consumption. Unfortunately those chips still draw a high load when transmitting so future revisions will utilize an alternative.

Oh, and why the iPhone? The device that displays the data makes little difference. In this case they’re transmitting via Bluetooth for a real-time display (seen in the video after the break). This could be used for a wide variety of devices, or monitored remotely via the Internet.

Continue reading “Wireless Electrocardiography… With IPhone”

Porting Code To MSP430

I took a little time to look into porting code written for AVR in order to run it on the MSP430 architecture. It’s easier than you think, being mostly small differences like an extra step to enable pull-up resistors. But there is a lot to be learned in order to transition away from using EEPROM.

Since the TI chips don’t have EEPROM you need to use the Info Flash, a topic which I detail in the article linked at the top. This flash memory must be erased before writing because a write operation can only change high bits to low, not the other way around. And an erase operation clears an entire 64 kB segment, not just the bytes you want to write to. It’s different but manageable.

Oh, and if you were wondering, I ported the code I wrote for the garage door coded entry project.