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.

MSP430 can't get UART to work

Other Parts Discussed in Thread: MSP430F2274, MSP430WARE, MAX232

Hi, I am new to msp430 programming and have a msp-fet430u38 kit with a msp430F2274 chip. I am using msp430Ware and running the samples. I can get the Led sample to work, but not the msp430x22x4_uscia0_uart_01_9600.

I connected my rs232 (3 wire from db9 on my computer) to pins 3.4,3.5 (pins 25, 26 on the fet board, according to msp430 sheet), but I get nothing back when I open the Com port and type chars. (I'm connecting at 9600,n,8,1.

What could I be doing wrong?

  • Hi,

    When you made the connections from the DB9 to the FET board did you connect

    DB9 pin 2 (RX) to P3.4 (TX) 

    DB9 pin 3 (TX) to P3.5 (RX)

    I would suggest connecting ground to pin 5 on the DB9 as well.

    HTH,

    Barry

  • > I connected my rs232 (3 wire from db9 on my computer) to pins 3.4,3.5 (pins 25, 26 on the fet board, 

    Please disconnect those wires. The DB-9 is almost certainly RS232 levels, which are +/-12V, and the MSP430 pins top out at 3.6V. Frying your chip is not improbable.

    To connect to the DB-9, you'll need a RS232<->logic level converter (MAX232 e.g.). It may be easier to instead use USB and a USB/Serial converter, e.g. FT232, in which case there are no RS232 levels anywhere.

    If you'll be happy with 9600 (people rarely are, long term), slightly cheaper than an FT232  board (~$15) is a Launchpad (~$10) -- just patch into the RXD/TXD jumpers on J3 and use the on-board serial emulator.

**Attention** This is a public forum