An automatic time correction system and method based on a carry-delay chain
By calibrating the crystal oscillator frequency change through the inherent delay of the carry delay chain, and adjusting the time counting logic of the individual soldier maintenance device using the signal comparison and time offset calculation modules, the problems of high difficulty, low accuracy and high cost of time synchronization are solved, and high-precision automatic time synchronization is achieved.
Patent Information
- Application Number
- CN202411624187.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2044-11-14
AI Technical Summary
Individual soldier maintenance devices face challenges in time calibration due to their high accuracy and cost under self-timed requirements. Existing temperature-controlled crystal oscillators and temperature-compensated crystal oscillators suffer from high power consumption, large size, and difficult calibration.
The inherent time delay of the carry delay chain is used to calibrate the crystal oscillator frequency change. The phase difference between the crystal oscillator and the output signal of the carry delay chain is obtained through the signal comparison module. The time offset calculation module is used to adjust the time counting logic to achieve automatic time synchronization.
It reduced the cost of time synchronization, improved the accuracy of time synchronization, and achieved high-precision time synchronization of individual soldier maintenance devices under self-guarding time.
Smart Images

Figure CN119439687B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power electronics technology, and in particular to an automatic time synchronization system and method based on carry delay chain. Background Technology
[0002] Individual soldier maintenance (ISBN) devices are crucial equipment in main and distribution network relay protection testing. These devices typically require high time accuracy to ensure accurate test results; therefore, they are usually equipped with interfaces such as IRIG-B and GNSS for time synchronization. To further enhance the applicability of ISBN devices in different testing scenarios, they also need to meet self-timekeeping requirements, meaning they must maintain time accuracy within a certain time range in the absence of an external clock source.
[0003] To meet the self-timekeeping requirements, existing technologies typically replace the conventional crystal oscillator in the individual soldier maintenance device with a temperature-controlled crystal oscillator or a temperature-compensated crystal oscillator, so that the crystal oscillator maintains a small frequency deviation within a certain temperature range, ultimately enabling the device to maintain high time accuracy within a certain time period.
[0004] However, temperature-controlled crystal oscillators typically face problems such as high power consumption, large size, and high cost. Although temperature-compensated crystal oscillators have temperature compensation circuits, they are still very sensitive to changes in ambient temperature, and calibration is quite difficult. This paper uses the inherent delay of the FPGA carry delay chain to calibrate the crystal oscillator frequency change, ultimately achieving high-precision time calibration. This method features low cost, simple implementation, and high accuracy. Summary of the Invention
[0005] This invention provides an automatic time synchronization system and method based on a carry delay chain to solve the problems of high difficulty, low accuracy, and high cost in calibrating individual soldier maintenance devices. By using the inherent delay of the carry delay chain to calibrate the frequency change of the crystal oscillator, the automatic time synchronization of individual soldier maintenance devices can be achieved, which helps to reduce time synchronization costs and improve time synchronization accuracy.
[0006] According to one aspect of the present invention, an automatic time synchronization system based on a carry delay chain is provided, the automatic time synchronization system comprising a carry delay chain, a signal comparison module, and a time offset calculation module;
[0007] The signal comparison module is used to acquire a first signal generated by the crystal oscillator in the individual soldier maintenance device, and to acquire a second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal into the carry delay chain;
[0008] The signal comparison module is used to determine the phase difference signal between the first signal and the second signal;
[0009] The time offset calculation module is used to calculate the timing offset of the crystal oscillator based on the phase difference signal between the first signal and the second signal, and to adjust the time counting logic of the individual soldier maintenance device based on the timing offset.
[0010] According to another aspect of the present invention, an automatic time synchronization method based on a carry delay chain is provided. The method is executed by an automatic time synchronization system, which includes a carry delay chain, a signal comparison module, and a time offset calculation module. The method includes:
[0011] The signal comparison module acquires the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal into the carry delay chain;
[0012] The phase difference signal between the first signal and the second signal is determined by the signal comparison module;
[0013] The timing deviation calculation module calculates the timing deviation of the crystal oscillator based on the phase difference between the first signal and the second signal, and adjusts the timing counting logic of the individual soldier maintenance device according to the timing deviation.
[0014] The technical solution of this invention obtains a first signal generated by the crystal oscillator in the individual soldier maintenance device through a signal comparison module, and obtains a second signal output by the carry delay chain; the second signal is the signal obtained by inputting the first signal into the carry delay chain; the phase difference signal between the first signal and the second signal is determined through the signal comparison module; the timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference signal between the first signal and the second signal, and the time counting logic of the individual soldier maintenance device is adjusted according to the timing deviation. This solution solves the problems of high difficulty, low accuracy, and high cost in time synchronization of individual soldier maintenance devices. By calibrating the frequency change of the crystal oscillator through the inherent delay of the carry delay chain, automatic time synchronization of the individual soldier maintenance device is achieved, which helps to reduce time synchronization costs and improve time synchronization accuracy.
[0015] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1A This is a schematic diagram of an automatic time synchronization system based on a carry delay chain according to Embodiment 1 of the present invention;
[0018] Figure 1B This is a circuit connection diagram of an automatic time synchronization system provided according to Embodiment 1 of the present invention;
[0019] Figure 2 This is a flowchart of an automatic time synchronization method based on a carry delay chain provided in Embodiment 2 of the present invention. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be used interchangeably where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with the relevant provisions of national laws and regulations.
[0022] Example 1
[0023] Figure 1A This is a schematic diagram of an automatic time synchronization system based on a carry delay chain, as provided in Embodiment 1 of the present invention. This embodiment is an automatic time synchronization system based on a carry delay chain, which can be applied to substation relay protection scenarios, especially clock synchronization situations. Figure 1A As shown, the automatic time synchronization system based on carry delay chain includes carry delay chain 110, signal comparison module 120 and time offset calculation module 130;
[0024] The signal comparison module 120 is used to acquire a first signal generated by the crystal oscillator in the individual soldier operation and maintenance device, and to acquire a second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal to the carry delay chain 110;
[0025] The signal comparison module 120 is used to determine the phase difference signal between the first signal and the second signal;
[0026] The time offset calculation module 130 is used to calculate the timing deviation of the crystal oscillator based on the phase difference signal between the first signal and the second signal, and to adjust the time counting logic of the individual soldier maintenance device based on the timing deviation.
[0027] In this scheme, the automatic time synchronization system consists of a carry delay chain 110, a signal comparison module 120, and a time offset calculation module 130. The crystal oscillator in the individual soldier's maintenance device is connected to the carry delay chain 110, the carry delay chain 110 is connected to the signal comparison module 120, and the signal comparison module 120 is connected to the time offset calculation module 130. The carry delay chain 110 refers to a transmission delay line formed by cascading multiple carry-lookahead logic structures. The signal delay generated by the carry delay chain 110 is fixed, and therefore can be used to correct the crystal oscillator delay.
[0028] The carry delay chain 110 can acquire the square wave signal generated by the crystal oscillator in the individual soldier maintenance device, i.e., the first signal, and delay the first signal to obtain the second signal. The signal comparison module 120 can acquire the first signal generated by the crystal oscillator in the individual soldier maintenance device, and simultaneously acquire the second signal output by the carry delay chain, compare the phase of the first signal and the second signal, and output the phase difference signal between the first signal and the second signal. Specifically, the signal comparison module 120 can be a phase detector. If the rising edge of the first signal leads the rising edge of the second signal, the signal comparison module 120 outputs a positive voltage; if the rising edge of the first signal lags the rising edge of the second signal, the signal comparison module 120 outputs a negative voltage. The amplitude of the output voltage can be proportional to the phase difference between the first signal and the second signal.
[0029] The timing deviation calculation module 130 can calculate the timing deviation of the crystal oscillator based on the phase difference between the first and second signals, and adjust the time counting logic of the individual soldier maintenance device accordingly. Specifically, the timing deviation calculation module 130 can calculate the period or frequency of the first signal output by the crystal oscillator based on the phase difference between the first and second signals, compare the period of the first signal with the crystal oscillator period, or compare the frequency of the first signal with the crystal oscillator frequency, to obtain the timing deviation of the crystal oscillator. Based on the timing deviation of the crystal oscillator, the automatic time synchronization system can adjust the time counting logic of the individual soldier maintenance device. It can be understood that the time counting logic of the individual soldier maintenance device can be used to represent the mapping relationship between unit time and the number of clock cycles.
[0030] Optionally, in this solution, the automatic time synchronization system may also include an input selection module;
[0031] The input selection module is used to determine the input signal of the signal comparison module according to the working mode of the automatic time synchronization system; wherein, the working mode includes calibration mode and application mode.
[0032] To ensure the reliability of the automatic time synchronization system, it can perform automatic calibration before application. The automatic time synchronization system can include two operating modes: calibration mode and application mode. As is easily understood, the input signal of the signal comparison module 120 differs between calibration mode and application mode.
[0033] Based on the above scheme, the automatic time synchronization system also includes a pulse generation module;
[0034] The pulse generation module is used to generate a reference pulse signal;
[0035] The input selection module is specifically used for:
[0036] If the automatic time synchronization system is in application mode, then the input signal of the signal comparison module 120 is determined to be the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain.
[0037] If the automatic time synchronization system operates in calibration mode, then the input signal of the signal comparison module 120 is determined to be the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain 110; wherein, the third signal is the signal obtained by inputting the reference pulse signal to the carry delay chain 110.
[0038] In calibration mode, the automatic time synchronization system can use a pulse signal with a preset period generated by the pulse generation module as a reference pulse signal and input it into the carry delay chain 110. Based on the third signal output by the carry delay chain 110 and the reference pulse signal, the carry delay chain is calibrated. Therefore, the input signal to the signal comparison module 120 is the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain 110.
[0039] In application mode, the automatic time synchronization system can use the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain 110 as the input signal of the signal comparison module 120 to calibrate the frequency of the crystal oscillator based on the inherent time delay of the carry delay chain 110.
[0040] In one feasible embodiment, the signal comparison module 120 is further configured to determine the phase difference signal between the reference pulse signal and the third signal;
[0041] The time offset calculation module 130 is used to determine the phase-time mapping relationship based on the phase difference signal between the reference pulse signal and the third signal.
[0042] The time offset calculation module 130 can determine the phase-time mapping relationship based on the period of the reference pulse signal and the phase difference signal between the reference pulse signal and the third signal. This phase-time mapping relationship can be characterized by analog signals such as voltage and current output by the signal comparison module 120. For example, a 1mV voltage amplitude indicates a 0.036-degree phase difference between the two input signals of the signal comparison module 120, and a 1mV voltage amplitude indicates a 0.0005ns time difference between the rising edges of the two input signals; that is, a 0.036-degree phase difference corresponds to a 0.0005ns time difference.
[0043] Based on the above scheme, the time offset calculation module 130 is used to calculate the timing deviation of the crystal oscillator based on the phase difference signal between the first signal and the second signal and the phase-time mapping relationship.
[0044] The timing deviation calculation module 130 can obtain the timing deviation of the crystal oscillator based on the phase difference between the first and second signals and the phase-time mapping relationship, and then adjust the time counting logic of the individual soldier maintenance device according to the timing deviation. Specifically, the timing deviation calculation module 130 can calculate the period or frequency of the first signal output by the crystal oscillator according to the phase difference between the first and second signals and the phase-time mapping relationship, and compare the period of the first signal with the crystal oscillator period, or compare the frequency of the first signal with the crystal oscillator frequency, to obtain the timing deviation of the crystal oscillator. Based on the timing deviation of the crystal oscillator, the automatic time synchronization system can adjust the time counting logic of the individual soldier maintenance device.
[0045] Figure 1B This is a circuit connection diagram of an automatic time synchronization system according to Embodiment 1 of the present invention. In a specific example, the automatic time synchronization system is built based on a Field Programmable Gate Array (FPGA), such as... Figure 1B As shown, the signal comparison module 120 can be a phase detector, and the pulse generation module can be a pulse generator. The signal comparison module 120 can switch the input signal between calibration mode and application mode through a selector (MUX). The FPGA's selection pin (selection PIN) is connected to the selector and is used to control the selection of the selector's input signal. For example, when the selection PIN outputs a high level, the selector selects the reference pulse signal output by the pulse generator; when the selection PIN outputs a low level, the selector selects the first signal output by the crystal oscillator. The FPGA's input pin (input PIN) is connected to the output of the selector. The FPGA's output pin (output PIN) is connected to one input of the phase detector, and the selector's output is connected to the other input of the phase detector. The analog-to-digital converter (ADC chip) is used to convert the analog signal output by the phase detector into a digital signal. The ADC acquisition module in the FPGA can acquire the digital signal output by the ADC chip, restore the digital signal to an analog signal, and input the analog signal to the carry delay chain. When the acquired phase difference signal is greater than a preset signal value, the number of cascaded carry-lookahead logic structures in the carry delay chain 110 is increased. For example, when the voltage amplitude is greater than 1mV, the number of cascaded carry-lookahead logic structures in carry delay chain 110 is increased by 1.
[0046] Understandably, assuming the phase detector outputs an analog voltage amplitude ranging from -5V to +5V, and the crystal oscillator outputs a square wave signal with a period of 5ns and a duty cycle of 50%, the phase detector outputs a phase difference signal of +2.5V when the rising edge of the first signal leads the rising edge of the second signal by 90 degrees; and a phase difference signal of -2.5V when the rising edge of the first signal lags the rising edge of the second signal by 90 degrees. A positive phase difference signal indicates that the rising edge of the first signal leads the rising edge of the second signal, meaning the period of the square wave signal output by the crystal oscillator is less than 5ns and the frequency is greater than 200MHz; a negative phase difference signal indicates that the rising edge of the first signal lags the rising edge of the second signal, meaning the period of the square wave signal output by the crystal oscillator is greater than 5ns and the frequency is greater than 200MHz.
[0047] Each 1mV voltage amplitude indicates a 0.036-degree phase difference between the first and second signals. Calculated at 5ns, this means each 1mV voltage amplitude indicates a 0.0005ns time difference between the rising edges of the first and second signals. If the phase difference signal is 100mV, the period of the first signal is 4.95ns, and the frequency is 202.02MHz; if the phase difference signal is -100mV, the period of the first signal is 5.05ns, and the frequency is 198.02MHz. Assume the counting standard for the individual soldier maintenance device is to count 200,000,000 clock rising edges every 5ns. If the crystal oscillator timing deviation is -0.05ns, the counting logic of the individual soldier maintenance device can be adjusted to count 202020202 clock rising edges every 5ns; if the crystal oscillator timing deviation is +0.05ns, the counting logic of the individual soldier maintenance device can be adjusted to count 198019801 clock rising edges every 5ns.
[0048] The technical solution of this invention obtains a first signal generated by the crystal oscillator in the individual soldier maintenance device through a signal comparison module, and obtains a second signal output by the carry delay chain; the second signal is the signal obtained by inputting the first signal into the carry delay chain; the phase difference signal between the first signal and the second signal is determined through the signal comparison module; the timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference signal between the first signal and the second signal, and the time counting logic of the individual soldier maintenance device is adjusted according to the timing deviation. This solution solves the problems of high difficulty, low accuracy, and high cost in time synchronization of individual soldier maintenance devices. By calibrating the frequency change of the crystal oscillator through the inherent delay of the carry delay chain, automatic time synchronization of the individual soldier maintenance device is achieved, which helps to reduce time synchronization costs and improve time synchronization accuracy.
[0049] Example 2
[0050] Figure 2 This is a flowchart illustrating an automatic time synchronization method based on a carry delay chain, as provided in Embodiment 2 of the present invention. The method is executed by an automatic time synchronization system, which includes a carry delay chain, a signal comparison module, and a time offset calculation module. Figure 2 As shown, the method includes:
[0051] S210. Obtain the first signal generated by the crystal oscillator in the individual soldier maintenance device through the signal comparison module, and obtain the second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal into the carry delay chain.
[0052] This solution can be executed by an automatic time synchronization system, which includes a carry delay chain, a signal comparison module, and a time offset calculation module. In the individual soldier's maintenance device, the crystal oscillator is connected to the carry delay chain, which is connected to the signal comparison module, and the signal comparison module is connected to the time offset calculation module. The carry delay chain refers to a transmission delay line formed by cascading multiple carry-lookahead logic structures. The signal delay generated by the carry delay chain is fixed, and therefore can be used to correct the crystal oscillator delay.
[0053] S220. The phase difference signal between the first signal and the second signal is determined by the signal comparison module.
[0054] The carry-delay chain acquires the square wave signal generated by the crystal oscillator in the individual soldier maintenance device, i.e., the first signal, and delays it to obtain the second signal. The signal comparison module acquires the first signal generated by the crystal oscillator in the individual soldier maintenance device, and simultaneously acquires the second signal output by the carry-delay chain. It compares the phases of the first and second signals and outputs the phase difference signal between them. Specifically, the signal comparison module can be a phase detector. If the rising edge of the first signal leads the rising edge of the second signal, the signal comparison module outputs a positive voltage; if the rising edge of the first signal lags the rising edge of the second signal, the signal comparison module outputs a negative voltage. The amplitude of the output voltage can be proportional to the phase difference between the first and second signals.
[0055] S230. The timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference signal between the first signal and the second signal, and the timing counting logic of the individual soldier maintenance device is adjusted according to the timing deviation.
[0056] The timing deviation calculation module can calculate the timing deviation of the crystal oscillator based on the phase difference between the first and second signals, and adjust the time counting logic of the individual soldier maintenance device accordingly. Specifically, the timing deviation calculation module can calculate the period or frequency of the first signal output by the crystal oscillator based on the phase difference between the first and second signals, and compare the period of the first signal with the crystal oscillator period, or the frequency of the first signal with the crystal oscillator frequency, to obtain the timing deviation of the crystal oscillator. Based on the timing deviation of the crystal oscillator, the automatic time synchronization system can adjust the time counting logic of the individual soldier maintenance device. It can be understood that the time counting logic of the individual soldier maintenance device can be used to represent the mapping relationship between a unit of time and the number of clock cycles.
[0057] Optionally, in this solution, the automatic time synchronization system may also include an input selection module;
[0058] Before obtaining the first signal generated by the crystal oscillator in the individual soldier maintenance device through the signal comparison module, the method further includes:
[0059] The input selection module determines the input signal of the signal comparison module according to the working mode of the automatic time synchronization system; wherein, the working mode includes calibration mode and application mode.
[0060] To ensure the reliability of the automatic time synchronization system, it can perform automatic calibration before application. The automatic time synchronization system can include two operating modes: calibration mode and application mode. As is easily understood, the input signal of the signal comparison module differs between calibration mode and application mode.
[0061] Based on the above scheme, the automatic time synchronization system also includes a pulse generation module;
[0062] Before obtaining the first signal generated by the crystal oscillator in the individual soldier maintenance device through the signal comparison module, the method further includes:
[0063] A reference pulse signal is generated by the pulse generation module;
[0064] By using the input selection module, if the automatic time synchronization system operates in application mode, the input signal of the signal comparison module is determined to be the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain; if the automatic time synchronization system operates in calibration mode, the input signal of the signal comparison module is determined to be the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain; wherein, the third signal is the signal obtained by inputting the reference pulse signal to the carry delay chain.
[0065] In calibration mode, the automatic time synchronization system can use a pulse signal with a preset period generated by the pulse generation module as a reference pulse signal, inputting it into the carry delay chain. The carry delay chain is then calibrated based on the third signal output by the carry delay chain and the reference pulse signal. Therefore, the input signals to the signal comparison module are the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain.
[0066] In application mode, the automatic time synchronization system can use the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain as the input signal of the signal comparison module to calibrate the frequency of the crystal oscillator based on the inherent time delay of the carry delay chain.
[0067] In one feasible approach, after determining that the input signals of the signal comparison module are the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain, the method further includes:
[0068] The phase difference signal between the reference pulse signal and the third signal is determined by the signal comparison module;
[0069] The phase-time mapping relationship is determined by the time offset calculation module based on the phase difference signal between the reference pulse signal and the third signal.
[0070] The time offset calculation module can determine the phase-time mapping relationship based on the period of the reference pulse signal and the phase difference signal between the reference pulse signal and the third signal. This phase-time mapping relationship can be characterized by analog signals such as voltage and current output by the signal comparison module. For example, a 1mV voltage amplitude indicates a 0.036-degree phase difference between the two input signals of the signal comparison module, and a 1mV voltage amplitude indicates a 0.0005ns time difference between the rising edges of the two input signals; that is, a 0.036-degree phase difference corresponds to a 0.0005ns time difference.
[0071] Based on the above scheme, the step of calculating the timing deviation of the crystal oscillator using the timing deviation calculation module according to the phase difference signal between the first signal and the second signal includes:
[0072] The timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference between the first signal and the second signal and the phase-time mapping relationship.
[0073] The timing deviation calculation module can determine the timing deviation of the crystal oscillator based on the phase difference between the first and second signals, according to the phase-time mapping relationship. This timing deviation is then used to adjust the timing counting logic of the individual soldier's maintenance device. Specifically, the timing deviation calculation module can calculate the period or frequency of the first signal output by the crystal oscillator based on the phase difference between the first and second signals, according to the phase-time mapping relationship. By comparing the period of the first signal with the crystal oscillator period, or by comparing the frequency of the first signal with the crystal oscillator frequency, the timing deviation of the crystal oscillator can be obtained. Based on the timing deviation of the crystal oscillator, the automatic time synchronization system can adjust the timing counting logic of the individual soldier's maintenance device.
[0074] The technical solution of this invention obtains a first signal generated by the crystal oscillator in the individual soldier maintenance device through a signal comparison module, and obtains a second signal output by the carry delay chain; the second signal is the signal obtained by inputting the first signal into the carry delay chain; the phase difference signal between the first signal and the second signal is determined through the signal comparison module; the timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference signal between the first signal and the second signal, and the time counting logic of the individual soldier maintenance device is adjusted according to the timing deviation. This solution solves the problems of high difficulty, low accuracy, and high cost in time synchronization of individual soldier maintenance devices. By calibrating the frequency change of the crystal oscillator through the inherent delay of the carry delay chain, automatic time synchronization of the individual soldier maintenance device is achieved, which helps to reduce time synchronization costs and improve time synchronization accuracy.
[0075] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0076] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An automatic time synchronization system based on carry delay chain, characterized in that, The automatic time synchronization system includes a carry delay chain, a signal comparison module, and a time offset calculation module; The signal comparison module is used to acquire a first signal generated by the crystal oscillator in the individual soldier maintenance device, and to acquire a second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal into the carry delay chain; The signal comparison module is used to determine the phase difference signal between the first signal and the second signal; The time offset calculation module is used to calculate the timing offset of the crystal oscillator based on the phase difference signal between the first signal and the second signal, and to adjust the time counting logic of the individual soldier maintenance device based on the timing offset. The automatic time synchronization system also includes an input selection module; The input selection module is used to determine the input signal of the signal comparison module according to the working mode of the automatic time synchronization system; wherein, the working mode includes calibration mode and application mode; The time offset calculation module is used to calculate the timing deviation of the crystal oscillator based on the phase difference signal between the first signal and the second signal and the phase-time mapping relationship; wherein the phase-time mapping relationship is characterized by the analog signals of voltage and current output by the signal comparison module.
2. The automatic time synchronization system according to claim 1, characterized in that, The automatic time synchronization system also includes a pulse generation module; The pulse generation module is used to generate a reference pulse signal; The input selection module is specifically used for: If the automatic time synchronization system is in application mode, then the input signal of the signal comparison module is determined to be the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain. If the automatic time synchronization system operates in calibration mode, then the input signal of the signal comparison module is determined to be the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain; wherein, the third signal is the signal obtained by inputting the reference pulse signal into the carry delay chain.
3. The automatic time synchronization system according to claim 2, characterized in that, The signal comparison module is further configured to determine the phase difference signal between the reference pulse signal and the third signal; The time offset calculation module is used to determine the phase-time mapping relationship based on the phase difference signal between the reference pulse signal and the third signal.
4. An automatic time synchronization method based on carry delay chain, characterized in that, The method is executed by an automatic time synchronization system, which includes a carry delay chain, a signal comparison module, and a time offset calculation module; the method includes: The signal comparison module acquires the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain; wherein, the second signal is the signal obtained by inputting the first signal into the carry delay chain; The phase difference signal between the first signal and the second signal is determined by the signal comparison module; The timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference between the first signal and the second signal, and the timing counting logic of the individual soldier maintenance device is adjusted according to the timing deviation. The automatic time synchronization system also includes an input selection module; Before obtaining the first signal generated by the crystal oscillator in the individual soldier maintenance device through the signal comparison module, the method further includes: The input selection module determines the input signal of the signal comparison module according to the working mode of the automatic time synchronization system; wherein, the working mode includes calibration mode and application mode; The step of calculating the timing deviation of the crystal oscillator using the time offset calculation module based on the phase difference signal between the first signal and the second signal includes: The timing deviation of the crystal oscillator is calculated by the timing deviation calculation module based on the phase difference between the first signal and the second signal and the phase-time mapping relationship; wherein the phase-time mapping relationship is characterized by the analog voltage and current signals output by the signal comparison module.
5. The automatic time synchronization method according to claim 4, characterized in that, The automatic time synchronization system also includes a pulse generation module; Before obtaining the first signal generated by the crystal oscillator in the individual soldier maintenance device through the signal comparison module, the method further includes: A reference pulse signal is generated by the pulse generation module; By using the input selection module, if the automatic time synchronization system operates in application mode, the input signal of the signal comparison module is determined to be the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain; if the automatic time synchronization system operates in calibration mode, the input signal of the signal comparison module is determined to be the reference pulse signal generated by the pulse generation module and the third signal output by the carry delay chain; wherein, the third signal is the signal obtained by inputting the reference pulse signal to the carry delay chain.
6. The automatic time synchronization method according to claim 5, characterized in that, After determining that the input signals of the signal comparison module are the first signal generated by the crystal oscillator in the individual soldier maintenance device and the second signal output by the carry delay chain, the method further includes: The phase difference signal between the reference pulse signal and the third signal is determined by the signal comparison module; The phase-time mapping relationship is determined by the time offset calculation module based on the phase difference signal between the reference pulse signal and the third signal.
Citation Information
Patent Citations
Multiphase clock generation circuit
CN103427798A