From: Phil Hobbs on
On 2/13/2010 9:08 PM, Jim Thompson wrote:
> On Sat, 13 Feb 2010 20:36:35 -0500, Phil Hobbs
> <pcdhSpamMeSenseless(a)electrooptical.net> wrote:
>
>> On 2/13/2010 5:39 PM, Jim Thompson wrote:
>>> On Sat, 13 Feb 2010 14:16:57 -0800, John Larkin
>>> <jjlarkin(a)highNOTlandTHIStechnologyPART.com> wrote:
>>>
>>>> On Sat, 13 Feb 2010 12:53:07 -0800 (PST), whit3rd<whit3rd(a)gmail.com>
>>>> wrote:
>>>>
>>>>> On Feb 12, 2:44 pm, John Larkin
>>>>> <jjlar...(a)highNOTlandTHIStechnologyPART.com> wrote:
>>>>>> On Fri, 12 Feb 2010 14:14:04 -0800 (PST), Chris
>>>>>>
>>>>>> <christopher.man...(a)gmail.com> wrote:
>>>>>>> I need to make a PLL that slaves to a 24Hz square wave. The output of
>>>>>>> the loop would be a 60Hz square wave.
>>>>>
>>>>>> CD or HC 4046, with a slow loop. Divide 24 by 2 and divide 60 by five
>>>>>> and lock at 12 Hz.
>>>>>
>>>>> Right chip, but the best strategy is to lock a high frequency to a
>>>>> multiple
>>>>> of the 24 Hz, NOT to lock at 12 Hz. The loop filter works better at
>>>>> the highest frequency, and the noise pickup would improve if
>>>>> you went higher than that. Then, divide 240 by 4 to get the 60 Hz,
>>>>> and by five then by two to get the 24 Hz for the phase comparison.
>>>>>
>>>>> The 'divide by two' on each branch guarantees accurate 50% duty cycle,
>>>>> many
>>>>> counters have asymmetric outputs.
>>>>
>>>> The input only furnishes information 24 times a second (48 if you can
>>>> use both edges) so it doesn't much matter what the oscillator
>>>> frequency is. The VCO could be 60KHz and the loop dynamics wouldn't be
>>>> any better.
>>>>
>>>> Granted, 24 is twice as good as 12. So you could run the VCO at 120,
>>>> and then divide by 5 to get 24 for the pll, and also divide by 2 to
>>>> get the 60.
>>>>
>>>> The phase:frequency detector in the 4046 is edge sensitive, so duty
>>>> cycle doesn't matter if you use that one.
>>>>
>>>> John
>>>
>>> John's last paragraph is absolutely correct... Ron Treadway and I
>>> designed it to be that way :-P
>>>
>>> ...Jim Thompson
>>
>> So how come you put that stupid deadband in there? ;)
>>
>> Cheers
>>
>> Phil Hobbs
>
> That's a mismatched delay issue. Later versions have that "fixed" by
> overlapping the U/D outputs.
>
> ...Jim Thompson

Sort of hard to fix when the pulse goes completely away--with a given
slew rate, there's some range in which both the height and width of the
pulse depend on the phase error--which produces a flat spot in the
V(phi) curve. Or do the fixed versions pulse high, pulse low, and then
go tri-state at zero phase error? That would still give some ripple,
but that's a big improvement over deadbands.

Any part numbers with the fixed version? That caused me grief as a
youth, till I realized I could just use a resistor to ground to move the
set point a bit away from phi=0.

Thanks

Phil Hobbs

