主权项 |
1. A method of clock recovery, comprising:
extracting a reference pulse from an incoming data stream without a reference clock; comparing the extracted reference pulse with a generated clock signal; detecting a phase difference of the extracted reference pulse in relation to the generated clock signal; accumulating a phase difference of the extracted reference pulse with respect to the generated clock signal over a predetermined number of samples until a number of phase differences is reached; determining if the magnitude of the accumulated phase difference is increasing or decreasing, or if the sign of the accumulated phase difference has changed; computing a frequency error from the accumulated phase difference, wherein if the phase difference magnitude is increasing, or if the sign has changed, inversely adjusting the frequency error; comparing the frequency error with an upper limit and a lower limit; determining if the frequency error is trending to exceed a bounds defined by the upper and lower limit adjusting a generated clock output frequency using the frequency error to produce a new clock frequency; and using the new clock frequency as the generated clock signal to produce a clock-synchronized signal. |