SLAA513B December 2011 – February 2022 MSP430G2112 , MSP430G2112 , MSP430G2152 , MSP430G2152 , MSP430G2212 , MSP430G2212 , MSP430G2252 , MSP430G2252 , MSP430G2312 , MSP430G2312 , MSP430G2352 , MSP430G2352 , MSP430G2412 , MSP430G2412 , MSP430G2452 , MSP430G2452
For each time-base required in the application, you need to determine the number of timer counts (nperiod) to make up the desired period. This can be found by taking the frequency of the timer clock (ftimer) based on the clock source frequency (fsource) and IDx divider bits, and dividing by the desired time base frequency (fdesired) (see Equation 2).