Electrical – How to use TMS570 microcontroller UART to communicate to another device

communicationdigital-communicationsmicrocontrolleruart

I am trying to use a TMS570 to communicate to another device through UART. (The pin diagram is here:
http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=SPNU611)

I tried following the following tutorial for how to use the SCI/UART on the microcontroller, but I realized that it only contains instructions for how to communicate between the PC and the microcontroller, not for how to communicate to another device using UART.

I posed this question on the TI E2E forum, and got the following advice:

The TMS570LS1224 has two UARTs, one is a LIN/SCI2 combination and the other is just a plain SCI. In the Launchpad schematic on sheet 12, section A1, you can see that the LIN pins are connected to U7. U7 is the chip that creates the XDS110. The XDS110 is not only a JTAG controller, but also acts as a USB to Serial port for your PC. In the example code from the tutorial SCI2 was writing to the PC and receiving from the PC. The LIN pins are already used on the Launchpad.

If you want to connect two launchpads together by a UART, I suggest you use the plain SCI, pins J2-3 and J2-4.

However, I am not sure how to configure HalCoGen to set up the pins in this way, and what methods to use in Code Composer Studio to communicate through them. Would anyone have any advice?

Thanks!

TMS570 data sheet: http://processors.wiki.ti.com/images/c/c1/LAUNCHXL2_TMS57012_RM46_REVA.pdf

Best Answer

However, I am not sure how to configure HalCoGen to set up the pins in this way, and what methods to use in Code Composer Studio to communicate through them. Would anyone have any advice?

typically:

1) start reading the user manuals of HalCoGen and CCS, get yourself familiar with the tools / environments;

2) look at sample code, vs. the datasheet;

3) start coding and debug it on your hardware.

the same approach you take on pretty much any (mcu) devices.