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.

TMS570 Uart GPIO

Other Parts Discussed in Thread: TMS570LS0432, HALCOGEN

Hi everyone, I am using TMS570LS0432 HDK board. Now I would like to connect TMS570LS0432 HDK to Msp430 launchpad via UART protocol. However, this TMS570 board only have 1 UART protocol (SCI), so I need to use its GPIO as UART to connect to Msp430 launchpad. Is there any way to do this technique? Can you share your document, guide or manual code. Thanks in advance!

  • Dzung,

    On this page processors.wiki.ti.com/.../RM46_CNCD there are some examples of the N2HET emulating a UART.
    The TMS570LS432 has the N2HET so you should be able to do the same on the '432.
    Just generate a HalCoGen project for the '432 - but pull in the N2HET code from the webpage linked above.
  • Thank Anthony, however, my chip's max clock is 80Mhz and i want to set 9600 baudrate, but the document doesn't show how to do that and I don't have much experience on Halcogen to configure that baudrate, can you guide me? Thank you very much.
    Here is the document in your shown page: processors.wiki.ti.com/.../N2HET_EMU_UART_AppNote.pdf. I don't know how they compute LR parameter, and how to configure the baudrate

  • Hi Dzung,
    The 2nd paragraph in section 2 of the appnote explains the baudrate calculation - 1.5MHz / 13 = 115200 Bps. You want 9600 so your count will be a lot higher. Make sure you also adjust the 1.5MHz to the correct LR setting for your use case. HALCoGen's GUI will tell you what the LR frequency / period is based on how you have the dividers set so you don't need to calculate it yourself - just pull the number from your HALCoGen config.
  • Hi, Anthony, I still don't understand 1.5MHz value, how to configure it, where I can see this value in Halcogen tab, since I don't see this value in Halcogen via the sample project. And in document  we have 1.5Mhz=90Mhz/(4*15) ,where do we have 4 and 15 values?

    Besides, for the value 13, is it 1333.33ns (actual LR Time) in Het1 tab?. If it is correct, I think there must be some way or technique to setting this value, since I think we cannot just randomly adjust the dividers to get the expected value( actual LR Time). Is there any idea? Thank you very much

  • Dzung,

    Here's where the LR period shows up in HalCoGen:

    You can change the targets for the HR Clock and Loop time and have HalCoGen recompute the closest actual values for you.

    The choice isn't random - but it won't make much difference if you are only using N2HET for 9600 baud UART.

    If you are trying to do UART + timer then the HR and LR settings have different tradeoffs when it comes to timer performance.

  • I still don't get your point. Is the value that you circle  LRP or LR? I means that to have the number 1.5Mhz, I have change HR clock and loop time to get the expected value(1.5Mhz) you circle. Is it right?. And how to configure the value of 13? Thanks