Archive for the ‘MSP430G2’ Category.

SchmartBoard MSP430F5172 Development Kit

Neal from SchmartBoard sent me an MSP430F5172 development board to check out. This board, according to the website, was co-designed with the University of Colorado for itw educational needs. It is actually just a breakout board for TI’s MSP430F5172 mixed signal microcontroller with added power regulator circuitry and a conveniently positioned JTAG connector. Continue reading ‘SchmartBoard MSP430F5172 Development Kit’ »

TI MSP430G2 SPI Examples

In my earlier posts (1, 2, 3), I showed some examples of using the I2C protocol with TI’s MSP430 Launchpad. Many MCUs in the MSP430G2 family also support the SPI bus. In today’s discussion, I will give a couple of examples on communicating with an SPI port expander (MCP23S17). Continue reading ‘TI MSP430G2 SPI Examples’ »

Interfacing DS3232 RTC With MSP430G2452

I have used DS3232 RTC (real-time clock) in many Arduino based projects before. DS3232 utilizes a temperature compensated oscillator, which makes it far more accurate than devices like DS1307. In this blog post, I will give some code examples on implementing a digital clock using DS3232 and the TI MSP430 Launchpad. Continue reading ‘Interfacing DS3232 RTC With MSP430G2452’ »

Reading SHT21 Using TI MSP430 LaunchPad

SHT21 is a neat little temperature and humidity sensor from Sensirion and I have used it in a couple of my Arduino projects before. Given that the Vcc is 3 V for these sensors, interfacing with a 5V ATMega chip would require an I2C level translator (or alternatively, you could run the MCU at a lower clock frequency and use the lower Vcc). Since TI’s MSP430G2 series MCU runs at lower voltages natively, it is actually a lot cleaner to interface these 3V powered I2C devices. Continue reading ‘Reading SHT21 Using TI MSP430 LaunchPad’ »

“Program Will Not Fit Into Available Memory” Error In CCS

I upgraded my Code Composer Studio (CCS) to 5.2.1 a few days ago. An interesting thing I found out was that while building existing Lauchpad projects, I was receiving a “program will not fit into available memory” error: Continue reading ‘“Program Will Not Fit Into Available Memory” Error In CCS’ »

MSP-EXP430G2 I2C Master Examples

Last week, I mentioned that in order for the I2C bus to function correctly when using the MSP430 Launchpad you might need to remove the jumper on P1.6. This is because P1.6 is the SCL pin and the connected LED may cause the output voltage to stray from the desired logic voltage levels. In this post, I will show a couple of examples of using the MSP430 Launchpad as an I2C master to communicate with slave devices. The library code can be downloaded towards the end. Continue reading ‘MSP-EXP430G2 I2C Master Examples’ »

MSP-EXP430G2 I2C Issue Resolved

I was experimenting with I2C using my TI MSP-EXP430G2 Launchpad and ran into some issues. For a while, I could not get the I2C host and slave to talk. After having verified the coding and the hardware setup, my suspicion turned to the jumper which connects the red LED indicator to port pin P1.6. Continue reading ‘MSP-EXP430G2 I2C Issue Resolved’ »

Using MSP430 LaunchPad As Programmer

In this blog post, I will show you how to program an MSP430G2 series chip outside the MSP430 LaunchPad (MSP-EXP430G2) development board using the Launchpad itself as a programmer. This is useful for doing in-system programming without having to swap the target chip in and out of the LaunchPad. Continue reading ‘Using MSP430 LaunchPad As Programmer’ »

Simplifying MSP430G2 Programming

I just started playing with TI’s MSP430 LaunchPad (MSP-EXP430G2) a few weeks ago and have found it surprisingly capable so far. But having to remember all those register names is not an easy task, especially if you do not use it often. So, inspired by this article (Header file brings Arduino sketches to the TI Launchpad) on Hack A Day, I decided to write a few functions that can simplify some of the more mundane tasks. Continue reading ‘Simplifying MSP430G2 Programming’ »

MSP430G2 DCO Frequencies

MSP430 LaunchPad (MSP-EXP430G2) is compatible with many of the TI‘s Value Line series of microcontrollers. For these MCUs, both the Master clock (MCLK) and the sub-main clock (SMCLK) can be driven directly by the internal DCO, without having to use an external crystal. This is very useful in situations where timing requirement is not so strict. In this blog posting, I will show you all the discrete frequencies that can be generated by only using the DCO. The charts included below will come in handy when you are designing your MSP430G2 based circuits. Continue reading ‘MSP430G2 DCO Frequencies’ »