11 years, 2 months ago.

PWM Programming

Hi all,

I'm new to mbed and LOVING it!

I have a n00b question about PWM. (I've done a fair bit of embedded goding back in the day, but never worked with PWM.) When setting up a PWM output, does the period set include the pulse width or not? So to put it a different way is the actual period seen on the PWM pin period + pulse width or is it just period?

Thanks in advance for helping out a n00b!

1 Answer

11 years, 2 months ago.

Hello and welcome on board!
When setting up the period of the PWM, it defaults to pulsewidth 0.
Refer to this, it helps a lot: Handbook - PwmOut
Enjoy your stay!

Lerche

Thanks for the information. I had read the handbook page before posting here. I re-read it and still could not find an answer to my question. Maybe it's there and I'm just too dumb to find it ;-)

posted by Tim Borland 13 Feb 2013