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.

Common timer interrupt?

Other Parts Discussed in Thread: TMS320F28335

In the TMS320F28335 DSP there is an interrupt associated with each ePWM module, how is it possible to have a single timer interrupt routine?

 

  • I don't understand your question, please elaborate.

    Are you trying to have all your ePWM modules run the same interrupt routine? 

  • I need to generate 3 pwm signals synchronized to the same frequency but with 3 different specified duty ratios. I want to load the "compare" registers for the three signals in  a timer interrupt routine (active high mode). How do I go about it? 

  • Hello Sanjay,

    I would recommend taking a look at the Enhanced Pulse Width Modulator (ePWM) Module User's Guide for your specific device.  This can be found on your specific device's main page.

    From your description, I would recommend synchronizing each of the PWM timers together using the PWM peripherals PHSEN and SYNCOSEL bits.  Then I would allow any of these PWM outputs to generate an interrupt whenever the PWM timer reaches a specific counter value (ie when the counter is equal to zero). 

    In this way each of the PWMs will be synchronized and an interrupt will be generated every PWM period.


    Thank you,
    Brett