Converting PWM to bipolar square wave

inverterpwmsignalwaveform

Is it possible to make bi-polar square signal from PWM signal?

Im talking about 40 kHz frequency and 0.5v /-0.5v peak to peak signal.

The PWM dose is %50. And the PWM frequency is 40 kHz too. The PWM is generated with an Atmel MCU with no extra parts. The MCU digital pins are rated at 5V.

Best Answer

All you need is a capacitor to block DC and a resistor divider to attenuate the signal:

This example will have a output impedance of about 3 kΩ.