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.

Msp430f2618 UART Problem

Hi! All

  We are trying to write some data to serial port using the code below

   P3SEL |= 0xC0;                             // P3.6,7 = USCI_A1 TXD/RXD
  UCA1CTL1 &= 0x00;                           // Clear register
  UCA1CTL1 |= UCSSEL_1;                     // CLK = ACLK
  UCA1BR0 = 0x03;                           // 9600 (see User's Guide)
  UCA1BR1 = 0x00;                           //
  UCA1MCTL = UCBRS_6;                       // Modulation UCBRSx = 3
  UCA1CTL1 &= ~UCSWRST;
 
     while (!(UC1IFG&UCA1TXIFG));               // USCI_A1 TX buffer ready?
       UCA1TXBUF =  err_code;                    // TX -> RXed character
     while (!(UC1IFG&UCA1TXIFG));

We are getting data in UCA1TXBUF but its not pushed out to the serial port.

Please help us.

Thanks

**Attention** This is a public forum