Combine signals of ePWM blocks to get other PWM signals

1 回表示 (過去 30 日間)
Mohammed Alharbi
Mohammed Alharbi 2020 年 11 月 24 日
コメント済み: zz 2022 年 3 月 16 日
Hi,
I am using the Embedded Coder Support Package for Texas Instruments to control a F28377D controller.
I want to generate PWM signals using ePWM blocks. I know how to generate the signals from the ePWM block, but what I need is using the PWM output signals from the different ePWM blocks and combine them to obtain other PWM outputs. For example, the output of 1st ePWM block say is signal 1 (ePWM1A) and the output from the second is signal 2 (ePWM2A). I want to generate say signal ePWM3 which is (signal 1 XOR signal 2 =ePWM3A), and (signal 1 NXOR signal 2 =ePWM3B).
I used a MATLAB code in SIMULINK file to make the selection based on a duty cycle. Please run the attached “Openloop” module and you would know exactly what I want to obtain. I am just confused about what block I need to use to get the output of the ePWM1A & ePWM2A signals and use them as the input signals for the function block?
also would I need to change the stracture of the code in the function block to be applicable with TI code?
Thanks
  1 件のコメント
zz
zz 2022 年 3 月 16 日
Hi Alharbi
Have you solve this problem?

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by