Part Number: TMS320F28379D
Tool/software: Code Composer Studio
Dear TI Hello,
I am working on a serial communication between my computer and the C2000 launchPad XL,
I am using the TI example usb_dev_serial_cpu0, I am connecting my serial communication device the GPIO18/19(SCITXDB/SCIRXDB) using 4 wires(TX,RX,GND,5V),
In the original code provided by TI, SCIA is used, In my application i want to use the SCIB,
I changed the code to be able to use the UARTB, but still can't communicate with my host application,
#define USB_UART_BASE UARTB_BASE //UARTA_BASE
#define USB_UART_PERIPH SYSCTL_PERIPH_SCI2 //SYSCTL_PERIPH_SCI1
#define USB_UART_INT INT_SCIRXINTB //INT_SCIRXINTA
GpioCtrlRegs.GPAMUX2.bit.GPIO18 = 2; //SCITXDB
GpioCtrlRegs.GPAPUD.bit.GPIO18 = 0;
GpioCtrlRegs.GPAQSEL2.bit.GPIO18 = 3;
GpioCtrlRegs.GPADIR.bit.GPIO18 = 1;
GpioCtrlRegs.GPAMUX2.bit.GPIO19 = 2; //SCIRXDB
GpioCtrlRegs.GPAPUD.bit.GPIO19 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO19 = 0;
Thank you in advance,
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Ken Schachter:
Thank you for taking into consideration my question,
The group is set by default to 0, It is not necessary, the default configuraiton should work since the GPAGMUX should be reset for SCI(TX/RX)DB
GpioCtrlRegs.GPAGMUX2.bit.GPIO18 = 0; GpioCtrlRegs.GPAGMUX2.bit.GPIO19 = 0;
The same thing for GPIO19,
I also tried an other GPIO10/11, bellow the code i used ,
GpioCtrlRegs.GPAGMUX1.bit.GPIO10 = 1;
GpioCtrlRegs.GPAMUX1.bit.GPIO10 = 6; // 2 have been tasted also
GpioCtrlRegs.GPAPUD.bit.GPIO10 = 0;
GpioCtrlRegs.GPAQSEL1.bit.GPIO10 = 3;
GpioCtrlRegs.GPADIR.bit.GPIO10 = 1;
GpioCtrlRegs.GPAGMUX1.bit.GPIO11 = 1;
GpioCtrlRegs.GPAGMUX1.bit.GPIO11 = 6; // I tried 2 also
GpioCtrlRegs.GPAMUX1.bit.GPIO11 = 2; //SCIRXDB
GpioCtrlRegs.GPAPUD.bit.GPIO11 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO11 = 0;
I still can't receive and send any character,
In reply to usrhomeinit:
I thank you for your interest, I didn't forget your post, I was occupied with work issues,
I couldn't resolve my issue (usb_serial project) , I tried the TI example for serial communication interface, and I could connect my application.
The only issue i had is the corrupted data transfer, in your opinion, what is the reason for the corruption data transfer please?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.