Introduction - If you have any usage issues, please Google them yourself
MSP430 has a number of registers to set the procedures for the frequency and cycle, such as This paper summarizes the timer A, watchdog, analog comparator, such as the code for your learning.