1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Microchip (PWM) - difference between duty cycle and frequency

  1. Aug 3, 2006 #1
    Hey guys.

    Just trying to program a microchip.

    Trying to grasp the concept of PWM.

    I know that varying the duty cycle will vary the speed of my motors...but there are other registers that allow you to set the frequency of the PWM peripheral...NOw i'm getting confused...isn't the duty cycle the frequency because essentially you're adjusting the time that the wave is on or off...?? hence your adjusting the frequency...?

    Thanks
     
  2. jcsd
  3. Aug 3, 2006 #2

    berkeman

    User Avatar

    Staff: Mentor

    PWM can be done at either a fixed frequency (where you vary the on time and off time both to maintain the same total time for each cycle), or with variable frequency (like with a fixed off time and variable on time).
     
  4. Aug 3, 2006 #3
    Duty cycle is the pulse duration divided by the pulse period. Frequency equals the reciprocal of the period.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?