CN116893784A - Table storage method and device, storage medium and electronic device - Google Patents

Table storage method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116893784A
CN116893784A CN202310928676.6A CN202310928676A CN116893784A CN 116893784 A CN116893784 A CN 116893784A CN 202310928676 A CN202310928676 A CN 202310928676A CN 116893784 A CN116893784 A CN 116893784A
Authority
CN
China
Prior art keywords
communication frequency
target
frequency
parameter
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310928676.6A
Other languages
Chinese (zh)
Inventor
林晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Xingsi Semiconductor Co ltd
Original Assignee
Nanjing Xingsi Semiconductor Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Xingsi Semiconductor Co ltd filed Critical Nanjing Xingsi Semiconductor Co ltd
Priority to CN202310928676.6A priority Critical patent/CN116893784A/en
Publication of CN116893784A publication Critical patent/CN116893784A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The invention discloses a table storage method and device, a storage medium and an electronic device, wherein the method comprises the following steps: calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter; dividing a plurality of communication frequencies in a reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set in the N frequency sets and the appointed parameter accords with a preset condition; storing the lower limit communication frequency and the upper limit communication frequency of each of the N frequency sets and the parameter value corresponding to the lower limit communication frequency on the appointed parameter and the parameter value corresponding to the upper limit communication frequency on the appointed parameter through a target table; the target table is stored in the memory of the terminal device.

Description

