ADC and serial port usage routines for MSP430F2013