This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Timer A printing to putty

Hi i put my dcoclock at 1 mhz . And every 1 sec, i want it to print to the putty "Hello" but its not working. Pls check my code.

 

#include "mrfi.h"
#include "radios/family1/mrfi_spi.h"

void start_slow_timeout()
{
  TACTL|=TACLR; TACCTL0=CCIE; TACTL=TASSEL_2+MC_1;
}

int main(void)
{
  BSP_Init();
 
  P3SEL    |= 0x30;
  UCA0CTL1  = UCSSEL_2;
  UCA0BR0   = 0x41;
  UCA0BR1   = 0x3;
  UCA0MCTL  = UCBRS_2;                    
  UCA0CTL1 &= ~UCSWRST;
    
  if(CALBC1_1MHZ == 0xFF || CALDCO_1MHZ == 0xFF)
  {
    P1OUT |=0x02;
    while(1);
  }
 
  BCSCTL1 = CALBC1_1MHZ;
  DCOCTL = CALDCO_1MHZ;
  BCSCTL2 &= ~ BIT3;         

TACCTL0 = 0;                           // TACCR0 interrupt enabled
  TACCR0 = 50000;
  TACTL = MC_0;                  // SMCLK, count up mode
   start_slow_timeout();
  __bis_SR_register(GIE);
  while(1);
}

void MRFI_RxCompleteISR()
{
}


int count=0; // counter to count to 1 sec and print

#pragma vector=TIMERA0_VECTOR
__interrupt void interrupt_slow_timeout (void)
{
  count++;
  if(count==20)
  {
    char xyz[] = {"Hello         \n\r"};
      TXString(xyz, (sizeof xyz));
   P1OUT^=0x01;
    count=0;
  }
     
     
}