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?