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.

TMS320F28035: Applications PWM/ADC Triggering Questions..

Part Number: TMS320F28035
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi Team C2000,

My customer has the following questions..

The application is fairly straightforward, it’s two phase staggered buck converters.  They are operating 180° out of phase.  Each one has its own analog control loop that feeds an error signal into the DSP on different ADC inputs.  The error signals are converted and used to set the PWM values.  The control scheme is to run two PWM’s in sync with 180° phase shift.

 We are not using high resolution PWM.  Each PWM uses the compare B to initiate the correct channel ADC conversion.  The end of conversion triggers an interrupt that does some scaling math on the error signal and loads it into the appropriate PWM compare register for the next PWM cycle.

The questions are around how best to set up the PWM’s and the ADC interrupts.

Can the same ADC interrupt be triggered from multiple different ADC conversions? 

I have PWM1 and PWM2 set up in sync with 180° phase shift.  PWM1 uses one ADC input.  PWM2 uses a different ADC input.  Can the EOC of each be used to trigger the same ADC interrupt? 

Would it be better to have two separate ADC interrupts each one triggered by the EOC of the appropriate ADC channel?

Thanks, Merril

  • Hello Merril,

    Yes you can use two pwm's to trigger same interrupt assuming the logic in the ISR is common/same irrespective of the pwm triggering it.
    Just specify the ISR handler the pwm should trigger as same for both(by default it has different names as shown below), you could use sysconfig to set it up


    Thanks,
    Prarthan