How to write to register for TI DSPs?

2 views (last 30 days)
Mike Buba
Mike Buba on 24 Nov 2022
Edited: Mike Buba on 2 Dec 2022
I would like to change (i.e., overwrite) the register values (the whole register or single bit) during the code execution. For example, change F28379D ePWM ramp direction or shift the ramp.
How can I write to register in Simulink? I have tried using a Memory Copy block, but I couldn't make it work.
For example, if I want to change the switching frequency: EPwm2Regs.TBPRD or any other register or bit.

Answers (0)


Find more on DSP System Toolbox Supported Hardware in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by