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.
Tool/software: Code Composer Studio
I am attempting to build a transceiver on the F28335 DSP using Simulink and CCS. The basis for the transmitter is a PWM modulator circuit using the ePWM block from the C2000 support package. The receiver demodulation circuit relies on the eCAP block in rising edge capture format. When using two F28335 DSPs with one setup as a transmitter and the other as a receiver the circuits function successfully and the output is what is required. However as soon as the ePWM and eCAP blocks are used on the same model in attempt to make a transceiver the outputs give erroneous data readings. Have attached Simulink models for the transmitter and receiver. What could be the issue with having the eCAP and ePWM blocks used in the same model ?
Jack,
I have forwarded this to Simulink expert.
From a C2000 perspective, there could be many causes.
Regards,
Cody
Hi,
What is the step time of the model? Could it be that when both model are combined the step time is not enough to handle the execution overhead resulting in overrun condition? Please let us know if you can attach the model for quick reference.
ReceiverF - Copy.zipHi Venkatesh,
The solver is in FixedStepDiscrete mode with step size auto(2.5 e-05). Have attached the model for reference. I did run a code profiler that says there shouldn't be an overrun issue but perhaps you can find something.
Thank you.
Sometimes the data reads correctly depending on what 3x 8bit numbers are being sent from transmitter to receiver. For example when sending 6,20,33 the data outputs correctly as seen in the first attached image.
However certain numbers/data cause the outputs to read wrong for example 7,20,33 where the output reads 7,148,33 (seen in second image). Interestingly this wrong output is the expected 20 plus 128 , so perhaps the MSB is being misread ?
Thanks
Hi Jack,
Thank you for updating us with the model. Please bear with me while we continue to investigate the problem.
We will keep you posted very soon.
Hi Jack,
We need to understand your implementation in detail to debug further.
Please let us know if you can reach us via our tech support channel so that we can arrange a WebEx for further discussion.