Clock recovery and bit synchronization
A receiver must know the bit interval before it samples a digital waveform. The clock signal provides that timing reference and defines the instants at which the receiver decides whether the signal represents 0 or 1. The transmitter and receiver may start with different phases, and oscillator error changes the sampling instants over time.
A receiver can extract timing from the incoming data stream through clock recovery, also called bit synchronization. The recovered clock tracks the transmitter timing closely enough for sampling. Phase drift moves the sampling instant toward a symbol boundary and increases bit errors. The receiver therefore monitors both transition timing and sampling margin. This margin limits the tolerated phase error.
Frame synchronization is a separate stage after bit timing has been recovered. The receiver searches for the defined frame-alignment signal, checks its position in subsequent frames, and can use CRC information to reject false alignments.
Method 1: Recovery from self-clocking codes
A line code with regular transitions gives the receiver timing information. line codes, such as RZ (Return-to-Zero) and Manchester, provide transitions that carry timing information. RZ returns to zero within a symbol, while Manchester has a mandatory mid-bit transition. Their spectra contain energy near the clock frequency ().
Narrow-band filtering
A narrow-band filter can isolate energy near the clock frequency. Its passband and bandwidth must account for the line rate, oscillator tolerance, and expected jitter.
The process works as follows:
- The incoming RZ or Manchester signal passes through a selective filter, such as a quartz or ceramic resonator, tuned near the clock frequency .
- The filter attenuates components outside its passband and leaves a dominant sinusoidal component near the clock frequency. A real filter has finite bandwidth, so residual data components remain.
- A shaping circuit, such as a comparator or limiter, converts this component into a square-wave clock for sampling.
Method 2: Recovery from codes without embedded timing (for example, NRZ)
NRZ (Non-Return-to-Zero) does not guarantee a transition in every bit interval. A run of equal bits holds a constant level and supplies little timing information. Such a run can leave the loop without a new edge for several bit periods. The receiver forms timing pulses from transitions when they occur and tracks the oscillator between those pulses.
Edge detection and PLL
The recovery typically uses a whose reference is formed from pulses generated at data edges.
- An edge detector circuit watches the incoming NRZ signal. It's designed to produce a short timing pulse () every time the signal changes its state (from low to high or high to low).
- These intermittent pulses are fed into a PLL.
- The PLL uses these pulses as a reference to adjust its internal oscillator. During a run of identical bits, the oscillator continues at its latest estimated frequency. A later edge allows the PLL to correct phase and frequency. The holdover interval depends on oscillator frequency error and loop design.
- This process results in a stable, continuous clock signal even when the data itself has few transitions. The allowed run length and jitter determine the available phase-correction range.
Scrambling and transition density
A scrambler changes the statistical pattern before NRZ encoding. For the selected polynomial, it reduces long runs and increases expected transition density, but it does not guarantee a transition in every interval. The receiver uses the corresponding descrambler and state rules to restore the data. The code and receiver design set the remaining timing limits.