
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
- Start with the reference clock
- What "locked" means
- When it will not lock
- Keeping bring-up moving
- Deep dive (optional)
- Reference clock tolerance math
- Worked example: an illustrative PLL lock checklist
- Red flags table
- Clock bring-up checklist
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:
- Reference. Present, right frequency, right level, stable before reset is released.
- 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.
- 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.
- Reset and power-down. Is the PLL held in reset or power-down by logic you did not expect?
- 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:
| Term | Illustrative value |
|---|---|
| Initial tolerance at room temperature | plus or minus 20 ppm |
| Stability over temperature | plus or minus 25 ppm |
| Load capacitance mismatch on the board | plus or minus 5 ppm |
| Aging over product life | plus or minus 10 ppm |
| Total, worst case | plus 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.
| Step | Check | Pass value | Measured |
|---|---|---|---|
| 1 | Reference at pin, frequency counter | 25 MHz plus or minus 60 ppm (plus or minus 1,500 Hz) | 25,000,410 Hz (+16.4 ppm), pass |
| 2 | VDD_PLL at chip | 0.9 V plus or minus 3 percent (0.873 to 0.927 V) | 0.896 V, pass |
| 3 | Divider registers read back | R = 1, N = 40 | R = 1, N = 40, pass |
| 4 | Minimum lock time from the counter | 1,024 / 25 MHz = 40.96 microseconds | Bit never sets within 1 ms |
| 5 | Clock output, divided by 10 | 100 MHz | 91 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 see | Likely meaning | What to do |
|---|---|---|
| No clock at the reference pin | Crystal not starting, wrong load capacitors, or board fault | Drive the external reference input from a generator |
| Reference present but thousands of ppm off | Wrong crystal or oscillator fitted | Check the part marking and the bill of materials |
| Lock bit never sets, output frequency correct | Lock detector settings or logic, not the loop | Check detector window and count; rely on the counter for now |
| Lock bit sets, output frequency wrong | Wrong reference or divider; loop locked at the wrong frequency | Measure the reference and read back dividers |
| Locks at low targets, fails at high | Oscillator range narrower or shifted on this silicon | Sweep target frequency and supply; run lower for now |
| Lock comes and goes | Noisy PLL supply or marginal loop | Check VDD_PLL ripple; try a cleaner supply |
| Same failure on every part | Design or configuration issue | Review 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
- TI AM62x board design guide: LVCMOS Compatible Digital Clock Input Source
- The Semiconductor Hub: SoC lifecycle, Silicon Validated gate
Next in the series: Reset and Boot, When the Chip Powers Up but Will Not Start.


Your comments will be moderated before it appears here.