Hello World for ez430rf2500

ez430rf2500’s Hello World

In MSP430 by Hoani Bryson

If you want to get something simple running up on your ez430rf2500, then you have come to the right place. This example uses the mspgcc toolchain in Ubuntu.

What You Need

  • MSPGCC toolchain. Check out this article on how to install this in Ubuntu

Hello World Source Code

  1. Disables the watchdog
  2. Set the system clock frequency to 8MHz
  3. Configure the timer to trigger interrupts every millisecond
  4. Configure the LED pins (P1.0 and P1.1) as outputs
  5. Enable interrupts
  6. Loop forever and toggle LEDs every 250ms

Building and Programming

Unzip the downloaded source code.
Using the terminal, navigate to the extracted folder:

Plug the ez430rf2500 into a usb port and program it.

Now  it will flash the LEDs every 0.5 seconds.