If you use the PWM library, you can determine both the frequence and resolution
http://arduino.cc/forum/index.php/topic,117425.0.html