WO2022083638A1 - Chip clock frequency adjustment method and apparatus, chip, and electronic device - Google Patents

Chip clock frequency adjustment method and apparatus, chip, and electronic device Download PDF

Info

Publication number
WO2022083638A1
WO2022083638A1 PCT/CN2021/124977 CN2021124977W WO2022083638A1 WO 2022083638 A1 WO2022083638 A1 WO 2022083638A1 CN 2021124977 W CN2021124977 W CN 2021124977W WO 2022083638 A1 WO2022083638 A1 WO 2022083638A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency
clock
resistance
value
oscillator
Prior art date
Application number
PCT/CN2021/124977
Other languages
French (fr)
Chinese (zh)
Inventor
刘广辉
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022083638A1 publication Critical patent/WO2022083638A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method, device, chip and electronic device for adjusting the clock frequency of a chip.
  • the functions of electronic devices are becoming more and more perfect, but the structures of electronic devices are also becoming more and more complex.
  • the distance between the driver chip of the electronic device and the antenna reaches the sub-millimeter level.
  • the clock frequency of the clock signal can be avoided from the communication frequency band.
  • the clock signal is generated by an RC oscillator, and the clock frequency of the RC oscillator in the prior art is within or close to the communication frequency band, resulting in low communication quality.
  • Embodiments of the present application provide a chip clock frequency adjustment method, device, chip and electronic device, which can solve the problem that the clock frequency of the RC oscillator in the prior art is within or close to the communication frequency band, resulting in low communication quality.
  • an embodiment of the present application provides a chip clock frequency adjustment method, which is applied to a chip, where the chip includes an RC oscillator, and the RC oscillator is used to output a clock signal, and the RC oscillator includes a first An RC frequency selection network composed of a resistor and a first capacitor, the method includes:
  • the frequency error is the ratio of the clock frequency difference to the target clock frequency
  • the clock frequency difference is the first clock of the clock signal output by the RC oscillator the difference between the frequency and the target clock frequency
  • an embodiment of the present application provides a chip, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes an RC composed of a first resistor and a first capacitor frequency selection network, the RC oscillator further includes a resistance value adjustment module connected to the first resistor, the resistance value adjustment module is used to adjust the resistance value of the RC frequency selection network, so that the RC oscillator
  • the absolute value of the frequency error of the output clock signal is less than or equal to the first preset value
  • the frequency error is the ratio of the clock frequency difference to the target clock frequency
  • the clock frequency difference is the clock output by the RC oscillator
  • the difference between the first clock frequency of the signal and the target clock frequency, the first preset value is greater than 0, and the first preset value is less than 1.
  • an embodiment of the present application provides a chip clock frequency adjustment device, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a first resistor and a first An RC frequency selection network composed of capacitors, the device includes:
  • a first determining module configured to determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the RC oscillator output The difference between the first clock frequency of the clock signal and the target clock frequency;
  • an adjustment module configured to adjust the resistance value of the RC frequency selection network when the absolute value of the frequency error is greater than a first preset value, so that the absolute value of the frequency error is less than or equal to the first A preset value, the first preset value is greater than 0, and the first preset value is less than 1.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps in the chip clock frequency adjustment method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the chip clock frequency according to the first aspect is realized Adjust the steps in the method.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
  • the frequency error of the clock signal output by the RC oscillator is determined, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the output of the RC oscillator The difference between the first clock frequency of the clock signal and the target clock frequency; when the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that all The absolute value of the frequency error is less than or equal to the first preset value, the first preset value is greater than 0, and the first preset value is less than 1.
  • the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current radio frequency communication frequency band, and the communication quality can be improved.
  • FIG. 1 is a flowchart of a method for adjusting a chip clock frequency provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a clock pulse count provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a clock frequency adjustment provided by an embodiment of the present application.
  • FIG. 5 is a partial structural schematic diagram of a chip provided by an embodiment of the present application.
  • FIG. 6 is one of the schematic structural diagrams of a chip clock frequency adjustment device provided by an embodiment of the present application.
  • FIG. 7 is the second schematic structural diagram of a chip clock frequency adjustment device provided by an embodiment of the present application.
  • FIG. 9 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a flowchart of a chip clock frequency adjustment method provided by an embodiment of the present application.
  • the method is applied to a chip, and the chip includes an RC oscillator, and the RC oscillator is used to output a clock signal,
  • the RC oscillator includes an RC frequency selection network 2 composed of a first resistor 21 and a first capacitor.
  • the RC oscillator includes the following steps:
  • Step 101 Determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the frequency of the clock signal output by the RC oscillator. The difference between the first clock frequency and the target clock frequency.
  • the number of the first resistors may be one or more, and the number of the first capacitors may be one or more. As shown in FIG. 2 , the number of the first resistors may be three, and the number of the first capacitors may be three.
  • the RC oscillator may include an amplifier, the RC frequency selection network 2 may be connected to the amplifier, and the clock signal may be outputted through the amplifier.
  • the first clock frequency may be the clock frequency of the clock signal output by the RC oscillator, that is, the current actual clock frequency.
  • the target clock frequency may be a preset clock frequency, or may be a clock frequency determined based on the current radio frequency communication frequency band.
  • Step 102 in the case that the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value value, the first preset value is greater than 0, and the first preset value is less than 1.
  • the first preset value may be 0.2%, or may be 0.3%, or may be 0.5%, etc., which is not limited in this embodiment.
  • the resistance value of the RC frequency selection network can be adjusted by a resistance value adjustment module, and the resistance value adjustment module can include at least one resistance value reduction unit and at least one resistance value increase unit, and the resistance value reduction unit is used for The resistance value of the RC frequency selection network is reduced, and the resistance value increasing unit is used to increase the resistance value of the RC frequency selection network; each of the resistance value reduction units includes: at least one second resistor connected in parallel with the resistors, and a first switch connected in series with each of the second resistors; each of the resistance increasing units includes: at least one third resistor connected in series with the first resistor, and a second switch in series with each of said third resistors.
  • Electromagnetic Compatibility Electromagnetic Compatibility
  • EMC Electromagnetic Compatibility
  • EMI chip-level electromagnetic interference
  • the distance between the display driver chip and the antenna is already sub-millimeter level, and the direct radiated EMI interference generated by the clock of the display driver chip can be radiated and coupled to the antenna at close range.
  • the frequency error of the clock signal output by the RC oscillator is determined, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the output of the RC oscillator The difference between the first clock frequency of the clock signal and the target clock frequency; when the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that all The absolute value of the frequency error is less than or equal to the first preset value, the first preset value is greater than 0, and the first preset value is less than 1.
  • the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current radio frequency communication frequency band, and the communication quality can be improved.
  • the determining the frequency error of the clock signal output by the RC oscillator includes:
  • a frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
  • the target pulse number may be the product of the time difference between the receiving moments of the at least two line scan signals and the target clock frequency
  • the frequency error of the clock signal output by the RC oscillator may be: (N0 -N1)/N1*100%
  • N0 is the first pulse number
  • N1 is the target pulse number.
  • t1 is the clock period
  • t0 is the time period between the reception times of at least two line scan signals, so N1 is: t0/t1.
  • t0 can be provided by the processor, usually more than 0.001% accuracy, the accuracy is high.
  • the first pulse number can be counted by a 16-bit pulse counter.
  • the 16-bit pulse counter can achieve a maximum of 65536 pulse counts. In theory, the maximum frequency error (1-65535/65536) can be achieved, with a judgment accuracy of about 0.0025%.
  • the clock signal output by the RC oscillator has poor clock accuracy, which can only reach about 2% to 5% of the target clock frequency, and will drift with the temperature change, and the jitter will be large, resulting in the spectrum of the interference signal.
  • the bandwidth reaches more than 3MHz.
  • Poor clock accuracy makes it impossible to select a specific frequency so that the associated interference avoids all communication bands.
  • the reference clock cannot be directly input from the outside, and the chip cannot add a high-precision clock source.
  • the package and process of the display driver chip do not support high-precision clock source modules, such as the integration of crystals; and the chip cannot support external high-precision clocks as a reference, resulting in poor compatibility.
  • the frequency error when the frequency error is determined, the frequency error as accurate as possible can be obtained through higher clock precision requirements. For example, when the clock accuracy is 0.05%, a relatively accurate frequency error can be obtained.
  • the target clock frequency is 100MHz
  • the clock period is 10ns
  • the condition of more than 2000 pulses is satisfied
  • the unit time is 20000ns or more than 20us, corresponding to a 60Hz screen
  • the scanning time of each line is 7us
  • the scanning time of 3 lines is taken.
  • the corresponding target pulse number is 2100, which can meet the accuracy requirement of 0.05%.
  • the frequency error of the clock can be determined by tracking the number of clock pulses in the unit period of the line scanning signal with high contrast accuracy, so that the frequency error can be determined more accurately, and then the clock frequency can be determined based on the more accurate frequency error. Adjustment.
  • a preset value including:
  • the resistance value of the RC frequency selection network can be increased by all or part of the resistance value increasing units in the at least one resistance value increasing unit, and all or part of the resistance value increasing units in the at least one resistance value decreasing unit can be used.
  • the partial resistance value reducing unit reduces the resistance value of the RC frequency selection network.
  • the frequency error of the clock frequency is reduced by increasing or decreasing the resistance value of the RC frequency selection network, so that the clock frequency can be adjusted accurately so that the clock frequency avoids the radio frequency communication frequency band, and the EMI performance of the display driver chip is improved. , thereby improving the network adaptability experience.
  • the method before determining the frequency error of the clock signal output by the RC oscillator, the method further includes:
  • the target clock frequency is determined based on the current radio frequency communication frequency band, wherein the target clock frequency is outside the current radio frequency communication frequency band.
  • a frequency setting look-up table may be preset, and the frequency setting look-up table may store the radio frequency communication frequency band and the corresponding clock frequency, that is, the target clock frequency.
  • the radio frequency communication frequency band does not include the target clock frequency, so that the target clock frequency can be Avoid RF communication bands.
  • the target clock frequency may be the clock frequency corresponding to the current radio frequency communication frequency band in the frequency setting look-up table.
  • the current radio frequency communication frequency band may be between FL and FH, and the first clock frequency in the current radio frequency communication frequency band may be frequency hopped to a target clock frequency outside the current radio frequency communication frequency band.
  • the clock accuracy and frequency error of the display driver chip can be detected synchronously when switching the radio frequency communication frequency band and channel to confirm whether the clock-related interference avoids the radio frequency communication frequency band. If the current clock frequency cannot avoid the current radio frequency communication frequency band, the clock frequency can be adjusted to the target clock frequency in the preset frequency setting look-up table. By adjusting the current clock frequency so that the current clock frequency is as close to the target clock frequency as possible, based on improving the clock accuracy and reducing the frequency error, a small range of frequency hopping can be performed without affecting the function, avoiding the current RF communication frequency band, which can solve the problem of display driver. EMI interference problems caused by the clock module of the chip.
  • the target clock frequency is determined based on the current radio frequency communication frequency band, and the clock frequency can be dynamically and intelligently adjusted and compensated with the change of the radio frequency communication frequency band, so that the interference frequency of the clock module can avoid the radio frequency communication frequency band , so as to solve the EMI interference problem caused by the clock module.
  • FIG. 2 is a schematic structural diagram of a chip provided by an embodiment of the present application, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a first resistor 21
  • the RC frequency selection network 2 formed with the first capacitor, as shown in FIG. 5 the RC oscillator further includes a resistance adjustment module 22 connected with the first resistor 21 , and the resistance adjustment module 22 is used for adjusting The resistance value of the RC frequency selection network 2, so that the absolute value of the frequency error of the clock signal output by the RC oscillator is less than or equal to the first preset value, and the frequency error is the difference between the clock frequency and the target clock frequency.
  • the ratio of the clock frequency difference is the difference between the first clock frequency of the clock signal output by the RC oscillator and the target clock frequency, the first preset value is greater than 0, and the first preset value is greater than 0. Set the value to less than 1.
  • Adjusting the resistance value of the RC frequency selection network 2 through the resistance value adjustment module 22 can improve the clock accuracy and reduce the frequency error, thereby reducing the difficulty of chip integration development; and can reduce the cost and reliability without sacrificing reliability. Under the circumstance, the EMI performance of the chip is improved, thereby improving the network adaptability experience; and it can shorten the product development verification cycle.
  • the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current
  • the radio frequency communication frequency band can improve the communication quality.
  • the resistance adjustment module 22 includes at least one resistance reducing unit and at least one resistance increasing unit, and the resistance reducing unit is used to reduce the resistance value of the RC frequency selection network 2,
  • the resistance value increasing unit is used to increase the resistance value of the RC frequency selection network 2;
  • Each of the resistance reducing units includes: at least one second resistor connected in parallel with the first resistor 21, and a first switch connected in series with each of the second resistors;
  • Each of the resistance increasing units includes: at least one third resistor connected in series with the first resistor 21 , and a second switch connected in series with each of the third resistors.
  • the resistance value of the second resistor is greater than the resistance value of the first resistor 21 , and the resistance value of the third resistor is smaller than the resistance value of the first resistor 21 .
  • the resistance value of the second resistor is 100 times the resistance value of the first resistor 21
  • the resistance value of the third resistor is 1% of the resistance value of the first resistor 21 .
  • the resistance values of the RC frequency selection network 2 reduced by a plurality of resistance value reducing units may be different, and the resistance values of the RC frequency selection network 2 increased by a plurality of resistance value increasing units may be different, so that the step-by-step process can be realized.
  • the frequency error is adjusted progressively.
  • the increased circuit area of the resistance adjustment module 22 accounts for a very small amount of the entire chip area, and the cost of the chip is related to the area. Therefore, this embodiment can improve the EMI performance of the clock of the chip at a small cost and cost, and at the same time, due to the improvement of the clock accuracy , thereby improving the reliability of chip-related functions.
  • a larger resistor in parallel or a smaller resistor in series can change the clock frequency in a small range, so that the clock frequency can be changed in a small range through all
  • the at least one resistance reducing unit and the at least one resistance increasing unit adjust the frequency error stepwise.
  • the at least one resistance reduction unit includes a first resistance reduction unit 221 and a second resistance reduction unit 222, and the first resistance reduction unit 221 is used to reduce the RC selection.
  • the resistance value of the frequency selection network 2 is set to make the resistance value of the RC frequency selection network 2 smaller than the second preset value, and the second resistance reduction unit 222 is used to reduce the resistance value of the RC frequency selection network 2 , so that the resistance value of the RC frequency selection network 2 is smaller than the third preset value, and the second preset value is greater than the third preset value;
  • the at least one resistance increasing unit includes a first resistance increasing unit 225 and a second resistance increasing unit 226, and the first resistance increasing unit 225 is used to increase the resistance of the RC frequency selection network 2. resistance value, so that the resistance value of the RC frequency selection network 2 is greater than the fourth preset value, and the second resistance value increasing unit 226 is used to increase the resistance value of the RC frequency selection network 2, so that all The resistance value of the RC frequency selection network 2 is greater than the fifth preset value, and the fourth preset value is smaller than the fifth preset value.
  • the first resistance reducing unit 221 and the second resistance reducing unit 222 reduce the resistance of the RC frequency selection network 2, thereby increasing the clock frequency, and the first resistance reducing unit 221 corresponds to The increase value of the clock frequency of , is smaller than the increase value of the clock frequency corresponding to the second resistance value reducing unit 222 .
  • the first resistance value increasing unit 225 and the second resistance value increasing unit 226 increase the resistance value of the RC frequency selection network 2, so that the clock frequency can be reduced.
  • the first resistance value increasing unit 225 corresponds to the clock frequency
  • the reduction value is smaller than the reduction value of the clock frequency corresponding to the second resistance value increasing unit 226 .
  • the at least one resistance reducing unit includes a first resistance reducing unit 221 , a second resistance reducing unit 222 , a third resistance reducing unit 223 and a fourth resistance reducing unit 224.
  • the first resistance reducing unit 221 can increase the clock frequency to change the absolute value of the frequency error by 0.1%
  • the second resistance reducing unit 222 can increase the clock frequency to change the absolute value of the frequency error by 0.5%
  • the resistance reducing unit 223 can increase the clock frequency to change the absolute value of the frequency error by 0.2%
  • the fourth resistance reducing unit 224 can increase the clock frequency to change the absolute value of the frequency error by 1%.
  • the at least one resistance increasing unit includes a first resistance increasing unit 225, a second resistance increasing unit 226, a third resistance increasing unit 227, and a fourth resistance increasing unit 228.
  • the increasing unit 225 can reduce the clock frequency to change the absolute value of the frequency error by 0.1%
  • the second resistance increasing unit 226 can reduce the clock frequency to change the absolute value of the frequency error by 0.5%
  • the third resistance increasing unit 227 The clock frequency can be reduced to change the absolute value of the frequency error by 0.2%
  • the fourth resistance increasing unit 228 can reduce the clock frequency to change the absolute value of the frequency error by 1%.
  • the resistance adjustment module 22 may further include a third switch 229, which may be connected in series with the first resistance 21, and the third switch 229 may be disconnected when the resistance value of the RC frequency selection network 2 needs to be increased. ; When the resistance value of the RC frequency selection network 2 does not need to be increased, the third switch 229 can be closed.
  • the frequency error can be adjusted by controlling the second resistance reducing unit 222 and the first switch in the fourth resistance reducing unit 224; if it is judged that the absolute value of the frequency error is greater than or equal to 0.2% and less than or is equal to 0.5%, and the frequency error is less than 0, the frequency error can be adjusted by controlling the first switch in the first resistance reducing unit 221 and the third resistance reducing unit 223; if it is judged that the absolute value of the frequency error is greater than 0.5%, and the frequency error is greater than 0, the frequency error can be adjusted by controlling the second resistance increasing unit 226 and the second switch in the fourth resistance increasing unit 228; is equal to 0.2% and less than or equal to 0.5%, and the frequency error is less than 0, the
  • the frequency error can be adjusted within a preset range within ms, so that even if a certain noise bandwidth is considered, the requirements of the radio frequency communication frequency band for interference and noise avoidance can be met. .
  • the clock frequency can be gradually increased, so that the current clock frequency is close to the target clock frequency, thereby gradually reducing the frequency error;
  • the chip clock frequency adjustment method in the embodiment of FIG. 1 can be applied to the chips in the above-mentioned embodiments, and the same beneficial effects can be achieved.
  • the execution body may be a chip clock frequency adjustment apparatus, or a control module in the chip clock frequency adjustment apparatus for executing the loading chip clock frequency adjustment method.
  • the method for adjusting the clock frequency of a loaded chip by an apparatus for adjusting the clock frequency of a chip is used as an example to describe the apparatus for adjusting the clock frequency of a chip provided by the embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a chip clock frequency adjustment device provided by an embodiment of the present application, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a The RC frequency selection network formed by the first resistor and the first capacitor, as shown in FIG. 6 , the device 300 includes:
  • the first determination module 301 is used to determine the frequency error of the clock signal output by the RC oscillator, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the RC oscillator the difference between the first clock frequency of the output clock signal and the target clock frequency;
  • An adjustment module 302 configured to adjust the resistance value of the RC frequency selection network when the absolute value of the frequency error is greater than a first preset value, so that the absolute value of the frequency error is less than or equal to the first A preset value, the first preset value is greater than 0, and the first preset value is less than 1.
  • the first determining module 301 is specifically configured to:
  • a frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
  • the adjustment module 302 is specifically used for:
  • the apparatus 300 further includes:
  • an acquisition module 303 configured to acquire the current radio frequency communication frequency band
  • the second determining module 304 is configured to determine the target clock frequency based on the current radio frequency communication frequency band if the first clock frequency is within the current radio frequency communication frequency band, wherein the target clock frequency is within the current radio frequency communication frequency band outside the radio frequency communication band.
  • the device for adjusting the clock frequency of a chip in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for adjusting the clock frequency of the chip in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the chip clock frequency adjustment device provided by the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 400, including a processor 401, a memory 402, a program or instruction stored in the memory 402 and executable on the processor 401,
  • an electronic device 400 including a processor 401, a memory 402, a program or instruction stored in the memory 402 and executable on the processor 401,
  • the program or instruction is executed by the processor 401, each process of the above-mentioned embodiments of the chip clock frequency adjustment method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
  • the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the electronic device includes a chip, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, the RC oscillator includes an RC frequency selection network composed of a first resistor and a first capacitor, and the processing The device 510 is configured to: determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the clock output by the RC oscillator the difference between the first clock frequency of the signal and the target clock frequency;
  • processor 510 is further configured to:
  • a frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
  • processor 510 is further configured to:
  • processor 510 is further configured to:
  • the target clock frequency is determined based on the current radio frequency communication frequency band, wherein the target clock frequency is outside the current radio frequency communication frequency band.
  • the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072 .
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 509 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 510.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the chip clock frequency adjustment method is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above method for adjusting the clock frequency of the chip In order to avoid repetition, the details are not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

