Need clarification on the parameters of analogWrite(pin,value)

It sounds like you could benefit from reading this:
http://playground.arduino.cc/Code/Timer1