TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

First Silicon Back, Part 9: Getting the Clock Running, From PLL Lock and Reference Clocks to What to Do When It Will Not Lock

The Semiconductor Hub
by
0
Share Facebook X LinkedIn WhatsApp Email
Terminal-style PLL lock checklist showing reference frequency error in ppm, supply and divider checks, minimum lock time and a clock output below target.

The rails are up and the currents look sane. Next, the chip needs a clock. Almost every SoC makes its fast internal clocks with a phase-locked loop, or PLL, which multiplies a slow, accurate reference into a fast one. If the PLL will not lock, nothing that depends on it will run, and from the outside the chip looks dead even though it is powered and healthy.

This is Part 9 of First Silicon Back. Part 8 covered power-on day. Today: how to check the reference clock, how to tell whether a PLL has locked, and a step-by-step way to find out why it will not.

Key takeaways

  • Check the reference at the chip pin first: frequency, level and whether it is there at all.
  • Reference accuracy in ppm passes through a PLL unchanged, so a small error rarely stops lock. A wrong frequency is a different matter.
  • A lock indicator tells you the loop believes it is locked. Confirm with a frequency measurement on a clock you can see.
  • When a PLL will not lock, work from the outside in: reference, PLL supply, configuration, then the loop itself.
  • Bypass mode, a lower target frequency and a clock output pin are the three tools that get you moving while you debug.

In this post

What the PLL does, in outline

A PLL compares its own divided-down output with the reference and adjusts an oscillator until the two match in frequency and phase. If the output is divided by 40 before the comparison, the loop settles with the output at 40 times the reference. Change the divider and the output frequency changes with it.

For bring-up this matters in two ways. First, the PLL can only be as good as its reference. Second, the PLL is analog circuitry inside a digital chip, with its own supply and its own sensitivity to process, so it is a common place for first-silicon surprises. In the Hub lifecycle, clock bring-up sits in the Bring-up and Silicon Validation stage.

Start with the reference clock

Before suspecting the PLL, prove the reference. Put a probe on the chip's reference input, as close to the pin as you can, and check three things: is a clock there, is it the right frequency, and is its level what the input expects.

Vendors write these requirements down. TI's AM62x board design guide recommends a 25 MHz crystal connected directly to the processor's oscillator pins, allows an external LVCMOS oscillator as an alternative, and points to the data sheet for load capacitance (Processor Clocking). The same guide warns that a mismatch between crystal load and load capacitors can introduce frequency errors in ppm, and says to check the crystal choice against temperature and aging over the product life (Crystal Selection).

It also notes that the data sheet gives a startup delay so the clock can start and stabilize before the cold reset is released. That is a reminder that clock and reset problems overlap, which Part 10 picks up.

A practical tip: probing a crystal oscillator pin can load it and shift or stop it. If the board team gave you an external reference input, as Part 3 asked, use it to drive a clean signal from a generator and remove the crystal from the question.

What "locked" means

Most PLLs report lock through a status bit or a pin. A common design is a window detector. In TI's LMK04828 clock device, each phase comparison inside a set window adds to a count, lock is declared when the count reaches a set value, and a single comparison outside the window deasserts lock (Digital Lock Detect). The related LMK04228 data sheet gives the minimum lock time as the lock count divided by the phase detector frequency (Digital Lock Detect Frequency Accuracy).

Your chip's PLL will have its own detector, but the lesson carries over: a lock bit is a summary from logic that has its own settings and its own failure modes. A lock bit that never sets may mean the detector is set wrong, not that the loop has failed to lock. A lock bit that sets may hide a loop locked at the wrong frequency. Always confirm with a measurement, usually a divided clock routed to an output pin and read with a frequency counter.

When it will not lock

Work from the outside in, changing one thing at a time:

  1. Reference. Present, right frequency, right level, stable before reset is released.
  2. PLL supply. At the right voltage at the chip, enabled, and quiet. Part 3 asked for a separate low-noise rail so this can be checked alone.
  3. Configuration. Dividers, enables and mode bits as intended. Read them back through debug access if you have it. A wrong default in a register is a design bug that a workaround can often cover.
  4. Reset and power-down. Is the PLL held in reset or power-down by logic you did not expect?
  5. The loop itself. Only now suspect the analog design: oscillator range, loop filter or detector.

Then sweep supply, reference and target frequency. A loop that locks at 800 MHz and fails at 1 GHz has a margin problem; one that never locks has a hard failure.

Keeping bring-up moving

A PLL problem should not stop all other work. Three tools help:

  • Bypass mode, if the design has one, runs the chip from the reference clock directly. Everything is slow, but boot, debug and many block tests can proceed.
  • A lower target: a smaller multiplier may sit inside the oscillator's working range when the planned one does not.
  • A clock output pin with a divider lets you measure the PLL without a high-speed probe.

Deep dive: the numbers and details

This part holds the reference tolerance arithmetic, a sample lock checklist with numbers, the red flags and a checklist. Skip it if the overview is all you need.