Abstract

A chip clock frequency adjustment method and apparatus, a chip, and an electronic device. The chip comprises an RC oscillator. The RC oscillator is used for outputting a clock signal, and comprises an RC frequency selection network consisting of a first resistor and a first capacitor. The method comprises: determining a frequency error of a clock signal output by the RC oscillator (101), the frequency error being the ratio of a clock frequency difference to a target clock frequency; the clock frequency difference being the difference between a first clock frequency of the clock signal output by the RC oscillator, and the target clock frequency; and when the absolute value of the frequency error is greater than a first preset value, adjusting a resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value (102), the first preset value being greater than 0, and being less than 1.

Description

芯片时钟频率调整方法、装置、芯片及电子设备Chip clock frequency adjustment method, device, chip and electronic equipment
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年10月23日在中国提交的中国专利申请No.202011148686.0的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011148686.0 filed in China on October 23, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种芯片时钟频率调整方法、装置、芯片及电子设备。The present application relates to the field of communication technologies, and in particular, to a method, device, chip and electronic device for adjusting the clock frequency of a chip.
背景技术Background technique
随着电子设备的普及,电子设备的功能越来越完善,但电子设备的结构也越来越复杂。为便于电子设备的屏幕实现全面屏,电子设备的驱动芯片与天线的距离达到亚毫米级。为避免驱动芯片的时钟信号干扰天线,可以将时钟信号的时钟频率避开通信频段。时钟信号由RC振荡器生成,而现有技术中RC振荡器的时钟频率在通信频段内或接近通信频段,导致通信质量较低。With the popularization of electronic devices, the functions of electronic devices are becoming more and more perfect, but the structures of electronic devices are also becoming more and more complex. In order to facilitate the screen of the electronic device to achieve a full screen, the distance between the driver chip of the electronic device and the antenna reaches the sub-millimeter level. In order to prevent the clock signal of the driver chip from interfering with the antenna, the clock frequency of the clock signal can be avoided from the communication frequency band. The clock signal is generated by an RC oscillator, and the clock frequency of the RC oscillator in the prior art is within or close to the communication frequency band, resulting in low communication quality.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种芯片时钟频率调整方法、装置、芯片及电子设备,能够解决现有技术中RC振荡器的时钟频率在通信频段内或接近通信频段,导致通信质量较低的问题。Embodiments of the present application provide a chip clock frequency adjustment method, device, chip and electronic device, which can solve the problem that the clock frequency of the RC oscillator in the prior art is within or close to the communication frequency band, resulting in low communication quality.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本申请实施例提供了一种芯片时钟频率调整方法,应用于芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述方法包括:In a first aspect, an embodiment of the present application provides a chip clock frequency adjustment method, which is applied to a chip, where the chip includes an RC oscillator, and the RC oscillator is used to output a clock signal, and the RC oscillator includes a first An RC frequency selection network composed of a resistor and a first capacitor, the method includes:
确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;Determine the frequency error of the clock signal output by the RC oscillator, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the first clock of the clock signal output by the RC oscillator the difference between the frequency and the target clock frequency;
在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频 网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。When the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network so that the absolute value of the frequency error is less than or equal to the first preset value, so The first preset value is greater than 0, and the first preset value is less than 1.
第二方面,本申请实施例提供了一种芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述RC振荡器还包括与所述第一电阻连接的阻值调整模块,所述阻值调整模块用于调整所述RC选频网络的电阻值,以使所述RC振荡器输出的时钟信号的频率误差的绝对值小于或等于第一预设值,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值,所述第一预设值大于0,且所述第一预设值小于1。In a second aspect, an embodiment of the present application provides a chip, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes an RC composed of a first resistor and a first capacitor frequency selection network, the RC oscillator further includes a resistance value adjustment module connected to the first resistor, the resistance value adjustment module is used to adjust the resistance value of the RC frequency selection network, so that the RC oscillator The absolute value of the frequency error of the output clock signal is less than or equal to the first preset value, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the clock output by the RC oscillator The difference between the first clock frequency of the signal and the target clock frequency, the first preset value is greater than 0, and the first preset value is less than 1.
第三方面,本申请实施例提供了一种芯片时钟频率调整装置,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述装置包括:In a third aspect, an embodiment of the present application provides a chip clock frequency adjustment device, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a first resistor and a first An RC frequency selection network composed of capacitors, the device includes:
第一确定模块,用于确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;a first determining module, configured to determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the RC oscillator output The difference between the first clock frequency of the clock signal and the target clock frequency;
调整模块,用于在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。an adjustment module, configured to adjust the resistance value of the RC frequency selection network when the absolute value of the frequency error is greater than a first preset value, so that the absolute value of the frequency error is less than or equal to the first A preset value, the first preset value is greater than 0, and the first preset value is less than 1.
第四方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的芯片时钟频率调整方法中的步骤。In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps in the chip clock frequency adjustment method according to the first aspect when executed.
第五方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的芯片时钟频率调整方法中的步骤。In a fifth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the chip clock frequency according to the first aspect is realized Adjust the steps in the method.
第六方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the first aspect the method described.
第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
在本申请实施例中,确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。这样,通过调整RC选频网络的电阻值,能够降低RC振荡器输出的时钟信号的频率误差,从而能够调整时钟信号的时钟频率避开当前射频通信频段,能够提高通信质量。In the embodiment of the present application, the frequency error of the clock signal output by the RC oscillator is determined, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the output of the RC oscillator The difference between the first clock frequency of the clock signal and the target clock frequency; when the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that all The absolute value of the frequency error is less than or equal to the first preset value, the first preset value is greater than 0, and the first preset value is less than 1. In this way, by adjusting the resistance value of the RC frequency selection network, the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current radio frequency communication frequency band, and the communication quality can be improved.
附图说明Description of drawings
图1是本申请实施例提供的一种芯片时钟频率调整方法的流程图;1 is a flowchart of a method for adjusting a chip clock frequency provided by an embodiment of the present application;
图2是本申请实施例提供的一种芯片的结构示意图;FIG. 2 is a schematic structural diagram of a chip provided by an embodiment of the present application;
图3是本申请实施例提供的一种时钟脉冲计数的示意图;3 is a schematic diagram of a clock pulse count provided by an embodiment of the present application;
图4是本申请实施例提供的一种调整时钟频率的示意图;4 is a schematic diagram of a clock frequency adjustment provided by an embodiment of the present application;
图5是本申请实施例提供的一种芯片的部分结构示意图;FIG. 5 is a partial structural schematic diagram of a chip provided by an embodiment of the present application;
图6是本申请实施例提供的一种芯片时钟频率调整装置的结构示意图之一;6 is one of the schematic structural diagrams of a chip clock frequency adjustment device provided by an embodiment of the present application;
图7是本申请实施例提供的一种芯片时钟频率调整装置的结构示意图之二;FIG. 7 is the second schematic structural diagram of a chip clock frequency adjustment device provided by an embodiment of the present application;
图8是本申请实施例提供的一种电子设备的结构示意图之一;8 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application;
图9是本申请实施例提供的一种电子设备的结构示意图之二。FIG. 9 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work, all belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的芯片时钟频率调整方法进行详细地说明。The following describes the chip clock frequency adjustment method provided by the embodiment of the present application in detail through specific embodiments and application scenarios with reference to the accompanying drawings.
参见图1,图1是本申请实施例提供的一种芯片时钟频率调整方法的流程图,所述方法应用于芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,如图2所示,所述RC振荡器包括由第一电阻21和第一电容构成的RC选频网络2,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a chip clock frequency adjustment method provided by an embodiment of the present application. The method is applied to a chip, and the chip includes an RC oscillator, and the RC oscillator is used to output a clock signal, As shown in FIG. 2 , the RC oscillator includes an RC frequency selection network 2 composed of a first resistor 21 and a first capacitor. As shown in FIG. 1 , the RC oscillator includes the following steps:
步骤101、确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值。Step 101: Determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the frequency of the clock signal output by the RC oscillator. The difference between the first clock frequency and the target clock frequency.
其中,所述第一电阻的数量可以为一个或多个,所述第一电容的数量可以为一个或多个。如图2所示,所述第一电阻的数量可以为3个,所述第一电容的数量可以为3个。所述RC振荡器可以包括放大器,所述RC选频网络2可以与放大器连接,通过放大器输出时钟信号。所述第一时钟频率可以为RC振荡器输出的时钟信号的时钟频率,即当前实际时钟频率。所述目标时钟频率可以为预设时钟频率,或者可以为基于当前射频通信频段确定的时钟频率。The number of the first resistors may be one or more, and the number of the first capacitors may be one or more. As shown in FIG. 2 , the number of the first resistors may be three, and the number of the first capacitors may be three. The RC oscillator may include an amplifier, the RC frequency selection network 2 may be connected to the amplifier, and the clock signal may be outputted through the amplifier. The first clock frequency may be the clock frequency of the clock signal output by the RC oscillator, that is, the current actual clock frequency. The target clock frequency may be a preset clock frequency, or may be a clock frequency determined based on the current radio frequency communication frequency band.
步骤102、在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。 Step 102, in the case that the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value value, the first preset value is greater than 0, and the first preset value is less than 1.
其中,所述第一预设值可以为0.2%,或者可以为0.3%,或者可以为0.5%,等等,本实施例对此不进行限定。可以通过阻值调整模块调整所述RC选频 网络的电阻值,所述阻值调整模块可以包括至少一个阻值减小单元和至少一个阻值增大单元,所述阻值减小单元用于减小所述RC选频网络的电阻值,所述阻值增大单元用于增大所述RC选频网络的电阻值;每个所述阻值减小单元均包括:与所述第一电阻并联的至少一个第二电阻,以及与每个所述第二电阻串联的第一开关;每个所述阻值增大单元均包括:与所述第一电阻串联的至少一个第三电阻,以及与每个所述第三电阻串联的第二开关。Wherein, the first preset value may be 0.2%, or may be 0.3%, or may be 0.5%, etc., which is not limited in this embodiment. The resistance value of the RC frequency selection network can be adjusted by a resistance value adjustment module, and the resistance value adjustment module can include at least one resistance value reduction unit and at least one resistance value increase unit, and the resistance value reduction unit is used for The resistance value of the RC frequency selection network is reduced, and the resistance value increasing unit is used to increase the resistance value of the RC frequency selection network; each of the resistance value reduction units includes: at least one second resistor connected in parallel with the resistors, and a first switch connected in series with each of the second resistors; each of the resistance increasing units includes: at least one third resistor connected in series with the first resistor, and a second switch in series with each of said third resistors.
在实际应用中,以芯片为显示驱动芯片为例,显示驱动芯片在芯片设计时因优先考虑逻辑和时序实现,进而在相关设计上留有很大的余量,甚至认为电磁兼容(Electromagnetic Compatibility,EMC)问题都是系统集成的问题,电子设备需要在系统端寻找解决方案,从而忽略了源头处理代价最小的原则,导致相关厂家针对芯片级的电磁干扰(Electromagnetic Interference,EMI)处理措施和解决方案研究投入极少,不能在功能和EMI相关性能上取得平衡,导致显示驱动芯片在EMI性能方面存在较大的缺陷。在电子设备极致全面屏的外观驱使下,显示驱动芯片与天线的距离已经是亚毫米级,显示驱动芯片的时钟产生的直接辐射EMI干扰可近距离辐射耦合到天线。In practical applications, taking the chip as a display driver chip as an example, the display driver chip gives priority to logic and timing implementation in chip design, and leaves a large margin in related design, and even considers Electromagnetic Compatibility (Electromagnetic Compatibility, EMC) problems are all system integration problems, and electronic devices need to find solutions at the system side, thus ignoring the principle of least processing cost at the source, resulting in related manufacturers' measures and solutions for chip-level electromagnetic interference (Electromagnetic Interference, EMI). The research investment is very small, and the function and EMI-related performance cannot be balanced, resulting in a large defect in the EMI performance of the display driver chip. Driven by the appearance of the extreme full screen of electronic devices, the distance between the display driver chip and the antenna is already sub-millimeter level, and the direct radiated EMI interference generated by the clock of the display driver chip can be radiated and coupled to the antenna at close range.
在本申请实施例中,确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。这样,通过调整RC选频网络的电阻值,能够降低RC振荡器输出的时钟信号的频率误差,从而能够调整时钟信号的时钟频率避开当前射频通信频段,能够提高通信质量。In the embodiment of the present application, the frequency error of the clock signal output by the RC oscillator is determined, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the output of the RC oscillator The difference between the first clock frequency of the clock signal and the target clock frequency; when the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that all The absolute value of the frequency error is less than or equal to the first preset value, the first preset value is greater than 0, and the first preset value is less than 1. In this way, by adjusting the resistance value of the RC frequency selection network, the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current radio frequency communication frequency band, and the communication quality can be improved.
可选的,所述确定所述RC振荡器输出的时钟信号的频率误差,包括:Optionally, the determining the frequency error of the clock signal output by the RC oscillator includes:
接收行扫描信号;receive line scan signal;
获取在至少两个行扫描信号的接收时刻之间所述RC振荡器输出的时钟信号的第一脉冲数;obtaining the first pulse number of the clock signal output by the RC oscillator between the reception moments of at least two line scan signals;
基于所述目标时钟频率获取目标脉冲数;obtaining a target pulse number based on the target clock frequency;
基于所述第一脉冲数与所述目标脉冲数确定所述RC振荡器输出的时钟 信号的频率误差。A frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
其中,所述目标脉冲数可以为所述至少两个行扫描信号的接收时刻之间的时间差值与目标时钟频率的乘积,所述RC振荡器输出的时钟信号的频率误差可以为:(N0-N1)/N1*100%,N0为第一脉冲数,N1为目标脉冲数。如图3所示,t1为时钟周期,t0为在至少两个行扫描信号的接收时刻之间的时长,则N1为:t0/t1。t0可以由处理器提供,通常为0.001%以上精度,精度较高。可以通过16位脉冲计数器对第一脉冲数进行计数,16位脉冲计数器可以实现最大65536个脉冲计数,理论上最大可以实现频率误差(1-65535/65536),约为0.0025%的判断精度。Wherein, the target pulse number may be the product of the time difference between the receiving moments of the at least two line scan signals and the target clock frequency, and the frequency error of the clock signal output by the RC oscillator may be: (N0 -N1)/N1*100%, N0 is the first pulse number, N1 is the target pulse number. As shown in FIG. 3 , t1 is the clock period, and t0 is the time period between the reception times of at least two line scan signals, so N1 is: t0/t1. t0 can be provided by the processor, usually more than 0.001% accuracy, the accuracy is high. The first pulse number can be counted by a 16-bit pulse counter. The 16-bit pulse counter can achieve a maximum of 65536 pulse counts. In theory, the maximum frequency error (1-65535/65536) can be achieved, with a judgment accuracy of about 0.0025%.
相关技术中,由RC振荡器输出的时钟信号,时钟精度较差,仅能达到目标时钟频率的2%~5%左右,且随着温度变化会发生漂移,抖动较大,导致干扰信号的频谱带宽达到了3MHz以上。时钟精度较差导致无法选定一个特定的频率以保证相关干扰避开所有通信频段。且受制程和平台限制,无法由外部直接输入参考时钟且芯片内部无法增加高精度时钟源。显示驱动芯片的封装和工艺上不支持高精度时钟源模块,如晶体的集成;且芯片不能支持外供高精度时钟作为参考,会导致兼容性较差。In the related art, the clock signal output by the RC oscillator has poor clock accuracy, which can only reach about 2% to 5% of the target clock frequency, and will drift with the temperature change, and the jitter will be large, resulting in the spectrum of the interference signal. The bandwidth reaches more than 3MHz. Poor clock accuracy makes it impossible to select a specific frequency so that the associated interference avoids all communication bands. And due to the limitations of the process and platform, the reference clock cannot be directly input from the outside, and the chip cannot add a high-precision clock source. The package and process of the display driver chip do not support high-precision clock source modules, such as the integration of crystals; and the chip cannot support external high-precision clocks as a reference, resulting in poor compatibility.
需要说明的是,在确定频率误差时,通过较高的时钟精度要求,可以获取尽可能准确的频率误差。示例地,时钟精度在0.05%时,能够获取较准确的频率误差。可以对N1四舍五入取整数,得到N2;计算(1-N2*t1/t0),得到时钟的精度。例如,目标时钟频率为100MHz,时钟的周期为10ns,满足脉冲个数2000个以上的条件时,单位时间在20000ns即20us以上,对应60Hz屏幕,每行扫描的时间为7us,取3行扫描时间为21us,对应的目标脉冲数为2100个可满足0.05%的精度要求。It should be noted that, when the frequency error is determined, the frequency error as accurate as possible can be obtained through higher clock precision requirements. For example, when the clock accuracy is 0.05%, a relatively accurate frequency error can be obtained. You can round up N1 to an integer to get N2; calculate (1-N2*t1/t0) to get the precision of the clock. For example, if the target clock frequency is 100MHz, the clock period is 10ns, and the condition of more than 2000 pulses is satisfied, the unit time is 20000ns or more than 20us, corresponding to a 60Hz screen, the scanning time of each line is 7us, and the scanning time of 3 lines is taken. is 21us, and the corresponding target pulse number is 2100, which can meet the accuracy requirement of 0.05%.
该实施方式中,通过跟踪对比精确度较高的行扫描信号单位周期内的时钟脉冲个数确定时钟的频率误差,能够较为准确地确定频率误差,进而能够基于较为准确的频率误差对时钟频率进行调整。In this embodiment, the frequency error of the clock can be determined by tracking the number of clock pulses in the unit period of the line scanning signal with high contrast accuracy, so that the frequency error can be determined more accurately, and then the clock frequency can be determined based on the more accurate frequency error. Adjustment.
可选的,所述在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,包括:Optionally, when the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value. a preset value, including:
在所述频率误差的绝对值大于第一预设值,且所述频率误差大于0的情况下,增大所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值;When the absolute value of the frequency error is greater than the first preset value, and the frequency error is greater than 0, increase the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value;
在所述频率误差的绝对值大于第一预设值,且所述频率误差小于0的情况下,减小所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值。When the absolute value of the frequency error is greater than the first preset value, and the frequency error is less than 0, reduce the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value.
其中,可以通过所述至少一个阻值增大单元中的全部或部分阻值增大单元增大所述RC选频网络的电阻值,可以通过所述至少一个阻值减小单元中的全部或部分阻值减小单元减小所述RC选频网络的电阻值。Wherein, the resistance value of the RC frequency selection network can be increased by all or part of the resistance value increasing units in the at least one resistance value increasing unit, and all or part of the resistance value increasing units in the at least one resistance value decreasing unit can be used. The partial resistance value reducing unit reduces the resistance value of the RC frequency selection network.
本实施方式中,通过增大或减小所述RC选频网络的电阻值降低时钟频率的频率误差,从而能够准确地调整时钟频率使得时钟频率避开射频通信频段,提升显示驱动芯片的EMI性能,进而提升网络适应性体验。In this embodiment, the frequency error of the clock frequency is reduced by increasing or decreasing the resistance value of the RC frequency selection network, so that the clock frequency can be adjusted accurately so that the clock frequency avoids the radio frequency communication frequency band, and the EMI performance of the display driver chip is improved. , thereby improving the network adaptability experience.
可选的,所述确定所述RC振荡器输出的时钟信号的频率误差之前,所述方法还包括:Optionally, before determining the frequency error of the clock signal output by the RC oscillator, the method further includes:
获取当前射频通信频段;Obtain the current radio frequency communication frequency band;
若所述第一时钟频率处于所述当前射频通信频段内,则基于所述当前射频通信频段确定所述目标时钟频率,其中,所述目标时钟频率处于所述当前射频通信频段外。If the first clock frequency is within the current radio frequency communication frequency band, the target clock frequency is determined based on the current radio frequency communication frequency band, wherein the target clock frequency is outside the current radio frequency communication frequency band.
其中,可以预先设置有频率设定查找表,频率设定查找表中可以存储有射频通信频段与对应的时钟频率,即目标时钟频率,射频通信频段内不包括目标时钟频率,从而目标时钟频率能够避让射频通信频段。所述目标时钟频率可以为频率设定查找表中当前射频通信频段对应的时钟频率。如图4所示,当前射频通信频段可以为FL至FH之间,可以将处于当前射频通信频段内的第一时钟频率跳频至处于所述当前射频通信频段外的目标时钟频率。Among them, a frequency setting look-up table may be preset, and the frequency setting look-up table may store the radio frequency communication frequency band and the corresponding clock frequency, that is, the target clock frequency. The radio frequency communication frequency band does not include the target clock frequency, so that the target clock frequency can be Avoid RF communication bands. The target clock frequency may be the clock frequency corresponding to the current radio frequency communication frequency band in the frequency setting look-up table. As shown in FIG. 4 , the current radio frequency communication frequency band may be between FL and FH, and the first clock frequency in the current radio frequency communication frequency band may be frequency hopped to a target clock frequency outside the current radio frequency communication frequency band.
在实际应用中,可以在切换射频通信频段和信道时,同步对显示驱动芯片的时钟精度和频率误差进行检测,确认时钟相关干扰是否避让射频通信频段。若当前时钟频率不能避开当前射频通信频段,则可以调整时钟频率至预先设置的频率设定查找表中的目标时钟频率。通过调整当前时钟频率,使得当前时钟频率尽可能接近目标时钟频率,以提升时钟精度和降低频率误差为 基础,在不影响功能前提下进行小范围跳频,避让当前射频通信频段,可以解决显示驱动芯片的时钟模块带来的EMI干扰类问题。In practical applications, the clock accuracy and frequency error of the display driver chip can be detected synchronously when switching the radio frequency communication frequency band and channel to confirm whether the clock-related interference avoids the radio frequency communication frequency band. If the current clock frequency cannot avoid the current radio frequency communication frequency band, the clock frequency can be adjusted to the target clock frequency in the preset frequency setting look-up table. By adjusting the current clock frequency so that the current clock frequency is as close to the target clock frequency as possible, based on improving the clock accuracy and reducing the frequency error, a small range of frequency hopping can be performed without affecting the function, avoiding the current RF communication frequency band, which can solve the problem of display driver. EMI interference problems caused by the clock module of the chip.
该实施方式中,基于所述当前射频通信频段确定所述目标时钟频率,能够随着射频通信频段的变化对时钟频率进行动态智能调整和补偿,使得时钟模块的干扰频点能够避开射频通信频段,从而能够解决时钟模块带来的EMI干扰问题。In this embodiment, the target clock frequency is determined based on the current radio frequency communication frequency band, and the clock frequency can be dynamically and intelligently adjusted and compensated with the change of the radio frequency communication frequency band, so that the interference frequency of the clock module can avoid the radio frequency communication frequency band , so as to solve the EMI interference problem caused by the clock module.
参见图2,图2是本申请实施例提供的一种芯片的结构示意图,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻21和第一电容构成的RC选频网络2,如图5所示,所述RC振荡器还包括与所述第一电阻21连接的阻值调整模块22,所述阻值调整模块22用于调整所述RC选频网络2的电阻值,以使所述RC振荡器输出的时钟信号的频率误差的绝对值小于或等于第一预设值,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值,所述第一预设值大于0,且所述第一预设值小于1。Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a chip provided by an embodiment of the present application, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a first resistor 21 The RC frequency selection network 2 formed with the first capacitor, as shown in FIG. 5 , the RC oscillator further includes a resistance adjustment module 22 connected with the first resistor 21 , and the resistance adjustment module 22 is used for adjusting The resistance value of the RC frequency selection network 2, so that the absolute value of the frequency error of the clock signal output by the RC oscillator is less than or equal to the first preset value, and the frequency error is the difference between the clock frequency and the target clock frequency. The ratio of the clock frequency difference is the difference between the first clock frequency of the clock signal output by the RC oscillator and the target clock frequency, the first preset value is greater than 0, and the first preset value is greater than 0. Set the value to less than 1.
其中,RC振荡器的时钟频率与RC选频网络2的电阻值呈反比,示例地,f=1/(2πRC),f为时钟频率,R为RC选频网络2的电阻值,C为RC选频网络2的电容值。Among them, the clock frequency of the RC oscillator is inversely proportional to the resistance value of the RC frequency selection network 2, for example, f=1/(2πRC), f is the clock frequency, R is the resistance value of the RC frequency selection network 2, and C is the RC Capacitance value of frequency selection network 2.
通过阻值调整模块22调整所述RC选频网络2的电阻值,能够提高时钟精度,并降低频率误差,从而能够降低对芯片集成开发的难度;且能够在较小的成本和无需牺牲可靠性的情况下,提升芯片的EMI性能,进而提升网络适应性体验;并且能够缩短产品开发验证周期。Adjusting the resistance value of the RC frequency selection network 2 through the resistance value adjustment module 22 can improve the clock accuracy and reduce the frequency error, thereby reducing the difficulty of chip integration development; and can reduce the cost and reliability without sacrificing reliability. Under the circumstance, the EMI performance of the chip is improved, thereby improving the network adaptability experience; and it can shorten the product development verification cycle.
本申请实施例中,通过所述阻值调整模块22调整所述RC选频网络2的电阻值,能够降低RC振荡器输出的时钟信号的频率误差,从而能够调整时钟信号的时钟频率避开当前射频通信频段,能够提高通信质量。In the embodiment of the present application, by adjusting the resistance value of the RC frequency selection network 2 by the resistance value adjustment module 22, the frequency error of the clock signal output by the RC oscillator can be reduced, so that the clock frequency of the clock signal can be adjusted to avoid the current The radio frequency communication frequency band can improve the communication quality.
可选的,所述阻值调整模块22包括至少一个阻值减小单元和至少一个阻值增大单元,所述阻值减小单元用于减小所述RC选频网络2的电阻值,所述阻值增大单元用于增大所述RC选频网络2的电阻值;Optionally, the resistance adjustment module 22 includes at least one resistance reducing unit and at least one resistance increasing unit, and the resistance reducing unit is used to reduce the resistance value of the RC frequency selection network 2, The resistance value increasing unit is used to increase the resistance value of the RC frequency selection network 2;
每个所述阻值减小单元均包括:与所述第一电阻21并联的至少一个第二 电阻,以及与每个所述第二电阻串联的第一开关;Each of the resistance reducing units includes: at least one second resistor connected in parallel with the first resistor 21, and a first switch connected in series with each of the second resistors;
每个所述阻值增大单元均包括:与所述第一电阻21串联的至少一个第三电阻,以及与每个所述第三电阻串联的第二开关。Each of the resistance increasing units includes: at least one third resistor connected in series with the first resistor 21 , and a second switch connected in series with each of the third resistors.
其中,所述第二电阻的电阻值大于所述第一电阻21的电阻值,所述第三电阻的电阻值小于所述第一电阻21的电阻值。例如,所述第二电阻的电阻值为第一电阻21的电阻值的100倍,所述第三电阻的电阻值为第一电阻21的电阻值的1%。多个阻值减少单元减小的所述RC选频网络2的电阻值可以不同,且多个阻值增大单元增大的所述RC选频网络2的电阻值可以不同,从而能够实现步进式地调整频率误差。The resistance value of the second resistor is greater than the resistance value of the first resistor 21 , and the resistance value of the third resistor is smaller than the resistance value of the first resistor 21 . For example, the resistance value of the second resistor is 100 times the resistance value of the first resistor 21 , and the resistance value of the third resistor is 1% of the resistance value of the first resistor 21 . The resistance values of the RC frequency selection network 2 reduced by a plurality of resistance value reducing units may be different, and the resistance values of the RC frequency selection network 2 increased by a plurality of resistance value increasing units may be different, so that the step-by-step process can be realized. The frequency error is adjusted progressively.
阻值调整模块22增加的电路面积占整个芯片面积非常小,而芯片成本与面积相关,因此,本实施方式可以以较小的成本和代价提升芯片的时钟的EMI性能,同时因时钟精度的提升,进而能够提升芯片相关功能的可靠性。The increased circuit area of the resistance adjustment module 22 accounts for a very small amount of the entire chip area, and the cost of the chip is related to the area. Therefore, this embodiment can improve the EMI performance of the clock of the chip at a small cost and cost, and at the same time, due to the improvement of the clock accuracy , thereby improving the reliability of chip-related functions.
该实施方式中,通过在RC选频网络2的第一电阻21上并联或串联多个不同阻值的电阻,并联较大电阻或串联较小电阻能够使时钟频率小范围变化,从而能够通过所述至少一个阻值减小单元和至少一个阻值增大单元步进式地调整频率误差。In this embodiment, by connecting a plurality of resistors with different resistance values in parallel or in series on the first resistor 21 of the RC frequency selection network 2, a larger resistor in parallel or a smaller resistor in series can change the clock frequency in a small range, so that the clock frequency can be changed in a small range through all The at least one resistance reducing unit and the at least one resistance increasing unit adjust the frequency error stepwise.
可选的,所述至少一个阻值减小单元包括第一阻值减小单元221和第二阻值减小单元222,所述第一阻值减小单元221用于减小所述RC选频网络2的电阻值,以使所述RC选频网络2的电阻值小于第二预设值,所述第二阻值减小单元222用于减小所述RC选频网络2的电阻值,以使所述RC选频网络2的电阻值小于第三预设值,所述第二预设值大于所述第三预设值;Optionally, the at least one resistance reduction unit includes a first resistance reduction unit 221 and a second resistance reduction unit 222, and the first resistance reduction unit 221 is used to reduce the RC selection. The resistance value of the frequency selection network 2 is set to make the resistance value of the RC frequency selection network 2 smaller than the second preset value, and the second resistance reduction unit 222 is used to reduce the resistance value of the RC frequency selection network 2 , so that the resistance value of the RC frequency selection network 2 is smaller than the third preset value, and the second preset value is greater than the third preset value;
所述至少一个阻值增大单元包括第一阻值增大单元225和第二阻值增大单元226,所述第一阻值增大单元225用于增大所述RC选频网络2的电阻值,以使所述RC选频网络2的电阻值大于第四预设值,所述第二阻值增大单元226用于增大所述RC选频网络2的电阻值,以使所述RC选频网络2的电阻值大于第五预设值,所述第四预设值小于所述第五预设值。The at least one resistance increasing unit includes a first resistance increasing unit 225 and a second resistance increasing unit 226, and the first resistance increasing unit 225 is used to increase the resistance of the RC frequency selection network 2. resistance value, so that the resistance value of the RC frequency selection network 2 is greater than the fourth preset value, and the second resistance value increasing unit 226 is used to increase the resistance value of the RC frequency selection network 2, so that all The resistance value of the RC frequency selection network 2 is greater than the fifth preset value, and the fourth preset value is smaller than the fifth preset value.
其中,所述第一阻值减小单元221和第二阻值减小单元222减小所述RC选频网络2的电阻值,从而能够增大时钟频率,第一阻值减小单元221对应的时钟频率的增大值小于第二阻值减小单元222对应的时钟频率的增大值。 第一阻值增大单元225和第二阻值增大单元226增大所述RC选频网络2的电阻值,从而能够减小时钟频率,第一阻值增大单元225对应的时钟频率的减小值小于第二阻值增大单元226对应的时钟频率的减小值。The first resistance reducing unit 221 and the second resistance reducing unit 222 reduce the resistance of the RC frequency selection network 2, thereby increasing the clock frequency, and the first resistance reducing unit 221 corresponds to The increase value of the clock frequency of , is smaller than the increase value of the clock frequency corresponding to the second resistance value reducing unit 222 . The first resistance value increasing unit 225 and the second resistance value increasing unit 226 increase the resistance value of the RC frequency selection network 2, so that the clock frequency can be reduced. The first resistance value increasing unit 225 corresponds to the clock frequency The reduction value is smaller than the reduction value of the clock frequency corresponding to the second resistance value increasing unit 226 .
作为一种实施方式,所述至少一个阻值减小单元包括第一阻值减小单元221、第二阻值减小单元222、第三阻值减小单元223和第四阻值减小单元224,第一阻值减小单元221可以增大时钟频率使频率误差的绝对值变化0.1%,第二阻值减小单元222可以增大时钟频率使频率误差的绝对值变化0.5%,第三阻值减小单元223可以增大时钟频率使频率误差的绝对值变化0.2%,第四阻值减小单元224可以增大时钟频率使频率误差的绝对值变化1%。所述至少一个阻值增大单元包括第一阻值增大单元225、第二阻值增大单元226、第三阻值增大单元227和第四阻值增大单元228,第一阻值增大单元225可以减小时钟频率使频率误差的绝对值变化0.1%,第二阻值增大单元226可以减小时钟频率使频率误差的绝对值变化0.5%,第三阻值增大单元227可以减小时钟频率使频率误差的绝对值变化0.2%,第四阻值增大单元228可以减小时钟频率使频率误差的绝对值变化1%。所述阻值调整模块22还可以包括第三开关229,第三开关229可以与第一电阻21串联,在需要增大所述RC选频网络2的电阻值时,可以断开第三开关229;在不需要增大所述RC选频网络2的电阻值时,可以闭合第三开关229。As an embodiment, the at least one resistance reducing unit includes a first resistance reducing unit 221 , a second resistance reducing unit 222 , a third resistance reducing unit 223 and a fourth resistance reducing unit 224. The first resistance reducing unit 221 can increase the clock frequency to change the absolute value of the frequency error by 0.1%; the second resistance reducing unit 222 can increase the clock frequency to change the absolute value of the frequency error by 0.5%; The resistance reducing unit 223 can increase the clock frequency to change the absolute value of the frequency error by 0.2%, and the fourth resistance reducing unit 224 can increase the clock frequency to change the absolute value of the frequency error by 1%. The at least one resistance increasing unit includes a first resistance increasing unit 225, a second resistance increasing unit 226, a third resistance increasing unit 227, and a fourth resistance increasing unit 228. The first resistance increasing unit 228. The increasing unit 225 can reduce the clock frequency to change the absolute value of the frequency error by 0.1%, the second resistance increasing unit 226 can reduce the clock frequency to change the absolute value of the frequency error by 0.5%, and the third resistance increasing unit 227 The clock frequency can be reduced to change the absolute value of the frequency error by 0.2%, and the fourth resistance increasing unit 228 can reduce the clock frequency to change the absolute value of the frequency error by 1%. The resistance adjustment module 22 may further include a third switch 229, which may be connected in series with the first resistance 21, and the third switch 229 may be disconnected when the resistance value of the RC frequency selection network 2 needs to be increased. ; When the resistance value of the RC frequency selection network 2 does not need to be increased, the third switch 229 can be closed.
在实际应用中,可以判断频率误差的绝对值是否小于0.2%,若判断频率误差的绝对值小于0.2%,则可以不对时钟频率进行调整;若判断频率误差的绝对值大于0.5%,且频率误差小于0,则可以通过控制第二阻值减小单元222以及第四阻值减小单元224中的第一开关对频率误差进行调整;若判断频率误差的绝对值大于或等于0.2%且小于或等于0.5%,且频率误差小于0,则可以通过控制第一阻值减小单元221以及第三阻值减小单元223中的第一开关对频率误差进行调整;若判断频率误差的绝对值大于0.5%,且频率误差大于0,则可以通过控制第二阻值增大单元226以及第四阻值增大单元228中的第二开关对频率误差进行调整;若判断频率误差的绝对值大于或等于0.2%且小于或等于0.5%,且频率误差小于0,则可以通过控制第一阻值增大单元225以及第三阻值增大单元227中的第二开关对频率误差进行调整。In practical applications, it can be judged whether the absolute value of the frequency error is less than 0.2%. If the absolute value of the frequency error is judged to be less than 0.2%, the clock frequency can not be adjusted; if the absolute value of the frequency error is judged to be greater than 0.5%, and the frequency error is less than 0, the frequency error can be adjusted by controlling the second resistance reducing unit 222 and the first switch in the fourth resistance reducing unit 224; if it is judged that the absolute value of the frequency error is greater than or equal to 0.2% and less than or is equal to 0.5%, and the frequency error is less than 0, the frequency error can be adjusted by controlling the first switch in the first resistance reducing unit 221 and the third resistance reducing unit 223; if it is judged that the absolute value of the frequency error is greater than 0.5%, and the frequency error is greater than 0, the frequency error can be adjusted by controlling the second resistance increasing unit 226 and the second switch in the fourth resistance increasing unit 228; is equal to 0.2% and less than or equal to 0.5%, and the frequency error is less than 0, the frequency error can be adjusted by controlling the second switches in the first resistance increasing unit 225 and the third resistance increasing unit 227 .
通过阻值调整模块22调整RC选频网络2的电阻值,可以在ms内将频率误差调整到预设范围内,从而即使考虑有一定噪声带宽的情况下,满足干扰噪声避让射频通信频段的需求。By adjusting the resistance value of the RC frequency selection network 2 by the resistance value adjustment module 22, the frequency error can be adjusted within a preset range within ms, so that even if a certain noise bandwidth is considered, the requirements of the radio frequency communication frequency band for interference and noise avoidance can be met. .
该实施方式中,通过第一阻值减小单元221和第二阻值减小单元222,在当前时钟频率小于目标时钟频率的情况下,能够逐步增大时钟频率,使得当前时钟频率接近目标时钟频率,从而逐步减小频率误差;通过第一阻值增大单元225和第二阻值增大单元226,在当前时钟频率大于目标时钟频率的情况下,能够逐步减小时钟频率,使得当前时钟频率接近目标时钟频率,从而逐步减小频率误差。In this embodiment, through the first resistance reducing unit 221 and the second resistance reducing unit 222, when the current clock frequency is lower than the target clock frequency, the clock frequency can be gradually increased, so that the current clock frequency is close to the target clock frequency, thereby gradually reducing the frequency error; through the first resistance increasing unit 225 and the second resistance increasing unit 226, when the current clock frequency is greater than the target clock frequency, the clock frequency can be gradually reduced, so that the current clock frequency The frequency is close to the target clock frequency, thereby gradually reducing the frequency error.
图1实施例中的芯片时钟频率调整方法可以用于上述实施例中的芯片,且可以达到相同的有益效果。The chip clock frequency adjustment method in the embodiment of FIG. 1 can be applied to the chips in the above-mentioned embodiments, and the same beneficial effects can be achieved.
需要说明的是,本申请实施例提供的芯片时钟频率调整方法,执行主体可以为芯片时钟频率调整装置,或者该芯片时钟频率调整装置中的用于执行加载芯片时钟频率调整方法的控制模块。本申请实施例中以芯片时钟频率调整装置执行加载芯片时钟频率调整的方法为例,说明本申请实施例提供的芯片时钟频率调整装置。It should be noted that, for the chip clock frequency adjustment method provided by the embodiments of the present application, the execution body may be a chip clock frequency adjustment apparatus, or a control module in the chip clock frequency adjustment apparatus for executing the loading chip clock frequency adjustment method. In the embodiment of the present application, the method for adjusting the clock frequency of a loaded chip by an apparatus for adjusting the clock frequency of a chip is used as an example to describe the apparatus for adjusting the clock frequency of a chip provided by the embodiment of the present application.
参见图6,图6是本申请实施例提供的一种芯片时钟频率调整装置的结构示意图,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,如图6所示,所述装置300包括:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a chip clock frequency adjustment device provided by an embodiment of the present application, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, and the RC oscillator includes a The RC frequency selection network formed by the first resistor and the first capacitor, as shown in FIG. 6 , the device 300 includes:
第一确定模块301,用于确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;The first determination module 301 is used to determine the frequency error of the clock signal output by the RC oscillator, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the RC oscillator the difference between the first clock frequency of the output clock signal and the target clock frequency;
调整模块302,用于在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。An adjustment module 302, configured to adjust the resistance value of the RC frequency selection network when the absolute value of the frequency error is greater than a first preset value, so that the absolute value of the frequency error is less than or equal to the first A preset value, the first preset value is greater than 0, and the first preset value is less than 1.
可选的,所述第一确定模块301具体用于:Optionally, the first determining module 301 is specifically configured to:
接收行扫描信号;receive line scan signal;
获取在至少两个行扫描信号的接收时刻之间所述RC振荡器输出的时钟 信号的第一脉冲数;Obtain the first pulse number of the clock signal output by the RC oscillator between the reception moments of at least two line scan signals;
基于所述目标时钟频率获取目标脉冲数;obtaining a target pulse number based on the target clock frequency;
基于所述第一脉冲数与所述目标脉冲数确定所述RC振荡器输出的时钟信号的频率误差。A frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
可选的,所述调整模块302具体用于:Optionally, the adjustment module 302 is specifically used for:
在所述频率误差的绝对值大于第一预设值,且所述频率误差大于0的情况下,增大所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值;When the absolute value of the frequency error is greater than the first preset value, and the frequency error is greater than 0, increase the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value;
在所述频率误差的绝对值大于第一预设值,且所述频率误差小于0的情况下,减小所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值。When the absolute value of the frequency error is greater than the first preset value, and the frequency error is less than 0, reduce the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value.
可选的,如图7所示,所述装置300还包括:Optionally, as shown in FIG. 7 , the apparatus 300 further includes:
获取模块303,用于获取当前射频通信频段;an acquisition module 303, configured to acquire the current radio frequency communication frequency band;
第二确定模块304,用于若所述第一时钟频率处于所述当前射频通信频段内,则基于所述当前射频通信频段确定所述目标时钟频率,其中,所述目标时钟频率处于所述当前射频通信频段外。The second determining module 304 is configured to determine the target clock frequency based on the current radio frequency communication frequency band if the first clock frequency is within the current radio frequency communication frequency band, wherein the target clock frequency is within the current radio frequency communication frequency band outside the radio frequency communication band.
本申请实施例中的芯片时钟频率调整装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for adjusting the clock frequency of a chip in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的芯片时钟频率调整装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for adjusting the clock frequency of the chip in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的芯片时钟频率调整装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。The chip clock frequency adjustment device provided by the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
可选的,如图8所示,本申请实施例还提供一种电子设备400,包括处理器401,存储器402,存储在存储器402上并可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述芯片时钟频率调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 8 , an embodiment of the present application further provides an electronic device 400, including a processor 401, a memory 402, a program or instruction stored in the memory 402 and executable on the processor 401, When the program or instruction is executed by the processor 401, each process of the above-mentioned embodiments of the chip clock frequency adjustment method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,所述电子设备包括芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,处理器510用于:确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;Wherein, the electronic device includes a chip, the chip includes an RC oscillator, the RC oscillator is used to output a clock signal, the RC oscillator includes an RC frequency selection network composed of a first resistor and a first capacitor, and the processing The device 510 is configured to: determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the clock output by the RC oscillator the difference between the first clock frequency of the signal and the target clock frequency;
在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。When the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network so that the absolute value of the frequency error is less than or equal to the first preset value, so The first preset value is greater than 0, and the first preset value is less than 1.
可选的,处理器510还用于:Optionally, the processor 510 is further configured to:
接收行扫描信号;receive line scan signal;
获取在至少两个行扫描信号的接收时刻之间所述RC振荡器输出的时钟信号的第一脉冲数;obtaining the first pulse number of the clock signal output by the RC oscillator between the reception moments of at least two line scan signals;
基于所述目标时钟频率获取目标脉冲数;obtaining a target pulse number based on the target clock frequency;
基于所述第一脉冲数与所述目标脉冲数确定所述RC振荡器输出的时钟信号的频率误差。A frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
可选的,处理器510还用于:Optionally, the processor 510 is further configured to:
在所述频率误差的绝对值大于第一预设值,且所述频率误差大于0的情况下,增大所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值;When the absolute value of the frequency error is greater than the first preset value, and the frequency error is greater than 0, increase the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value;
在所述频率误差的绝对值大于第一预设值,且所述频率误差小于0的情况下,减小所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值。When the absolute value of the frequency error is greater than the first preset value, and the frequency error is less than 0, reduce the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value.
可选的,处理器510还用于:Optionally, the processor 510 is further configured to:
获取当前射频通信频段;Obtain the current radio frequency communication frequency band;
若所述第一时钟频率处于所述当前射频通信频段内,则基于所述当前射频通信频段确定所述目标时钟频率,其中,所述目标时钟频率处于所述当前射频通信频段外。If the first clock frequency is within the current radio frequency communication frequency band, the target clock frequency is determined based on the current radio frequency communication frequency band, wherein the target clock frequency is outside the current radio frequency communication frequency band.
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器509可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。It should be understood that, in this embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042. Such as camera) to obtain still pictures or video image data for processing. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072 . The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 509 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 510.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程 序或指令,该程序或指令被处理器执行时实现上述芯片时钟频率调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiments of the chip clock frequency adjustment method is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述芯片时钟频率调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above method for adjusting the clock frequency of the chip In order to avoid repetition, the details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. In addition, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器, 空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (15)

  1. 一种芯片时钟频率调整方法,应用于芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述方法包括:A chip clock frequency adjustment method is applied to a chip, the chip includes an RC oscillator, the RC oscillator is used for outputting a clock signal, and the RC oscillator includes an RC frequency selection composed of a first resistor and a first capacitor network, the method includes:
    确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;Determine the frequency error of the clock signal output by the RC oscillator, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the first clock of the clock signal output by the RC oscillator the difference between the frequency and the target clock frequency;
    在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。When the absolute value of the frequency error is greater than the first preset value, adjust the resistance value of the RC frequency selection network so that the absolute value of the frequency error is less than or equal to the first preset value, so The first preset value is greater than 0, and the first preset value is less than 1.
  2. 根据权利要求1所述的方法,其中,所述确定所述RC振荡器输出的时钟信号的频率误差,包括:The method according to claim 1, wherein the determining the frequency error of the clock signal output by the RC oscillator comprises:
    接收行扫描信号;receive line scan signal;
    获取在至少两个行扫描信号的接收时刻之间所述RC振荡器输出的时钟信号的第一脉冲数;obtaining the first pulse number of the clock signal output by the RC oscillator between the reception moments of at least two line scan signals;
    基于所述目标时钟频率获取目标脉冲数;obtaining a target pulse number based on the target clock frequency;
    基于所述第一脉冲数与所述目标脉冲数确定所述RC振荡器输出的时钟信号的频率误差。A frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
  3. 根据权利要求1所述的方法,其中,所述在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,包括:The method according to claim 1, wherein when the absolute value of the frequency error is greater than a first preset value, adjusting the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is The value is less than or equal to the first preset value, including:
    在所述频率误差的绝对值大于第一预设值,且所述频率误差大于0的情况下,增大所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值;When the absolute value of the frequency error is greater than the first preset value, and the frequency error is greater than 0, increase the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value;
    在所述频率误差的绝对值大于第一预设值,且所述频率误差小于0的情况下,减小所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值。When the absolute value of the frequency error is greater than the first preset value, and the frequency error is less than 0, reduce the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value.
  4. 根据权利要求1所述的方法,其中,所述确定所述RC振荡器输出的 时钟信号的频率误差之前,所述方法还包括:The method of claim 1, wherein before said determining the frequency error of the clock signal output by the RC oscillator, the method further comprises:
    获取当前射频通信频段;Obtain the current radio frequency communication frequency band;
    若所述第一时钟频率处于所述当前射频通信频段内,则基于所述当前射频通信频段确定所述目标时钟频率,其中,所述目标时钟频率处于所述当前射频通信频段外。If the first clock frequency is within the current radio frequency communication frequency band, the target clock frequency is determined based on the current radio frequency communication frequency band, wherein the target clock frequency is outside the current radio frequency communication frequency band.
  5. 一种芯片,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述RC振荡器还包括与所述第一电阻连接的阻值调整模块,所述阻值调整模块用于调整所述RC选频网络的电阻值,以使所述RC振荡器输出的时钟信号的频率误差的绝对值小于或等于第一预设值,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值,所述第一预设值大于0,且所述第一预设值小于1。A chip, the chip includes an RC oscillator, the RC oscillator is used for outputting a clock signal, the RC oscillator includes an RC frequency selection network composed of a first resistor and a first capacitor, and the RC oscillator also Including a resistance adjustment module connected to the first resistor, the resistance adjustment module is used to adjust the resistance value of the RC frequency selection network, so that the absolute value of the frequency error of the clock signal output by the RC oscillator is less than or equal to the first preset value, the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the first clock frequency of the clock signal output by the RC oscillator and the target The difference between clock frequencies, the first preset value is greater than 0, and the first preset value is less than 1.
  6. 根据权利要求5所述的芯片,其中,所述阻值调整模块包括至少一个阻值减小单元和至少一个阻值增大单元,所述阻值减小单元用于减小所述RC选频网络的电阻值,所述阻值增大单元用于增大所述RC选频网络的电阻值;The chip according to claim 5, wherein the resistance adjusting module comprises at least one resistance reducing unit and at least one resistance increasing unit, and the resistance reducing unit is used for reducing the RC frequency selection The resistance value of the network, the resistance value increasing unit is used to increase the resistance value of the RC frequency selection network;
    每个所述阻值减小单元均包括:与所述第一电阻并联的至少一个第二电阻,以及与每个所述第二电阻串联的第一开关;Each of the resistance reducing units includes: at least one second resistor connected in parallel with the first resistor, and a first switch connected in series with each of the second resistors;
    每个所述阻值增大单元均包括:与所述第一电阻串联的至少一个第三电阻,以及与每个所述第三电阻串联的第二开关。Each of the resistance increasing units includes: at least one third resistor connected in series with the first resistor, and a second switch connected in series with each of the third resistors.
  7. 根据权利要求6所述的芯片,其中,所述至少一个阻值减小单元包括第一阻值减小单元和第二阻值减小单元,所述第一阻值减小单元用于减小所述RC选频网络的电阻值,以使所述RC选频网络的电阻值小于第二预设值,所述第二阻值减小单元用于减小所述RC选频网络的电阻值,以使所述RC选频网络的电阻值小于第三预设值,所述第二预设值大于所述第三预设值;The chip according to claim 6, wherein the at least one resistance reducing unit comprises a first resistance reducing unit and a second resistance reducing unit, the first resistance reducing unit is used for reducing The resistance value of the RC frequency selection network, so that the resistance value of the RC frequency selection network is smaller than the second preset value, and the second resistance value reduction unit is used to reduce the resistance value of the RC frequency selection network. , so that the resistance value of the RC frequency selection network is smaller than the third preset value, and the second preset value is greater than the third preset value;
    所述至少一个阻值增大单元包括第一阻值增大单元和第二阻值增大单元,所述第一阻值增大单元用于增大所述RC选频网络的电阻值,以使所述RC选频网络的电阻值大于第四预设值,所述第二阻值增大单元用于增大所述RC选频网络的电阻值,以使所述RC选频网络的电阻值大于第五预设值,所述 第四预设值小于所述第五预设值。The at least one resistance increase unit includes a first resistance increase unit and a second resistance increase unit, the first resistance increase unit is used to increase the resistance value of the RC frequency selection network, so as to Make the resistance value of the RC frequency selection network greater than the fourth preset value, and the second resistance value increasing unit is used to increase the resistance value of the RC frequency selection network, so that the resistance of the RC frequency selection network The value is greater than the fifth preset value, and the fourth preset value is smaller than the fifth preset value.
  8. 一种芯片时钟频率调整装置,所述芯片包括RC振荡器,所述RC振荡器用于输出时钟信号,所述RC振荡器包括由第一电阻和第一电容构成的RC选频网络,所述装置包括:A chip clock frequency adjustment device, the chip includes an RC oscillator, the RC oscillator is used for outputting a clock signal, the RC oscillator includes an RC frequency selection network composed of a first resistor and a first capacitor, the The device includes:
    第一确定模块,用于确定所述RC振荡器输出的时钟信号的频率误差,所述频率误差为时钟频率差值与目标时钟频率的比值,所述时钟频率差值为所述RC振荡器输出的时钟信号的第一时钟频率与所述目标时钟频率的差值;a first determining module, configured to determine the frequency error of the clock signal output by the RC oscillator, where the frequency error is the ratio of the clock frequency difference to the target clock frequency, and the clock frequency difference is the RC oscillator output The difference between the first clock frequency of the clock signal and the target clock frequency;
    调整模块,用于在所述频率误差的绝对值大于第一预设值的情况下,调整所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值,所述第一预设值大于0,且所述第一预设值小于1。an adjustment module, configured to adjust the resistance value of the RC frequency selection network when the absolute value of the frequency error is greater than a first preset value, so that the absolute value of the frequency error is less than or equal to the first A preset value, the first preset value is greater than 0, and the first preset value is less than 1.
  9. 根据权利要求8所述的装置,其中,所述第一确定模块具体用于:The apparatus according to claim 8, wherein the first determining module is specifically configured to:
    接收行扫描信号;receive line scan signal;
    获取在至少两个行扫描信号的接收时刻之间所述RC振荡器输出的时钟信号的第一脉冲数;obtaining the first pulse number of the clock signal output by the RC oscillator between the reception moments of at least two line scan signals;
    基于所述目标时钟频率获取目标脉冲数;obtaining a target pulse number based on the target clock frequency;
    基于所述第一脉冲数与所述目标脉冲数确定所述RC振荡器输出的时钟信号的频率误差。A frequency error of the clock signal output by the RC oscillator is determined based on the first pulse number and the target pulse number.
  10. 根据权利要求8所述的装置,其中,所述调整模块具体用于:The device according to claim 8, wherein the adjustment module is specifically used for:
    在所述频率误差的绝对值大于第一预设值,且所述频率误差大于0的情况下,增大所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值;When the absolute value of the frequency error is greater than the first preset value, and the frequency error is greater than 0, increase the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value;
    在所述频率误差的绝对值大于第一预设值,且所述频率误差小于0的情况下,减小所述RC选频网络的电阻值,以使所述频率误差的绝对值小于或等于所述第一预设值。When the absolute value of the frequency error is greater than the first preset value, and the frequency error is less than 0, reduce the resistance value of the RC frequency selection network, so that the absolute value of the frequency error is less than or equal to the first preset value.
  11. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8, wherein the apparatus further comprises:
    获取模块,用于获取当前射频通信频段;The acquisition module is used to acquire the current radio frequency communication frequency band;
    第二确定模块,用于若所述第一时钟频率处于所述当前射频通信频段内,则基于所述当前射频通信频段确定所述目标时钟频率,其中,所述目标时钟频率处于所述当前射频通信频段外。a second determining module, configured to determine the target clock frequency based on the current radio frequency communication frequency band if the first clock frequency is in the current radio frequency communication frequency band, wherein the target clock frequency is in the current radio frequency out of the communication band.
  12. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1-4中任一项所述的芯片时钟频率调整方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, wherein the program or instruction is executed by the processor to achieve as claimed in claim 1 Steps of the chip clock frequency adjustment method described in any one of -4.
  13. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1-4中任一项所述的芯片时钟频率调整方法的步骤。A readable storage medium on which a program or an instruction is stored, wherein the program or instruction is executed by a processor to implement the chip clock frequency adjustment method according to any one of claims 1-4 A step of.
  14. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-4中任一项所述的芯片时钟频率调整方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used to run a program or an instruction to implement the chip clock according to any one of claims 1-4 The steps of the frequency adjustment method.
  15. 一种计算机程序产品,其中,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-4中任一项所述的芯片时钟频率调整方法的步骤。A computer program product, wherein the computer program product is stored in a non-volatile storage medium, the computer program product being executed by at least one processor to implement the method of any one of claims 1-4 The steps of the chip clock frequency adjustment method.
