Development and application of MSp430 microcontroller