Crystal oscillator multi-frequency output optimization method and system based on digital control
By setting optimization functions and fitting, digital control parameters are generated to adjust the crystal oscillator, the problem of multi-frequency output optimization of crystal oscillator in the existing technology is solved, and efficient and accurate frequency control and power consumption management are achieved.
Patent Information
- Application Number
- CN202411499868.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot optimize the multi-frequency output of crystal oscillator, resulting in difficulty in effectively controlling frequency stability, accuracy, switching speed and power consumption.
By obtaining the information of the crystal oscillator, set the frequency stability optimization function, the frequency accuracy optimization function, the switching speed optimization function and the crystal oscillator power consumption optimization function, and use the gradient descent method or the ant colony algorithm to fit the adjustment factor to generate digital control parameters. Adjust the behavior of the crystal oscillator to achieve optimization of multi-frequency output.
It realizes efficient and accurate optimization of crystal oscillator multi-frequency output, and improves frequency stability, accuracy, switching speed and power consumption performance.
Smart Images

Figure CN119010797A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of crystal oscillator optimization, and more specifically, relates to a crystal oscillator multi-frequency output optimization method and system based on digital control. Background Art
[0002] A crystal oscillator is an electronic component that uses the piezoelectric effect of a quartz crystal to generate a stable oscillation signal. The main function of a crystal oscillator is to provide an accurate clock signal in an electronic circuit for timing, frequency reference, and data synchronization.
[0003] The core component of a crystal oscillator is a quartz crystal, which produces mechanical vibrations when voltage is applied. This vibration produces a stable oscillating signal, the frequency of which is determined by the physical size and cutting method of the quartz crystal. Crystal oscillators are commonly used in computers, communication equipment, timing devices, and various electronic devices.
[0004] However, there is currently no technical solution that can optimize the multi-frequency output of the crystal oscillator. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a crystal oscillator multi-frequency output optimization method based on digital control, comprising: Acquire crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: multiple output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; Setting a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function, and a crystal oscillator power consumption optimization function, and calculating the first output frequency, the second output frequency, the third output frequency, and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; By fitting all optimization functions, the multi-frequency output optimization of the crystal oscillator is completed.
[0006] Furthermore, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0007] Furthermore, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0008] Furthermore, the switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
[0009] Furthermore, the crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
[0010] Furthermore, fitting all optimization functions includes fitting all adjustment factors by gradient descent method or ant colony algorithm.
[0011] Further, the digital control parameters are generated by a digital signal processor, a microcontroller or an application specific integrated circuit. , used to adjust the behavior of the crystal oscillator.
[0012] The present invention also proposes a crystal oscillator multi-frequency output optimization system based on digital control, comprising: An information acquisition module, used to acquire crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: a plurality of output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; A calculation module, used to set a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function and a crystal oscillator power consumption optimization function, and calculate the first output frequency, the second output frequency, the third output frequency and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; The optimization module is used to complete the multi-frequency output optimization of the crystal oscillator by fitting all optimization functions.
[0013] Furthermore, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0014] Furthermore, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0015] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art: The present invention sets a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function and a crystal oscillator power consumption optimization function, and calculates the first output frequency, the second output frequency, the third output frequency and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information, and performs fitting, thereby obtaining the optimal output frequency and crystal oscillator power consumption, and completing the efficient and accurate optimization of the crystal oscillator multi-frequency output. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of the method of embodiment 1 of the present invention; Figure 2 It is a structural diagram of the system of embodiment 2 of the present invention. DETAILED DESCRIPTION
[0017] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0018] The method provided by the present invention can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a storage medium, and a display screen. The storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiment.
[0019] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the storage medium, and calling data stored in the storage medium.
[0020] The storage medium may include a random access memory (RAM) or a read-only memory (ROM). The storage medium may be used to store instructions, programs, codes, code sets or instructions.
[0021] The display screen is used to display the user interface of each application.
[0022] In addition, those skilled in the art can understand that the structure of the above terminal does not constitute a limitation on the terminal, and the terminal may include more or fewer components, or combine certain components, or arrange the components differently. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, and a power supply, which will not be described in detail here.
[0023] Example 1 like Figure 1 As shown, an embodiment of the present invention provides a crystal oscillator multi-frequency output optimization method based on digital control, comprising: Step 101, obtaining crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: multiple output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; Step 102, setting a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function, and a crystal oscillator power consumption optimization function, and calculating the first output frequency, the second output frequency, the third output frequency, and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; Specifically, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0024] Specifically, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0025] Specifically, the switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
[0026] Specifically, the crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
[0027] Specifically, digital control parameters Refers to the parameters used to adjust and stabilize the output frequency of a crystal oscillator in a digital control system. These parameters are usually generated by a digital signal processor (DSP), microcontroller, or application-specific integrated circuit (ASIC) to adjust the behavior of the crystal oscillator. Here are some specific examples: The accumulated value of the phase accumulator is: In a direct digital frequency synthesis (DDS) system, the digital control parameter can be the accumulated value of the phase accumulator. This determines the fine tuning and accuracy of the output frequency.
[0028] Control register settings: In a crystal oscillator with programmable features, the digital control parameters can include the values of the control registers that set the frequency, phase offset, duty cycle, etc.
[0029] Digital filter coefficients: The digital control parameters may also include coefficients for filter design, such as those of FIR or IIR filters. These filters are used to stabilize and clean up the output signal.
[0030] Clock division factor: The division ratio of a clock divider used to generate different frequency outputs. For example, multiple frequency outputs can be generated by changing the divider coefficient.
[0031] Gain control parameters: Used to control the amplification or attenuation of the signal, thereby affecting the amplitude and stability of the output signal.
[0032] Phase-locked loop (PLL) parameters: In a PLL-based frequency synthesis system, the digital control parameters may include the settings of the PLL's feedback division ratio, reference division ratio, and phase comparator.
[0033] Step 103, by fitting all optimization functions, the multi-frequency output optimization of the crystal oscillator is completed.
[0034] Specifically, fitting all optimization functions includes: fitting all adjustment factors by gradient descent method or ant colony algorithm.
[0035] Example 2 like Figure 2 As shown, an embodiment of the present invention further provides a crystal oscillator multi-frequency output optimization system based on digital control, comprising: An information acquisition module, used to acquire crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: a plurality of output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; A calculation module, used to set a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function and a crystal oscillator power consumption optimization function, and calculate the first output frequency, the second output frequency, the third output frequency and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; Specifically, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0036] Specifically, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0037] Specifically, the switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
[0038] Specifically, the crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
[0039] Specifically, digital control parameters are generated by a digital signal processor, a microcontroller or an application specific integrated circuit. , used to adjust the behavior of the crystal oscillator.
[0040] The optimization module is used to complete the multi-frequency output optimization of the crystal oscillator by fitting all optimization functions.
[0041] Specifically, fitting all optimization functions includes: fitting all adjustment factors by gradient descent method or ant colony algorithm.
[0042] Example 3 The embodiment of the present invention further provides a storage medium storing a plurality of instructions, wherein the instructions are used to implement the method for optimizing multi-frequency output of a crystal oscillator based on digital control.
[0043] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0044] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: Step 101, obtaining crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: a plurality of output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; Step 102, setting a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function, and a crystal oscillator power consumption optimization function, and calculating the first output frequency, the second output frequency, the third output frequency, and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; Specifically, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0045] Specifically, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0046] Specifically, the switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
[0047] Specifically, the crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
[0048] Specifically, digital control parameters are generated by a digital signal processor, a microcontroller or an application specific integrated circuit. , used to adjust the behavior of the crystal oscillator.
[0049] Step 103, by fitting all optimization functions, the multi-frequency output optimization of the crystal oscillator is completed.
[0050] Specifically, fitting all optimization functions includes: fitting all adjustment factors by gradient descent method or ant colony algorithm.
[0051] Example 4 An embodiment of the present invention also proposes an electronic device, including a processor and a storage medium connected to the processor, wherein the storage medium stores multiple instructions, and the instructions can be loaded and executed by the processor to enable the processor to execute the method for optimizing multi-frequency output of a crystal oscillator based on digital control.
[0052] Specifically, the electronic device of this embodiment may be a computer terminal, and the computer terminal may include: one or more processors, and a storage medium.
[0053] Among them, the storage medium can be used to store software programs and modules, such as a crystal oscillator multi-frequency output optimization method based on digital control in an embodiment of the present invention, and the corresponding program instructions / modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the storage medium, that is, realizing the above-mentioned crystal oscillator multi-frequency output optimization method based on digital control. The storage medium may include a high-speed random storage medium, and may also include a non-volatile storage medium, such as one or more magnetic storage systems, flash memory, or other non-volatile solid-state storage media. In some instances, the storage medium may further include a storage medium remotely arranged relative to the processor, and these remote storage media may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0054] The processor may call the information and application program stored in the storage medium through the transmission system to perform the following steps: Step 101, obtaining crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: a plurality of output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; Step 102, setting a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function, and a crystal oscillator power consumption optimization function, and calculating the first output frequency, the second output frequency, the third output frequency, and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; Specifically, the frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
[0055] Specifically, the frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
[0056] Specifically, the switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
[0057] Specifically, the crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
[0058] Specifically, digital control parameters are generated by a digital signal processor, a microcontroller or an application specific integrated circuit. , used to adjust the behavior of the crystal oscillator.
[0059] Step 103, by fitting all optimization functions, the multi-frequency output optimization of the crystal oscillator is completed.
[0060] Specifically, fitting all optimization functions includes: fitting all adjustment factors by gradient descent method or ant colony algorithm.
[0061] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0062] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0063] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0064] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0065] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0066] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0067] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A crystal oscillator multi-frequency output optimization method based on digital control, It is characterized in that include: Acquire crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: multiple output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; Setting a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function, and a crystal oscillator power consumption optimization function, and calculating the first output frequency, the second output frequency, the third output frequency, and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; By fitting all optimization functions, the multi-frequency output optimization of the crystal oscillator is completed.
2. A crystal oscillator multi-frequency output optimization method based on digital control as claimed in claim 1, It is characterized in that The frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
3. A method for optimizing multi-frequency output of a crystal oscillator based on digital control as claimed in claim 2, It is characterized in that The frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
4. A method for optimizing multi-frequency output of a crystal oscillator based on digital control as claimed in claim 3, It is characterized in that The switching speed optimization function includes: , in, The first A third output frequency, For the The third output frequency The first adjustment factor, For the The third output frequency The second adjustment factor, is the frequency switching time, For The time constant for one output frequency to switch to another.
5. A method for optimizing multi-frequency output of a crystal oscillator based on digital control as claimed in claim 4, It is characterized in that The crystal oscillator power consumption optimization function includes: , in, For the The power consumption of the crystal oscillator at the output frequency is For the The power consumption of the crystal oscillator at the output frequency The first adjustment factor, For the The power consumption of the crystal oscillator at the output frequency The second adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A third adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fourth adjustment factor, For the The power consumption of the crystal oscillator at the output frequency A fifth adjustment factor.
6. A method for optimizing multi-frequency output of a crystal oscillator based on digital control as claimed in claim 5, It is characterized in that Fitting all optimization functions includes fitting all adjustment factors by gradient descent method or ant colony algorithm.
7. A method for optimizing multi-frequency output of a crystal oscillator based on digital control as claimed in claim 5, It is characterized in that Generate digital control parameters via digital signal processor, microcontroller or ASIC , used to adjust the behavior of the crystal oscillator.
8. A crystal oscillator multi-frequency output optimization system based on digital control, It is characterized in that include: An information acquisition module, used to acquire crystal oscillator information of a crystal oscillator, wherein the crystal oscillator information includes: a plurality of output frequencies, a control voltage corresponding to each output frequency, a digital control parameter, a reference value of each output frequency, and a reference value of the control voltage corresponding to each output frequency; A calculation module, used to set a frequency stability optimization function, a frequency accuracy optimization function, a switching speed optimization function and a crystal oscillator power consumption optimization function, and calculate the first output frequency, the second output frequency, the third output frequency and the crystal oscillator power consumption at each output frequency according to the crystal oscillator information; The optimization module is used to complete the multi-frequency output optimization of the crystal oscillator by fitting all optimization functions.
9. A crystal oscillator multi-frequency output optimization system based on digital control as claimed in claim 8, It is characterized in that The frequency stability optimization function includes: , in, The first The first output frequency, The first The reference value of the output frequency, is the number of output frequencies, For the The first output frequency The first adjustment factor, For the The first output frequency The second adjustment factor, The first The control voltage of the output frequency is For the The first output frequency A third adjustment factor, For adjusting and stabilizing the crystal oscillator Digital control parameters of the output frequency, For the The first output frequency A fourth adjustment factor, For the The first output frequency A fifth adjustment factor, For the The first output frequency A sixth adjustment factor, The first The reference value of the control voltage of the output frequency, For the The standard deviation of the control voltage for each output frequency.
10. A crystal oscillator multi-frequency output optimization system based on digital control as claimed in claim 9, It is characterized in that The frequency accuracy optimization function includes: , in, The first The second output frequency, For the The second output frequency The first adjustment factor, For the The second output frequency The second adjustment factor, For the The second output frequency A third adjustment factor, For the The second output frequency A fourth adjustment factor, For the The second output frequency A fifth adjustment factor, For the The second output frequency A sixth adjustment factor, For the The second output frequency The seventh adjustment factor, For the The second output frequency The eighth adjustment factor, For the The second output frequency A ninth adjustment factor.