PCT/CN2021/124977 2020-10-23 2021-10-20 Chip clock frequency adjustment method and apparatus, chip, and electronic device WO2022083638A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011148686.0 2020-10-23
CN202011148686.0A CN112150962B (en) 2020-10-23 2020-10-23 Chip clock frequency adjusting method and device, chip and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022083638A1 true WO2022083638A1 (en) 2022-04-28

Family

ID=73954851

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/124977 WO2022083638A1 (en) 2020-10-23 2021-10-20 Chip clock frequency adjustment method and apparatus, chip, and electronic device

Country Status (2)

Country Link
CN (1) CN112150962B (en)
WO (1) WO2022083638A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116030748A (en) * 2023-03-30 2023-04-28 深圳曦华科技有限公司 Method and device for dynamically adjusting chip clock frequency
US11848749B1 (en) * 2022-03-31 2023-12-19 Meta Platforms, Inc. Systems and methods for smooth transitions between time servers

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112150962B (en) * 2020-10-23 2024-04-05 维沃移动通信有限公司 Chip clock frequency adjusting method and device, chip and electronic equipment
CN112800714A (en) * 2020-12-30 2021-05-14 科大讯飞股份有限公司 Printed circuit board design method and related device
CN112787500B (en) * 2021-01-27 2022-11-04 展讯通信(上海)有限公司 Control method, device, system, processor, terminal and medium of DC-DC converter
CN113507286A (en) * 2021-06-16 2021-10-15 深圳市傲科光电子有限公司 Method, apparatus and computer readable storage medium for determining clock signal
CN113452460B (en) * 2021-06-28 2022-10-21 展讯通信(上海)有限公司 Clock frequency selection method, system, medium and terminal of high-speed digital interface

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166622A1 (en) * 2005-01-26 2006-07-27 Hideyuki Usui Detecting wireless noise within time period in which no data is purposefully wirelessly communicated
US20080100391A1 (en) * 2006-10-31 2008-05-01 Samsung Electro-Mechanics Co., Ltd. Resistor-capacitor oscillation circuit capable of adjusting oscillation frequency and method of the same
CN201142034Y (en) * 2007-12-04 2008-10-29 上海海尔集成电路有限公司 Microcontroller structure
CN101686036A (en) * 2008-09-25 2010-03-31 上海华虹Nec电子有限公司 Apparatus for improving accuracy of RC oscillator in chip and use method thereof
CN202268855U (en) * 2011-10-01 2012-06-06 无锡中星微电子有限公司 Programmable filter circuit
CN102638225A (en) * 2012-04-01 2012-08-15 北京集创北方科技有限公司 On-chip clock frequency regulating circuit and regulating method
CN107453837A (en) * 2016-05-30 2017-12-08 中兴通讯股份有限公司 The method of adjustment and device of LCD signal
CN107579723A (en) * 2017-08-04 2018-01-12 大唐微电子技术有限公司 A kind of method and apparatus of calibrating clock frequency
CN110308762A (en) * 2019-06-21 2019-10-08 广芯微电子(广州)股份有限公司 A kind of clock frequency calibration method of chip interior clock source
CN112150962A (en) * 2020-10-23 2020-12-29 维沃移动通信有限公司 Chip clock frequency adjusting method and device, chip and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3857762B2 (en) * 1997-02-17 2006-12-13 三洋電機株式会社 Frequency adjustment device for oscillation circuit
CN1960183B (en) * 2005-10-31 2010-07-28 盛群半导体股份有限公司 Automatic adjusted oscillator with high accuracy
TW200947184A (en) * 2008-05-14 2009-11-16 Pixart Imaging Inc Method for automatically adjusting clock frequency and clock frequency adjustment circuit
EP2442480B1 (en) * 2010-10-14 2013-05-29 Nxp B.V. Communications device with adaptive clock frequency
GB2496673B (en) * 2011-11-21 2014-06-11 Wolfson Microelectronics Plc Clock generator
JP5965223B2 (en) * 2012-06-29 2016-08-03 ルネサスエレクトロニクス株式会社 Clock correction circuit and clock correction method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060166622A1 (en) * 2005-01-26 2006-07-27 Hideyuki Usui Detecting wireless noise within time period in which no data is purposefully wirelessly communicated
US20080100391A1 (en) * 2006-10-31 2008-05-01 Samsung Electro-Mechanics Co., Ltd. Resistor-capacitor oscillation circuit capable of adjusting oscillation frequency and method of the same
CN201142034Y (en) * 2007-12-04 2008-10-29 上海海尔集成电路有限公司 Microcontroller structure
CN101686036A (en) * 2008-09-25 2010-03-31 上海华虹Nec电子有限公司 Apparatus for improving accuracy of RC oscillator in chip and use method thereof
CN202268855U (en) * 2011-10-01 2012-06-06 无锡中星微电子有限公司 Programmable filter circuit
CN102638225A (en) * 2012-04-01 2012-08-15 北京集创北方科技有限公司 On-chip clock frequency regulating circuit and regulating method
CN107453837A (en) * 2016-05-30 2017-12-08 中兴通讯股份有限公司 The method of adjustment and device of LCD signal
CN107579723A (en) * 2017-08-04 2018-01-12 大唐微电子技术有限公司 A kind of method and apparatus of calibrating clock frequency
CN110308762A (en) * 2019-06-21 2019-10-08 广芯微电子(广州)股份有限公司 A kind of clock frequency calibration method of chip interior clock source
CN112150962A (en) * 2020-10-23 2020-12-29 维沃移动通信有限公司 Chip clock frequency adjusting method and device, chip and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11848749B1 (en) * 2022-03-31 2023-12-19 Meta Platforms, Inc. Systems and methods for smooth transitions between time servers
CN116030748A (en) * 2023-03-30 2023-04-28 深圳曦华科技有限公司 Method and device for dynamically adjusting chip clock frequency
CN116030748B (en) * 2023-03-30 2023-08-08 深圳曦华科技有限公司 Method and device for dynamically adjusting chip clock frequency

