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/LAUNCHXL-F28379D: SCI-B communication with PC

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

Tool/software: Code Composer Studio

Hi 

I'm working on SCI communication between controller and PC. I'm working on example available in \C2000Ware_1_00_05_00_Software\driverlib\f2837xd\examples\cpu1\sci\sci_ex3_echoback

I have 2 questions to ask, please tell where I'm going wrong

1. I want to send data from SCI-B pins available on LaunchPAD. I'm using BF-810 USB to serial adapter to interface controller with PC. I have made changes in code to use SCI-B communication(GPIO18 &19). I'm using serial terminal available in code composer studio. When I run the code some weird characters are being shown in serial terminal. 

But I have also tried using GPIO42 & 43 , here I'm getting expected output . But if I change pins to GPIO18 & 19 with USB to serial adapter, I'm not getting expected output.

2. How is the length of a character array is decided in the following code below

msg = "\r\n\n\nHello World!\0";
SCI_writeCharArray(SCIA_BASE, (uint16_t*)msg, 17);     // How length of character is 17?
msg = "\r\nYou will enter a character, and the DSP will echo it back!\n\0";
SCI_writeCharArray(SCIA_BASE, (uint16_t*)msg, 62);    // How length of character is 62?

  • Sangamesh,

    If I understand you correctly, when referring to GPIO42 & 43 you are connecting directly to the LaunchPad USB connector (an not your adapter). In this configuration the communication is using the FTDI device and the isolators. If connecting to the GPIO18 & 19 you will need a transceiver. This is noted in the comments at the top of the file.

    For your question about the Driverlib function, please see the F2837xD Peripheral Driver Library User's Guide:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2837xd\docs\F2837xD_DriverLib_Users_Guide.pdf

    On page 476 you will find the details for the SCI_writeCharArray() function.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken