MSP430 example code