Table storage method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for storing a table, a storage medium, and an electronic apparatus.
Background
Currently, in the design of phase locked loop (Phase Locked Loop, PLL) circuits, the coverage frequency range is wider and wider. For example, in 5G NR, the received PLL frequency coverage is 600M-5 GHz, and the transmitted PLL frequency coverage is 600M-3 GHz. The PLL needs to rapidly switch between different frequency points to meet the timing requirement of the protocol, and as the requirement for low delay of the link increases, the requirement for switching stabilization time of the PLL frequency points increases, and in order to reduce the delay, currently, according to the frequency to be locked, a Look-Up Table (Look-Up Table, abbreviated as LUT) is used to find the parameter value of the specified parameter (the specified parameter includes a frequency division ratio parameter and a capacitor array parameter) for locking the frequency in a Look-Up Table (the parameter value of the specified parameter corresponding to all communication frequencies in the Look-Up Table), so as to write the specified parameter into a corresponding register, and then enable the loop to perform frequency locking, but the LUT of the Look-Up Table occupies more memory resources.
Aiming at the problem that the lookup table occupies more memory resources due to the frequency locking of the PLL circuit in the lookup table manner in the related art, no effective solution is proposed at present.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the invention provides a table storage method and device, a storage medium and an electronic device, which at least solve the problem that a lookup table occupies more memory resources due to frequency locking of a PLL circuit in a lookup table mode.
According to an aspect of an embodiment of the present invention, there is provided a table storing method, including: calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment; dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set in the N frequency sets and the parameter of the appointed parameter accords with a preset condition, and N is a positive integer; storing a lower limit communication frequency and an upper limit communication frequency of each of the N frequency sets and a parameter value corresponding to the lower limit communication frequency on the specified parameter and a parameter value corresponding to the upper limit communication frequency on the specified parameter through a target table; and storing the target table in a memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
In an exemplary embodiment, dividing the plurality of communication frequencies in the reference table to obtain N frequency sets includes: dividing the reference table into M sub-reference tables corresponding to M voltage-controlled oscillators respectively through communication frequency ranges corresponding to the M voltage-controlled oscillators included in the PLL circuit, wherein M is a positive integer; dividing a plurality of communication frequencies in each sub-reference table to obtain a plurality of frequency sets included in each sub-reference table.
In an exemplary embodiment, dividing the plurality of communication frequencies in each sub-reference table to obtain a plurality of frequency sets included in each sub-reference table includes: and carrying out linearity analysis on each sub-reference table so as to divide a plurality of communication frequencies in each sub-reference table into a plurality of frequency sets.
In an exemplary embodiment, after storing the target table in the memory of the terminal device, the method further includes: determining a target communication frequency to be set by the terminal equipment; determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the target table stored in the memory; setting, by the PLL circuit, the communication frequency of the terminal device to the target communication frequency according to the target parameter value.
In an exemplary embodiment, determining, according to the target table stored in the memory, a target parameter value corresponding to the target communication frequency on the specified parameter includes: acquiring a target parameter value corresponding to the target communication frequency on the specified parameter from the target table under the condition that the target communication frequency is recorded in the target table; and/or determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value recorded in the target table when the target communication frequency is not recorded in the target table; the first communication frequency is a lower limit communication frequency with the smallest difference value with the target communication frequency in all communication frequencies recorded in a target table, the second communication frequency is an upper limit communication frequency with the smallest difference value with the target communication frequency in all communication frequencies recorded in the target table, the first parameter value is a parameter value corresponding to the first communication frequency on the appointed parameter, and the second parameter value is a parameter value corresponding to the second communication frequency on the appointed parameter.
In an exemplary embodiment, determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the first communication frequency, the first parameter value, the second communication frequency, and the second parameter value recorded in the target table includes: constructing an objective linear function according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value; the target parameter value is determined from the target communication frequency using the target linear function.
In an exemplary embodiment, determining the target communication frequency to be set by the terminal device includes: determining the target communication frequency as the communication frequency of a second service base station under the condition that the terminal equipment is switched from the first service base station to the second service base station; and/or determining the target communication frequency as the communication frequency of the second service cell when the terminal equipment is switched from the first service cell to the second service cell and the communication frequencies of the first service cell and the second service cell are different.
According to another aspect of the embodiment of the present invention, there is also provided a table storage device, including: the calibration module is used for calibrating the phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment; the dividing module is used for dividing the plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each of the N frequency sets and the parameter of the appointed parameter accords with a preset condition, and N is a positive integer; the first storage module is used for storing the lower limit communication frequency and the upper limit communication frequency of each of the N frequency sets and the parameter value corresponding to the lower limit communication frequency on the appointed parameter and the parameter value corresponding to the upper limit communication frequency on the appointed parameter through a target table; and the second storage module is used for storing the target table in the memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
According to a further aspect of embodiments of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described table storage method when run.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the table storage method through the computer program.
The method comprises the steps of calibrating a phase-locked loop (PLL) circuit to obtain a reference table, dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein linearity between the communication frequency in each frequency set and a specified parameter meets a preset condition, storing a parameter value corresponding to the lower limit communication frequency and the upper limit communication frequency of each frequency set in the N frequency sets on the specified parameter and a parameter value corresponding to the upper limit communication frequency on the specified parameter only through a target table, and storing the target table in a memory of terminal equipment. Because only part of communication frequencies and corresponding parameter values of the designated parameters are stored in the target table in the memory (the parameters of other communication frequencies on the designated parameters can be calculated by the parameter values of the communication frequencies on the designated parameters recorded in the target table), the problem that the frequency locking of the PLL circuit is carried out in a lookup table manner, so that the lookup table occupies more memory resources is solved, and the technical effect of saving the memory resources is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a hardware configuration block diagram of a computer terminal of a table storing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a table storage method according to an embodiment of the application;
FIG. 3 is a flow chart (II) of a table storing method according to an embodiment of the present application;
fig. 4 is a block diagram of a table storage device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or similar computing device. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal according to a table storing method according to an embodiment of the present application. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor (Microprocessor Unit, abbreviated MPU) or programmable logic device (Programmable logic device, abbreviated PLD)) and a memory 104 for storing data, and in an exemplary embodiment, the computer terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to the table storage method in the embodiment of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
Specifically, in this embodiment, a table storing method is provided, including but not limited to being applied to the computer terminal, and fig. 2 is a flowchart (a) of a table storing method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of a terminal device, and the PLL circuit is positioned in the terminal device;
each of the plurality of communication frequencies in the communication frequency adjustment range is a communication frequency that the PLL circuit is permitted to set.
As an alternative example, the phase-locked loop PLL circuit may be calibrated by frequency counting to obtain a reference table.
As an alternative example, the specified parameters include: a frequency division ratio parameter and a capacitor array control parameter. The communication frequency adjustment range is a communication frequency range (for example, 600Hz to 3000 Hz) which the PLL circuit allows to adjust, and assuming that the communication frequency adjustment range is 600Hz to 3000Hz, the reference table records a frequency division ratio parameter value and a capacitor array control parameter value corresponding to each communication frequency in 600Hz to 3000 Hz.
As an alternative example, the terminal device includes, but is not limited to, a mobile phone, a computer, and the like.
Step S204, dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each of the N frequency sets and the parameter of the appointed parameter accords with a preset condition, and N is a positive integer;
the union of the N frequency sets is the communication frequency adjustment range.
As an optional example, assuming that the communication frequency adjustment range is 600Hz to 3000Hz, the N frequency sets may be 600Hz to 1000Hz,1001Hz to 2000Hz, and 2001Hz to 3000Hz, where the linearity between the communication frequency in each frequency set and the specified parameter meets a preset condition, that is, the parameter value corresponding to any one communication frequency in each frequency set on the specified parameter may be calculated by the parameter value corresponding to any two communication frequencies in the frequency set on the specified parameter. It should be noted that the preset conditions include, but are not limited to: the amount of change in the communication frequency is proportional to the amount of change in the specified parameter. For example, the relationship of the communication frequency to the specified parameter may be y=mx+b, where y is the specified parameter, x is the communication frequency, and m and b are constants.
Step S206, storing the lower limit communication frequency and the upper limit communication frequency of each frequency set in the N frequency sets and the parameter value corresponding to the lower limit communication frequency on the appointed parameter and the parameter value corresponding to the upper limit communication frequency on the appointed parameter through a target table;
step S208, the target table is stored in the memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
And calibrating the PLL circuit to obtain a reference table, dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set and the appointed parameter meets the preset condition, storing the parameter values corresponding to the lower limit communication frequency and the upper limit communication frequency in the appointed parameter and the parameter values corresponding to the upper limit communication frequency in the appointed parameter only through a target table, and storing the target table in the memory of the terminal equipment. Because only part of communication frequencies and corresponding parameter values of the designated parameters are stored in the target table in the memory (the parameters of other communication frequencies on the designated parameters can be calculated by the parameter values of the communication frequencies on the designated parameters recorded in the target table), the problem that the frequency locking of the PLL circuit is carried out in a lookup table manner, so that the lookup table occupies more memory resources is solved, and the technical effect of saving the memory resources is achieved.
In an exemplary embodiment, the above step S204 may be implemented by the following steps S11-S12:
step S11: dividing the reference table into M sub-reference tables corresponding to M voltage-controlled oscillators respectively through communication frequency ranges corresponding to the M voltage-controlled oscillators included in the PLL circuit, wherein M is a positive integer;
it should be noted that, the communication frequency adjustment range is a union of M frequency adjustment ranges corresponding to M voltage-controlled oscillators, where M is a positive integer;
as an alternative example, assuming that the communication frequency adjustment range is 600Hz to 3000Hz, and the PLL circuit has 3 voltage-controlled oscillators, the frequency adjustment ranges corresponding to the 3 voltage-controlled oscillators may be 600Hz to 1000Hz,1001Hz to 2000Hz, 2001Hz to 3000Hz, respectively.
It should be noted that the frequency adjustment ranges corresponding to the 3 voltage-controlled oscillators may overlap, that is, the frequency adjustment ranges corresponding to the 3 voltage-controlled oscillators may be 600Hz to 1000Hz,900Hz to 2000Hz, and 1900Hz to 3000Hz.
It should be noted that, the ith sub-reference table in the M sub-reference tables records a plurality of communication frequencies in the communication frequency range corresponding to the ith voltage-controlled oscillator in the M voltage-controlled oscillators and parameter values corresponding to each communication frequency on the specified parameters; wherein each of the plurality of communication frequencies in the communication frequency range corresponding to the ith voltage controlled oscillator is a communication frequency that the ith voltage controlled oscillator is allowed to set.
Step S12: dividing a plurality of communication frequencies in each sub-reference table to obtain a plurality of frequency sets included in each sub-reference table.
Note that the N frequency sets include: each of the M sub-reference tables includes a number of sets of frequencies.
In an exemplary embodiment, the above step S12 may be implemented by: and carrying out linearity analysis on each sub-reference table so as to divide a plurality of communication frequencies in each sub-reference table into a plurality of frequency sets.
It should be noted that, the parameter value of any communication frequency in each divided frequency set on the specified parameter may be calculated by the parameter value corresponding to the lower limit communication frequency and the upper limit communication frequency of each frequency set on the specified parameter.
When the PLL circuit has M voltage-controlled oscillators, there are M sub-target tables in the target table, in which the lower limit communication frequency and the upper limit communication frequency of each of the plurality of frequency sets corresponding to the i-th voltage-controlled oscillator and the parameter value corresponding to the lower limit communication frequency on the specified parameter and the parameter value corresponding to the upper limit communication frequency on the specified parameter are recorded in the i-th sub-target table.
In an exemplary embodiment, after storing the target table in the memory of the terminal device, the method further includes:
step S21: determining a target communication frequency to be set by the terminal equipment;
in an exemplary embodiment, the step S21 includes: under the condition that the terminal equipment is switched from a first service base station to a second service base station, determining the target communication frequency to the communication frequency of the second service base station; and/or determining the target communication frequency as the communication frequency of the second service cell when the terminal equipment is switched from the first service cell to the second service cell and the communication frequencies of the first service cell and the second service cell are different.
It should be noted that, when the first service base station is a base station corresponding to the terminal device in the position a, and the second service base station is a base station corresponding to the terminal device in the position B, and when the terminal device moves from the position a to the position B, the service base station changes, the terminal device needs to lock its own communication frequency according to the communication frequency of the second service base station.
If the serving base station of the terminal device does not change, but is switched from the first serving cell to the second serving cell (the communication frequencies of the first serving cell and the second serving cell are different), the terminal device needs to lock its own communication frequency according to the communication frequency of the second serving cell.
Step S22: determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the target table stored in the memory;
step S23: setting, by the PLL circuit, the communication frequency of the terminal device to the target communication frequency according to the target parameter value.
As an alternative example, the target parameter value may be written into a corresponding register, and then the loop operation is started, and at the same time, the lock tracking function is turned on, so that the communication frequency of the terminal device may be quickly set to the target communication frequency by the PLL circuit.
In this embodiment, the above manner can achieve quick locking of the communication frequency of the terminal device.
In an exemplary embodiment, the above step S22 may be implemented by the following step S31 and/or step S32:
step S31: acquiring a target parameter value corresponding to the target communication frequency on the specified parameter from the target table under the condition that the target communication frequency is recorded in the target table;
step S32: under the condition that the target communication frequency is not recorded in the target table, determining a target parameter value corresponding to the target communication frequency on the appointed parameter according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value recorded in the target table;
The target communication frequency is located between the first communication frequency and the second communication frequency, the first communication frequency is a lower limit communication frequency with the smallest difference between the first communication frequency and the target communication frequency among all communication frequencies recorded in a target table, the second communication frequency is an upper limit communication frequency with the smallest difference between the first communication frequency and the target communication frequency among all communication frequencies recorded in the target table, the first parameter value is a parameter value corresponding to the first communication frequency on the specified parameter, and the second parameter value is a parameter value corresponding to the second communication frequency on the specified parameter.
As an alternative example, in the case where the target communication frequency is not recorded in the target table, the corresponding target VCO may be determined first according to the target communication frequency (the target communication frequency is located in the target VCO frequency adjustment range), and then the first communication frequency, the first parameter value, the second communication frequency, and the second parameter value may be determined from the sub-target table corresponding to the target VCO in the target table.
In an exemplary embodiment, the above-mentioned determining the target parameter value corresponding to the target communication frequency on the specified parameter according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value recorded in the target table may be implemented by the following steps S41-S42:
Step S41: constructing an objective linear function according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value;
step S42: the target parameter value is determined from the target communication frequency using the target linear function.
It should be noted that the target communication frequency may be input to the target linear function to obtain a target parameter value corresponding to the target communication frequency.
When the specified parameters are the frequency division ratio parameter and the capacitor array control parameter, a first linear function is constructed according to the first communication frequency, the parameter value of the frequency division ratio parameter corresponding to the first communication frequency, and the parameter value of the frequency division ratio parameter corresponding to the second communication frequency; and inputting the target communication frequency into the first linear function to obtain a parameter value of the frequency division ratio parameter corresponding to the target communication frequency.
Constructing a second linear function according to the first communication frequency, the parameter value of the capacitor array control parameter corresponding to the first communication frequency, the second communication frequency and the parameter value of the capacitor array control parameter corresponding to the second communication frequency; and inputting the target communication frequency into a second linear function to obtain a parameter value of the capacitor array control parameter corresponding to the target communication frequency.
The target linear function includes a first linear function and a second linear function. The first parameter value includes a parameter value of a frequency division ratio parameter corresponding to the first communication frequency and a parameter value of a capacitive array control parameter corresponding to the first communication frequency. The second parameter value comprises a parameter value of a frequency division ratio parameter corresponding to the second communication frequency and a parameter value of a capacitor array control parameter corresponding to the second communication frequency; the target parameter value includes a parameter value of a frequency division ratio parameter corresponding to the target communication frequency and a parameter value of a capacitor array control parameter corresponding to the target communication frequency.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention. For better understanding of the above table storage method, the following description will explain the above process with reference to the embodiments, but is not intended to limit the technical solution of the embodiments of the present invention, specifically:
fig. 3 is a flowchart (two) of a table storing method according to an embodiment of the present invention, which specifically includes:
step S302: calibrating a lookup table of the PLL by a reference frequency counting method;
that is, it is necessary to calibrate the PLL circuit first, and calibrate a lookup table of the PLL having the frequency division ratio parameter and the capacitor array control parameter corresponding to each of all the communication frequencies of the PLL circuit by the reference frequency counting method.
Step S304: if a plurality of voltage-controlled oscillators (VCOs) exist, determining a table corresponding to each VCO from a lookup table of the PLL;
it should be noted that, the table corresponding to each VCO has a frequency division ratio parameter and a capacitor array control parameter corresponding to each of all communication frequencies corresponding to the VCO.
Step S306: segmenting a lookup table of the same VCO into one or more segments according to the linearity condition;
step S308: each section only keeps two groups of parameters of the head and the tail, and the parameters of the middle part can be obtained by a linear fitting mode;
step S310: when the PLL works normally, determining which VCO to use according to the working frequency, and obtaining corresponding parameters through calculation;
the voltage-controlled oscillator corresponding to the PLL circuit is determined according to the operating frequency (i.e., the target communication frequency in the above embodiment), and then the target frequency range in which the operating frequency is located is determined from a plurality of frequency ranges corresponding to the target voltage-controlled oscillator, and then the frequency division ratio parameter corresponding to the operating frequency and the parameter value of the capacitor array control parameter are determined according to the target frequency range.
Step S312: after the parameters are written, the loop is started to work, and meanwhile, the locking tracking function is opened, so that the locking and maintaining can be fast realized.
It should be noted that, through the above manner, the purpose of fast locking frequency can be achieved while saving a large amount of memory resources. For example, assuming that the entire phase-locked loop has 3 VCOs, the frequency coverage of each VCO has 200 frequency curves overlapping coverage, the control bit of the capacitor is 7 bits, the bit number of the control frequency division ratio is 32 bits, and the frequency parameter uses the bit number to be 32 bits; the size of the whole lookup table in the prior art is 3×200×8+32+32=43.2 Kbit; if the linear fitting method according to the embodiment of the present application is used, the final table size is 3×4×8+32+32=864 bits, assuming that the frequency coverage of each VCO can be divided into 3 segments. And the memory occupation size is reduced by 98%.
The technical scheme of the application adopts a lookup table (LUT) mode, achieves the aim of quick locking, reduces the memory requirement of the lookup table by a piecewise linear fitting method, saves the memory storage space while quick frequency locking, and saves the chip area and cost.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
In this embodiment, a table storage device is further provided, and the table storage device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 4 is a block diagram of a table storage device according to an embodiment of the present invention, the device including:
a calibration module 42, configured to calibrate a PLL circuit to obtain a reference table, where the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each of the communication frequencies on a specified parameter, where the specified parameter is a parameter of the PLL circuit for implementing setting of a communication frequency of a terminal device, and the PLL circuit is located in the terminal device;
the dividing module 44 is configured to divide the plurality of communication frequencies in the reference table to obtain N frequency sets, where linearity between the communication frequency in each of the N frequency sets and a parameter of the specified parameter meets a preset condition, and N is a positive integer;
A first storage module 46, configured to store, by using a target table, a lower limit communication frequency and an upper limit communication frequency of each of the N frequency sets, and a parameter value corresponding to the lower limit communication frequency on the specified parameter, and a parameter value corresponding to the upper limit communication frequency on the specified parameter;
and a second storage module 48, configured to store the target table in a memory of the terminal device, where the terminal device locks the communication frequency according to the target table.
The device calibrates the PLL circuit to obtain a reference table, divides a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein linearity between the communication frequency in each frequency set and a specified parameter meets a preset condition, and further only a lower limit communication frequency and an upper limit communication frequency of each frequency set in the N frequency sets and a parameter value corresponding to the specified parameter of the lower limit communication frequency and a parameter value corresponding to the specified parameter of the upper limit communication frequency are stored through a target table, and the target table is stored in a memory of the terminal device. Because only part of communication frequencies and corresponding parameter values of the designated parameters are stored in the target table in the memory (the parameters of other communication frequencies on the designated parameters can be calculated by the parameter values of the communication frequencies on the designated parameters recorded in the target table), the problem that the frequency locking of the PLL circuit is carried out in a lookup table manner, so that the lookup table occupies more memory resources is solved, and the technical effect of saving the memory resources is achieved.
In an exemplary embodiment, the dividing module 44 is further configured to divide the reference table into M sub-reference tables corresponding to M voltage-controlled oscillators respectively through communication frequency ranges corresponding to the M voltage-controlled oscillators included in the PLL circuit, where M is a positive integer; dividing a plurality of communication frequencies in each sub-reference table to obtain a plurality of frequency sets included in each sub-reference table.
In an exemplary embodiment, the dividing module 44 is further configured to perform a linearity analysis on each of the sub-reference tables to divide the plurality of communication frequencies in each of the sub-reference tables into a plurality of frequency sets.
In an exemplary embodiment, the above apparatus further includes: the setting module is used for determining the target communication frequency to be set by the terminal equipment after the target table is stored in the memory of the terminal equipment; determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the target table stored in the memory; setting, by the PLL circuit, the communication frequency of the terminal device to the target communication frequency according to the target parameter value.
In an exemplary embodiment, the setting module is further configured to, in a case where the target communication frequency is recorded in the target table, obtain, from the target table, a target parameter value corresponding to the target communication frequency on the specified parameter; and/or determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value recorded in the target table when the target communication frequency is not recorded in the target table; the first communication frequency is a lower limit communication frequency with the smallest difference value with the target communication frequency in all communication frequencies recorded in a target table, the second communication frequency is an upper limit communication frequency with the smallest difference value with the target communication frequency in all communication frequencies recorded in the target table, the first parameter value is a parameter value corresponding to the first communication frequency on the appointed parameter, and the second parameter value is a parameter value corresponding to the second communication frequency on the appointed parameter.
In an exemplary embodiment, the setting module is further configured to construct a target linear function according to the first communication frequency, the first parameter value, the second communication frequency, and the second parameter value; the target parameter value is determined from the target communication frequency using the target linear function.
In an exemplary embodiment, the setting module is further configured to determine, in a case where the terminal device is handed over from a first serving base station to a second serving base station, the target communication frequency as the communication frequency of the second serving base station; and/or determining the target communication frequency as the communication frequency of the second service cell when the terminal equipment is switched from the first service cell to the second service cell and the communication frequencies of the first service cell and the second service cell are different.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment;
S2, dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set in the N frequency sets and the parameter of the appointed parameter accords with a preset condition, and N is a positive integer;
s3, storing a lower limit communication frequency and an upper limit communication frequency of each of the N frequency sets and a parameter value corresponding to the lower limit communication frequency on the specified parameter and a parameter value corresponding to the upper limit communication frequency on the specified parameter through a target table;
s4, storing the target table in a memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment;
s2, dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set in the N frequency sets and the parameter of the appointed parameter accords with a preset condition, and N is a positive integer;
s3, storing a lower limit communication frequency and an upper limit communication frequency of each of the N frequency sets and a parameter value corresponding to the lower limit communication frequency on the specified parameter and a parameter value corresponding to the upper limit communication frequency on the specified parameter through a target table;
S4, storing the target table in a memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of storing a table, comprising:
calibrating a phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment;
dividing a plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each frequency set in the N frequency sets and a specified parameter accords with a preset condition, and N is a positive integer;
storing a lower limit communication frequency and an upper limit communication frequency of each of the N frequency sets and a parameter value corresponding to the lower limit communication frequency on the specified parameter and a parameter value corresponding to the upper limit communication frequency on the specified parameter through a target table;
And storing the target table in a memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
2. The method of claim 1, wherein dividing the plurality of communication frequencies in the reference table to obtain N frequency sets comprises:
dividing the reference table into M sub-reference tables corresponding to M voltage-controlled oscillators respectively through communication frequency ranges corresponding to the M voltage-controlled oscillators included in the PLL circuit, wherein M is a positive integer;
dividing a plurality of communication frequencies in each sub-reference table to obtain a plurality of frequency sets included in each sub-reference table.
3. The method of claim 2, wherein dividing the plurality of communication frequencies in each of the sub-reference tables to obtain a plurality of frequency sets included in each of the sub-reference tables comprises:
and carrying out linearity analysis on each sub-reference table so as to divide a plurality of communication frequencies in each sub-reference table into a plurality of frequency sets.
4. The method of claim 1, wherein after storing the target table in the memory of the terminal device, the method further comprises:
Determining a target communication frequency to be set by the terminal equipment;
determining a target parameter value corresponding to the target communication frequency on the specified parameter according to the target table stored in the memory;
setting, by the PLL circuit, the communication frequency of the terminal device to the target communication frequency according to the target parameter value.
5. The method of claim 4, wherein determining a target parameter value for the target communication frequency corresponding to the specified parameter from the target table stored in the memory comprises:
acquiring a target parameter value corresponding to the target communication frequency on the specified parameter from the target table under the condition that the target communication frequency is recorded in the target table;
and/or the number of the groups of groups,
under the condition that the target communication frequency is not recorded in the target table, determining a target parameter value corresponding to the target communication frequency on the appointed parameter according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value recorded in the target table;
the first communication frequency is a lower limit communication frequency with the smallest difference between the first communication frequency and the target communication frequency in all communication frequencies recorded in the target table, the second communication frequency is an upper limit communication frequency with the smallest difference between the first communication frequency and the target communication frequency in all communication frequencies recorded in the target table, the first parameter value is a parameter value corresponding to the first communication frequency on the appointed parameter, and the second parameter value is a parameter value corresponding to the second communication frequency on the appointed parameter.
6. The method of claim 5, wherein determining a target parameter value for the target communication frequency for the specified parameter based on the first communication frequency, the first parameter value, the second communication frequency, and the second parameter value recorded in the target table comprises:
constructing an objective linear function according to the first communication frequency, the first parameter value, the second communication frequency and the second parameter value;
the target parameter value is determined from the target communication frequency using the target linear function.
7. The method of claim 4, wherein determining the target communication frequency to be set by the terminal device comprises:
determining the target communication frequency as the communication frequency of a second service base station under the condition that the terminal equipment is switched from the first service base station to the second service base station;
and/or the number of the groups of groups,
and determining the target communication frequency as the communication frequency of the second service cell under the condition that the terminal equipment is switched from the first service cell to the second service cell and the communication frequencies of the first service cell and the second service cell are different.
8. A form storage device, comprising:
the calibration module is used for calibrating the phase-locked loop (PLL) circuit to obtain a reference table, wherein the reference table records a plurality of communication frequencies in a communication frequency adjustment range of the PLL circuit and parameter values corresponding to each communication frequency on a specified parameter, the specified parameter is a parameter of the PLL circuit for realizing the setting of the communication frequency of terminal equipment, and the PLL circuit is positioned in the terminal equipment; the dividing module is used for dividing the plurality of communication frequencies in the reference table to obtain N frequency sets, wherein the linearity between the communication frequency in each of the N frequency sets and the specified parameter accords with a preset condition, and N is a positive integer;
the first storage module is used for storing the lower limit communication frequency and the upper limit communication frequency of each of the N frequency sets and the parameter value corresponding to the lower limit communication frequency on the appointed parameter and the parameter value corresponding to the upper limit communication frequency on the appointed parameter through a target table;
and the second storage module is used for storing the target table in the memory of the terminal equipment, wherein the terminal equipment locks the communication frequency according to the target table.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202310928676.6A 2023-07-26 2023-07-26 Table storage method and device, storage medium and electronic device Pending CN116893784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310928676.6A CN116893784A (en) 2023-07-26 2023-07-26 Table storage method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310928676.6A CN116893784A (en) 2023-07-26 2023-07-26 Table storage method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116893784A true CN116893784A (en) 2023-10-17