--
Dr Philip C D Hobbs
Principal
ElectroOptical Innovations
55 Orchard Rd
Briarcliff Manor NY 10510
845-480-2058
hobbs at electrooptical dot net
http://electrooptical.net
From: Robert Baer on
Jim Thompson wrote:
> On Sat, 13 Feb 2010 16:37:53 +0100, Fred Bartoli <" "> wrote:
>
>> Chris a �crit :
>>> On Feb 12, 3:21 pm, Fred Bartoli <" "> wrote:
>>>> Chris a �crit :
>>>>
>>>>> I need to make a PLL that slaves to a 24Hz square wave. The output of
>>>>> the loop would be a 60Hz square wave. Any CMOS level chips that would
>>>>> be good for this? I understand that I would need to divide by a
>>>>> decimal value of 2.5 for the loop.
>>>> PLLs a those low frequencies are real slow if you need some 'jitter
>>>> free' output.
>>>>
>>>> Square waves have only odd harmonics. You could square up your 24 Hz,
>>>> apply it to a narrow 120Hz BPF, then divide by two.
>>>>
>>>> --
>>>> Thanks,
>>>> Fred.
>>> The 24Hz is square. What would I use for a BP filter at such a LF
>>> without having a very large inductor?
>>>
>>> Chris
>> Make that an active filter. Only Rs and Cs, and at that low frequency,
>> any opamp will nicely do.
>
> Caution: At such low frequencies, capacitor dissipation can play a
> critical role in screwing up active filter performance.
>
> Clear back in the early '70's, while designing telephone filters I
> discovered you can negate dissipation factor by making your
> integrators such...
>
> http://analog-innovations.com/SED/StateVariableFilter(P+1).pdf
>
> Paste rather than just click, Agent doesn't like parentheses in a URL.
> I don't know about the behavior of other readers.
>
> ...Jim Thompson
SeaMonkey worked like a champ!
From: MooseFET on
On Feb 13, 12:31 pm, Chris <christopher.man...(a)gmail.com> wrote:
> On Feb 13, 10:14 am, MooseFET <kensm...(a)rahul.net> wrote:
>
>
>
> > On Feb 13, 8:20 am, Vladimir Vassilevsky <nos...(a)nowhere.com> wrote:
>
> > > MooseFET wrote:
> > > > On Feb 12, 3:01 pm, Vladimir Vassilevsky <nos...(a)nowhere.com> wrote:
>
> > > >>Chris wrote:
>
> > > >>>I need to make a PLL that slaves to a 24Hz square wave.  The output of
> > > >>>the loop would be a 60Hz square wave.  Any CMOS level chips that would
> > > >>>be good for this?  I understand that I would need to divide by a
> > > >>>decimal value of 2.5 for the loop.
>
> > > >>Use a PIC.
>
> > > > No, the 8051 is the right processor for this.
>
> > > Personally I despise PICs. However PIC became a generic word for any
> > > small microcontroller. Once a customer asked me if I work with PIC
> > > controllers made by AVR company.
>
> > The PIC isn't all that bad.  It is just a little weirder than it
> > needed
> > to be.  I think part of it is because they did'nt think through the
> > step
> > to the next larger size.
>
> > When they designed the assembler for it, they compounded the
> > weirdness.
> > Given what it can do, a assembler that took expressions like:
>
> >    A += Variable
> >    Variable += A
>
> > would have made it easier to read.
>
> > > Vladimir Vassilevsky
> > > DSP and Mixed Signal Design Consultanthttp://www.abvolt.com
>
> Well the reason I am straying away from the MCU idea is that I really
> want to just finish the project.  I am doing it in my spare time.  If
> I could program it in about the same amount of time it would take me
> to put together the aforementioned list of parts, then I am all ears.
> However, never having messed around with programing a chip before, I
> am thinking this could take another couple of dozen hours to
> accomplish the task (factoring in a learning curve).
>
> However, if you guys think that the signal from my design would be too
> jittery to be useful than I guess I don't have a choice, but to take
> the MCU route.

Since you only need to work over a very narrow range, you can use a
crystal
in the VCO part of the PLL. If you hunt among the frequencies you can
get
from digikey, I think you will easily find one that you can pull onto
a
power of two times 60Hz. A very simple flip-flop based phase detector
can
get a low jitter correction signal. A slightly more complex on based
on some
tristating can get you even lower.

