Tool/software: CCS
Dear TI members,
I have tested one sample program Example_2833xSci_Echoback.c, and that works fine. It takes 'Texas' from my Python code and DSP receives that string and sends back a new string 'Instrument'. The program works fine. So no issue with the connection Between USB to UART.
To follow this program, I made changes and this time I am sending an integer value saying '1500' instead of 'Texas'. from Python code. Please see the Python code lines below:
Now I want to receive this value serially in my code of EPWM as TPWM value. It will set the TBPRD value for setting the PWM signal frequencies in the Setup_ePWM1 & Setup_ePWM2 functions. I have made changes in the code for the serial port to receive this value of 1500 by following the tested example of Example_2833xSci_Echoback.c.
The purpose is to receive the values (from Python code though TransmitBytes) in DSP via serial and then make it equal to TPWM(TBPRD) for setting the ePWMs frequencies but it is not working. Please check the code lines for serially receiving values.
Code:
Please suggest to resolve this issue:
Regards
Arsalan