How to use Matlab generated PWM pulse in C2000 epwm block

조회 수: 10 (최근 30일)
Pratyay Maity
Pratyay Maity 2021년 5월 14일
답변: Shivam Lahoti 2024년 10월 10일
Dear Team,
i have generated Pwm pulse in matlab using some logic to run my plant . How can i apply same PWm pulse in F28069M microcontroller using ePWM block.
Please share if there any example where matlab PWM pulse interface with ePWM block.
Thanks,
Pratyay

답변 (1개)

Shivam Lahoti
Shivam Lahoti 2024년 10월 10일
Hi Pratyay,
I understand you want to use a MATLAB-generated PWM pulse in the C2000 ePWM block.
You can use the MATLAB-generated PWM pulse in the F28069M microcontroller using the ePWM block. However, passing the PWM logic directly to the ePWM might not be the right way to implement the model. This is because the input to the ePWM block is variable in nature. Instead of passing the variable input, you need to configure the ePWM compare registers and set the actions accordingly when the counter is equal to various values such as "CMPA", "CMPB", "CMPC", "CMPD" and when it reaches zero or period values.
Following the aforementioned approach should help you achieve your target.
Regards,
Shivam

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by