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.

MSP430F2013: Implementing UART interface to PC

Genius 13999 points
Part Number: MSP430F2013
Other Parts Discussed in Thread: MSPWARE, MSP-EXP430G2ET

Hi Experts,

Seeking your assistance on this query from Cx:

I have an MSP430G2ET, in which I changed the microcontroller for an MSP430F2013 to use the sigma delta converter. Now I'm wanting to send the data to the PC, however I found out that it doesn't have a UART.

To solve the problem, I bought a FT232RL, but I couldn't program it to use UART

In MSPWare there is a code to simulate UART through the timer (at least that's what I understand), but I'm also not able to send the data to the PC. Would there be any video/tutorial performing this task (sending data to the PC) on the MSP430F2013?

Hoping for your assistance.

Regards,
Archie A.

  • Hi Archie,

    I'm assuming the example they found was this msp430x20x3_ta_uart2400.c . Because the device doesn't have a dedicated UART module this is using a timer to emulate UART. Are they using the correct baud rate and connections? We won't be able to provide a video on the example itself in use but we can walk through how it works. If the baud rate is too fast then you can run a greater UART timing error.

    Regards,

    Luke

  • Hello Luke,

    Customer (Vilson) responded:

    Yes, the example I found was this: msp430x20x3_ta_uart2400.c. But, an external watch crystal is required, and I don't have it. There in the example msp430x20x3_ta_uart2400.c it is mentioned about the LFXT1, but I couldn't find it for sale and I don't know how to connect it to the MSP430F2013.

    It would be possible to open a new topic or answer the current topic in the forum with this other question: Is there any other way for me to send the ADC sigma delta data from MSP430F2013 plugged into an MSP-EXP430G2ET LaunchPad to the PC? As long as it is not through UART (the MSP430F2013 does not have it) and not using the msp430x20x3_ta_uart2400.c, as this requires an external crystal oscillator.

    Cx is following this post. For your assistance.

    Thank you.

    Regards,
    Archie A.

  • The watch crystal is just a timing reference. Used to demonstrate how to do this particular task in a low power mode. You could use some other timing reference that wouldn't allow using a low power mode.

    Using the timer is just a variation of bit banging a serial link. The old fashioned way is create the delays in code. (You should be able to turn up an explanation and examples on the Net.) Not particularly difficult but it does require a good understanding of machine code.

**Attention** This is a public forum