Reference clock tolerance math

Oscillator accuracy is quoted in parts per million and comes from several terms. SiTime's application note on frequency accuracy budgets adds initial tolerance, stability over temperature, supply and load effects, and aging into one total (AN10039: TCXO Frequency Stability and Frequency Accuracy Budget, section 3). Adding the terms is the worst-case approach.

An illustrative crystal budget for a 25 MHz reference:

TermIllustrative value
Initial tolerance at room temperatureplus or minus 20 ppm
Stability over temperatureplus or minus 25 ppm
Load capacitance mismatch on the boardplus or minus 5 ppm
Aging over product lifeplus or minus 10 ppm
Total, worst caseplus or minus 60 ppm

The sum is 20 + 25 + 5 + 10 = 60 ppm. In hertz: 25,000,000 x 60 / 1,000,000 = 1,500 Hz, so the reference lies between 24,998,500 and 25,001,500 Hz.

Now multiply by 40 to reach 1 GHz. The output error is 1,000,000,000 x 60 / 1,000,000 = 60 kHz, still 60 ppm. A PLL multiplies the frequency and the error together, so the ratio stays the same. A 60 ppm reference is very unlikely to stop a PLL locking. It matters for interfaces with tight frequency rules, not for lock.

A wrong crystal is another story. Fit 24 MHz where 25 MHz was intended and the error is 1 MHz in 25 MHz: 40,000 ppm, or 4 percent. With the multiplier of 40 the output is 960 MHz instead of 1 GHz. If 960 MHz is inside the oscillator range, the PLL locks happily and reports lock, and the first symptom appears elsewhere, for example as garbled characters on a UART whose baud rate was derived from the wrong clock. That is why the counter measurement matters more than the lock bit.

Worked example: an illustrative PLL lock checklist

Everything below is illustrative: reference 25 MHz, reference divider 1, so the phase detector runs at 25 MHz; multiplier 40 for a 1,000 MHz output; designed oscillator range 800 to 1,200 MHz; lock count 1,024; boot code waits up to 1 ms for lock.

StepCheckPass valueMeasured
1Reference at pin, frequency counter25 MHz plus or minus 60 ppm (plus or minus 1,500 Hz)25,000,410 Hz (+16.4 ppm), pass
2VDD_PLL at chip0.9 V plus or minus 3 percent (0.873 to 0.927 V)0.896 V, pass
3Divider registers read backR = 1, N = 40R = 1, N = 40, pass
4Minimum lock time from the counter1,024 / 25 MHz = 40.96 microsecondsBit never sets within 1 ms
5Clock output, divided by 10100 MHz91 MHz, drifting

Read the table from the top. The reference error of 410 Hz is 410 / 25 = 16.4 ppm, well inside the budget. The supply and dividers are right. The lock detector would need at least 40.96 microseconds, and the boot code gives it 1 ms, which is 1,000 / 40.96 = about 24 times longer, so the timeout is not the cause.

The clock output tells the story: 91 MHz x 10 = 910 MHz, below the 1,000 MHz target and drifting. A plausible reading is that the oscillator on this silicon tops out near 910 MHz, below its designed range. Suppose its real range is 20 percent lower than designed: 640 to 960 MHz. The 1,000 MHz target is out of reach, so the loop rails at the top of its range and never locks.

Test the idea: set N = 36 for 25 x 36 = 900 MHz, inside the suspected range. If it locks and the output reads 90 MHz, the hypothesis holds. Bring-up continues at 900 MHz while the oscillator range goes to the design team with sweep data across supply voltage and temperature.

Red flags table

What you seeLikely meaningWhat to do
No clock at the reference pinCrystal not starting, wrong load capacitors, or board faultDrive the external reference input from a generator
Reference present but thousands of ppm offWrong crystal or oscillator fittedCheck the part marking and the bill of materials
Lock bit never sets, output frequency correctLock detector settings or logic, not the loopCheck detector window and count; rely on the counter for now
Lock bit sets, output frequency wrongWrong reference or divider; loop locked at the wrong frequencyMeasure the reference and read back dividers
Locks at low targets, fails at highOscillator range narrower or shifted on this siliconSweep target frequency and supply; run lower for now
Lock comes and goesNoisy PLL supply or marginal loopCheck VDD_PLL ripple; try a cleaner supply
Same failure on every partDesign or configuration issueReview the PLL configuration with the designer

Clock bring-up checklist

  • Reference frequency and level measured at the chip pin, with the error in ppm recorded.
  • External reference input tested so the on-board source can be ruled out.
  • PLL supply measured at the chip, ripple checked.
  • Divider and mode registers read back and compared with the plan.
  • Lock detector settings known, and the minimum lock time worked out.
  • Output frequency confirmed with a counter on a divided clock output.
  • Lock behavior swept across target frequency and PLL supply voltage, per part.
  • Fallback agreed: bypass mode or a lower target, so other bring-up can continue.

Further reading

Next in the series: Reset and Boot, When the Chip Powers Up but Will Not Start.

Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!