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.
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