Execute subsystems with phase shift, without impacting code generation
显示 更早的评论
Hello,
I am about to design multi-phase controller for the DC-DC converter.
Idea is to have multiple phases, let's say 4 of them, in this example.
There would be an overall model (controller_overall) which would contain 4 subsystems, one per phase. Code generation should be done over the top model (controller_overall).

These subsystems (ctrl_phaseN, N=0..3) should run on the rising edge of the corresponding phase. Phases would be phase shifted for a quarter of the whole period, comparing to each other. Frequency of all phases is equal.

Problem description
Problem comes between having model with shifted phases and code generation. I've tried to add pulse generators and make ctrl_phaseN subsys as "Triggered subsystem". Phase offset is added to the pulse generators, and each of them connected to the corresponding ctrl_phaseN subsystem. But, when I generate code, there is code from "Triggered subsystem" part, which I want to avoid. These phase controllers would be integrated on the microcontroller interrupt service routine, which will call the subsystem in appropriate timing without any need for intervention of the subsystem itself, in terms of timings.
Is there a way to provide this "phase shifted" execution of those controller subsystems, and avoid having additional source code after code generation?
Generated code:

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Texas Instruments C2000 Processors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





