Method, device, computer storage medium and terminal for implementing spread spectrum information processing
By recording the phase inversion interval time between the frequency spreading clock signal to be measured and the phase locked loop clock signal, and calculating the frequency spreading period and amplitude, the problem of not being able to obtain frequency spreading information in the prior art is solved, simplifying the clock recovery process and reducing the Frequency deviation.
Patent Information
- Application Number
- CN202211100866.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-09-08
AI Technical Summary
The prior art cannot accurately obtain the spreading cycle and spreading amplitude information, which makes it difficult for the receiver to reduce the frequency deviation from the transmitting end, increasing the difficulty of clock recovery.
By determining the number of phase inversion times and interval time of the frequency expansion clock signal to be measured and the phase lock loop clock signal within the preset time, determining the frequency expansion period and amplitude, recording the phase inversion interval time using the D flip-flop and timer, and calculating the phase inversion interval time, Expansion period and amplitude.
It realizes accurate acquisition of frequency spreading information, reduces the frequency deviation between the receiver and the transmitting end, simplifies the clock recovery design, and reduces the difficulty of mass production testing and chip verification.
Smart Images

Figure CN116318241B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to but is not limited to signal processing technology, and in particular to a method, device, computer storage medium and terminal for implementing spread spectrum information processing. Background Art
[0002] In order to reduce electromagnetic interference (EMI) during communication, the transmitting end of the communication usually adopts spread spectrum technology to superimpose a triangular wave modulation signal on the clock or data signal frequency, effectively reducing the energy radiation at a fixed frequency point. In related technologies, the receiving end of the communication can determine whether the transmitting end has spread spectrum modulation through processing, but cannot obtain the specific spread spectrum frequency and spread spectrum amplitude information; Figure 1 A schematic diagram of the related technology for judging spread spectrum modulation, such as Figure 1 As shown, it includes a frequency selection circuit and an identification circuit, and measures the harmonic amplitude of the input signal of the receiving end through fast Fourier transform FFT transformation. If the harmonic amplitude is less than a preset value, it is considered that there is spectrum spreading, and if the harmonic amplitude is greater than or equal to the preset value, it is considered that there is no spectrum spreading.
[0003] If the spread spectrum period and spread spectrum amplitude can be accurately obtained, the receiving end can superimpose the same spread spectrum signal on the local clock signal, which will greatly reduce the frequency deviation from the sending end and simplify the difficulty of clock recovery design. At the same time, obtaining the spread spectrum period and amplitude information can also be used for mass production testing or chip verification. How to obtain the spread spectrum period and spread spectrum amplitude has become a problem to be solved. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a method, an apparatus, a computer storage medium and a terminal for implementing spread spectrum information processing, which can obtain spread spectrum information.
[0006] An embodiment of the present invention provides a method for implementing spread spectrum information processing, including:
[0007] Determine each phase reversal that occurs within a preset time period compared to the spread spectrum clock signal to be tested and the phase-locked loop clock signal;
[0008] Determine the duration of each phase reversal interval;
[0009] Determining a reference time for determining a spread spectrum period according to the recorded interval duration;
[0010] Determine the spread spectrum period according to the duration between two consecutive reference moments;
[0011] The output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured.
[0012] On the other hand, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing spread spectrum information processing is implemented.
[0013] In another aspect, an embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein the memory stores a computer program; wherein:
[0014] The processor is configured to execute the computer program in the memory;
[0015] When the computer program is executed by the processor, the method for implementing spread spectrum information processing as described above is implemented.
[0016] In another aspect, an embodiment of the present invention further provides a device for implementing spread spectrum information processing, comprising: a D flip-flop, a first timer, a judgment unit and a processing unit; wherein,
[0017] The D flip-flop is set to: determine each phase reversal that occurs within a preset time period compared to the spread spectrum clock signal to be measured and the phase-locked loop clock signal;
[0018] The first timer is set to: determine the interval length of each phase reversal;
[0019] The judging unit is configured to: determine a reference time for determining a spread spectrum period according to the recorded interval duration;
[0020] The processing unit is configured to: determine a spread spectrum period according to a duration between two consecutive reference moments;
[0021] The output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured.
[0022] The technical solution of the present application includes: determining each phase reversal that occurs within a preset time length compared to the spread spectrum clock signal to be tested and the phase-locked loop clock signal; determining the interval duration of each phase reversal; determining a reference moment for determining the spread spectrum period according to the recorded interval duration; determining the spread spectrum period according to the duration between two consecutive reference moments; wherein the output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be tested. The embodiment of the present invention determines the reference moment for determining the spread spectrum period by determining the interval duration of the phase reversal that occurs between the spread spectrum clock signal to be tested and the phase-locked loop clock signal, and determines the spread spectrum period based on the duration of two consecutive reference moments, thereby providing information support for reducing the frequency deviation between the receiving end and the transmitting end and reducing the difficulty of clock recovery.
[0023] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0025] Figure 1 A flow chart of a method for implementing spread spectrum information processing according to an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of the working principle of a D flip-flop according to an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of the working principle of another D flip-flop according to an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of phase inversion according to an embodiment of the present invention;
[0029] Figure 5 A schematic diagram of a spread spectrum period according to an embodiment of the present invention;
[0030] Figure 6 The present invention is a block diagram of a device for implementing spread spectrum information processing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0032] The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a sequence different from that shown here.
[0033] Figure 1 Flow chart of a method for implementing spread spectrum information processing according to an embodiment of the present invention, such as Figure 1 As shown, including:
[0034] Step 101, determining each phase inversion occurring within a preset time period compared to the spread spectrum clock signal to be measured and the phase-locked loop clock signal; wherein the output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured;
[0035] Step 102: Determine the interval length of each phase reversal;
[0036] Step 103: determining a reference time for determining a spread spectrum period according to the recorded interval duration;
[0037] Step 104: Determine a spread spectrum period according to the duration between two consecutive reference moments.
[0038] The embodiment of the present invention determines the reference moment for determining the spread spectrum period by determining the duration of the interval at which the phase inversion occurs between the spread spectrum clock signal to be measured and the phase-locked loop clock signal, and determines the spread spectrum period based on the duration of two consecutive reference moments, thereby providing information support for reducing the frequency deviation between the receiving end and the transmitting end and reducing the difficulty of clock recovery.
[0039] In an exemplary embodiment, the preset duration of the embodiment of the present invention may be determined by a technician through analysis based on the estimated duration of the spread spectrum period.
[0040] In an exemplary embodiment, the embodiment of the present invention performs the above-mentioned processing of the spread spectrum information at the receiving end; in an exemplary embodiment, the embodiment of the present invention performs the above-mentioned processing when the spread spectrum clock signal changes, and whether the spread spectrum clock signal changes can be determined by a person skilled in the art with reference to relevant technologies. In an exemplary embodiment, the embodiment of the present invention can perform the above-mentioned processing of the spread spectrum information according to a preset period, and the preset period can be determined by a technician based on scenario analysis.
[0041] In an exemplary embodiment, the embodiment of the present invention determines each phase reversal occurring within a preset time period compared with the spread spectrum clock signal to be measured and the phase-locked loop clock signal, including:
[0042] Through a preset D flip-flop (an information storage device with memory function and two stable states, which is the most basic logic unit constituting a variety of sequential circuits and an important unit circuit in digital logic circuits), the received phase-locked loop clock signal and the spread spectrum clock signal to be measured are determined to have a phase inversion every time the output level of the D flip-flop changes;
[0043] The phase-locked loop clock signal is output by a preset phase-locked loop connected to a D flip-flop.
[0044] In an exemplary embodiment, the embodiment of the present invention determines the interval duration of each phase reversal, including:
[0045] When phase reversal occurs, a preset first timer is triggered by a preset enable signal to record the interval duration.
[0046] In an exemplary embodiment, the embodiment of the present invention can generate an enable signal through a preset edge detection device when the D flip-flop determines that a phase reversal occurs, and the interval length starts when the previous enable signal is sent and ends when the next enable signal is sent. At the same time, when the next enable signal is sent, the interval length of the next phase reversal begins to be recorded. In an exemplary embodiment, the timer of the embodiment of the present invention can be implemented by a counter that runs at a preset interval.
[0047] In an exemplary embodiment, each time the phase-locked loop clock signal switches from a low level to a high level, the level of the spread spectrum clock signal to be measured is used as the output level of the D flip-flop. Once the output level of the D flip-flop changes, a phase reversal occurs between the spread spectrum clock signal to be measured and the phase-locked loop clock signal. Figure 2 Schematic diagram of the working principle of the D flip-flop in the embodiment of the present invention. Figure 3 FIG. 1 is a schematic diagram of the working principle of another D flip-flop according to an embodiment of the present invention. Figure 2 and Figure 3 After setting the output frequency of the phase-locked loop clock signal, the D flip-flop receives the phase-locked loop clock signal and the spread spectrum clock signal to be measured. Each time the phase-locked loop clock signal switches from a low level to a high level, the output level of the D flip-flop is equal to the level of the spread spectrum clock signal to be measured. The D flip-flop determines that this phase reversal indicates that the phase between the phase-locked loop clock signal and the spread spectrum clock signal to be measured exceeds 180 degrees. As long as the phase is reversed, the output level of the D flip-flop will change. The output level of the D flip-flop in the embodiment of the present invention will change, and an enable signal is output to the first timer to record the duration of the interval. Figure 4 Schematic diagram of phase reversal in an embodiment of the present invention, Figure 4 As shown, when the frequency of the spread spectrum clock signal to be measured is greater than the frequency of the phase-locked loop clock signal, the phase moves to the left; when the frequency of the spread spectrum clock signal to be measured is less than the frequency of the phase-locked loop clock signal, the phase moves to the right; within the i-th interval duration where the phase reversal occurs, at a certain moment, the frequency of the spread spectrum clock signal to be measured is equal to the frequency of the phase-locked loop clock signal; compared with the phase-locked loop clock signal, the phase shift of the spread spectrum clock signal to be measured is 0; within the i+1-th interval duration and the i+2-th interval duration, compared with the phase-locked loop clock signal, the phase shift of the spread spectrum clock signal to be measured is 2*pi; since the frequency of the spread spectrum clock signal to be measured is closest to that of the phase-locked loop clock signal at this time, the time required for the phase shift between the two to exceed 2*pi is the longest, and the i-th interval duration is the longest.
[0048] In an exemplary embodiment, the embodiment of the present invention determines a reference time for determining a spread spectrum period according to the recorded interval duration, including:
[0049] Sort the recorded interval durations according to the order of phase reversal;
[0050] When the interval duration of the i-th phase inversion is greater than the interval duration of the i-1-th phase inversion and the interval duration of the i+1-th phase inversion, and the difference between the interval duration of the i-1-th phase inversion and the interval duration of the i+1-th phase inversion is less than or equal to a preset difference threshold, it is determined that the interval duration of the i-th phase inversion includes the moment when the phase-locked loop clock signal and the spread spectrum clock signal to be measured are equal;
[0051] Taking the interval duration of the i-th phase reversal as a reference, a time is selected from the interval duration of the i-th phase reversal to the interval duration of the (i+3)-th phase reversal as a reference time;
[0052] Here, i is an integer greater than or equal to 1.
[0053] The reference time in the embodiment of the present invention can be selected by a technician from the interval duration of the i-th phase inversion to the interval duration of the i+3-th phase inversion. For example, the end time of the interval duration of the i-th phase inversion can be used as the reference time, as long as it is a moment that can be determined for reference.
[0054] In an exemplary embodiment, the embodiment of the present invention determines the spread spectrum period according to the duration between two consecutive reference moments, including:
[0055] The duration between two consecutive reference moments is determined as the spreading period.
[0056] Figure 5 Schematic diagram of the spread spectrum period of an embodiment of the present invention, such as Figure 5 As shown, assuming that T1 is the interval duration of the i-th phase inversion, T0 is the interval duration of the i-1-th phase inversion, T2 is the interval duration of the i+1-th phase inversion, and the T2 timing end time is used as the reference time. The duration of the spread spectrum period in an embodiment of the present invention is determined as the duration between two consecutive reference times.
[0057] In an exemplary embodiment, the spread spectrum period of the embodiment of the present invention is determined by recording a preset second timer.
[0058] In an exemplary embodiment, after determining the spread spectrum period according to the duration between two consecutive reference moments, the method of the embodiment of the present invention further includes:
[0059] The spread spectrum amplitude of the spread spectrum clock signal to be measured is determined according to the determined spread spectrum period, the interval duration of the i-th phase inversion, the interval duration of the i+1-th phase inversion and the interval duration of the i+2-th phase inversion.
[0060] In an exemplary embodiment, the embodiment of the present invention calculates the spread spectrum amplitude by the following formula:
[0061]
[0062]
[0063] Wherein, T1 represents the interval duration of the i-th phase inversion, T2 represents the interval duration of the i+1-th phase inversion; T3 represents the interval duration of the i+2-th phase inversion; S1 represents the spread spectrum amplitude, S2 represents the spread spectrum period, f represents the initial frequency of the spread spectrum clock signal to be measured, f0 represents the frequency of the phase-locked loop clock signal, and t is the integration time.
[0064] Formula 1 indicates that in the T1 time period, the phase difference between the spread spectrum clock signal to be measured and the phase-locked loop clock signal is 0; Formula 2 indicates that in the T1+T2+T3 time period, the phase difference between the spread spectrum clock signal to be measured and the phase-locked loop clock signal is 360 degrees. The above formula can be solved to obtain:
[0065]
[0066] An embodiment of the present invention further provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for processing spread spectrum information is implemented.
[0067] The embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory; wherein:
[0068] The processor is configured to execute the computer program in the memory;
[0069] When the computer program is executed by the processor, the method for implementing spread spectrum information processing as described above is implemented.
[0070] Figure 6 FIG. 1 is a structural block diagram of a device for implementing spread spectrum information processing according to an embodiment of the present invention. Figure 6 As shown, it includes: a D trigger, a first timer, a judgment unit and a processing unit; wherein,
[0071] The D flip-flop is set to: determine each phase reversal that occurs within a preset time period compared to the spread spectrum clock signal to be measured and the phase-locked loop clock signal;
[0072] The first timer is set to: determine the interval length of each phase reversal;
[0073] The judging unit is configured to: determine a reference time for determining a spread spectrum period according to the recorded interval duration;
[0074] The processing unit is configured to: determine a spread spectrum period according to a duration between two consecutive reference moments;
[0075] The output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured.
[0076] In an exemplary embodiment, the D flip-flop of the embodiment of the present invention is set as follows:
[0077] Outputting a level indicating whether phase inversion occurs according to a received phase-locked loop clock signal and a spread spectrum clock signal to be measured;
[0078] The phase-locked loop clock signal is output by a preset phase-locked loop connected to a D flip-flop, and the output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured.
[0079] In an exemplary embodiment, the first timer of the embodiment of the present invention is set to:
[0080] The processing of recording the interval length is performed according to the received enable signal input when the phase inversion occurs.
[0081] In an exemplary embodiment, the embodiment of the present invention may output an enable signal to the first timer based on the edge detection unit according to the phase reversal information.
[0082] In an exemplary embodiment, the judgment unit of the embodiment of the present invention is configured to: sort the recorded interval durations according to the order of phase reversal;
[0083] When the interval duration of the i-th phase inversion is greater than the interval duration of the i-1-th phase inversion and the interval duration of the i+1-th phase inversion, and the difference between the interval duration of the i-1-th phase inversion and the interval duration of the i+1-th phase inversion is less than or equal to a preset difference threshold, it is determined that the interval duration of the i-th phase inversion includes the moment when the phase-locked loop clock signal and the spread spectrum clock signal to be measured are equal;
[0084] Taking the interval duration of the i-th phase reversal as a reference, a time is selected from the interval duration of the i-th phase reversal to the interval duration of the (i+3)-th phase reversal as a reference time;
[0085] Here, i is an integer greater than or equal to 1.
[0086] In an exemplary embodiment, the processing unit of the embodiment of the present invention includes a second timer, which is used to record the duration between two consecutive reference moments to determine the spread spectrum period.
[0087] In an exemplary embodiment, the processing unit of the embodiment of the present invention is further configured to:
[0088] The spread spectrum amplitude of the spread spectrum clock signal to be measured is determined according to the determined spread spectrum period, the interval duration of the i-th phase inversion, the interval duration of the i+1-th phase inversion and the interval duration of the i+2-th phase inversion.
[0089] In an exemplary embodiment, the processing unit of the embodiment of the present invention calculates the spread spectrum amplitude by the following formula:
[0090]
[0091]
[0092] Wherein, T1 represents the interval duration of the i-th phase inversion, T2 represents the interval duration of the i+1-th phase inversion; T3 represents the interval duration of the i+2-th phase inversion; S1 represents the spread spectrum amplitude, S2 represents the spread spectrum period, f represents the initial frequency of the spread spectrum clock signal to be measured, f0 represents the frequency of the phase-locked loop clock signal, and t is the integration time.
[0093] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for implementing spread spectrum information processing, comprising: Determine each phase reversal that occurs within a preset time period compared to the spread spectrum clock signal to be tested and the phase-locked loop clock signal; Determine the duration of each phase reversal interval; Determining a reference time for determining a spread spectrum period according to the recorded interval duration; Determine the spread spectrum period according to the duration between two consecutive reference moments; Wherein, the output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured; the determination of the reference time for determining the spread spectrum period according to the recorded interval durations includes: sorting the recorded interval durations according to the order of phase inversion; when the interval duration of the i-th phase inversion is greater than the interval duration of the i-1th phase inversion and the interval duration of the i+1th phase inversion, and the difference between the interval duration of the i-1th phase inversion and the interval duration of the i+1th phase inversion is less than or equal to a preset difference threshold, determining that the interval duration of the i-th phase inversion includes the moment when the phase-locked loop clock signal and the spread spectrum clock signal to be measured are equal; taking the interval duration of the i-th phase inversion as a reference, selecting a moment from the interval duration of the i-th phase inversion to the interval duration of the i+3th phase inversion as a reference; wherein i is an integer greater than or equal to 1.
2. The method according to claim 1, characterized in that The step of determining each phase reversal occurring within a preset time period compared with the spread spectrum clock signal to be measured and the phase-locked loop clock signal comprises: By using a preset D flip-flop to receive the received phase-locked loop clock signal and the spread spectrum clock signal to be measured, each time the output level of the D flip-flop changes, determining that the phase inversion occurs once; The phase-locked loop clock signal is output by a preset phase-locked loop connected to a D flip-flop.
3. The method according to claim 2, characterized in that After determining the spread spectrum period according to the duration between two consecutive reference moments, the method further includes: The spread spectrum amplitude of the spread spectrum clock signal to be measured is determined according to the determined spread spectrum period, the interval duration of the i-th phase inversion, the interval duration of the i+1-th phase inversion and the interval duration of the i+2-th phase inversion.
4. The method according to claim 3, characterized in that The spread spectrum amplitude is calculated by the following formula: Wherein, T1 represents the interval duration of the i-th phase inversion, T2 represents the interval duration of the i+1-th phase inversion; T3 represents the interval duration of the i+2-th phase inversion; S1 represents the spread spectrum amplitude, S2 represents the spread spectrum period, f represents the initial frequency of the spread spectrum clock signal to be measured, f0 represents the frequency of the phase-locked loop clock signal, and t represents the integration time.
5. The method according to any one of claims 1 to 4, characterized in that: Determining the interval duration of each phase reversal includes: When the phase reversal occurs, a preset first timer is triggered by a preset enable signal to record the interval duration.
6. The method according to any one of claims 1 to 4, characterized in that: The spread spectrum period is determined by recording through a preset second timer.
7. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for implementing spread spectrum information processing according to any one of claims 1 to 6 is implemented.
8. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the method for implementing spread spectrum information processing according to any one of claims 1 to 6 is implemented.
9. A device for implementing spread spectrum information processing, comprising: D flip-flop, a first timer, a judgment unit and a processing unit; wherein, The D flip-flop is set to: determine each phase reversal that occurs within a preset time period compared to the spread spectrum clock signal to be measured and the phase-locked loop clock signal; The first timer is set to: determine the interval length of each phase reversal; The judging unit is configured to: determine a reference time for determining a spread spectrum period according to the recorded interval duration; The processing unit is configured to: determine a spread spectrum period according to a duration between two consecutive reference moments; Wherein, the output frequency of the phase-locked loop clock signal is determined by the operating frequency of the spread spectrum clock signal to be measured; the determination of the reference time for determining the spread spectrum period according to the recorded interval durations includes: sorting the recorded interval durations according to the order of phase inversion; when the interval duration of the i-th phase inversion is greater than the interval duration of the i-1th phase inversion and the interval duration of the i+1th phase inversion, and the difference between the interval duration of the i-1th phase inversion and the interval duration of the i+1th phase inversion is less than or equal to a preset difference threshold, determining that the interval duration of the i-th phase inversion includes the moment when the phase-locked loop clock signal and the spread spectrum clock signal to be measured are equal; taking the interval duration of the i-th phase inversion as a reference, selecting a moment from the interval duration of the i-th phase inversion to the interval duration of the i+3th phase inversion as a reference; wherein i is an integer greater than or equal to 1.
