basic msp430 code snippet