AttorneyDocket No. 10031355-1
CONTROLLING A VOLTAGE CONTROLLED OSCILLATOR IN A BANG- BANG PHASE LOCKED LOOP
FIELD OF THE INVENTION
[001]
The
inventionrelates to phase-lockedloops,and more
particularly, to controlling the voltage controlled oscillator in abang-bang
phase-lockedloop.BACKGROUND OF THE INVENTION
[002]
Clock and
data recovery(CDR)
circuitsarewidely usedwhen
a data signal is sent across acommunications
linkwithout anaccompanying
dedicated clock signal.CDR
circuitstypicallyuse a phase-locked loop(PLL)
todetermine,from
the transitionsbetween
physical data values, the exactfrequencyatwhich
data isarrivingand
theoptimum
phaseatwhich
tosample
theincoming
data'PLLs
typically include aVCO,
a frequencydetector,and
aphase
detector.The
phasedetectorisusedto determinetheoptimum
phaseatwhich
tosample
theincoming
data.Phase
detectors requirethatthe frequencyof
aVCO be veryclosetothefrequencyof
theincoming
signalbefore frequency and phase
lock can beachieved. For
example, the
frequencies
of
theVCO and incoming
signal should be within0.5% of each
other beforethephase
detectoris ableto"pull-in" theVCO
frequencytomatch
theincoming
signal.Frequency
detectors are designedtobring thefrequencyof
theVCO
towithinthepull-inrange, or
deadband
region, ofthephasedetector.Frequency
detectors relinquish controlof
theVCO
signalto thephase detectoronce
theVCO
frequency has
been
brought intothedeadband
region.[003]
PLLs
often use"bang-bang"
type phasedetectors.Bang-bang phase
detectors, also referredtoas "binary" or"up/down"
phase detectors,output an indicationof
thephase of
theincoming
signal relative totheVCO
signalusing anup
.AttorneyDocket No. 1003 1355-1
or
down (up/down)
signal.The up/down
signal hasno
informationon how
farthe phaseof
theVCO
signal differsfrom
theincoming
signal.The
pull-inrangeof
abang-bang phase
detectorisproportional to thesizeof
theimmediate change
inVCO
frequencythat results
from
anup
ordown
signal.The immediate change
inVCO
frequencythat results
from
anup/down
signal isgenerally referredto asthe"bang-bang
step size"orsimplythe "step size."PLLs
thatutilizebang-bang phase
detectors are often referredtoasbang-bang PLLs.
[004]
One problem
withPLLs,
includingbang-bang PLLs,
is frequencydetectorovershoot.
Frequency
detectorovershoot occurswhen
thefrequencydetector causestheVCO
frequencyto oscillatearound
thedeadband
region without beingable todrive theVCO
frequency intothedeadband
region. Thiscan happen
ifthedeadband
regionistoonarrow.Another common problem
withPLLs
ischargepump
leakage.
Charge pump
leakagecan make
thephasedetector'spull-inrange asymmetricaland can
preventthePLL from
lockingifthedeadband
region isapproached from
thewrong
side.A
narrowerdeadband
regioncanremedy
this problem, butthismay
leadtofrequencydetector overshoot.[005]
Although
currentbang-bang PLLs work
well, there is still aneed
forbang-bang PLLs
thatarelesssusceptibletoovershootand
chargepump
leakage.SUMMARY OF THE INVENTION
[006] In accordance withthe invention, thefrequency
changes
inabang-bang
PLL
thataregenerated using adigitalphasedetector'sup/down
signal areinitially set toproduce
afaster pull-in rateand
arethenreduced
toproduce
a smallerpull-in rate.The
faster pull-in involvesrelativelylarge frequency changes,which
allow forawider deadband
regionand
reduce the negative effectsof
chargepump
leakage.The
slowerpull-in rate involvessmallerfrequency
changes
thatenable finecontrolof
thePLL
in aregularoperatingstate.The
finecontrol allowsthePLL
toachieveprecise frequencyand phase
lock.[007]
The changes
infrequencyof
abang-bang PLL
canbe implemented
using a stepsize controllerthatincludestimingcontrol logicand
stepsize logic.The
function
of
thetimingcontrol logicistocontrol thetimingof
stepsize changes. InAttorneyDocket No.10031355-
1
particular, thetimingcontrol logic controls the transition
of
the step sizefrom an
initiallylarge stepsize toa
lower
stepsize.The
timingcontrol logic initiates achange
inthe step sizesome
timeafterfrequency lockisestablished.The
timing control logiccommunicates
timingcontrol informationtothe step sizelogic viaa timingcontrolsignal.The
step sizelogicreceives thetimingcontrol signalfrom
the timing control logicand may
receiveaprogramming
signalfrom
aprogramming
inputand/ora clocksignal
from
aclocksource.The
functionof
the step sizelogicis to setthe stepsizeof
thefrequencychanges
that aremade by
theVCO
in responseto thepd_up/down
signal that isdelivered directly totheVCO from
thedigitalphase
detector.
The
stepsize logicmay be
configured toprovide onlytwo
stepsizes, for example, a firststep sizethatisused
initiallyand
a second smallerstepsizethatistransitioned toafter
some
periodof
time. Alternatively, the step size logicmay be
configuredtoprovide multiple intermediate stepsizes thatprovideatransitionfrom
the largeststep size tothesmallest stepsize.BRIEF DESCRIPTION OF THE DRAWINGS
[008] Fig. 1 depicts
an embodiment of
abang-bang PLL
that includesastep size controller inaccordance withthe invention.[009] Fig. 2depicts
an example of
the logicinvolved in controlling the step sizeof
aVCO
inaccordance withthe invention.[0010] Fig. 3 depictsa
VCO and an embodiment of
the step size controller depicted inFig. 1.
[0011] Fig. 4depicts
exemplary waveforms
relatedtothe step sizecontrollerof
Fig. 3,
where
the step sizelogicprovides onlytwo
stepsizes.[0012] Fig. 5 depicts
exemplary waveforms
related tothe step size controllerof
Fig. 3,
where
the step sizelogicprovidesmultiple intermediate step sizes thatprovide atransitionfrom
the largeststepsize tothe smallest step size.[0013] Fig.
6A
depicts detailsof an embodiment of
thetimingcontrol logic depicted inFig. 3.[0014] Fig.
6B
depictswaveforms
foran exemplary
operationof
thetiming control logicthat isdepictedinFig.6A.
AttorneyDocket No. 10031355-1
[0015] Fig. 7
A
depictsdetailsof
anotherembodiment of
thetimingcontrol logic depicted inFig. 3.[0016] Fig.
7B
depictswaveforms
foranexemplary
operationof
thetiming control logicthatis depictedinFig. 7A.5 [0017] Fig. 8 depictsdetails
of
anembodiment of
the step sizelogicdepicted in Fig. 3.[0018] Fig. 9depictsdetails
of
anotherembodiment of
the step size logic depictedinFig. 35which
isconfiguredtoprovideintermediate stepsizes.[0019] Fig. 10 depictsdetails
of
anotherembodiment of
the step size logic 10 depictedin Fig.3,which
isconfiguredtoprovideintermediate step sizes.[0020] Fig. 1 1 depicts details
of
anotherembodiment of
the step size logic depicted inFig. 3,which
isconfiguredto allowtheprogramming
tobe changed
without causing a countertorollover.[0021] Fig. 12depicts
example waveforms
that illustrateschanges
ina counter 15 valueand
aprogramming
inputusingthe stepsize logicof
Fig. 11.[0022] Fig. 13 depicts
an embodiment of
aPLL
thatis configuredtoprovidetwo
different step sizes inaPLL
thatdoes not provideadirectinputtotheVCO from
thedigitalphase
detector.
[0023] Fig. 14 isa process flow
diagram of
amethod
forcontrollingaVCO
ina20 bang-bang PLL.
[0024]
Throughout
the description similar referencenumbers
areused
to identifysimilarelements.25 DETAILED DESCRIPTION
[0025]
The
taskof
aPLL
isto lockthe frequencyand phase of
aVCO
signal to aparticularsignal, referred to herein asadata inputsignal (datajn). InPLLs
withbang-bang phase
detection, thephase
detector adjusts thefrequencyof
theVCO
30
signalusing a simpleup/down
signal. Inaccordance withthe invention, thefrequency
changes produced
using anup/down
signal are initially settocause afaster pull-in rateand
thenreduced
tocause a slowerpull-inrate.The
slowerpull-in rate isthen maintained duringregular
PLL
operation.AttorneyDocket No. 10031355-1
[0026] Fig. 1 depicts
an embodiment of
abang-bang PLL
100that includesa voltagecontrolled oscillator(VCO)
102, adigitalphasedetector 104,a frequency detector 106, amultiplexer 108,a chargepump
110,a loop filter 112,and
astep size controller 114.The
digitalphase
detector 104 isconnectedtoreceivean
input signal 5 (data_in)from
a signal sourceand
a portionof
theVCO
signal(VCOin) from
theVCO. The
input signal carries the datathatistobe
recovered.As
partof
thePLL
operation, the digital
phase
detectorcompares
transitionsof
theinput signalwith transitionsof
theVCO
signaland
generatesan
output(referred to herein as the"pdup/down"
signal)that indicatesthephasedifferencebetween
the input signaland
10 theVCO
signal.The
digitalphase
detectorproduces an"up"
signalwhen
thephase
of
the input signal leads thephase of
theVCO
signaland
a"down"
signalwhen
thephase of
the input signal lags thephase of
theVCO
signal.The pd up/down
signal isprovidedtothecharge
pump
via themultiplexerand
directly totheVCO. An up
signal drives thefrequencyof
theVCO upward whileadown
signal drives the
15 frequency
of
theVCO
signaldownward,
therebyadvancing
or retarding, respectively, thephase of
theVCO
signal.The
digital phasedetector also outputs therecovered data (data out). This datais notcriticalto theinventionand
isnot described further.Inan alternative
embodiment,
thepd_up/down
signalisprovideddirectly totheVCO
afterthe
pd_up/down
signal passesthroughthemultiplexer 108.20
[0027]The
frequencydetector 106 isconnectedtoreceive a portionof
theVCO
signal
(VCOin) from
theVCO
102and
areferenceclocksignal (ref clk)from
a reference clock source(often external to the systemand
notshown
here).The
frequencydetectorusesthereferenceclocksignal todeterminewhether
ornottheVCO
signal shouldbe
controlledby
thefrequencydetector.The
frequencydetector 25 controls theVCO whenthefrequency of
theVCO
signal isoutsideapre-established
deadband
regionthat iscenteredatthe setpointfrequencyof
theVCO. The
frequency detectorgenerates acontrol signal (referredtoherein asthe"fd_en" signal) that indicateswhether
theVCO
istobe
controlledby
thefrequencydetector or thedigitalphase
detector 104 (thatis,whether
controlof
theVCO by
thefrequency detectoris30
enabled or disabled).When
thefrequencydetectordoes notcontroltheVCO because
thefrequencyof
theVCO
iswithinthedeadband
region, thePLL 100
issaid tobe
"in frequencylock."When
thefrequencydetectordoes controltheVCO becausethe
frequency
of
theVCO
isoutside thedeadband
region, thePLL
issaid tobe
"outof
AttorneyDocket No. 10031355-1
frequencylock."
The
frequencydetector also generatesan
output(referredto herein asthe"fd_up/down"
signal) thatindicates the signof
thefrequencydifferencebetween
the frequencyof
theVCO
signaland
the setpointfrequency.The
frequency detectorproducesan "up"
signalwhen
thefrequencyof
theVCO
isbelow
the setpoint 5frequency of
theVCO and a"down"
signal when
the frequencyof
theVCO
is above
the setpointfrequency.
An up
signal drives thefrequencyof
theVCO
signalupward
while adown
signal drives thefrequencydownward.
[0028] Inthe
embodiment of
Fig. 1,when
the control signal (fd_en)from
the frequencydetector 106 is high, theoutput (fd_up/down)from
thefrequencydetector 10 controls theVCO
102. Conversely,when
the control signal (fd_en) is low, theoutput(pd_up/down) from
thedigitalphase
detector 104controls theVCO. The
portionof
theVCO
signal thatisreceived atthe frequencydetectorand
the digitalphase
detectormay be
dividedby Nusing asignal divider (notshown). Inan
alternative
embodiment,
the functionof
the frequencydetectorcan beperformed by
amore
15 general "lockdetector,"
which
determineswhether
controlof
theVCO
shouldbe
givenup
tothedigitalphase
detector. Insteadof
basingthe control decisionon
the frequencydifferencebetween
the actual frequencyof
theVCO and
a setpointfrequency(asisthecasewiththe frequencydetector),the lockdetector
may
use other criteria, suchasbiterrorsor consistencyof
phase,to determine if/whencontrolof
the20 VCOshouldbe
givenup
tothedigitalphasedetector. Even
iflockdetectionis not
based on
afrequencymeasurement,
thereis stillaneed
for afrequencydetectorthat generates a signal representing the signof
thefrequencydifferencebetween
theVCO
signal
and
areference signal.[0029]
The
multiplexer 108receives the control signal (fd_en)from
the25
frequencydetector 106and
allowsthecorrespondingcontrol signal(eitherfd_up/down from
thefrequencydetector orpd up/down from
thedigitalphase
detector 104) tocontrol thechargepump
110.The
chargepump
receives the correspondingsignal (referred toherein simply asthe"up/down
signal")from
the multiplexerand
transfers apositivecharging currenttotheloopfilter 112 ifthe30 up/down
signal is"up"
ora negative chargingcurrentiftheup/down
signal is"down." The
loop filtergenerates aVCO
tuningsignal(referred tointhe figures as Vtune) inresponsetoan outputfrom
the chargepump.
In general,when
apositive chargingcurrent isreceivedfrom
thechargepump,
thetuningvoltage outputfrom
theAttorneyDocket No. 10031355-1
loopfilter is increased,thereby causingthefrequency
of
theVCO
102 to increase.Conversely,
when
a negative chargingcurrentis receivedfrom
thechargepump,
the tuning voltage outputfrom
the loopfilterisdecreased,thereby causingthe frequencyof
theVCO
todecrease.5 [0030]
The
step sizecontroller114is connectedtoreceive the control signal (fd en)from
thefrequency detector106and may
receive aprogramming
inputfrom
an optionalprogramming
interface 116.The
stepsizecontrolleroutputs astep size signal (referredto in the figures as the "step_size"signal) inresponsetothe control signal (fd_en)and
the optionalprogramming
input.The
stepsize signal (step_size) 10 setsthe step sizeof
frequencychanges
thataremade
inresponsetotheup/down
signal thatisprovided directlytothe
VCO
102from
thedigital phasedetector 104.The
stepsizecontrollerand
step size controltechniquesaredescribedinmore
detailbelow
with regardtoFigs.2-12.
[0031]
The VCO
102 includesinputs for receiving theVCO
tuningsignal 15 (Vtune)from
the loopfilter 112,thepdup/down
signal directlyfrom
the digitalphase
detector 104,
and
the stepsize signal (step_size)from
the step sizecontroller 114!The
directinputof
thepdup/down
signalfrom
thedigital phasedetectorproduces
relativelysmall adjustments inthe frequency
of
theVCO
thatareused
forachieving precise controlof
theVCO when
thePLL
is in frequency lock(i.e.,when
the digital20
phasedetector controls theVCO). The
step size signal(step_size) setsthe step sizeof
frequencyand phase changes
that aremade
inresponsetothepd up/down
signal thatisreceiveddirectly
from
thedigital pliase detector. In analternativeembodiment,
the^VCO may
receivethepd_up/down
signalafterthepd up/down
signal passesthrough
themultiplexer 108 (atwhich
point thepd_up/down
signalisreferredtosimply
as the 25up/down
signal).The up/down
signalcan be
provideddirectly totheVCO byasignal
paththatbranches offthe signalpath
between
themultiplexer 108and
the chargepump
110.[0032] Operation
of
thebang-bang PLL
100 depictedin Fig. 1 involves tuning theVCO
102 inresponsetocontinuous feedbackfrom
thedigitalphase
detector 104, 30 thefrequencydetector 106,and
the step sizecontroller 114. StartingattheVCO
fordescriptionpurposes,the
VCO
receives theVCO
tuningsignal (V^ne)from
the loopfilter 112,the step_size signal
from
the stepsize controller,and
thepd_up/down
signal directly
from
thedigitalphase
detector. In response, theVCO
outputsaVCO
AttorneyDocket No. 10031355-
1
signal
having
aparticularfrequencyand
phase.A
portionof
theVCO
signal(VCO
in) isfed intothedigitalphasedetectorand
thefrequencydetector.The
digitalphase
detectorand
thefrequency detectorgenerate outputsignals(pd_up/down,
fd_en,and fd_up/down)
asdescribedabove
inresponse totheVCO
signal(VCO
in).When
the frequencyof
theVCO
signal isoutside thedeadband
region(i.e.,thePLL
isoutof
frequencylock), the frequencydetector controls theVCO
throughtheVCO
tuning signal (Vtune).When
thefrequencyof
theVCO
iswithinthedeadband
region (i.e.,thePLL
isin frequencylock),thedigitalphase
detector controls theVCO
through acombination of
theVCO
tuningsignal (V^ne)and
thedirectlyprovidedpd up/down
signal.
The magnitude of
thefrequencychange produced
inresponseto thedirectly providedpd_up/down
signal issetby
the step size signal (step_size).[0033] In
accordance
withthe invention, the stepsize signal isinitially settoproduce
relatively largefrequencychanges once
frequency lockisestablishedand
issubsequently adjustedto
produce
smallerfrequency changes.The
initial periodof
relatively largefrequency
changes
causesfaster pull-in, allowsforawider deadband
region,and
reduces the negativeeffectsof
chargepump
leakage. Subsequently adjusting the step size signal(stepsize)toproduce
smallerfrequencychanges
enablesfine control
of
thePLL
100 inaregularoperatingstate,which
allows thePLL
toachieve precisefrequency
and phase
lock.[0034] Fig. 2depicts
an example of
the logicinvolvedincontrolling the step sizeof
aVCO.
First, itisdetermined whether
thePLL
is in frequency lock,decision point220. IfthePLL
isnotin frequency lock(i.e.,thefrequencyof
theVCO
isnot withinthedeadband
region),thenthe frequencydetector controls.theVCO,
block 222. IfthePLL
is in frequency lock(i.e., thefrequencyof
theVCO
iswithinthedeadband
region), thenthedigitalphase
detector controls theVCO,
block 224.Once
frequency lockisobtained
and
thedigital phasedetector controls theVCO,
theVCO
frequencyis
changed by
afirststepsize, block 226. Next, itisdeterminedwhether
the step sizeshouldbe
changed, decisionpoint228.Examples of how
thisdeterminationis
made
aredescribedin detailbelow
withreferencetoFigs.6A and
7A. Inan embodiment,
the step sizechange
occurssome
timeafter frequency lockisestablished(i.e., afterthe control signal (fd_en)goes low). Ifthe step size isnotto
be
changed, thentheVCO
frequency continuestobe changed by
thefirststepsize,block 226. If the step size istobe
changed, thenthe step sizeischanged
toasecond
stepAttorneyDocket No. 10031355-1
size, block 230.
Examples of how
the step size ischanged
aredescribed indetailbelow
withreference to Figs. 8-
1i. Afterthe stepsizeischanged, theVCO
frequencyis
changed by
thesecond
stepsize,block 232. Next, itis determinedwhether
frequency lockismaintained, decision point234. Iffrequency lockis5 maintained, thenthe
VCO
frequency continuestobe changed by
the secondstep size, block 232. Iffrequency lockisnot maintained(i.e.,thePLL
fallsoutof
lock), then thefrequencydetector takesovercontrolof
theVCO,
block 222.[0035]
As
statedabove,the inventionrelates tothe step sizecontroller114 and
step sizecontroltechniquesthatare
implemented
usingthe stepsize controller. Fig. 3 10 depictsaVCO 302 and an embodiment of
astep sizecontroller314
that includestimingcontrol logic
336 and
step size logic 338.The
timingcontrol logic receives the control signal (fd_en)from
thefrequencydetector 106(Fig. 1)and may
receivea clock signal(elk)from
an internalorexternalclock source (notshown).The
functionof
thetimingcontrol logic istocontrol the timingof
step sizechanges. Inparticular, 15 thetimingcontrol logic controlsthetransitionof
the stepsizefrom an
initially largestep size toa smallerstepsize. Inthe
embodiment of
Fig. 3, thetimingcontrol logic initiatesachange
inthe step sizesome
timeafterfrequency lockisestablished (i.e., afterthecontrol signal (fd_en)goes
low).The
timingcontrol logiccommunicates
timingcontrol informationtothe stepsizelogicviaa timing control signal (referred to20
in the figures as the"pulMn"
signal).The
delayfrom when
the frequencydetectorgives
up
controlof
theVCO
(i.e., afterthe controlsignal(fd_en) goes low)towhen
stepsizereductionisinitiated (i.e.,
when
the control signal(pulMn) goes
low) is typicallychosen
tobe
at leastlongenough
forthePLL
to pull theVCO
frequencytobe
equaltothefrequencyof
the inputsignal. Insome
applications, the delay is set 25 withenough margin of
errorthat itisnotnecessarytoknow
theexacttime requiredby
thePLL
tocomplete
frequencypull-in.[0036]
The
stepsize logic338
receives thetimingcontrol signal(pulMn) from
thetimingcontrol logic336 and may
receiveaprogramming
inputfrom
theprogramming
interface 116 (Fig. 1) and/or a clocksignal(elk)from
aclock source30
(notshown).The
functionof
the stepsize logicisto setthe step sizeof
thefrequencychanges
thataremade by
theVCO 302 inresponsetothepd_up/down
signalthat is
delivereddirectly tothe
VCO from
thedigitalphase
detector 104 (Fig. 7). Inthe.
embodiment of
Fig. 3, the step sizes are setby
the step sizesignal (step_size).The
AttorneyDocket No. 10031355-1
optional
programming
input isused
toprogram
the step sizesand
the optional clock signal(elk)isused
to control thetimingof
stepsize transitions.The
stepsize signal (step_size)may be an
analogordigital signaldepending on
theimplementation.The
step sizelogic
may be
configuredtoprovideonlytwo
stepsizes, forexample, afirst 5 step size thatisused
initiallyand
asecond smaller stepsizethatistransitioned toaftersome
periodof
time. Alternatively, the stepsize logicmay
be configuredtoprovide multipleintermediate step sizesthatprovide atransitionfrom
the largeststepsize to the smallest stepsize.[0037] Fig.
4
depictsexemplary waveforms of
thecontrol signal(fd en) 440, 10 thetimingcontrol signal (pullin) 442,and
the stepsize signal (step_size)444
generated
by
the step size controller 314of
Fig. 3, inan example
inwhich
the step sizelogicprovides onlytwo
stepsizes. InFig. 4,the control signal(fd_en) startsout high indicating that thePLL
isoutof
frequency lockand
thenchanges
tolow
indicating thatfrequency lock has
been
established.The
timingcontrol signal 15 (pull in) startsouthighand
thenchanges
tolow
aftersome
time in responsetothechange
inthecontrol signal (fd_en).The change
inthetimingcontrol signal (pull_in) tolow
inturncausesthe step size signal (step_size) togo from
alargevalueto a small value. In general, thedelaybetween
thechange
inthe control signal(fd en)and
thechange
in thetimingcontrol signal (pull in)is controlledby
thetimingcontrol logic20 336 and
thechange from
the large step sizetothe small stepsizeiscontrolledby
the stepsize logic338.The
large stepsizecorrespondstolargerfrequencychanges and
enablesfasterpull-inand
awider deadband
region.The
larger stepsize istypically used forashorttimeimmediately
afterfrequency lock isestablished.The
smaller step sizecorrespondsto smallerfrequencychanges and
enablesprecise controlof
the25 VCO. The
smallerstep sizeistypicallyused duringregular operation.That
is, foralloperatingtime exceptforthe initialperiodafterfrequency lockisestablishedorre- established.
[0038] Fig. 5 depicts
exemplary waveforms of
the control signal(fd en) 540, thetimingcontrol signal (pull_in) 542,and
the step sizesignal (step_size)544 30
generatedby
the step size controller314 of
Fig. 3, inanexample
inwhich
the stepsizelogicprovides multiple intermediatestepsizes thatprovide atransition
from
the largeststep sizetothe smallest step size. Fig. 5is similar toFig. 4 exceptthatthe step sizesignal (step_size)begins atransitionfrom
thelargest tothe smallest step sizeAttorneyDocket No. 1003135 5-
1
once
thetimingcontrol signal (pull_in) goes low. Itmay be
desirable to transition the step sizefrom
the largestto the smallest step sizeusingmultiple intermediatestep sizesbecause
insome bang-bang PLLs, changing
the step sizefrom
the largevalueto thesmall valueinasinglejump can
causethePLL
to losefrequencylock. In5 particular,the
PLL
will likelylose frequency lockifthechange
in frequencythatiscaused by
thechange
instep sizeismuch
largerthanthe differencebetween
the"up"
and "down"
frequencystepsof
theVCO
inthe regularoperationmode. The
transition
from
the largesttothe smallest stepsizemay
involve multiplediscrete steppedchanges
(asshown
inFig. 5) ora continuoussmooth
transition. Ifthe step 10 sizeistransitionedwith gradual intermediate step sizechanges,theredoes
notneed
tobe any
delaybetween when
frequency lockisobtainedand when
the step size transitionbegins.The
step sizetransitionisregardedasbeing "gradual"when
step sizereductiondoes
notgetahead of
thefrequencypull-in.[0039]
The
functionalitydescribedwithreferencetoFigs. 1-
5can be
15
implemented
inmany
differentways.
Fig.6A
depictsdetailsof an embodiment of
the timingcontrol logic336
depictedin Fig. 3.The
timingcontrol logic636
depictedin Fig.6A
includestwo
flip-flops(FF)646 and 647 and
anOR
gate 648.The
logic functions toassertthetimingcontrol signal(pullin) aslong asthePLL
isoutof
frequency lock(i.e., fd_en is high)and
fora periodof
timeafterfrequency lock is20
established(i.e., fd en islow). Inthe implementation, the control signal (fd_en) is thedatainputtothefirstflip-flopand
theclocksignal (elk)isused
forclockingbothof
theflip-flops.The
output signal(A)from
thefirstflip-flopis thedatainputtothesecond
flip-flop.The
outputsignal (D)of
thesecond
flip-flopisone of
theinputs to theOR
gate. In operation, theclocksignal(elk) clocksthestateof
the control signal25
(fd_en)into thetwo
flip-flops.Any changes
tothe control signal(fd_en)show up on
signals
A and D on successiveedges of
theclocksignal(elk). The OR
gatesets its
output(pull in)highwhilethe control signal (fd_en)is high.
The
control signal ismaintained highfor
one
ortwo
cyclesof
theclocksignal (elk) afterthe control signal(fden)
goeslow depending on where
thetransitionof
the control signal(fd_en)30
N occurred.Waveforms
thatdepictan exemplary
operationof
thetimingcontrol logicaredepictedinFig. 6B.
[0040]
While
thetimingcontrol logic636
depictedinFig. 6A assumesthatthe
control signal (fd_en) ishigh withoutinterruptionuntil theVCO
frequencyiswithin
AttorneyDocket No. 10031355-1
the
deadband
region, there are implementationsof
frequencydetectorsthathave
control signalsthatarehigh intermittentlywith avariableduty cycleforaslongas theVCO
frequencyisoutside thedeadband
region.For
thistypeof
frequencydetector, thetimingcontrol logicof
Fig.6A might
notwork
sincean edge of
theclocksignal (elk)might miss
theasynchronous
pulsesof
the control signal (fd_en)and
causethe timingcontrol signal(pulMn)
toturnoff too soon.[0041] Fig. 7
A
depicts detailsof
anotherembodiment of
thetimingcontrol logic336
depicted inFig. 3 thatisconfiguredtowork
in conjunction with frequencydetectorsthatarepulsed-on asdescribed above.
The
timingcontrol logic736
includesareset
(RS)
flip-flop749, aflip-flop750,an ANDgate 751, and
an inverter
752. When
the control signal (fd_en) ishigh,the outputsignal (A)of
theRS
flip-flop
is high. The
risingedgesof
theclocksignal (elk),theperiodof which
shouldbe
longer thanthelargestgap between
control signal(fd en) pulses, clockthelevelon
theoutput signal (A)totheoutput(pull_in) of
theflip-flop750. The
risingedgesof
theclocksignal (elk)alsoresettheRS
flip-flop via the pulsegeneratorthatisformed by
theAND
gateand
theinverter.
[0042]
When
the control signal (fd en) stops pulsing, theRS
flip-flop749
isno
longersetbetween
clockedgesand
thetimingcontrol signal(pulMn)
dropslow
after at leastone more
cycleof
theclocksignal(elk). Thisembodiment of
thetiming control logic736
willwork
forboth constant-onand
pulsed-on type frequency detectors.Waveforms
thatdepictan exemplary
operationof
thetimingcontrol logic aredepictedinFig. 7B.[0043] Fig. 8 depictsdetails
of
anembodiment of
the stepsize logic338
depictedinFig. 3.The
step size logic838 of
Fig. 8includes multipleOR
gates754
thatprovide outputstoadigital-to-analogconverter(DAC)
756.The DAC
providesan
analogstep sizesignal (step_size) asan
output.Each of
theOR
gates includesafirstinputthatis usedto seta
programmable
stepsizeand
asecond
inputthatreceives thetiming control signal(pulMn).
Allof
thefirstinputsmake up
aprogramming
input816. In operation,
when
thetimingcontrol signal(pulMn)
ishigh, allof
thebits thatareused
to drivetheDAC
are settologic 1 becauseof
theOR
gates.The DAC
outputs its
maximum
(full-scale) analog valuewhen
allofthebitsaresetto logic 1.When
thetimingcontrol signal(pulMn)
islow, themagnitude of
the step size signalis set
by
the asserted bitsof
theprogramming
input.AttorneyDocket No. 1003135 5-
1
[0044]
As
described above, itmay be
desirable totransitionthe stepsizefrom
the largestto thesmallest step sizeusingmultiple intermediate stepsizes. Fig. 9 depictsdetailsof
anotherembodiment of
thestep size logic338
depictedin Fig 3 that isconfiguredtoprovide intermediate stepsizes.The embodiment of
Fig. 9 is similar totheembodiment of
Fig. 8exceptthatthestep sizelogic938 of
Fig! 9 includesa
low-pass filter958
thatprovidesthe intermediate step sizes.The
low-passfilter.includesaresistor
960 and
acapacitor962
connectedtotheoutputof
theDAC
956.The
low-passfiltertime constant ischosen
such thatitprevents theanalogstep size signal(step size)from changing
fasterthanthePLL can
track theVCO
disturbance.The
resistorof
thelow
pass filtermay
notneed
tobe implemented
asaseparate physicalcomponent
iftheoutputimpedance of
theDAC
islargeenough
tomake
a suitablelow-passfiltertimeconstantwiththe capacitor alone.[0045] Fig. 10depictsdetails
of
anotherembodiment of
the step size logic338
depicted inFig. 3 thatis configuredtoprovideintermediate step sizes.The
step size logic1038 of
Fig. 10 includesa counter 1064, aNOR
gate 1066, acomparator
1068,and
aDAC
1056.The
step sizelogic receives aprogramming
input(PI)from
a register 1016. In alternativeembodiments,
theregistermay be
incorporatedintothe stepsize logic.The
counterreceives the control signal (fd en), aclocksignal(elk),and
acounter enablesignal(ctr_en).The
counter outputs an n-bitcounter value(CV)
tothe
DAC andtothecomparator. The
comparatorreceives the n-bitcounter value
(CV) from
thecounterand an
n-bitprogramming
input(PI) from
theregisterand
outputsan
equal signal(eq).
[0046] In operation, the voltage or current
of
the step sizesignal (step_size) is setby
theDAC
1056.The DAC
iscontrolledby
thecounter value(CV)
attheoutputof
then-bitcounter 1064.Whenever
thetimingcontrol signal(pulMn)
ishigh, the counterispreset toitsmaximum
valuevia the presetinput.For
example, asserting the preset input sets eachof
thecounterbitshigh (e.g., logical 1).The
counterpreset value couldbe any
valuesuitable forthe desiredPLL
pull-inrate, butsettingallbits to logic 1 is easilyimplemented.
[0047]
When
thetimingcontrol signal(pulMn)
ishigh, thecounter enable signal (ctr_en) is forcedtoalogic0.The
counter enablesignal (ctr_en)being low
preventsthecounter1064 from changing
state(e.g.,decrementing
ifthecounteris adown
counterorincrementingifthecounter isanup
counter) inresponsetotheclockAttorneyDocket No. 10031355-1
signal(elk)
and
therefore thecounter keepsoutputting itspresetvalue as thecounter value (CV).[0048]
The
register1016
contains then-bitvalueof
theprogramming
input (PI),which
represents the valueof
the step sizesignal (step_size) thatistobe
used during regular operation. Inasystem
withoutthe acceleratedpull-in, this registercouldbe connected
directly totheDAC
1056.[0049]
The comparator 1068 compares
then-bit values(PIand CV)
thatare outputfrom
theregister1016 and
the counter1064 and
outputsan
equal signal(eq) thatishighifthetwo
values are equal.The comparator
outputsan equal signal(eq) thatislow when
thetwo
valuesare notequal.[0050]
During
pull-in(i.e., whilethetimingcontrol signal(pulMn)
ishigh,which
forces thecounter1064
to itsmaximum
value),theequal signal (eq)willbe
at logiclow.When
thetimingcontrol signal(pulMn)
drops low, the preset functionisreleased, thecounter enablesignal (ctr_en)goes low,
and
thecounteris allowedtochange
state(e.g., decremented).When
boththetimingcontrol signal(pulMn) and
theequal signal (eq) are low, as will generallybe
the caseimmediately
afterthe timing.control signal (pull_in)dropslow, theNOR
gate1066
willoutput a high counter enablesignal(ctr_en).The
high counter enablesignal (ctr_en) allowsthe countertobe decremented one
count per clockedge
until itsoutput valuematches
the output valuefrom
theregister 1016.When
thecount outputfrom
thecounter equals theregistervalue, theequal signal (eq)of
thecomparator 1068
willgo
highand
theNOR
gate1066
will dropthecounter enable signal (ctr_en)low.Dropping
thecounter enable signal (ctr_en)
low
preventsthecounterfrom decrementing
furtherand
fixesthebitvaluethatisprovidedto theDAC 1056
attheregistervalue.As
stated above,theregistervalueisselected tocorrespondtothe regularoperatingcondition.Note
that thissequence of
presetand
then countdown
tothe registervaluewillrepeat itselfevery timethefrequencydetector turnson
thetimingcontrol signal(pulMn)
without interventionof
an external controlsignal.[0051] After frequency lockisestablished
and
duringregular operation, theremay be
aneed
tochange
thevalueof
theprogramming
input(PI) storedin theregister 1016.Changing
the valueof
theprogramming
input (PI)toa largervaluecan
cause thePLL
to losefrequency lock ifthe counterisrequiredto "rollover"to reachthe larger value. Fig. 1 1 depictsan embodiment of
the step size logic338
depictedin.Fig.AttorneyDocket No. 10031355-1
3 thatis configuredtoallowthe
programming
input(PI) tobe changed
without requiringthe countertorollover,which would
likelypush
thePLL
outof
lock.The
step size logic 1138 issimilar to the stepsizelogic 1038
of
Fig. 10exceptthatthe counter is abletocountup
ordown
(thecounter isreferred to hereinasan "up/down
counter") inresponsetorespectiveup
ordown
controlsignals.The
stepsize logic depictedin Fig. 11 operates similarlytothe stepsize logicdepictedinFig. 10with afew
differences. Specifically, thecomparator compares
thecounter value(CV)
with theprogramming
input(PI)and
insteadof
outputtingan equal signal (eq),which
indicateswhether
thecounter value(CV) and
theprogramming
input (PI) are equal, thecomparator
outputs an enableup (enup)
signal(e.g.,enup
is high)when
the counter value(CV)
is lessthantheprogramming
input(PI)oran
enabledown (endn)
signal(e.g.,
en_dn
ishigh)when
thecounter value(CV)
isgreaterthantheprogramming
input(PI).The
resultof
this logic isthatthecounterdoes
nothave
to rollovertoreachaprogramming
input(PI) thatischanged
afterfrequency lockisachieved(e.g., tryingtoreach a
programming
input(PI) that isadjustedupward
witha down
counter).[0052] Fig. 12depicts
example waveforms
thatillustratehow
the counter value(C V) changes
withchanges
intheprogramming
input(PI) inthecasewhere
theprogramming
inputisincreased(e.g.,PV2 > PV1) and
inthecasewhere
theprogramming
input(PI) isdecreased(e.g.,PV3 < PV2)
usingthe step sizelogic depictedinFig. 11.Whether
theprogramming
input(PI) isadjustedupward
ordownward,
thecounter value(CV) changes
totheprogramming
value (PI) without rollingoverin either direction.[0053] Typically, the
pd up/down and
step size signalsarecontinuously providedto theVCO andarealways
influencing theVCO
tosome
degree. However, when
the VCO
isbeingcontrolled by
the frequencydetector(e.g., when
fd_en is
high), the influence
on
the frequencyof
theVCO
isinsignificantcompared
tothe influenceof
theVCO
tuningsignal(V
tune).That
is,themagnitude of
thechanges
in frequencycaused by
thedirectinputof
thepd_up/down
signaland
thestep sizesignal (step_size) are so smallcompared
tothe changes causedby
theVCO
tuningsignal (Vtune) thattheyhave no
practical effecton
theVCO
frequencywhen
theVCO
isoutof
lock.AttorneyDocket No. 10031355-1
[0054]
Because
the influenceof
thedirectly inputpdup/down
signal isinsignificant
compared
tothe influenceof
theVCO
tuning signal(Vtune)when
theVCO
isoutof
lock,the step size signalcanbe
"preset"atthedesiredhigh levelbefore frequency lockis established.Once
frequency lockisestablishedand
the frequency 5 detector relinquishes controltothedigitalphase detectorand
thedesired step size isalreadyset.
[0055]
A bang-bang PLL can becontrolled tohave two
different step sizeseven though
itsVCO doesnotreceiveadirectinputfrom
thedigital phasedetector(e.g.,
thepd_up/down
signal). Fig. 13 depictsan embodiment of
abang-bang PLL 1300
10 thatisconfiguredto providetwo
different step sizeswhen
theVCO 1302 doesnot
from
thedigital phasedetector(e.g., thepd_up/down
signal). Fig. 13 depictsanembodiment of
abang-bang PLL 1300
10 thatisconfiguredto providetwo
different step sizeswhen
theVCO 1302 doesnot
receiveadirectinput
from
thedigitalphase detector 1304. Similartothesystems
describedabove
withreference toFigs. 1and
3, thesystem of
Fig. 13 includesa step sizecontroller1314
that controls the stepsizeof
theVCO once
theVCO
establishes lock(i.e.,when
the digitalphase
detector controls theVCO and
fd_enislow).The
15 step sizecontrollerincludes timingcontrol logic
1336 and
stepsizelogic 1338.The
timingcontrol logicissimilar to thetimingcontrol logicdescribedabove
with referencetoFigs. 3,6A, and 7A. The
timingcontrol logic outputsa timingcontrol signal (pullin)tothe step size logic.The
stepsizelogic includesa switch1372 and
a resistor1374
thatarein serieswiththeresistor1376 and
the capacitor1378
thatmake 20 up
the loopfilterof
thePLL.
In operation, the stepsize logic1338
determinesthesize
of
the ripple(i.e., instantaneouschanges)on
theVCO
tuningsignal(Vtune),which
result
from
thevoltagedropof
the chargepump
outputcurrent(Icp)across thetotal resistanceisserieswiththecapacitor 1378.When
thePLL
isoutof
lock(i.e.,fd_en
ishigh),thetimingcontrol signal (pull_in) ishigh
and
theswitchisopen
(asshown
in 25 Fig. 13).When
theswitchis open,thetotal resistanceisR = Ro +
Ri,which
causesthe
magnitude of
the rippleon
theVCO
tuningsignal(V
tune)tobe
larger.The
larger rippleon
theVCO
tuningsignal(V
tUne)translatesto a larger step size.Some
time after lockisachievedand
the control signal (fd_en)goes low, thetimingcontrol signal(pulMn)
willgo low and
causetheswitchto close.When
theswitch isclosed,30
thetotalresistanceisR =
Ro,which
causesthemagnitude of
the rippleon
theVCO
tuning signal (V^ne)to
be
smaller than itwas when
theswitchwas
open. This causes the step size togo
to its regularoperatingcondition. Inan embodiment,
theswitchAttorneyDocket No. 10031355-1
could
be implemented
asaMOSFET
orapairof complementary MOSFETs
toform
a"passgate."
[0056] Fig. 14depictsa process flow
diagram of
amethod
forcontrolling aVCO
inabang-bang PLL. At block
1490, aVCO
frequency ischanged by
a firststep 5 sizeupon
obtaining frequency lock.At
block 1492, theVCO
frequencyischanged by
a
second
step size aftertheVCO
frequency hasbeen changed by
thefirststepsize,wherein
thefirststepsizeislargerthan thesecond
step size.[0057]
Although
specificembodiments
inaccordance with theinventionhave been
describedand
illustrated,the invention isnot limited tothe specificforms and
10arrangements
ofpartsso describedand
illustrated.The
invention is limitedonlyby
theclaims.
>.