How to set 19.5Hz PWM frequency?

psyche:
I am trying to control some solenoids and the pwm frequency has to be 19.5Hz!!!

That is sloooow. You can use as dumb an algorithm to control that as you want. It barely needs more than the Blink example, as long as you are not careless calculating the transition times.