How to use Matlab generated PWM pulse in C2000 epwm block
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
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
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!