Hi,
I am trying to get familiar with the MSP430 and I wanted to generate
periodic interrupts using timer_A. The problem is that timer_A
doesn't advance, no matter what I do.
I am using IAR Embedded Workbench and I run simulation using C-Spy.
The processor is MSP430F2013. The init sequence I am using is:
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
TACTL = TASSEL_2 + MC_2; // SMCLK, contmode
while(1);
}
and I expect to see timer_A (TAR register) incrementing
Can someone please tell me what am I doing wrong?
Thank you,
Aju