Family

ID=88313442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310928676.6A Pending CN116893784A (en) 2023-07-26 2023-07-26 Table storage method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116893784A (en)

Similar Documents

Publication Publication Date Title
EP2140549B1 (en) Oscillator signal stabilization
US6946884B2 (en) Fractional-N baseband frequency synthesizer in bluetooth applications
US7760844B2 (en) Multi-modulus divider with extended and continuous division range
US8004367B2 (en) VCO control and methods therefor
KR101502609B1 (en) Hybrid afc using dcxo and rf pll
CN104796140A (en) Digital phase-locked loop (DPLL), method of controlling DPLL, and ultra low power (ULP) transceiver using DPLL
CN101754468B (en) Mobile terminal and clock design method for mobile terminal
EP1025642A1 (en) Method and apparatus for compliance to multiple frequency plans
CA3012231C (en) Controlling a switched capacitor bank in a voltage controlled oscillator for wireless sensor devices
CN108141245A (en) For the method and apparatus of the transmission path with frequency hopping phaselocked loop
CN116893784A (en) Table storage method and device, storage medium and electronic device
CA3015840C (en) Transforming voltage in a voltage controlled oscillator for wireless sensor devices
CN107846222A (en) A kind of digital analog converter gain self-calibration circuit
CN109818636A (en) A kind of method, apparatus, equipment and the storage medium of the gain of automatic calibration voltage controlled oscillator
CN109067475B (en) Frequency offset calibration method and system of radio frequency module
CN114744999B (en) Frequency hopping source implementation method and device, frequency hopping source, electronic equipment and storage medium
JP2011041300A (en) Phase locked loop that set gain automatically
US10177772B2 (en) Fractional-N phase locked loop delta sigma modulator noise reduction using charge pump interpolation
WO2014109953A1 (en) Systems and methods for synthesizer locking using iterative numerical techniques
Zakia et al. The impact of PLL loop bandwidth on Frequency Synthesizer'S performances for LTE/LTE-Advanced mobile communications
CN117479309A (en) Base station frequency configuration method and device, storage medium and electronic device
JP2001211073A (en) Pll frequency synthesizer and controlling method thereof
KR20020011721A (en) Analog demodulation apparatus of dual mode mobile communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination