In cases where the microcontroller is short one DAC, this improved PWM implementation via an output port can provide the needed function with high performance.