Jitter measuring method and device
A jitter measuring method and device, which is capable of measuring jitters in serial digital signal without high-frequency reference clock. The jitter measuring device comprises a rough length measuring unit for measuring rough length for each pulse of the serial digital signal according to a reference clock, and a phase error measuring unit for measuring the phase errors between the edges of the reference clock and the serial digital signal by multi-phase clocks, which are generated by a multi-phase generator according to the reference clock. The jitter measuring device computes the precise length according to the rough length and the phase error, and measures the jitters from the precise length by filters.
Latest Mediatek Inc. Patents:
- METHOD AND APPARATUS FOR PERFORMING SINGULARITY DETECTION AIDED CALIBRATION ON TIME-INTERLEAVED ANALOG-TO-DIGITAL CONVERTER
- Adaptive radio frequency front-end circuit with low insertion loss for WLAN
- Electronic device and method for scheduling restriction
- Methods and apparatuses of sharing preload region for affine prediction or motion compensation
- Method and system for improving the efficiency of protecting a multi-content process
1. Field of the Invention
The invention relates to a jitter measuring method and device, and more particularly to a jitter measuring method and device for precisely calculating the length of a serial digital signal according to a multi-phase clock to measure the jitter correctly.
2. Description of the Related Art
In an optical storage apparatus, a jitter measuring device (jitter meter) is an important device. The measurement result of the jitter measuring device is an indicator for the signal quality. If a jitter measuring device with precise result is employed in the optical storage apparatus, the optical storage apparatus can acquire correct signal information and adjust itself to an optimum state. The jitter measuring method is typically divided into a digital method and an analog method.
The digital method includes the steps of shaping the serial digital signal, calculating the number of pulses of a reference clock for each pulse of the shaped signal, and then finding out a difference value between the calculated numbers as the jitter value. The drawbacks of this method are that it is necessary to provide the reference clock with higher frequency if the frequency of the serial digital signal is high.
The analog method includes the steps of converting each pulse width of the serial digital signal into an analog signal, and then filtering the voltage of the analog signal by a filter. The filtered voltage variation represents the jitter value. The drawbacks of this method are that the switching speed of the used switches may greatly influence the measurement result, and the switches with a high switching speed cannot be easily implemented.
SUMMARY OF THE INVENTIONIn view of the above-mentioned problems, an object of the invention is to provide a jitter measuring method and device capable of precisely measuring jitters in a serial digital signal without a high-frequency reference clock.
To achieve the above-mentioned object, the jitter measuring device of the invention includes a rough length measuring unit, a multi-phase signal generator, a phase error measuring unit, a length integrating unit, a pulse selecting unit, an average length calculating unit, a length difference calculating unit, and a jitter calculating unit. The rough length measuring unit receives a serial digital signal and a reference clock and generates a rough pulse length for each pulse of the serial digital signal. The multi-phase signal generator generates a plurality of multi-phase clocks according to the reference clock. The phase error measuring unit receives the serial digital signal, the reference clock and the multi-phase clocks, and generates a positive edge phase error and a negative edge phase error. The length integrating unit receives the rough pulse length, the positive edge phase error and the negative edge phase error, and computes a pulse length for each pulse of the serial digital signal. The pulse selecting unit selects the pulse lengths as selected pulse lengths according to a length selection signal. The average length calculating unit receives the selected pulse lengths and computes an average pulse length of the selected pulse lengths. The length difference calculating unit receives the selected pulse lengths and the average pulse length and computes length differences between the selected pulse lengths and the average pulse length. The jitter calculating unit receives the length differences and computes an average of the length differences as a jitter.
Since the jitter measuring device of the invention measures the jitter in the serial digital signal according to the reference clock having lower frequency, the need for providing a reference clock having high frequency can be avoided.
The jitter measuring method and device of the present invention will be described in detail with reference to the accompanying drawings.
Please refer to
Ti=Tr−ΔT1+ΔT2 (1).
Since the pulse length Ti of the serial digital signal have different period ranges (for example, the range of CD-ROM system is from 3T to 11T), the jitter measuring device 10 of the invention utilizes the pulse selecting unit 12 to select the pulse lengths having the same range to calculate the jitter in the serial digital signal. The pulse selecting unit 12 selects the pulse lengths having the same range according to a length selection signal and outputs the pulse lengths as selected pulse lengths. For instance, if the length selection signal is 5, the pulse selecting unit 12 selects the pulse lengths close to 5T as the selected pulse lengths. Of course, the pulse selecting unit 12 may immediately output the selected pulse lengths close to the length selection signal. Alternatively, a memory may be utilized to store all the pulse lengths, and the pulse lengths close to the length selection signal may be output after a period of time.
Then, the jitter measuring device 10 of the present invention utilizes an average length calculating unit 13 to calculate an average length Ta of the selected pulse lengths Ti. The average length calculating unit 13 may be a low-pass filter, as shown in FIG. 6. If the low-pass filter is a 1/M average system, X(N) represents the input of time of N, and Y(N+1) represents the output of time of (N+1), then the output of the low-pass filter is:
Y(N+1)=(1/M)*X(N)+[(M−1)/M]*Y(N) (2)
In this embodiment, the selected pulse lengths Ti is the input data X(N) and the average length Ta is the output data Y(N+1).
Next, the jitter measuring device 10 utilizes the length difference calculating unit 14 to calculate the length differences between each selected pulse length Ti and the average length Ta. The length difference calculating unit 14 may be a subtracter, which subtracts the average length Ta from the selected pulse lengths Ti to get length differences Te. Finally, the jitter measuring device 10 utilizes the jitter calculating unit 15 to calculate an average of the length differences as a jitter for output. Similar to the average length calculating unit 13, the jitter calculating unit 15 may be implemented by a low-pass filter.
Step S702: measuring the rough pulse length for each pulse of the serial digital signal, wherein the rough pulse length for each pulse of the serial digital signal is the pulse number of a reference clock during the pulse. The frequency of the reference clock does not have to be too high.
Step S704: measuring the phase errors, wherein the phase error between the positive/negative edge of the serial digital signal and the positive edge of the reference clock is measured according to a plurality of multi-phase clocks. Because the multi-phase clocks are generated according to the reference clock, the multi-phase clocks and the reference clock have the same frequency.
Step S706: calculating the fine pulse length according to the rough pulse length and the phase errors. The fine pulse length is calculated by subtracting the rough pulse length from the positive edge phase error, and then by adding the negative edge phase error to get the fine pulse length.
Step S708: selecting the fine pulse lengths matching the length selection signal as the selected pulse lengths Ti. Because the fine pulse lengths are not fixed length (for example, the pulse lengths of the CD-ROM system are between 3T and 11T), the fine pulse lengths having the same range have to be selected to compute the jitter. Alternately, it is possible to select fine pulse lengths matching one of two or more length selection signals.
Step S710: calculating the average length of the selected pulse lengths Ti as an average pulse length Ta.
Step S712: calculating the length errors between each selected pulse length Ti and the average pulse length Ta. The length errors can be the length differences or the length standard deviation.
Step S714: calculating the jitter by calculating the average of the length errors.
In summary, the jitter measuring device of the present invention measures the jitter in the serial digital signal according to the reference clock having lower frequency, and is free from the problem of providing a reference clock having high frequency accordingly.
While certain exemplary embodiments have been described and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that this invention not be limited to the specific construction and arrangement shown and described, since various other modifications may occur to those ordinarily skilled in the art.
Claims
1. A jitter measuring device for measuring jitters in a serial digital signal, the jitter measuring device comprising:
- a pulse length measuring unit for receiving the serial digital signal and a reference clock and measuring pulse length for each pulse of the serial digital signal according to the reference clock;
- a pulse selecting unit for selecting the pulse lengths corresponding to a length selection signal as selected pulse lengths;
- an average length calculating unit for calculating an average pulse length among the selected pulse lengths;
- a length difference calculating unit for receiving the selected pulse lengths and the average pulse length and calculating length difference for each selected pulse length with the average pulse length; and
- a jitter calculating unit for receiving the length differences and calculating an average of the length differences as the jitters.
2. The jitter measuring device according to claim 1, wherein the pulse length measuring unit comprises:
- a rough length measuring unit for receiving the serial digital signal and the reference clock and generating a rough pulse length for each pulse of the serial digital signal;
- a multi-phase signal generator for generating multi-phase clocks according to the reference clock;
- a phase error measuring unit for receiving the serial digital signal, the reference clock and the multi-phase clocks, and generating a positive edge phase error and a negative edge phase error for each pulse of the serial digital signal; and
- a length integrating unit for receiving the rough pulse length, the positive edge phase error and the negative edge phase error, and calculating the pulse length for each pulse of the serial digital signal.
3. The jitter measuring device according to claim 2, wherein the rough length measuring unit is a counter for counting pulse number of the reference clock for each pulse as the rough pulse length.
4. The jitter measuring device according to claim 3, wherein the phase error measuring unit comprises:
- a plurality of positive-edge triggered flip-flops generating a positive edge phase error signal by receiving the reference clock and the multi-phase clocks as input signals and receiving the serial digital signal as a trigger signal;
- a plurality of negative-edge triggered flip-flops for generating a negative edge phase error signal by receiving the reference clock and the multi-phase clocks as input signals and receiving the serial digital signal as a trigger signal; and
- a decoder for receiving the positive edge phase error signal and the negative edge phase error signal and generating the positive edge phase error and the negative edge phase error according to a look-up table.
5. The jitter measuring device according to claim 4, wherein the length integrating unit performs subtraction and addition operations with respect to the rough pulse length, the positive edge phase error, and the negative edge phase error.
6. The jitter measuring device according to claim 5, wherein the average length calculating unit is a low-pass filter.
7. The jitter measuring device according to claim 5, wherein the jitter calculating unit is a low-pass filter.
8. The jitter measuring device according to claim 5, wherein the length difference calculating unit is a subtracter.
9. A jitter measuring method for measuring jitters in a serial digital signal, comprising the steps of:
- generating multi-phase clocks according to a reference clock;
- measuring rough pulse length for each pulse of the serial digital signal according to the reference clock;
- measuring positive/negative edge phase errors of the positive/negative edges of the serial digital signal according to the reference clock and the multi-phase clocks;
- calculating pulse length for each pulse according to the rough pulse length and the positive/negative edge phase errors;
- selecting the pulse lengths matching one of length selection signals as selected pulse lengths;
- calculating an average pulse length of the selected pulse lengths;
- calculating length error for each selected pulse length with the average pulse length; and
- calculating an average of the length errors as the jitters.
10. The method according to claim 9, wherein the step of calculating the pulse length comprises:
- subtracting the positive edge phase error from the rough pulse length to generate a computed result; and
- adding the negative edge phase error to the computed result as the pulse length.
11. The method according to claim 9, wherein length error is length difference.
12. The method according to claim 9, wherein length error is length standard deviation.
13. A jitter measuring method for measuring jitters in a serial digital signal, the jitter measuring method comprising the steps of:
- receiving the serial digital signal and a reference clock and measuring a pulse length for each pulse of the serial digital signal according to the reference clock;
- selecting the pulse lengths corresponding to a length selection signal as selected pulse lengths;
- calculating an average pulse length among the selected pulse lengths;
- receiving the selected pulse lengths and the average pulse length and calculating length difference for each selected pulse length with the average pulse length; and
- receiving the length differences and calculating an average of the length differences as the jitters.
14. The jitter measuring method according to claim 13, wherein the step of measuring pulse length comprises:
- receiving the serial digital signal and the reference clock and generating a rough pulse length for each pulse of the serial digital signal;
- generating multi-phase clocks according to the reference clock;
- receiving the serial digital signal, the reference clock and the multi-phase clocks, and generating a positive edge phase error and a negative edge phase error for each pulse of the serial digital signal; and
- receiving the rough pulse length, the positive edge phase error and the negative edge phase error, and calculating the pulse length for each pulse of the serial digital signal.
15. The jitter measuring method according to claim 14, wherein the step of generating a rough pulse length is to count pulse number of the reference clock for each pulse as the rough pulse length.
16. The jitter measuring method according to claim 15, wherein the step of generating a positive edge phase error and a negative edge phase error comprises the steps of:
- generating a positive edge phase error signal according to the reference clock and the multi-phase clocks as input signals and the serial digital signal as a trigger signal;
- generating a negative edge phase error signal according to the reference clock and the multi-phase clocks as input signals and the serial digital signal as a trigger signal; and
- receiving the positive edge phase error signal and the negative edge phase error signal and generating the positive edge phase error and the negative edge phase error according to a look-up table.
17. The jitter measuring method according to claim 16, wherein the step of calculating the pulse length performs subtraction and addition operations with respect to the rough pulse length, the positive edge phase error, and the negative edge phase error.
18. The jitter measuring method according to claim 17, wherein the step of calculating the average pulse length is to perform a low-pass filtering procedure.
19. The jitter measuring method according to claim 17, wherein the step of calculating the average of the length differences as the jitters is to perform a low-pass filtering procedure.
20. The jitter measuring method according to claim 17, wherein the step of calculating the length difference utilizes is to perform a subtraction procedure.
21. A jitter measuring device for measuring jitters in a serial digital signal, the jitter measuring device comprising:
- a pulse length measuring unit for receiving the serial digital signal and a reference clock and measuring pulse length for each pulse of the serial digital signal according to the reference clock;
- a pulse selecting unit for selecting the pulse lengths corresponding to a length selection signal as selected pulse lengths;
- a length difference calculating unit for receiving the selected pulse lengths and calculating length difference for each selected pulse length; and
- a jitter calculating unit for receiving the length differences and calculating an average of the length differences as the jitters.
22. A jitter measuring method for measuring jitters in a serial digital signal, the jitter measuring method comprising the steps of:
- receiving the serial digital signal and a reference clock and measuring pulse length for each pulse of the serial digital signal according to the reference clock;
- selecting the pulse lengths corresponding to a pre-determined length as selected pulse lengths;
- receiving the selected pulse lengths and calculating length difference for each selected pulse length; and
- receiving the length differences and calculating an average of the length differences as the jitters.
23. A pulse length measuring device for measuring pulse length in a serial digital signal, the pulse length measuring device comprising:
- a rough length measuring unit for receiving the serial digital signal and a reference clock and generating a rough pulse length for each pulse of the serial digital signal;
- a multi-phase signal generator for generating multi-phase clocks according to the reference clock;
- a phase error measuring unit for receiving the serial digital signal, the reference clock and the multi-phase clocks, and generating a positive edge phase error and a negative edge phase error for each pulse of the serial digital signal; and
- a length integrating unit for receiving the rough pulse length, the positive edge phase error and the negative edge phase error, and calculating the pulse length for each pulse of the serial digital signal.
24. A pulse length measuring method for measuring pulse length in a serial digital signal, the pulse length measuring method comprising the steps of:
- receiving the serial digital signal and a reference clock and generating a rough pulse length for each pulse of the serial digital signal;
- generating multi-phase clocks according to the reference clock;
- receiving the serial digital signal, the reference clock and the multi-phase clocks, and generating a positive edge phase error and a negative edge phase error for each pulse of the serial digital signal; and
- receiving the rough pulse length, the positive edge phase error and the negative edge phase error, and calculating the pulse length for each pulse of the serial digital signal.
25. A phase error measuring device for measuring phase error in a serial digital signal, the phase error measuring device comprises:
- a plurality of positive-edge triggered flip-flops for receiving a reference clock and multi-phase clocks as input signals and the serial digital signal as a trigger signal to generate positive edge phase error signals;
- a plurality of negative-edge triggered flip-flops for receiving the reference clock and the multi-phase clocks as input signals and the serial digital signal as a trigger signal to generate negative edge phase error signals; and
- a decoder for receiving the positive edge phase error signals and the negative edge phase error signals and generating the positive edge phase error and the negative edge phase error according to a look-up table.
26. A phase error measuring method for measuring phase error in a serial digital signal, the phase error measuring method comprising the steps of:
- generating a plurality of positive edge phase error signals by receiving a reference clock and multi-phase clocks as input signals and receiving the serial digital signal as a trigger signal;
- generating a plurality of negative edge phase error signals by receiving the reference clock and the multi-phase clocks as input signals and receiving the serial digital signal as a trigger signal; and
- receiving the positive edge phase error signals and the negative edge phase error signals and generating the positive edge phase error and the negative edge phase error according to a look-up table.
Type: Grant
Filed: Nov 15, 2006
Date of Patent: Apr 6, 2010
Assignee: Mediatek Inc. (Hsin Chu)
Inventors: Ming-Yang Chao (Tai Chung County), Szu-Shan Lo (Hsinchu)
Primary Examiner: Tesfaldet Bocure
Attorney: Muncy, Geissler, Olds & Lower, PLLC
Application Number: 11/599,634
International Classification: H04B 17/00 (20060101);