I have the F28027 Launchpad and am trying to vary the duty cycle of pulse width modulation, and run it through a low pass filter to achieve a desired signal to be played on a speaker, but am running into trouble. The technique is described in this article: http://www.ti.com/lit/an/spraa88a/spraa88a.pdf but the sample program is not compatible with my device. When using HRPWM it is recommended to use an up-down counter. But I'm not understanding when to change the CMPA value to set the duty cycle. My current code is located here: https://github.com/VoiceOvers/VoiceModule/blob/master/VoiceModule.c Can anyone help? I was able to get a triangle wave by just running the Example_F2802xEPwmUpDownAQ from ControlSUITE. But I need to be able to any waveform.