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.

PWMDAC for 'F28M35x series

Other Parts Discussed in Thread: CONTROLSUITE

I need three PWM DAC's in a project that uses the 'F28M35x series.  I find no driver or example code to refer to to try to accomplish this.  Can I use the driver code of another part series such as the 'F2803x series to control the PWM DACs on the 'F28M35x series?  If not, is there driver or example code available?

Thanks,

Mitch

  • Mitch,

    Unfortunately, I don't believe we have a HRPWM DAC specifically for the F28M35x device.

    However, the F2803x PWMDAC code could be used on the F28M35x with very little modifications.  The PWM modules are very similar and the only major difference might be the clock frequency.  (note that this change won't matter too much) 

    Instead of the bmsk header file needed by the F2803x driver file, I'd use the EPwm_defines and other _defines file found in the F28M35x device_support and massage (or modify these files to make a new bmsk file; ...six of one, half-a-dozen of the other...):
    \controlSUITE\device_support\f28m35x\v201\F28M35x_common\include

    The idea of the driver is to use a HRPWM at a high frequency.  The high-resolution duty-cycle is then modified to get different 'voltages'.  An external low-pass RC filter is then used to turn it into an actual analog output.

    Hopefully this helps.


    Thank you,
    Brett