A B-code distribution network phase synchronization method based on high-precision DAC control
The phase synchronization method of B code distribution network controlled by high-precision DAC, which uses multi-channel counters and host computer software to adjust the phase of B code signal, solves the problems of time-consuming, labor-intensive and low-precision traditional methods, and achieves efficient phase consistency adjustment of B code signal.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
- Filing Date
- 2023-08-31
- Publication Date
- 2026-07-14
Smart Images

Figure CN117220673B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of phase adjustment technology, and in particular to a phase synchronization method for a B-code allocation network based on high-precision DAC control. Background Technology
[0002] B-code distribution networks can provide users with multiple B-code signals as time bases. The accurate and stable operation of user equipment requires the precise unification of time bases, and the phase consistency of B-code signals is the most important parameter reflecting their signal performance. Therefore, it is necessary to ensure the phase consistency of the B-code signals output by the B-code distribution network.
[0003] However, the traditional method of adjusting the length of the B code signal transmission cable is time-consuming and labor-intensive, with low control precision. Moreover, once a B code distribution device in the B code distribution network is damaged and replaced, the phase of the output B code signal changes due to the difference in equipment, and the cable length needs to be readjusted to ensure phase consistency. Summary of the Invention
[0004] In view of this, the present invention provides a phase synchronization method for B code allocation network based on high-precision DAC control. This method can realize phase synchronization of B code signals, saving time and manpower and improving control accuracy.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] A phase synchronization method for a B-code allocation network based on high-precision DAC control is provided to achieve phase consistency of the output B-code signal of the B-code allocation network. The method includes the following steps:
[0007] (1) Select a certain B code signal output by the B code distribution network as a reference signal and connect it to the reference input port of the multi-channel counter;
[0008] (2) Other B code signals output by the B code distribution network are connected to the input channel of the multi-channel counter after passing through the phase adjustment module;
[0009] (3) The multi-channel counter calculates the phase difference between the B code signal of the input channel and the B code signal of the reference input port and reports it to the host computer software.
[0010] (4) The host computer software calculates the phase adjustment amount based on the phase difference reported by the multi-channel counter and sends it to the phase adjustment module to make the phase of the B code signal of the current input channel consistent with the phase of the B code signal of the reference input port.
[0011] (5) Repeat steps (2) to (4) until all B code signals output by the B code allocation network reach phase consistency;
[0012] (6) All B code signals output by the B code distribution network are shaped and driven before being output to the user.
[0013] Furthermore, step (2) specifically includes the following steps:
[0014] (201) Other B code signals output by the B code allocation network are slowed down by the charging circuit and then connected to the high-speed comparator;
[0015] (202) The microcontroller controls the high-precision DAC to output an adjustable voltage signal to the high-speed comparator according to the phase adjustment amount sent by the host computer software;
[0016] (203) The high-speed comparator compares different input voltage signals with different positions of the rising edge of the B code signal to achieve phase adjustment of the B code signal;
[0017] (204) The B code signal output by the high-speed comparator is connected to the input channel of the multi-channel counter.
[0018] Furthermore, the charging circuit in step (201) includes a resistor and a capacitor connected in series. The DC power supply charges the capacitor through the resistor, and the instantaneous voltage of the capacitor is:
[0019] V c =V0+(V u -V0)*[1-e -t / Rc ]
[0020] Among them, V c V is the instantaneous voltage of capacitor C, V0 is the initial voltage of capacitor C, and V u Let t be the voltage value of capacitor C after it is fully charged, t be the charging time, R be the resistance value in the charging circuit, and C be the capacitance value in the charging circuit.
[0021] Furthermore, the calculation method for the output voltage of the high-precision DAC in step (202) is as follows:
[0022]
[0023] Among them, V out V represents the DAC output voltage. ref The reference voltage of the DAC is represented by , D represents the control input of the DAC, and N represents the resolution of the DAC.
[0024] The advantages of this invention over the prior art are:
[0025] (1) The method of this invention is the first to propose a phase synchronization scheme based on high-precision DAC control in the field of B code allocation network, filling the gap in this field;
[0026] (2) Compared with traditional methods, the method of the present invention adjusts the output phase of the B code signal by controlling the output voltage of the high-precision DAC and comparing it with the rising edge of the B code signal, which saves time and effort and has high control precision.
[0027] (3) The method of the present invention avoids the process of re-correcting the cable length when the phase of the output B code signal changes due to the replacement of the B code distribution equipment, and is convenient to use. Attached Figure Description
[0028] Figure 1 This is a connection diagram of the equipment involved in the method of the present invention.
[0029] Figure 2 This is a structural block diagram of the phase adjustment module involved in the method of the present invention.
[0030] Figure 3 This is a flowchart illustrating the implementation of the method of the present invention.
[0031] Figure 4 This is a schematic diagram of the charging circuit. Detailed Implementation
[0032] The present invention will now be described in further detail with reference to the accompanying drawings.
[0033] A phase synchronization method for B-code allocation networks based on high-precision DAC control. Figure 1 This is a connection diagram of the equipment involved in this method. The main equipment involved in this method includes a B-code distribution network, a phase adjustment module, a multi-channel counter, and host computer software. The B-code distribution network consists of multiple B-code distribution devices, distributing and outputting multiple B-code signals. The phase adjustment module consists of a charging circuit, a microcontroller, a high-precision DAC, and a high-speed comparator, adjusting the phase of the B-code signal output by the B-code distribution network according to the phase adjustment amount sent by the host computer software. The multi-channel counter calculates the phase difference between the B-code signal of the input channel and the B-code signal of the reference input port and reports it to the host computer software. The host computer software calculates the phase adjustment amount based on the phase difference reported by the multi-channel counter and sends it to the phase adjustment module.
[0034] Figure 2 This is a block diagram of the phase adjustment module involved in this method. The phase adjustment module mainly includes a charging circuit, a microcontroller, a high-precision DAC, and a high-speed comparator. The charging circuit slows down the rising edge of the B-code signal and outputs it to the high-speed comparator. The microcontroller outputs a control signal to the high-precision DAC based on the phase adjustment amount sent by the host computer software. The high-precision DAC outputs a voltage signal to the high-speed comparator based on the control signal. The high-speed comparator compares the input voltage signal with the rising edge of the B-code signal to achieve phase adjustment of the B-code signal.
[0035] Among them, the resolution of the high-precision DAC output voltage signal affects the resolution of the B code signal phase adjustment, the precision of the high-precision DAC output voltage signal affects the precision of the B code signal phase adjustment, and fluctuations in the high-precision DAC output voltage signal will cause increased jitter in the output B code signal.
[0036] Figure 3 The flowchart for implementing this method is as follows, and the main steps are as follows:
[0037] (1) Construct a phase synchronization system for B-code allocation network based on high-precision DAC control, according to... Figure 1 The diagram shows the connection to a B-code allocation network, a phase adjustment module, a multi-channel counter, and host computer software. The phase adjustment module includes a charging circuit, a microcontroller, a high-precision DAC, and a high-speed comparator.
[0038] (2) Select a certain B code signal output from the B code distribution network as a reference signal and connect it to the reference input port of the multi-channel counter as a reference for phase synchronization of other B code signals.
[0039] (3) Other B-code signals output by the B-code distribution network are connected to the input channel of the multi-channel counter after passing through the phase adjustment module, specifically including the following steps:
[0040] First, the other B code signals output by the B code allocation network are slowed down by the charging circuit and then connected to the high-speed comparator.
[0041] like Figure 4 As shown, the charging circuit is an RC charging circuit. The DC power supply Vs charges the capacitor C through the resistor R. Assume that the instantaneous voltage across the capacitor C is V. c The initial voltage is V0, and the voltage after full charging is V. u Given that the charging time is t, the resistance in the charging circuit is R, and the capacitance in the charging circuit is C, then the instantaneous voltage across the capacitor is:
[0042] V c =V0+(V u -V0)*[1-e -t / Rc ]
[0043] Secondly, the microcontroller controls the high-precision DAC to output an adjustable voltage signal, which is then fed into the high-speed comparator, based on the phase adjustment amount sent by the host computer software. The formula for calculating the output voltage of the high-precision DAC is as follows:
[0044]
[0045] Where: V out V represents the DAC output voltage; ref D represents the reference voltage of the DAC; D represents the control input of the DAC; N represents the resolution of the DAC.
[0046] The resolution of the high-precision DAC output voltage signal affects the resolution of the B-code signal phase adjustment, and the precision of the high-precision DAC output voltage signal affects the precision of the B-code signal phase adjustment. Fluctuations in the high-precision DAC output voltage signal will cause increased jitter in the output B-code signal. Therefore, it is important to select a high-precision DAC appropriately.
[0047] Then, the high-speed comparator compares the different input voltage signals with the different positions of the rising edge of the B code signal to achieve phase adjustment of the B code signal.
[0048] The rising edge of the B code signal input to the high-speed comparator rises slowly and is compared with the voltage signal. The portion of the rising edge that is less than the voltage signal is set to a low level, and the portion that is greater than the voltage signal is set to a high level, so that the B code signal output by the high-speed comparator is a phase-adjusted B code signal.
[0049] Finally, the B code signal output by the high-speed comparator is connected to the input channel of the multi-channel counter.
[0050] (4) The multi-channel counter calculates the phase difference between the B code signal of the input channel and the B code signal of the reference input port and reports it to the host computer software.
[0051] (5) The host computer software calculates the phase adjustment amount based on the phase difference reported by the multi-channel counter and sends it to the phase adjustment module to make the B code signal of the current input channel keep the phase consistent with the B code signal of the reference input port.
[0052] (6) Repeat steps (3) to (5) until all B code signals output by the B code allocation network reach phase consistency.
[0053] (7) All B code signals output by the B code distribution network are output to the user after being shaped and driven. The shaping and driving can improve the signal quality of the B code signals.
[0054] The contents not described in detail in this specification are common knowledge to those skilled in the art.
[0055] In summary, this invention establishes a phase synchronization system for a B-code distribution network based on high-precision DAC control. A multi-channel counter calculates the phase difference between the B-code signal of the input channel and the B-code signal of the reference input port and reports it to the host computer software. The host computer software calculates the phase adjustment amount based on the phase difference and sends it to the phase adjustment module to adjust the phase of the input channel B-code signal, thus achieving phase consistency of the output B-code signal from the B-code distribution network. Compared to traditional methods of adjusting the length of B-code signal transmission cables, this method is time-saving, labor-saving, and offers high control precision. Furthermore, it avoids the need to readjust the cable length when the output B-code signal phase changes due to damage or replacement of the B-code distribution equipment, making it convenient to use.
Claims
1. A phase synchronization method for a B-code allocation network based on high-precision DAC control, used to achieve phase consistency of the output B-code signal of the B-code allocation network, characterized in that, Includes the following steps: (1) Select a certain B code signal output by the B code distribution network as a reference signal and connect it to the reference input port of the multi-channel counter; (2) Other B code signals output by the B code distribution network are connected to the input channel of the multi-channel counter after passing through the phase adjustment module; (3) The multi-channel counter calculates the phase difference between the B code signal of the input channel and the B code signal of the reference input port and reports it to the host computer software. (4) The host computer software calculates the phase adjustment amount based on the phase difference reported by the multi-channel counter and sends it to the phase adjustment module to make the phase of the B code signal of the current input channel consistent with the phase of the B code signal of the reference input port. (5) Repeat steps (2) to (4) until all B code signals output by the B code allocation network reach phase consistency; (6) All B code signals output by the B code distribution network are shaped and driven before being output to the user.
2. The phase synchronization method for a B-code allocation network based on high-precision DAC control according to claim 1, characterized in that, Step (2) specifically includes the following steps: (201) Other B code signals output by the B code allocation network are slowed down by the charging circuit and then connected to the high-speed comparator; (202) The microcontroller controls the high-precision DAC to output an adjustable voltage signal to the high-speed comparator according to the phase adjustment amount sent by the host computer software; (203) The high-speed comparator compares different input voltage signals with different positions of the rising edge of the B code signal to achieve phase adjustment of the B code signal; (204) The B code signal output by the high-speed comparator is connected to the input channel of the multi-channel counter.
3. The phase synchronization method for B-code allocation network based on high-precision DAC control according to claim 2, characterized in that, The charging circuit in step (201) includes a resistor and a capacitor connected in series. The DC power supply charges the capacitor through the resistor, and the instantaneous voltage of the capacitor is: V c =V0+(V u -V0)*[1-e -t / Rc ] Among them, V c V is the instantaneous voltage of capacitor C, V0 is the initial voltage of capacitor C, and V u Let t be the voltage value of capacitor C after it is fully charged, t be the charging time, R be the resistance value of the resistor in the charging circuit, and C be the capacitance value of the capacitor in the charging circuit.
4. The phase synchronization method for a B-code allocation network based on high-precision DAC control according to claim 2, characterized in that, The calculation method for the output voltage of the high-precision DAC in step (202) is as follows: Among them, V out V represents the DAC output voltage. ref The reference voltage of the DAC is represented by , D represents the control input of the DAC, and N represents the resolution of the DAC.
Citation Information
Patent Citations
JP2001204046A
JP2010016705A