Also Published As

Publication number Publication date
CN112150962B (en) 2024-04-05
CN112150962A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022083638A1 (en) Chip clock frequency adjustment method and apparatus, chip, and electronic device
US9411928B2 (en) Discontinuous integration using half periods
US9077375B2 (en) DTC system with high resolution phase alignment
US9466263B2 (en) Display driver integrated circuits, devices including display driver integrated circuits, and methods of operating display driver integrated circuits
US9915968B2 (en) Systems and methods for adaptive clock design
US9407200B2 (en) Crystal oscillator with low-power mode
US8768278B2 (en) Switching a PLL clock source to reduce wireless communication interference
US20170208219A1 (en) Display controller for generating video sync signal using external clock, an application processor including the controller, and an electronic system including the controller
US9634674B2 (en) Semiconductor device
WO2023184851A1 (en) Duty cycle calibration circuit and method, chip, and electronic device
US11853098B2 (en) Detection circuit, touch control panel, and electronic apparatus
CN113641214A (en) Clock calibration circuit, clock calibration method and related equipment
US8258825B2 (en) Spread spectrum circuit
US9671847B2 (en) Semiconductor device employing closed loop and open loop DVFS control and semiconductor system including the same
US20230188140A1 (en) Methods and apparatus to dynamically correct time keeping errors
US20180287835A1 (en) Radio frequency front-end slew and jitter consistency for voltages below 1.8 volts
US9996138B2 (en) Electronic system and related clock managing method
US8575535B2 (en) Sensing devices and electronic apparatuses using the same
US10416692B2 (en) Method and apparatus for reducing capacitor-induced noise
CN113589882A (en) Clock frequency adjusting device and related product
US10804912B2 (en) Non-integer frequency divider
CN106325625B (en) Mutual capacitance touch screen capable of automatically adjusting width of sensing window
US11762413B2 (en) Clock duty cycle correction
CN115134461B (en) Electronic apparatus and control method thereof
US20240137029A1 (en) Sampling fractional-n phase-locked loop with feedback spur compensation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21882053

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21882053

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.11.2023)