Enable the circuit output just before the "expected" rise of the 24Hz
Follow the 24Hz input until after the "expected" rise.

The "expected" value is a small number of clock cycles of the crystal.
This can either be picked by the designer or learned by the circuit
by decrementing the width until it just brackets the rise or
incrementing
if the rise goes outside the expected band.

This method has the noise rejection characteristics of the XOR method
for the case where there is a small noise in the input. It doesn't
have
a gain change as you go through the perfectly aligned case. This
means
that you can use a more extreme filter than the flip-flop case
normally
allows.




>
> Thanks,
> Chris

From: Jim Thompson on
On Sat, 13 Feb 2010 22:14:15 -0500, Phil Hobbs
<pcdhSpamMeSenseless(a)electrooptical.net> wrote:

>On 2/13/2010 9:08 PM, Jim Thompson wrote:
>> On Sat, 13 Feb 2010 20:36:35 -0500, Phil Hobbs
>> <pcdhSpamMeSenseless(a)electrooptical.net> wrote:
>>
>>> On 2/13/2010 5:39 PM, Jim Thompson wrote:
>>>> On Sat, 13 Feb 2010 14:16:57 -0800, John Larkin
>>>> <jjlarkin(a)highNOTlandTHIStechnologyPART.com> wrote:
[snip]
>>>>
>>>> John's last paragraph is absolutely correct... Ron Treadway and I
>>>> designed it to be that way :-P
>>>>
>>>> ...Jim Thompson
>>>
>>> So how come you put that stupid deadband in there? ;)
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>
>> That's a mismatched delay issue. Later versions have that "fixed" by
>> overlapping the U/D outputs.
>>
>> ...Jim Thompson
>
>Sort of hard to fix when the pulse goes completely away--with a given
>slew rate, there's some range in which both the height and width of the
>pulse depend on the phase error--which produces a flat spot in the
>V(phi) curve. Or do the fixed versions pulse high, pulse low, and then
>go tri-state at zero phase error? That would still give some ripple,
>but that's a big improvement over deadbands.

The "fixed" version output current pulses of a minimum width.

>
>Any part numbers with the fixed version? That caused me grief as a
>youth, till I realized I could just use a resistor to ground to move the
>set point a bit away from phi=0.

AFAIK only in custom ASIC's.

>
>Thanks
>
>Phil Hobbs

...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
From: Ban on

"Phil Hobbs" <pcdhSpamMeSenseless(a)electrooptical.net> schrieb im Newsbeitrag
news:4B776A87.7030603(a)electrooptical.net...
> On 2/13/2010 9:08 PM, Jim Thompson wrote:
>>>>>
>>>>> The phase:frequency detector in the 4046 is edge sensitive, so duty
>>>>> cycle doesn't matter if you use that one.
>>>>>
>>>>> John
>>>>
>>>> John's last paragraph is absolutely correct... Ron Treadway and I
>>>> designed it to be that way :-P
>>>>
>>>> ...Jim Thompson
>>>
>>> So how come you put that stupid deadband in there? ;)
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>
>> That's a mismatched delay issue. Later versions have that "fixed" by
>> overlapping the U/D outputs.
>>
>> ...Jim Thompson
>
> Sort of hard to fix when the pulse goes completely away--with a given slew
> rate, there's some range in which both the height and width of the pulse
> depend on the phase error--which produces a flat spot in the V(phi) curve.
> Or do the fixed versions pulse high, pulse low, and then go tri-state at
> zero phase error? That would still give some ripple, but that's a big
> improvement over deadbands.
>
> Any part numbers with the fixed version? That caused me grief as a youth,
> till I realized I could just use a resistor to ground to move the set
> point a bit away from phi=0.
>

I use the Philips HC7046A which has real current sources and no deadband.
ciao Ban