--- Quote Start ---
you are right.
"from 50MHz you cannot get exact frequencies except for cases like half/quarter etc."
I have try s lot,but fail.I cannot get exact frequencies except for cases like half/quarter.
I will try your suggestion,hope this is average frequency really enough for stepper motor.
--- Quote End ---
No doubt you failed, despite how smart you could be. As Kaz pointed out, it is impossible to generate other than half, third, quarter... frequency, unless you accept an 'average' frequency, like in the adder solution we both presented.
That's because frequency is the inverse of period and the pwm period must necessarily be a multiple of your system clock.
In any case, for motor control a frequency in the 20-100kHz range is what is usually needed, so I don't see any problem in the frequency discretization you have in the MHz range