MSP430 Code