Rapid crystal oscillator starting circuit and starting method thereof
By designing the preliminary establishment module, gain calculation and adjustment module and stability judgment and labeling module of the fast crystal oscillator start circuit, the problems of complexity, high cost and complex control algorithms in the existing technology are solved, and the rapid, stable and precise control of the crystal oscillator start circuit is achieved.
Patent Information
- Application Number
- CN202411358101.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-28
AI Technical Summary
The existing crystal oscillator start circuit has problems such as complex circuit design, high cost, and complex control algorithms, resulting in long start-up time, poor stability and inaccurate gain adjustment.
A fast crystal oscillator start circuit is designed, including a preliminary establishment module, a gain calculation and adjustment module and a stability judgment and annotation module. Through the coordinated work of these modules, efficient, stable and precise control of the crystal oscillator circuit is achieved.
It realizes rapid start-up of the crystal oscillator circuit, improves stability and improves gain adjustment accuracy, and optimizes the performance and reliability of the circuit.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of rapid start-up of crystal oscillator circuits, in particular to a rapid crystal oscillator start-up circuit and a start-up method thereof. Background Art
[0002] With the rapid development of electronic technology, crystal oscillator startup circuits play an increasingly important role in various electronic devices. The stability of the crystal oscillator startup circuit directly affects the performance and reliability of electronic equipment. However, traditional crystal oscillator startup circuits often have problems such as long startup time, poor stability, and inaccurate gain adjustment during the startup process. These problems limit the application scope and performance improvement of the crystal oscillator startup circuit. In order to solve the above problems, a variety of improvement schemes have been proposed in the prior art.
[0003] For example, the performance of the crystal oscillator startup circuit can be improved by optimizing circuit design, improving component quality, and introducing advanced control algorithms; however, these methods still have some shortcomings in practical applications, such as complex circuit design, high cost, and complex control algorithms that are difficult to implement. Therefore, it is necessary to further study and improve the crystal oscillator startup circuit to improve its startup speed, stability, and gain adjustment accuracy. Summary of the invention
[0004] In view of the problems existing in the existing fast crystal oscillator starting circuit and starting method thereof, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is that the circuit design is complex, the cost is high, and the control algorithm is complex and difficult to implement.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a fast crystal oscillator startup circuit, which includes:
[0008] A preliminary establishment module is used to establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data;
[0009] The gain calculation and adjustment module is used to start the crystal oscillator start-up circuit, perform gain on the crystal oscillator circuit, obtain real-time data during the gain process, determine the gain state according to the real-time data, obtain the determined state, calculate the gain adjustment value, and adjust the gain data according to the gain adjustment value;
[0010] The stability judgment and marking module is used to control the gain time of the auxiliary amplifier and calculate the gain stability value, judge the gain stability of the crystal oscillator circuit according to the gain stability value, mark the gain stability, and then adjust the gain interference data to determine whether gain re-adjustment is required.
[0011] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, wherein: the preliminary establishment module includes a circuit composition module and a preset module;
[0012] The circuit composition module is used to connect an auxiliary amplifier in parallel to the crystal oscillator circuit, connect a digital timer to the auxiliary amplifier, and form a crystal oscillator start-up circuit through the crystal oscillator circuit, the auxiliary amplifier and the digital timer;
[0013] The preset module is used to set preset parameters of the crystal oscillator startup circuit, obtain preset data, and continuously monitor the status of the preset data;
[0014] The preset parameters include a preset gain value of the auxiliary amplifier and a preset timing duration of the digital counter.
[0015] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, wherein: the gain calculation and adjustment module includes a gain module and a determination calculation module;
[0016] The gain module is used to start the crystal oscillator start-up circuit, the digital timer controls the auxiliary amplifier to start working through the preset data, and the auxiliary amplifier performs gain on the crystal oscillator start-up circuit according to the preset timing duration and preset gain value of the preset data to obtain a real-time gain result;
[0017] The determination and calculation module is used to obtain each real-time gain result in the gain process, perform difference processing between the preset gain value and the real-time gain result to obtain a gain difference, make one-to-one correspondence between each real-time gain result and the gain difference calculated by it, sort the gain differences according to the time sequence of the real-time gain results, obtain a difference sorting, calculate the difference between each gain difference and the first gain difference arranged thereafter, obtain a stage gain value, perform abnormal determination on the stage gain value, obtain a determination state, and calculate a gain adjustment value according to the gain difference, the difference sorting, the stage gain value and the determination state;
[0018] The digital timer adjusts the timing duration of the corresponding digital timer according to the gain adjustment value, and performs continuous gain on the crystal oscillator startup circuit.
[0019] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, wherein: the stability judgment and marking module includes a stability calculation module, a stability judgment module, and a marking adjustment module;
[0020] The stability calculation module is used for the digital timer to control the gain time of the auxiliary amplifier according to the timing duration, and calculate the gain stability value according to the gain time, the gain adjustment value and the stage gain value;
[0021] The stability judgment module is used to judge the gain stability of the crystal oscillator startup circuit according to the gain stability value to obtain the gain stability judgment situation;
[0022] The marking and adjusting module is used to mark the gain stability of the crystal oscillator circuit according to the gain stability, and to adjust the gain interference data according to the gain stability marking.
[0023] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, wherein: the marking adjustment module includes a comparison module and an adjustment judgment module;
[0024] The comparison module is used to mark and collect real-time interference data according to the gain stability, compare the real-time interference data with the preset interference data, and obtain a comparison result;
[0025] The adjustment judgment module is used to adjust the real-time interference data according to the comparison result, obtain an adjustment result, and determine whether to perform gain re-adjustment according to the adjustment result.
[0026] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, the calculation formula of the gain adjustment value is:
[0027]
[0028] Where, T zy Expressed as the gain adjustment value, Z mb Expressed as the preset gain value, Z ds represents the current actual gain result, j represents the number of gain values up to the current stage, C zi Expressed as the gain value of the i-th stage, S zy Indicates the duration of the current gain cutoff, V cs Expressed as the gain initial velocity, Z up Expressed as the number of stage gain values in normal state, Z down Expressed as the number of stage gain values that are in abnormal status.
[0029] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, the application steps of the adjustment judgment module are as follows:
[0030] When marking the gain stability, if the marking result is stable, no interference data collection is performed;
[0031] When the labeling result is unstable, the adjustment judgment module is used;
[0032] When the adjustment judgment module is used, when the real-time interference data is greater than the preset interference data, the real-time interference data is adjusted;
[0033] When the real-time interference data is less than or equal to the preset interference data, the real-time interference data is not adjusted;
[0034] The real-time interference data and the preset interference data are the gain interference data, and the types of the gain interference data include electromagnetic interference, temperature and power supply fluctuation interference;
[0035] When at least two adjustments fail to adjust the corresponding real-time interference data to the first preset interference data, the crystal oscillator circuit is re-gained.
[0036] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, the calculation formula of the gain stability value is:
[0037]
[0038] Where W zy Expressed as the gain stability value, S zy It is expressed as the duration of the current gain, T zy Expressed as the gain adjustment value, T max Indicates the preset maximum value allowed for the gain adjustment value, T min Indicates the preset minimum value allowed for gain adjustment, C zi Expressed as the gain value of the i-th stage, C zi-1 Expressed as the i-1th stage gain value, W y Indicates the preset gain stability value.
[0039] As a preferred solution of the fast crystal oscillator startup circuit of the present invention, the method of marking the gain stability includes:
[0040] Set a stability threshold, compare the gain stability value with the stability threshold, and when the gain stability value is greater than the stability threshold, the gain stability is marked as stable;
[0041] When the gain stability value is less than or equal to the stability threshold, the gain stability condition is marked as unstable.
[0042] In a second aspect, an embodiment of the present invention provides a method for starting a fast crystal oscillator starting circuit, which includes the following steps:
[0043] Establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data;
[0044] Starting the crystal oscillator start-up circuit, performing gain on the crystal oscillator circuit, obtaining real-time data during the gain process, determining the gain state, obtaining the determined state, and calculating the gain adjustment value, and adjusting the gain according to the gain adjustment value;
[0045] By controlling the gain time of the auxiliary amplifier and calculating the gain stability value, the gain stability of the crystal oscillator circuit is judged according to the gain stability value, the gain stability is marked, and then the gain interference data is adjusted to determine whether gain re-adjustment is required.
[0046] The beneficial effects of the present invention are: establishing a circuit, obtaining preliminary information, setting preset parameters, starting the circuit, gain adjustment, controlling gain time, judging gain stability, adjusting gain interference data, and judging whether re-adjustment is needed, thereby achieving efficient, stable and precise control of the crystal oscillator circuit. These operations not only ensure the stability of the crystal oscillator circuit during the startup process, but also improve its gain accuracy and response speed, thereby optimizing the performance of the entire circuit.
[0047] By conducting preliminary tests and analysis on the circuit, basic data on the performance of the crystal oscillator was obtained, providing a basis for subsequent parameter settings; based on preliminary information and application requirements, appropriate preset parameters were set so that the circuit could reach a stable state more quickly during the startup process; by accurately controlling the startup process, the smooth startup of the crystal oscillator circuit was ensured, and the startup time and failure rate were reduced; through gain operation, the amplitude of the crystal oscillator signal was increased to the required level, thereby improving the output power and performance of the circuit, and real-time monitoring of parameters such as the amplitude and phase of the crystal oscillator signal provided accurate data support for subsequent gain state determination; through analysis of real-time data, the current gain state was accurately determined, providing a basis for subsequent gain adjustment; based on the determination results, the precise gain adjustment value was calculated, providing precise control parameters for subsequent gain adjustment operations; by accurately adjusting the gain, the stability and performance of the crystal oscillator circuit were ensured to be in the optimal state; by accurately controlling the gain time of the auxiliary amplifier, the stability and accuracy of the gain process were ensured, and the response speed and stability of the circuit were improved.
[0048] After the gain time is over, the final gain value of the crystal oscillator circuit is calculated, providing a basis for the subsequent gain stability judgment; by comparing the gain stability value with the preset stability range, it is accurately judged whether the crystal oscillator circuit has reached a stable state, providing a basis for the subsequent gain stability marking; by marking the gain stability, the stable state of the circuit is recorded, providing a reference for subsequent circuit optimization and adjustment; when the gain is unstable or interference is found, the gain interference data is adjusted to reduce the impact of the interference on the circuit performance and improve the stability and reliability of the circuit; by judging whether the gain adjustment needs to be re-performed, the continuous optimization and adjustment of the circuit performance is ensured, so that the circuit always remains in the best state. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0050] Figure 1 This is a scenario diagram of the fast crystal oscillator startup circuit.
[0051] Figure 2 The figure is a flow chart of the startup method of the fast crystal oscillator startup circuit. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0054] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0055] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0056] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0057] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0058] Example 1
[0059] Reference Figure 1 , is the first embodiment of the present invention, which provides a fast crystal oscillator startup circuit, including:
[0060] The preliminary establishment module is used to establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data.
[0061] The initial establishment module includes a circuit composition module and a preset module;
[0062] The circuit composition module is used to connect an auxiliary amplifier in parallel to the crystal oscillator circuit, connect a digital timer to the auxiliary amplifier, and form a crystal oscillator start-up circuit through the crystal oscillator circuit, the auxiliary amplifier and the digital timer;
[0063] By connecting an auxiliary amplifier in parallel to the crystal oscillator circuit, the amplitude of the crystal oscillator signal is significantly increased. This parallel structure can ensure that the auxiliary amplifier provides sufficient excitation for the crystal oscillator at the initial stage of crystal oscillator startup, thereby accelerating the crystal oscillator to reach a stable oscillation speed. The digital timer is connected to the auxiliary amplifier to provide precise time control for the crystal oscillator startup circuit. The timer can ensure that the auxiliary amplifier is started and shut down at the appropriate time, thereby optimizing the gain adjustment process and reducing unnecessary energy consumption and potential circuit interference.
[0064] The preset module is used to set the preset parameters of the crystal oscillator startup circuit, obtain the preset data, and continuously monitor the status of the preset data;
[0065] The preset parameters include a preset gain value of the auxiliary amplifier and a preset timing duration of the digital counter;
[0066] The user can set the key parameters of the crystal oscillator startup circuit, such as the preset gain value of the auxiliary amplifier and the preset timing duration of the digital counter. The user can also obtain and store the relevant data of the preset parameters, which can be used as the basis and reference for subsequent circuit operations, and continuously monitor the status of the preset data to ensure that the circuit always remains within the preset parameter range during startup and operation. This monitoring mechanism helps to promptly discover and solve potential problems and improve the reliability and stability of the circuit. By obtaining the startup parameters corresponding to the fastest historical startup speed of the crystal oscillator startup circuit and using them as the preset parameters of this crystal oscillator startup circuit, the startup speed of the circuit can be significantly optimized. The combined use of circuit component modules and preset modules provides the crystal oscillator startup circuit with efficient, stable and precise control capabilities. This combination not only improves the startup speed and performance of the circuit, but also enhances its adaptability and reliability.
[0067] The gain calculation and adjustment module is used to start the crystal oscillator start-up circuit, perform gain on the crystal oscillator circuit, obtain real-time data during the gain process, determine the gain state based on the real-time data, obtain the determined state, calculate the gain adjustment value, and adjust the gain data based on the gain adjustment value.
[0068] The gain calculation and adjustment module includes a gain module and a determination calculation module;
[0069] The gain module is used to start the crystal oscillator start-up circuit. The digital timer controls the auxiliary amplifier to start working through preset data. The auxiliary amplifier performs gain on the crystal oscillator start-up circuit according to the preset timing duration and preset gain value of the preset data to obtain a real-time gain result.
[0070] Among them, the real-time gain result is each gain value collected in real time;
[0071] The determination and calculation module is used to obtain each real-time gain result in the gain process, perform difference processing between the preset gain value and the real-time gain result to obtain a gain difference, make one-to-one correspondence between each real-time gain result and the gain difference calculated by it, sort the gain differences according to the time sequence of the real-time gain results (the current time is the first and the first acquisition time is the last), obtain the difference sorting, calculate the difference between each gain difference and the first gain difference arranged thereafter, obtain the stage gain value, perform abnormal determination on the stage gain value, obtain the determination state, and calculate the gain adjustment value according to the gain difference, the difference sorting, the stage gain value and the determination state;
[0072] The stage gain value is the gain value between every two real-time gain results in sequence. When the stage gain value is positive, it is determined that the stage gain value is in a normal state, that is, the gain is increasing, and it is set to 1. When the stage gain value is negative or zero, it is determined that the stage gain value is in an abnormal state, that is, the gain is decreasing or remains unchanged, and it is set to 2.
[0073] The formula for calculating the gain adjustment value is,
[0074]
[0075] Where, T zy Expressed as the gain adjustment value, Z mb Expressed as the preset gain value, Z ds represents the current actual gain result, j represents the number of gain values up to the current stage, C zi Expressed as the gain value of the i-th stage, S zy Indicates the duration of the current gain cutoff, V cs Expressed as the gain initial velocity, Z up Expressed as the number of stage gain values in normal state, Z down It is expressed as the number of stage gain values in abnormal state;
[0076] Through the formula Calculate the current gain speed coefficient by using the formula The state coefficient of the stage gain value can be calculated, The larger the value, the larger the value that needs to be adjusted, and vice versa. up -Z down *2| When the value is larger, the value that needs to be adjusted is smaller, and vice versa. The overall calculation formula is used to adjust the gain process to ensure the stability and performance of the crystal oscillator circuit;
[0077] According to the calculated gain adjustment value, the timing duration of the digital timer will be adjusted accordingly, which helps to optimize the gain process to make it more accurate and efficient. After the gain process is adjusted, the crystal oscillator circuit will continue to receive gain until a stable working state is reached;
[0078] The collaborative work of the gain module and the determination calculation module enables the crystal oscillator startup circuit to accurately and efficiently adjust the gain, which not only improves the stability and performance of the circuit, but also enhances its adaptability and reliability, providing a more stable and efficient crystal oscillator startup solution for modern electronic equipment.
[0079] The digital timer adjusts the timing duration of the corresponding digital timer according to the gain adjustment value, and performs continuous gain on the crystal oscillator startup circuit.
[0080] The stability judgment and marking module is used to control the gain time of the auxiliary amplifier and calculate the gain stability value. According to the gain stability value, the gain stability of the crystal oscillator circuit is judged, the gain stability is marked, and then the gain interference data is adjusted to determine whether gain re-adjustment is required.
[0081] The stability judgment and labeling module includes a stability calculation module, a stability judgment module, and a labeling adjustment module;
[0082] The stability calculation module is used for the digital timer to control the gain time of the auxiliary amplifier according to the timing duration, and calculate the gain stability value according to the gain time, the gain adjustment value and the stage gain value;
[0083] The stability judgment module is used to judge the gain stability of the crystal oscillator startup circuit according to the gain stability value to obtain the gain stability judgment situation;
[0084] The marking and adjusting module is used to mark the gain stability of the crystal oscillator circuit according to the gain stability, and to mark and adjust the gain interference data according to the gain stability.
[0085] The marking adjustment module includes a comparison module and an adjustment judgment module;
[0086] The comparison module is used to mark and collect real-time interference data according to the gain stability, compare the real-time interference data with the preset interference data, and obtain a comparison result;
[0087] The adjustment judgment module is used to adjust the real-time interference data according to the comparison result, obtain the adjustment result, and judge whether to perform gain re-adjustment according to the adjustment result;
[0088] The application steps of the adjustment judgment module are:
[0089] When marking the gain stability, if the marking result is stable, no interference data collection is performed;
[0090] When the labeling result is unstable, the adjustment judgment module is used;
[0091] When the adjustment judgment module is used, when the real-time interference data is greater than the preset interference data, the real-time interference data is adjusted;
[0092] When the real-time interference data is less than or equal to the preset interference data, the real-time interference data is not adjusted;
[0093] The adjustment method includes adjusting circuit parameters, optimizing layout or introducing filters; after the adjustment, the adjustment judgment module will judge whether the gain needs to be re-adjusted according to the adjustment result. If the adjustment is successful, that is, the real-time interference data is reduced to below the preset interference data, then the gain does not need to be re-adjusted;
[0094] The real-time interference data and the preset interference data are gain interference data, and the types of gain interference data include electromagnetic interference, temperature and power supply fluctuation interference;
[0095] When at least two adjustments fail to adjust the corresponding real-time interference data to the first preset interference data (ie, the preset interference tolerance threshold), the crystal oscillator circuit is re-gained.
[0096] The formula for calculating the gain stability value is,
[0097]
[0098] Where W zy Expressed as the gain stability value, S zy It is expressed as the duration of the current gain, T zy Expressed as the gain adjustment value, T max Indicates the preset maximum value allowed for the gain adjustment value, T min Indicates the preset minimum value allowed for the gain adjustment value. When (T zy -T max ) or (T min -T zy ), when it is a negative number, set the corresponding result to 1, C zi Expressed as the gain value of the i-th stage, C zi-1 Expressed as the i-1th stage gain value, W y It is expressed as the preset gain stability value;
[0099] The digital timer accurately controls the working time of the auxiliary amplifier according to the preset timing duration, ensuring that the auxiliary amplifier can operate according to the predetermined time during the startup and gain process of the crystal oscillator circuit. By adjusting the gain time of the auxiliary amplifier, the gain process of the entire circuit can be optimized. If the gain time is set too short, the crystal oscillator circuit may not gain fully; and if the gain time is set too long, it may waste energy and increase the instability of the circuit. The gain stability value is calculated based on the gain time, gain adjustment value and stage gain value.
[0100] Through the formula (T zy -T max )+(T min -T zy ) can calculate the value of the adjustment value that exceeds the preset allowable range. Relatively speaking, (T zy -T max )+(T min -T zy ) is larger, the gain stability value is lower, The inverse of the difference in the total stage gain value can be calculated. The larger it is, the lower the gain stability value is and the greater the stage fluctuation is. This value reflects the stability of the circuit gain within a specific gain time.
[0101] The gain stability value can be used to evaluate whether the circuit has reached a stable working state. Stable gain means that the circuit can continuously and reliably output the required signal.
[0102] Methods for noting gain stability include,
[0103] Set a stability threshold, compare the gain stability value with the stability threshold, and when the gain stability value is greater than the stability threshold, the gain stability is marked as stable;
[0104] When the gain stability value is less than or equal to the stability threshold, the gain stability is marked as unstable;
[0105] If the circuit gain is stable, only minor adjustments are required, but if the circuit gain is unstable, larger adjustments are required to ensure stable operation of the circuit. Through the precise control of the auxiliary amplifier gain time by the digital timer, combined with the calculation and determination of the gain stability value, and the adjustment of the gain interference data, the effective evaluation and optimization of the crystal oscillator circuit gain stability can be achieved. This not only greatly improves the startup speed, performance and reliability of the circuit, but also provides an important guarantee for the stable operation of electronic equipment.
[0106] When the gain stability is marked as unstable, real-time interference data is collected. These data reflect various interferences that may exist in the circuit, such as electromagnetic interference, temperature and power supply fluctuation interference. The collected real-time interference data is compared with the preset interference data. The preset interference data is usually a reference value set according to circuit performance requirements and historical data. By comparison, it can be determined whether the real-time interference data exceeds the preset interference range, which provides a basis for subsequent adjustment of the interference data.
[0107] Through the coordinated work of the comparison module and the adjustment judgment module, interference problems in the circuit can be discovered and dealt with in a timely manner, which helps to improve the stability and reliability of the circuit and ensure that the electronic equipment can work normally in various environments. When the real-time interference data exceeds the preset interference data, the interference data will be adjusted and the gain will be re-adjusted, which avoids unnecessary adjustment operations and improves the efficiency and accuracy of gain adjustment.
[0108] The entire process is a process of continuous monitoring and improvement. By continuously collecting real-time interference data, comparing it with preset interference data, adjusting the interference data and determining whether gain re-adjustment is needed, the performance of the circuit can be continuously optimized to ensure that the electronic equipment always maintains the best working condition.
[0109] In summary, establishing a circuit, obtaining preliminary information, setting preset parameters, starting the circuit, gain adjustment, controlling gain time, judging gain stability, adjusting gain interference data, and judging whether re-adjustment is needed achieve efficient, stable and precise control of the crystal oscillator circuit. These operations not only ensure the stability of the crystal oscillator circuit during the startup process, but also improve its gain accuracy and response speed, thereby optimizing the performance of the entire circuit.
[0110] By conducting preliminary tests and analysis on the circuit, basic data on the performance of the crystal oscillator was obtained, providing a basis for subsequent parameter settings; based on preliminary information and application requirements, appropriate preset parameters were set so that the circuit could reach a stable state more quickly during the startup process; by accurately controlling the startup process, the smooth startup of the crystal oscillator circuit was ensured, and the startup time and failure rate were reduced; through gain operation, the amplitude of the crystal oscillator signal was increased to the required level, thereby improving the output power and performance of the circuit, and real-time monitoring of parameters such as the amplitude and phase of the crystal oscillator signal provided accurate data support for subsequent gain state determination; through analysis of real-time data, the current gain state was accurately determined, providing a basis for subsequent gain adjustment; based on the determination results, the precise gain adjustment value was calculated, providing precise control parameters for subsequent gain adjustment operations; by accurately adjusting the gain, the stability and performance of the crystal oscillator circuit were ensured to be in the optimal state; by accurately controlling the gain time of the auxiliary amplifier, the stability and accuracy of the gain process were ensured, and the response speed and stability of the circuit were improved.
[0111] After the gain time is over, the final gain value of the crystal oscillator circuit is calculated, providing a basis for the subsequent gain stability judgment; by comparing the gain stability value with the preset stability range, it is accurately judged whether the crystal oscillator circuit has reached a stable state, providing a basis for the subsequent gain stability marking; by marking the gain stability, the stable state of the circuit is recorded, providing a reference for subsequent circuit optimization and adjustment; when the gain is unstable or interference is found, the gain interference data is adjusted to reduce the impact of the interference on the circuit performance and improve the stability and reliability of the circuit; by judging whether the gain adjustment needs to be re-performed, the continuous optimization and adjustment of the circuit performance is ensured, so that the circuit always remains in the best state.
[0112] Example 2
[0113] Reference Figure 2 Based on the first embodiment, this embodiment further provides a method for starting a fast crystal oscillator starting circuit, the method comprising the following steps:
[0114] S1. Establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data.
[0115] S2. Start the crystal oscillator start-up circuit, perform gain on the crystal oscillator circuit, obtain real-time data during the gain process, determine the gain state, obtain the determined state, calculate the gain adjustment value, and adjust the gain according to the gain adjustment value.
[0116] S3. By controlling the gain time of the auxiliary amplifier and calculating the gain stability value, the gain stability of the crystal oscillator circuit is judged according to the gain stability value, the gain stability is marked, and then the gain interference data is adjusted to determine whether gain re-adjustment is required.
[0117] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the present invention.
Claims
1. A fast crystal oscillator startup circuit, characterized in that: include, A preliminary establishment module is used to establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data; The gain calculation and adjustment module is used to start the crystal oscillator start-up circuit, perform gain on the crystal oscillator circuit, obtain real-time data during the gain process, determine the gain state according to the real-time data, obtain the determined state, calculate the gain adjustment value, and adjust the gain data according to the gain adjustment value; The stability judgment and marking module is used to control the gain time of the auxiliary amplifier and calculate the gain stability value, judge the gain stability of the crystal oscillator circuit according to the gain stability value, mark the gain stability, and then adjust the gain interference data to determine whether gain re-adjustment is required.
2. The fast crystal oscillator startup circuit as claimed in claim 1, characterized in that: The preliminary establishment module includes a circuit composition module and a preset module; The circuit composition module is used to connect an auxiliary amplifier in parallel to the crystal oscillator circuit, connect a digital timer to the auxiliary amplifier, and form a crystal oscillator start-up circuit through the crystal oscillator circuit, the auxiliary amplifier and the digital timer; The preset module is used to set preset parameters of the crystal oscillator startup circuit, obtain preset data, and continuously monitor the status of the preset data; The preset parameters include a preset gain value of the auxiliary amplifier and a preset timing duration of the digital counter.
3. The fast crystal oscillator startup circuit as claimed in claim 2, characterized in that: The gain calculation and adjustment module includes a gain module and a determination calculation module; The gain module is used to start the crystal oscillator start-up circuit, the digital timer controls the auxiliary amplifier to start working through the preset data, and the auxiliary amplifier performs gain on the crystal oscillator start-up circuit according to the preset timing duration and preset gain value of the preset data to obtain a real-time gain result; The determination and calculation module is used to obtain each real-time gain result in the gain process, perform difference processing between the preset gain value and the real-time gain result to obtain a gain difference, make one-to-one correspondence between each real-time gain result and the gain difference calculated by it, sort the gain differences according to the time sequence of the real-time gain results, obtain a difference sorting, calculate the difference between each gain difference and the first gain difference arranged thereafter, obtain a stage gain value, perform abnormal determination on the stage gain value, obtain a determination state, and calculate a gain adjustment value according to the gain difference, the difference sorting, the stage gain value and the determination state; The digital timer adjusts the timing duration of the corresponding digital timer according to the gain adjustment value, and performs continuous gain on the crystal oscillator startup circuit.
4. The fast crystal oscillator startup circuit as claimed in claim 3, characterized in that: The stability judgment and labeling module includes a stability calculation module, a stability judgment module, and a labeling adjustment module; The stability calculation module is used for the digital timer to control the gain time of the auxiliary amplifier according to the timing duration, and calculate the gain stability value according to the gain time, the gain adjustment value and the stage gain value; The stability judgment module is used to judge the gain stability of the crystal oscillator startup circuit according to the gain stability value to obtain the gain stability judgment situation; The marking and adjusting module is used to mark the gain stability of the crystal oscillator circuit according to the gain stability, and to adjust the gain interference data according to the gain stability marking.
5. The fast crystal oscillator startup circuit as claimed in claim 4, characterized in that: The marking adjustment module includes a comparison module and an adjustment judgment module; The comparison module is used to mark and collect real-time interference data according to the gain stability, compare the real-time interference data with the preset interference data, and obtain a comparison result; The adjustment judgment module is used to adjust the real-time interference data according to the comparison result, obtain an adjustment result, and determine whether to perform gain re-adjustment according to the adjustment result.
6. The fast crystal oscillator startup circuit according to claim 4 or 5, characterized in that: The calculation formula of the gain adjustment value is: Where, T zy Expressed as the gain adjustment value, Z mb Expressed as the preset gain value, Z ds represents the current actual gain result, j represents the number of gain values up to the current stage, C zi Expressed as the gain value of the i-th stage, S zy Indicates the duration of the current gain cutoff, V cs Expressed as the gain initial velocity, Z up Expressed as the number of stage gain values in normal state, Z down Expressed as the number of stage gain values that are in abnormal status.
7. The fast crystal oscillator startup circuit as claimed in claim 6, characterized in that: The application steps of the adjustment judgment module are: When marking the gain stability, if the marking result is stable, no interference data collection is performed; When the labeling result is unstable, the adjustment judgment module is used; When the adjustment judgment module is used, when the real-time interference data is greater than the preset interference data, the real-time interference data is adjusted; When the real-time interference data is less than or equal to the preset interference data, the real-time interference data is not adjusted; The real-time interference data and the preset interference data are the gain interference data, and the types of the gain interference data include electromagnetic interference, temperature and power supply fluctuation interference; When at least two adjustments fail to adjust the corresponding real-time interference data to the first preset interference data, the crystal oscillator circuit is re-gained.
8. The fast crystal oscillator startup circuit according to claim 4 or 7, characterized in that: The calculation formula of the gain stability value is: Where W zy Expressed as the gain stability value, S zy It is expressed as the duration of the current gain, T zy Expressed as the gain adjustment value, T max Indicates the preset maximum value allowed for the gain adjustment value, T min Indicates the preset minimum value allowed for gain adjustment, C zi Expressed as the gain value of the i-th stage, C zi-1 Expressed as the i-1th stage gain value, W y Indicates the preset gain stability value.
9. The fast crystal oscillator startup circuit as claimed in claim 8, characterized in that: Methods for noting gain stability include, Set a stability threshold, compare the gain stability value with the stability threshold, and when the gain stability value is greater than the stability threshold, the gain stability is marked as stable; When the gain stability value is less than or equal to the stability threshold, the gain stability condition is marked as unstable.
10. A method for starting a fast crystal oscillator starting circuit, characterized in that: The startup method is applied to the fast crystal oscillator startup circuit according to any one of claims 1 to 9, and the startup method comprises the following steps: Establish a crystal oscillator startup circuit, obtain preliminary information of the crystal oscillator startup circuit, set preset parameters, and obtain preset data; Start the crystal oscillator start-up circuit, perform gain on the crystal oscillator circuit, obtain real-time data during the gain process, determine the gain state, obtain the determined state, calculate the gain adjustment value, and adjust the gain according to the gain adjustment value; By controlling the gain time of the auxiliary amplifier and calculating the gain stability value, the gain stability of the crystal oscillator circuit is judged according to the gain stability value, the gain stability is marked, and then the gain interference data is adjusted to determine whether gain re-adjustment is needed.