Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 6 months ago.
does PWM output can be used as AC valtage?
IS it possible to use pwm ouput as ac source
1 Answer
12 years, 6 months ago.
Connect a capacitor to your port, the other side of the capacitor goes to your load (for example a resistor connected to ground).
The capacitor blocks all dc current, what passes through is pure AC. To see something reasonable the frequency of the pwm must be high enough in relation to your capacitor C and load R.
f > 1/(2*pi*R*C)
BTW, I smell that you want to do something like this: http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/90305.aspx