

Interrupt vector register for fast decoding of all Timer_A interrupts.Up to three configurable counter/compare registers.

Asynchronous 16 bit timer/counter with four operating modes.The feature list for Timer_A is shown below: The MSP430G2253 also has a watchdog timer which can be used detect system malfunctions, but will not be covered in this tutorial. For the most part they are very similar except Timer_A has up to three capture/compare registers, were as Timer_B has up to seven. The MSP430 family guide lists two types of 16 bit timer, Timer_A and Timer_B.

The MSP430G2253 has two 16 bit timers, Timer0 and Timer1 both are Timer_A variants with three capture/compare registers. You can find them here Part 1 and Part 2. As the tutorial will be using the MSP430G2253 as the test microcontroller, downloading the datasheet for this maybe of use and can be found here.īefore reading further if you are having trouble understanding how the registers work, and how the C code updates the individual register settings? It would be worth reading my MSP430 Programming Tutorial, Part 1 covers the basics and Part 2 gives clear examples. All the code in the MSP430 timer tutorial is written in Code Composer Studio (CCS) v5.5. The MSP430G2253 will be used as it has two timers opposed to the MSP430G2231 which only has one timer, this will allow for different examples to be shown. Additionally the video below demonstrates the examples ‘A picture paints a thousand words, a video displays a thousand pictures’. In this MSP430 timer PWM tutorial the basic workings of the on board timer peripheral will be explained, along with some C code examples which can be downloadable at the end of the tutorial.
