How to use Matlab generated PWM pulse in C2000 epwm block

10 vues (au cours des 30 derniers jours)
Pratyay Maity
Pratyay Maity le 14 Mai 2021
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

Réponses (1)

Shivam Lahoti
Shivam Lahoti le 10 Oct 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

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by