Forum Discussion
Altera_Forum
Honored Contributor
7 years ago --- Quote Start --- I konw what you mean. e.g. if accum is 32 bits and word is 2^30 and clock is 50MHz then: f = 50 * 2^30/2^32 = 50/4 Mhz.I can get 12.5Mhz frequency pwm,this is surely. But if I want to get stable frequency of 12.4Mhz,or 12.6MHz,this way can not work. --- Quote End --- you will get any frequency. In many cases the exact pulse frequency wouldn't be as a clean clock but over a window of time it will be correct and for stepper motor it should be more than enough. example 50MHz * 2333456/2^32 = ? Anyway from 50MHz you cannot get exact frequencies except for cases like half/quarter etc unless you use variable analogue PLL