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.

USCI Transmit Enable

Hi,

I am new to MSP430 UART.

I know that UART transmission is initiated by writing data to UCAxTXBUF,

but our client has an issue that UART transmits data without writing any  data to UCAxTXBUF.

Does this mean, the UCAxTXBUF may have some garbage data?

when using UCSWRST will the TXBUF and corresponding shift register gets cleared?

Please let me know if there are situation when UART transmits data without writing any data to UCAxTXBUF.

 

Thankyou in advance.

  • I have not heard of an issue like this but consider the following:

    1. Does your client properly initialize the state machine using the UCSWRST?

    2. Are the interrupts and interrupt flags managed properly?

    3. What specific device are you using? Try a simple USCI code from the following link and run it as-is. Does the issue persist? www.ti.com/msp430codeexamples

  • Hi Brandon,

     

    According to my understading UART has UxTXBUF+Transmit Shift Register,

    after the data from UxTXBUF is transferred to the shift register,UTXIFG will be set saying 

    that BUF is empty, but the shift register is still doing the communication.

    So I think TXEPT should be cheked to find if the data is tranferred completely. 

    I think this was the confusion before.

     

    Thankyou and Regards.

**Attention** This is a public forum