i'm working in epwm module,using the example(epwm_ex2_updown_aq.c)here i need 50% duty cycle as output and output frequency of 10KHz.how can i configure epwm.
Thanks in advance.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
i'm working in epwm module,using the example(epwm_ex2_updown_aq.c)here i need 50% duty cycle as output and output frequency of 10KHz.how can i configure epwm.
Thanks in advance.
Hello Prince,
For static duty cycle, ePWM example 2 is not a particularly great starting point, as it dynamically changes the CMPx values over time. A great foundational resource for the ePWM would be the training.ti.com ePWM for C2000 MCUs video series, which- if you don't have time for the full series- also links to the C2000 Academy training for ePWM (section 5: Control Peripherals, ePWM subsection) and several other pieces of training and beginner documentation.
Again, I highly recommend going through this training material for the ePWM- it's a relatively complicated concept, and these materials make for a fantastic way to get familiar. That said, if we're starting from a blank project, the C2000 ePWM Developer's Guide gives a direct tutorial on setting the frequency and duty cycle in sections 3.1 and 4.1, respectively.
Regards,
Jason Osbron
Hello Jason,
kindly guide me through this,which epwm module example will be suitable for the start for the examine of duty cycle.
thank you.
Hello,
ePWM example 11 should be helpful as a starting point.
Regards,
Jason Osborn