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.

C6747 - Changing mark/space ratio on the PWM

Hi

What is the fastest way to program/update the mark/space ratio of the PWM. Should it be done via ISR/IST or can the eDMA3 controller be used.

Thanks for your help R

  • Hi,

    To my knowledge, PWM duty cycle outputs would be limited by the controller or the driver.

    So, PWM duty ratio would vary according to the limitations held by the controller.

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    ------------------------------------------------------------------------------------------------

  • Just to clarify, are you saying the most efficient way is to change the duty cycle comparator register as needed, while servicing the ISR/IST?

    Do you know what the limitations are in terms of the maximium frequency of the PWM is and still be able to service the interrupts on a 1:1 bases? So, for example if I wished to change the duty cycle every period of the PWM.

    Thanks you
  • Hi,

    Yes, you could appropriately control the duty cycle variations througher control registers.

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    ------------------------------------------------------------------------------------------------