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.

CCS/TMS320F28379D: arduino and ti

Part Number: TMS320F28379D
Other Parts Discussed in Thread: LAUNCHXL-F28379D, C2000WARE

Tool/software: Code Composer Studio

good morning everybody,,

i have a problem with a code composer launchpad code, im looking for a simple code to trasmit a "hello world" to an arduino.

i have seen some echoback example to print these words on the code composer monitor but i need to sent it to an arduino ...

somebody can help me, I'm really denied.

Thanks for your help

  • Francesca,

    I beleive that the code that is shipped with the LAUNCHXL-F28379D provides an echoback to the host PC terminal.  I think this would be a good example to start with as it uses external pins to communicate with the PC.  http://dev.ti.com/tirex/explore/node?node=AARYE38wsahzjcOHV45CTg__gYkahfz__LATEST

    At any rate, notice in the code that this is using the SCI(UART) module of the F28379D to transmit data to the Host PC across the comms channel.  You'd open up hyperterm or other local GUI to view the output/input assuming the LP is connected via USB to your host PC.

    For a connection to Arduino you would decide on what communication protocol you want to use, likely it has UART pins as well.  In that case you would then wire the Rx/Tx/Clk from the LP header to the appropriate pins on Arduino.  Assuming that is typical CMOS 3.3V pins you'd just need to align the baud rates, etc between the two.  The final step would be to change the GPIOMux to bring the SCI to the pins desired from the F28379D device that you picked on the LP header.

    There are 2 SCIs on this device, so you could keep the existing connected to the PC to have a display of what is going on from the comms with the Arduino if desired.

    Note there is no restriction on using UART, if the other device supported SPI you could choose to use that as well; there should be a SPI example to get you started.

    Best,
    Matthew

  • Thanks for the fast answer,

    I can trasmit the characters to the pc serial monitor using the pins 43 an 44. Instead if i try to change my pins to sent the same characters to an arduino it doesen't work.

    My arduino has been programmed to echoback all and i have seen that it works well using others arduini at 9600..

    The problem i think is in my new pin settings...

    I need a simple code to sent a "hello world" with 2 pins different from 42 43 but i can not make it...

    Thank for your help

  • good evening,

    thanks for your help, i have to chosen the uart protocol... i   tryng all but i dont trasmit nothing to arduino uno.

    there are some example like hello world with scib b or scic?

  • Francesca,

    I would recommend starting with the echoback example in C2000Ware http://dev.ti.com/tirex/explore/node?node=AE4sad41OqfKnRpKXhfOVA__gYkahfz__LATEST

    Once you inport this project in the CCS, go into the sci_ex3_echoback.c to lines 110 and then 119.  You'll see this is where GPIO28/29 are getting set up as SCIA pins.

    From the F28379D datasheet you can determine which pins can be used for SCIB/C respectively and replace the pin numbers as needed.

    Then, the remainder of the driver should be a matter of replacing "SCIA" with either SCIB or SCIC depending.

    Best,

    Matthew

  • In my case I can use the 2 pin 28-29 with scia. my only limit are to dont use the pins 42 43. Because i need use those for usb connection. The problem is that also this example doesnt work the pins 28-29 doesnt write or read nothing:(

    I have try to transmit caracters to the ti pins with an arduino or reading from those pins but they doesnt work :(

    Do you have try, this example code work in yours ti?

    Thanks for your help :)

  • Francesca,

    You'll need to pick a different SCI(either B or C) for your new channel if you want to keep the existing connection with the USB on 42/43.    No more than 1 GPIO mux selection can be used for a specific module to avoid contention.  I believe that the internal HW will prevent this as well.

    You should be able to C/P the setup to get another SCI module online.  Since you are using the example code, I think it enables all the clocks for every module; but I would check this as well.

    Best,
    Matthew

  • is there any example code with scia a and scib configurated? 
    I'm giving up, its too difficult compared with arduino:(

  • Francesca,

    I understand your posistion here, we do have a GUI tool to help configure the IO mux per your needs, http://www.ti.com/tool/PINMUXTOOL  however, we don't have a complete example using SCI B (or SCI C) with our device.  Our typical approach is to provide a generic example, that can be used as a starting point for modification. 

    While there are likely too many combinations between module/IO pins to have a discrete example for each case, we may need to consider what we could do automatically.  I'll pass this information to our development team.

    Best,
    Matthew