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.

UART Tx on USCI_A0 of Char Array with MSP430F5529

Other Parts Discussed in Thread: MSP-EXP430F5529LP, ENERGIA

Hey Everyone,

I am currently using the MSP-exp430F5529LP breakout board in conjunction with the DLP-797ABP booster pack to make my own RFID application. Basically, I am new to C programming and MSP430 so I am having a hard time with UART.

I have a character array filled with hex values and have connected a TTL-232RG-VREG1V8 USB-TTL cable into the USCI_A0 Tx, Rx, and GND pins of my board. I want to ouput the hex onto a terminal emulator. 

I'm looking at examples from TI of using USCI_A0, but a lot of it it's really relevant. The closest program I can find is to Echo a received character, RX ISR used. Normal mode is LPM3.

Any guidance on this?

Thanks!

  • The echo examples sends a byte when a byte has been received, i.e., when the interrupt for RXIFG happens.

    You want to send a byte when the previous byte has been moved from the buffer (TXBUF) to the shift register, i.e., when the interrupt for TXIFG happens.

    Alternatively, don't use interrupts at all, and just wait for TXIFG being set before sending each byte.

    Given your knowledge, it might be a better idea to start with a framework on a higher abstraction level, i.e., Energia.

**Attention** This is a public forum