Problem with PWM controll !

Well you don't need to set a pin as output if you are going to use it as PWM.
I don't see how turning the on board LED off shows you it is running.