Generate square waves

06 Jul 2012

does anyone know any library to generate square waves?

TNK

06 Jul 2012

The standard lib for pulsewidth modulated signals can produce square waves

http://mbed.org/handbook/PwmOut

09 Jul 2012

Thanks for the reply

14 Feb 2014

How does it make square wave. ?

14 Feb 2014

Andrew Pavlík wrote:

How does it make square wave. ?

By using an internal counter, to count pulses until a specific amount is met, setting or resetting the PWM output.

14 Feb 2014

Hi Chris, I just made a square wave with period 5us and 50% duty cycle. Just need a bit of your help. I will post it in forum under mbed.

14 Feb 2014

Andrew Pavlík wrote:

Hi Chris, I just made a square wave with period 5us and 50% duty cycle. Just need a bit of your help. I will post it in forum under mbed.

Great! I am writing a small program as we write.

14 Feb 2014

Ok. :)