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.

Communication between GPIO and UART

Other Parts Discussed in Thread: MSP430F149, MSP430F2370, TRF7960

Hello,

I'm trying to communicate between two different MSP430s (MSP430F2370 to an MSP430F149). These microcontrollers are on two different development boards (TI TRF7960AEVM and Olimex EasyWeb3, respectively). As far as I've found, there are no available SPI pins on the Olimex board and no available UART pins on the TRF7960. What I'm trying to do, then, is transmit information from a GPIO pin on the TRF to a UART pin on the Olimex. This is possible, right? Is there any example C code on the implementation of software UART anywhere? I'm specifically looking for transmission code, since the receiving end has a UART pin available.

Can anyone help me out? Feel free to make any suggestions or corrections to what I've said, too.

Thanks,

Warner

  • Hello Warner ,

    yes this can be done. It is nothing else than a timer controlled Pin Toggle. You may not achieve as high baud rates as with a hardware uart but if your application is not time sensitive it should work.

    I found following link that accomplishes Software-UART RX+TX with an AVR (German, but the code talks for it self).

    http://www.rn-wissen.de/index.php/Software-UART_mit_avr-gcc

    Another SW-Uart  (not so clean written Version) without any hardwarespecific code can be found at

    http://supp.iar.com/Support/?note=88469

    where you have to provide some interface methods to get it work.

    I did not test any of the above as I did not require a SW-UART yet. Maybe it is a good practice to implement it self from scratch with the MSP430-UART spec.

    Kind Regards

    Marco

  • Hi,

    There is also an example of a half duplex software uart on the 43oh site.  http://www.43oh.com/2010/08/half-duplex-uart-on-the-launchpad/

    Cheers,

    Barry

**Attention** This is a public forum