[Runtimemicro] has the answer, at least if you are writing PWM code for the Arduino. Their free application ... You also have to specify the frequency in Hz or the period in milliseconds.