Embedded system design using MSP430 Launchpad