How to use Matlab generated PWM pulse in C2000 epwm block

8 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Shivam Lahoti
Shivam Lahoti il 10 Ott 2024
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

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by