Various MSP430 code