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.

CCS/EVM430-FR6047: Print result in next line using UART

Part Number: EVM430-FR6047


Tool/software: Code Composer Studio

Hi,

Is there any method to print next value of UCA3TXBUF in next line of CCS termainal.

Can i get some help?

void main(char *data)
{

    uart_init();
    uart_baud();
    UCA3IE |= UCRXIE;                       // Enable USCI_A3 RX interrupt
    while (*data != '\0')
    {
        while (!UCTXIFG);
        UCA3TXBUF =*data;
        __delay_cycles(10000);             
        if (*data == '\n')
        {
            /*Wait for the transmit buffer to be ready*/
            while (!UCTXIFG);
            UCA3TXBUF = '\n';
        }
        data++;
    }
    __no_operation();                       // For debugger
    return ;
}

Best Regards,

Divya Harikumar

**Attention** This is a public forum