Re: PLL frequency multiplier.



Joerg wrote:

But the real Frank Buss method would be to pipe that 400Hz into a uC and
run a timer in there. A software loop would keep adjusting the timer's
overflow register until the timer does exactly 96 rollovers per 400Hz
cycle. Then use that timer overflow signal to toggle a port pin which
will now deliver exactly 19.2kHz at 50% duty cycle. This method should
require the least in parts. Heck, the uC doesn't even need a stable
clock, it can run off its on-chip RC oscillator. Best case it'll be two
components, the uC itself and a 0.1uF bypass cap.

It depends on the accuracy requirements. If I use a cheap PIC with 4 MHz
internal clock, I would need some machine cycles (4 MHz PICs runs with one
million instructions per second) to toggle the pin. Would need considerably
work to balance the code paths for the same time and even then there would
be a jitter of about 2% (19.2 kHz / 1 MHz * 100), and worse when I need to
adjust it up/down by one. I assume the CD4046 is more accurate.

--
Frank Buss, fb@xxxxxxxxxxxxx
http://www.frank-buss.de, http://www.it4-systems.de
.



Relevant Pages

  • Re: PLL frequency multiplier.
    ... A software loop would keep adjusting the timer's overflow register until the timer does exactly 96 rollovers per 400Hz cycle. ...
    (sci.electronics.design)
  • Re: Need better is_better_time_interpolator() algorithm
    ... >> weighting algorithm for their properties to select the best timesource. ... > generic timer. ... I assume pretty much every arch has a cycle timer. ... priority value that the init code can tweak as needed. ...
    (Linux-Kernel)
  • Re: Non-reversing washing machine motor
    ... to drain and spin at the end of the rinse cycle. ... Don't know about Admiral but on Whirlpool, the motor only goes lin one ... timer may be the next step. ...
    (alt.home.repair)
  • Re: Kenmore electric dryer not shutting off
    ... at the end of the cycle, then just sits there with the drum motor ... still running until either I manually move the timer knob a little, ... Another failure mode is that it'll run, complete the cycle, ... ticking sound afterwards (presumably the little motor for the timer ...
    (alt.home.repair)
  • Washing Machine - Does This Sound Right? (Long)
    ... I recently purchased a Kenmore Model YPE111 top loading washing machine to replace a twenty year old Whirlpool washer which had given us faithful service for far longer than I could believe. ... Shortly after we started using our new machine we noticed that sometimes when the timer advanced to a point where a drain/spin cycle should start the machine "stalled". ... The motor did not run and an electrical hum could be heard for about a minute, until it stopped with a "click" which sounded to me like a thermal circuit breaker popping. ...
    (alt.home.repair)