pwm rate increased for better spurious response, restricts operation up to 30MHz (see N_ITER)
added pause interval for 0 frequency