How do I encode to a TMS320F28335 and see PWM signals live?

11 views (last 30 days)
I am running a PWM DC to DC converter using the TMS320F28335 digital signals processor on a TMDSPREX28335 mounting board. When I download the program, involving ADC PIDs and PWM blocks, the download will be successful but the transistors are stuck on or 100% duty cycle. If I switch the controller off and back on the circuit functions correctly but I am unable to view the values of the program with scopes because in the process of turning the controller off and back on the DSP loses communication with the DSP. The DSP is being powered and programmed through the USB.
  5 Comments
Ryan Donovan
Ryan Donovan on 1 Apr 2022
The program is being run in external and the version I’m using is 2018b. I haven’t tried Build and Monitor in Matlab though so I’ll see if I can do that thanks.
Ryan Donovan
Ryan Donovan on 1 Apr 2022
After some googling I am not sure what you mean by build and monitor. Do you have any links to learn about how to do that? Also I’ve been downloading to the DSP by simply pressing the green circle with the arrow in it in case that means anything.

Sign in to comment.

Answers (1)

Pemendra Kumar Pardhi
Pemendra Kumar Pardhi on 1 Apr 2022
Hello ryan,
As per your comment, you are able to run the model in external mode,then general the pwm signals As given below link
https://in.mathworks.com/matlabcentral/answers/862265-code-generation-for-tms320f28379d-using-matlab-with-repeating-sequence-and-relational-operators-bloc?s_tid=srchtitle
In given above link pls replace reapitative sequence With Repeating Sequence Interpolated
And at the end of logical operator connect scope On scope you can observe pwm signals
Thanks Pemendra Pardhi

Communities

More Answers in the  Power Electronics Control

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!