An oscillator
By designing the charge and discharge module and frequency jitter control circuit in the oscillator, combined with a binary synchronous counter, effective frequency jitter at different frequencies is achieved, which solves the problem of limited simulation methods in the existing technology when the frequency variation range is wide, and improves Improve electromagnetic compatibility and reduce costs.
Patent Information
- Application Number
- CN202010982496.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-17
AI Technical Summary
When the frequency range of existing switching power supplies is wide, the analog method of frequency jittering is limited, requiring large capacitors and high charging currents, increasing chip size and cost, and making it difficult to achieve effective frequency jittering at different frequencies to suppress electromagnetic interference.
Design an oscillator that generates a clock signal through the charge and discharge module and the current control module, and uses the frequency jitter control circuit to achieve frequency jitter at different frequencies. Multiple control signals are formed through a binary synchronous counter to control the periodic changes in the capacitance value without Add an external frequency source and a large capacitor.
It achieves effective frequency jitter in a wide frequency range, simplifies design, reduces cost, is easy to integrate, and improves electromagnetic compatibility.
Smart Images

Figure CN114204918B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of semiconductor integrated circuits, and more particularly to an oscillator. Background Art
[0002] With the popularity of portable electronic products, switching power supplies are becoming more and more important. The power supplies used in modern electronic devices are roughly divided into linear regulated power supplies and switching regulated power supplies. The adjustment tube of the linear regulated power supply works in the amplification area, which has the advantages of not introducing additional interference, good reliability and low cost, but it also has the disadvantages of large size and low conversion efficiency. Compared with the linear regulated power supply, the switching power supply has the characteristics of boosting and bucking and high power supply efficiency. However, when the switching power supply adjusts the voltage and current, it will generate electromagnetic interference noise (EMI). This electrical noise can be transmitted to the AC power line, which will not only affect the operation of other electronic devices near the power supply through conduction, but also radiate or leak from the power line, affecting devices not connected to the power line. These interferences will increase significantly with the increase of switching frequency and output power, posing a potential threat to the normal operation of electronic equipment.
[0003] In order to suppress the interference of the switching power supply and make it meet the requirements of relevant electromagnetic compatibility standards, the switching power supply in the prior art adopts frequency jitter technology to increase the harmonic order so that the frequency can be dispersed, that is, by changing the switching frequency periodically, the noise harmonic frequency is dispersed, the noise energy is dispersed and reduced, and the amplitude margin is guaranteed over the entire frequency band, thereby meeting the electromagnetic compatibility requirements.
[0004] The switching power supply of the prior art usually uses analog methods to perform frequency jitter. This method is feasible at a specific frequency, but if the frequency variation range is very wide and an external clock frequency is required, the analog method of frequency jitter is very limited. For example, if the clock frequency is very low, the analog method of frequency jitter requires a large capacitor to be set inside the chip; if the external clock frequency is very high, this method requires a large capacitor charging current to be set inside the chip, which increases the chip size and cost. Summary of the invention
[0005] In view of this, an object of the present invention is to provide an adjustable frequency oscillator with a wide frequency range, which can achieve good frequency jitter at different frequencies.
[0006] According to one aspect of an embodiment of the present invention, an oscillator is provided, comprising an oscillation circuit, wherein the oscillation circuit generates a clock signal by charging and discharging a first capacitor, wherein the oscillation circuit comprises: a charging and discharging module, comprising a first current branch, the first capacitor and a first switch, wherein the first current branch and the first capacitor are connected between a power supply voltage and ground, the first switch is connected in parallel between the two ends of the first capacitor, and is used to provide a discharge path from the first end of the first capacitor to the ground, and an intermediate node between the first current branch and the first capacitor is used to output a ramp voltage; a first comparator, which compares the ramp voltage with a reference voltage to generate the clock signal; and a current control module, which is connected to the first current branch, and the current control module is used to control the current size of the first current branch to control the frequency range of the clock signal.
[0007] Optionally, the first current branch includes a first transistor and a second switch which are sequentially connected in series between the power supply voltage and the second end of the first capacitor.
[0008] Optionally, the current control module includes: a second transistor, a third transistor, a first resistor and a second resistor connected in series between the power supply voltage and ground, the second transistor and the first transistor forming a current mirror; a first current source, a first end of which is connected to the power supply voltage, and a second end of which is connected to a first node between the first resistor and the second resistor; and an operational amplifier, an inverting input end of which is connected to the first node, a non-phase input end for receiving a first reference voltage, and an output end connected to the control end of the third transistor, wherein the resistance of the second resistor is adjustable, and the current of the first current branch is controlled by adjusting the resistance of the second resistor.
[0009] Optionally, the charge and discharge module also includes: a second current branch, including a second current source and a third switch connected in series between the power supply voltage and the first end of the first capacitor; and a third current branch, including a third current source and a fourth switch connected in series between the power supply voltage and the first end of the first capacitor, wherein the third switch and the fourth switch are respectively turned on when the first node is short-circuited or open-circuited to control the frequency range of the clock signal.
[0010] Optionally, the oscillation circuit further includes: a switching control module, adapted to compare the first node voltage with the second reference voltage and the third reference voltage, and control one of the second to fourth switches to be turned on according to the comparison result.
[0011] Optionally, the switching control module includes: a second comparator, whose positive input terminal is used to receive the second reference voltage, whose inverting input terminal is used to receive the first node voltage, and whose output terminal is used to output a second switching control signal; a third comparator, whose positive input terminal is used to receive the first node voltage, whose inverting input terminal is used to receive the third reference voltage, and whose output terminal is used to output a third switching control signal; and a NOR gate, whose first input terminal is used to receive the second switching control signal, whose second input terminal is used to receive the third switching control signal, and whose output terminal is used to output the first switching control signal, wherein the first switching control signal to the third switching control signal are respectively used to control the conduction and disconnection of the second switch to the fourth switch.
[0012] Optionally, the oscillator also includes: a frequency jitter control circuit, connected in parallel to both ends of the first capacitor, and the frequency jitter control circuit is used to provide an external capacitor with a periodically changing capacitance value under the feedback control of the clock signal to achieve frequency jitter of the clock signal.
[0013] Optionally, the frequency jitter control circuit includes a plurality of branches arranged in parallel, and each of the branches includes a controllable switch and a second capacitor connected in series.
[0014] Optionally, the oscillator further includes: a counting circuit, which is used to convert the clock signal into a plurality of control signals corresponding one-to-one to the plurality of branches, each of the control signals being used to control the on and off of a controllable switch of a corresponding branch.
[0015] Optionally, the capacitances of the plurality of second capacitors in the frequency jitter control circuit increase from low to high in a binary weighted manner.
[0016] Optionally, the multiple control signals have different frequencies respectively.
[0017] Optionally, the counting circuit is implemented by a synchronous binary counter.
[0018] The oscillation circuit of an embodiment of the present invention includes a current control module, which is connected to the first current branch in the charging and discharging module. The current of the first current branch is controlled by adjusting the resistance value of the adjustable resistor in the current control module to control the frequency of the clock signal generated by the oscillation circuit, thereby obtaining an adjustable frequency oscillator with a wide frequency range.
[0019] Furthermore, the oscillator also includes a frequency jitter control circuit, which forms frequency jitter according to the feedback control of the clock signal output by the oscillation circuit. It can perform frequency jitter well at different frequencies without the need for an external frequency source or setting a large capacitor and charging current inside the chip. The method is simple and easy to integrate, which is conducive to cost saving.
[0020] Furthermore, the oscillator also includes a binary synchronous counter, which counts the clock signal output by the oscillation circuit and forms multiple control signals through a parallel data output terminal to control the periodic change of the capacitance value in the frequency jitter circuit. The control method is simple and effective.
[0021] Furthermore, the oscillation circuit also includes a second current branch and a third current branch. The second current branch and the third current branch can be turned on when the adjustable resistor in the current control module is short-circuited or open-circuited, so that the frequency of the oscillator can still be set when the external resistor in the oscillator is short-circuited or open-circuited, which is beneficial to improving the performance of the oscillator. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings.
[0023] Figure 1 A circuit diagram of an oscillator for generating a clock signal in a switching power supply in the prior art is shown;
[0024] Figure 2 A schematic diagram showing a waveform of a clock signal output by an oscillator in the prior art is shown;
[0025] Figure 3 A circuit diagram of an oscillator for generating a clock signal in a switching power supply according to an embodiment of the present invention is shown;
[0026] Figure 4 Schematic diagram showing waveforms of the clock signal output by the oscillator and control signals Q1-Q3 when n=3;
[0027] Figure 5 Show Figure 3 Circuit diagram of the oscillator circuit in FIG.
[0028] Figure 6 Show Figure 3 Schematic diagram of the counting circuit in . DETAILED DESCRIPTION
[0029] The present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale. In addition, some well-known parts may not be shown in the drawings.
[0030] Many specific details of the present invention are described below, such as component structures, materials, dimensions, processing techniques and technologies, in order to more clearly understand the present invention. However, as those skilled in the art will appreciate, the present invention may be implemented without following these specific details.
[0031] It should be understood that in the following description, a "circuit" may include a single or multiple combined hardware circuits, programmable circuits, state machine circuits and / or elements that can store instructions executed by programmable circuits. When an element or circuit is said to be "connected to" or "coupled to" another element, or an element / circuit is said to be "connected to" or "coupled between" two nodes, it can be directly coupled or connected to another element or there can be an intermediate element between the two, and the connection or coupling between the elements can be physical, logical, or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.
[0032] Figure 1 FIG. 1 is a circuit diagram of an oscillator for generating a clock signal in a switching power supply of the prior art. Figure 1 As shown, the oscillator 100 includes a charge and discharge circuit 110, a comparator comp and a buffer buff. The charge and discharge circuit 110 includes a first current source I1 connected between a power supply voltage VCC and ground, a capacitor C0 and a transistor M1. The transistor M1 is connected between the two ends of the capacitor C0. The middle node between the first current source I1 and the capacitor C0 is used to output a slope voltage Vslope. The positive input terminal of the comparator comp receives the slope voltage Vslope, and the negative input terminal receives a reference voltage Vref. In the initial state, the charge on the capacitor C0 is zero, the slope voltage Vslope is less than the reference voltage Vref, the output of the comparator comp is low level, the transistor M1 is turned off, the first current source I1 charges the capacitor C0, when the slope voltage Vslope is greater than the reference voltage Vref, the comparator output flips, at this time the transistor M1 is turned on, the capacitor C0 starts to discharge to the ground, because the gate of the transistor M1 is at a high potential, so the discharge current of the capacitor C0 is much greater than the charging current of the first current source I1 to the capacitor C0, so the slope voltage Vslope starts to decrease. When the slope voltage Vslope drops to a level slightly lower than the reference voltage Vref, the output of the comparator comp flips again, the transistor M1 is turned off, and the first current source I1 starts charging the capacitor C0 again, starting the next oscillation cycle.
[0033] Figure 1 The frequency of the oscillator in is determined by the size of the capacitor C0. In the absence of an external parallel capacitor, the oscillator will output a square wave with a fixed frequency, such as Figure 2 shown.
[0034] Figure 3 FIG. 2 is a circuit diagram of an oscillator for generating a clock signal in a switching power supply according to an embodiment of the present invention. Figure 3 As shown, the oscillator 200 includes an oscillation circuit 210 , a frequency jitter control circuit 220 and a counting circuit 230 .
[0035] The oscillation circuit 210 generates a clock signal CLK by charging and discharging the capacitor C0. The frequency jitter control circuit 220 is connected in parallel to the two ends of the charging and discharging capacitor C0 inside the oscillation circuit 210. The frequency jitter control circuit 220 provides an external capacitor with a periodically changing capacitance value under the feedback control of the clock signal CLK output by the oscillation circuit 210, thereby periodically changing the frequency of the clock signal CLK output by the oscillation circuit 210. Among them, the frequency jitter control circuit 220 includes a plurality of parallel branches, each of which is connected in series with a controllable switch and a capacitor. The clock signal input end of the counting circuit 230 is connected to the signal output end OUT of the oscillation circuit 210, and is used to convert the clock signal CLK output by the oscillation circuit 210 into control signals with different fixed frequencies corresponding to the controllable switches on each branch.
[0036] The number of control signals is equal to the number of branches in the frequency jitter control circuit 220 . When the controllable switch corresponding to the control signal is closed, the capacitor on the corresponding branch in the frequency jitter control circuit 220 is connected in parallel with the charging and discharging capacitor inside the oscillation circuit 210 .
[0037] Specifically, the counting circuit 230 is a synchronous binary counter, the number of bits of the synchronous binary counter is equal to the number of parallel branches in the frequency jitter control circuit 220, and the synchronous binary counter counts the clock signal CLK output by the oscillation circuit 210, and outputs control signals corresponding to the controllable switches through parallel data. For example, the counting circuit 230 synchronously counts the clock signal CLK output by the oscillation circuit 210, and outputs n control signals Q1-Qn through its n parallel data output terminals, where n is an integer greater than 2, Q1 is the lowest bit, and Qn is the highest bit. The counting circuit 230 can be triggered by a rising edge or a falling edge. This embodiment uses a synchronous binary counter triggered by a falling edge.
[0038] The frequency jitter control circuit 220 includes n parallel branches, each branch is connected in parallel with the capacitor C0, and each branch is connected in series with a controllable switch and a capacitor, and the controllable switch can be a metal oxide semiconductor field effect transistor, a complementary metal oxide semiconductor or a bipolar transistor. The counting circuit 230 counts the output signal of the oscillation circuit 210, and outputs n control signals Q1-Qn through its n parallel data output terminals, which are respectively used to control the controllable switches S1-Sn on the n branches.
[0039] For example, the n switches in the frequency jitter control circuit 220 are respectively implemented by NMOS tubes. When the control signal is "1" (high level), the switch is turned on; when the control signal is "0" (low level), the switch is turned off. When the switch is closed, the capacitor on the corresponding branch is connected in parallel with the capacitor C0 inside the oscillation circuit 210. The capacitance values of the n branches in the frequency jitter control circuit 220 increase in sequence in a binary weighted manner, that is, the capacitance value of the branch capacitor C1 corresponding to the control signal Q1 is C, the capacitance value of the branch capacitor C2 corresponding to the control signal Q2 is 2C, and so on. The capacitance value of the capacitor Cn on the branch corresponding to the control signal Qn is 2 n C (C is the unit capacitance).
[0040] In the initial state, the control signals Q1-Qn are all "0", and the switches S1-Sn on the n branches in the frequency jitter control circuit 220 are all in the off state. When the first falling edge arrives, the control signal Q1 becomes "1", and the remaining control signals are still "0", and the switch S1 of the branch corresponding to the control signal Q1 is closed, and the capacitor C1 on the branch is connected in parallel with the capacitor C0 in the oscillation circuit 210. When the second falling edge arrives, the control signal Q2 becomes "1", and the remaining control signals are still "0", and the switch S2 of the branch corresponding to the control signal Q2 is closed, and the capacitor C2 on the branch is connected in parallel with the capacitor C0 in the oscillation circuit 210. By analogy, the control signals Q1-Qn change in binary mode. Since their states determine the parallel connection of the n capacitors in the frequency jitter control circuit 220 and the capacitor C0 in the oscillation circuit 210, the size of the capacitor connected in parallel with the capacitor C0 will also change in binary mode. Since the frequency of the oscillating circuit 210 is determined by the sum of the capacitance of the capacitor C0 and the external capacitor connected in parallel therewith, the frequency of the oscillating circuit 210 will change periodically according to a certain rule.
[0041] Taking n=3 as an example, the counting circuit 230 adopts a 3-bit synchronous binary counter, and its parallel data output terminal outputs three control signals Q1-Q3, where Q1 is the lowest bit and Q3 is the highest bit. The frequency jitter control circuit 220 includes three parallel branches, and the capacitance values of the capacitors corresponding to the control signals Q1-Q3 on each parallel branch are C, 2C and 4C respectively. Figure 4 FIG. 4 shows a schematic diagram of the waveforms of the clock signal output by the oscillator and the control signals Q1-Q3 when n=3. Figure 4 As shown, the frequency of the output signal of the oscillation circuit 210 changes periodically, thereby achieving the purpose of frequency jitter.
[0042] Figure 5 Show Figure 3 The circuit diagram of the oscillator circuit in FIG. Figure 5As shown, further, the oscillation circuit 210 includes a charge and discharge module 211 , a first comparator comp1 , a current control module 212 and a switch control module 213 .
[0043] The charge and discharge module 211 includes a first current branch, the capacitor C0 and a first switch K1. The first current branch and the capacitor C0 are connected between the power supply voltage VCC and the ground, and the first switch K1 is connected in parallel between the two ends of the capacitor C0 to provide a discharge path from the first end of the capacitor C0 to the ground. The first current branch includes a transistor M1 and a second switch K2 connected in series, and the transistor M1 is used to provide a charging current to the capacitor C0 in a mirroring manner, and the intermediate node CT between the first current branch and the capacitor C0 is used to output a slope voltage Vslope.
[0044] The first comparator comp1 compares the slope voltage Vslope with a reference voltage Vref to generate the clock signal CLK.
[0045] The current control module 212 is connected to the first current branch of the charging and discharging module 211 , and the current control module 212 is used to control the current magnitude of the first current branch to control the frequency range of the clock signal.
[0046] Further, the current control module 212 includes a first current source I1, an operational amplifier OPA, a transistor M2 and a transistor M3, and a resistor R1 and a resistor Rosc. The transistor M2, the transistor M3, the resistor R1 and the resistor Rosc are connected in series between the power supply voltage VCC and the ground in sequence, and the transistor M2 and the transistor M1 form a current mirror. The first end of the first current source I1 is connected to the power supply voltage VCC, and the second end is connected to the node A between the resistor R1 and the resistor Rosc. The inverting input terminal of the operational amplifier OPA is connected to the node A, the non-inverting input terminal is used to receive the first reference voltage Vb1, and the output terminal is connected to the control terminal of the transistor M3. Among them, the resistor Rosc is an external adjustable resistor, and the current flowing through the transistor M1 is controlled by adjusting the resistance value of the resistor Rosc.
[0047] In the initial state, the second switch K2 is turned on, the charge on the capacitor C0 is zero, the slope voltage Vslope is less than the reference voltage Vref, the output of the first comparator comp1 is low, the first switch K1 is turned off, and the transistor M1 charges the capacitor C0. When the slope voltage Vslope is greater than the reference voltage Vref, the output of the first comparator comp1 flips, and the first switch K1 is turned on at this time, and the capacitor C0 begins to discharge to the ground, because the discharge current of the capacitor C0 is much greater than the charging current of the transistor M1 to the capacitor C0, so the slope voltage Vslope begins to decrease. When the slope voltage Vslope drops to slightly less than the reference voltage Vref, the output of the first comparator comp1 flips again, the first switch K1 is turned off, and the transistor M1 starts to charge the capacitor C0 again, and the next oscillation cycle begins.
[0048] Further, the charge and discharge module 211 also includes a second current branch and a third current branch arranged in parallel with the first current branch. The second current branch includes a second current source I2 and a third switch K3 connected in series between the power supply voltage VCC and the first end of the capacitor C0. The third current branch includes a third current source I3 and a fourth switch K4 connected in series between the power supply voltage VCC and the first end of the capacitor C0. The third switch K3 and the fourth switch K4 are respectively turned on when the node A is short-circuited or open-circuited, so as to control the frequency range of the clock signal when the external resistor Rosc is short-circuited or open-circuited.
[0049] Furthermore, the switching control module 213 is used to compare the voltage VA at the node A with the second reference voltage Vb2 and the third reference voltage Vb3, and control one of the second switch K2 to the fourth switch K4 to be turned on according to the comparison result.
[0050] Further, the switching control module includes a second comparator comp2, a third comparator comp3 and a NOR gate. The non-inverting input terminal of the second comparator comp2 is used to receive the second reference voltage Vb2, the inverting input terminal is used to receive the node voltage VA, and the output terminal is used to output the second switching control signal SC2. The non-inverting input terminal of the third comparator comp3 is used to receive the node voltage VA, the inverting input terminal is used to receive the third reference voltage Vb3, and the output terminal is used to output the third switching control signal SC3. The first input terminal of the NOR gate NOR receives the second switching control signal SC2, the second input terminal receives the third switching control signal SC3, and the output terminal is used to output the first switching control signal SC1. The first switching control signal SC1 to the third switching control signal SC3 are used to control the conduction and disconnection of the second switch K2 to the fourth switch K4, respectively.
[0051] Among them, the voltage values of the second reference voltage Vb2 and the third reference voltage Vb3 can be set by those skilled in the art according to specific circumstances. In this embodiment, the second reference voltage Vb2 and the third reference voltage Vb3 are both less than the power supply voltage VCC, and the second reference voltage Vb2 is less than the third reference voltage Vb3. When the node A is short-circuited, the node voltage VA is less than the second reference voltage Vb2 and the third reference voltage Vb3, the second comparator comp2 outputs a high level, and the third comparator comp3 outputs a low level, that is, the first switching control signal SC1 and the third switching control signal SC3 are low levels, the second switching control signal SC2 is high level, the second switch K2 and the fourth switch K4 are turned off, the third switch K3 is turned on, and the capacitor C0 is charged by the second current source I2; when the node A is open, the node voltage VA is pulled up to the power supply voltage VCC by the first current source I1, the node voltage VA is greater than the second reference voltage Vb2 and the third reference voltage Vb3, the second comparator comp2 outputs a low level, and the third comparator comp3 outputs high level, at this time the first switching control signal SC1 and the second switching control signal SC2 are low levels, the third switching control signal SC3 is high level, the second switch K2 and the third switch K3 are turned off, the fourth switch K4 is turned on, and the capacitor C0 is charged by the third current source I3; when the node A is at a normal potential, the node voltage VA is greater than the second reference voltage Vb2 and less than the third reference voltage Vb3, the second comparator comp2 and the third comparator comp3 both output low levels, at this time the second switching control signal SC2 and the third switching control signal SC3 are low levels, the first switching control signal SC1 is high level, the third switch K3 and the fourth switch K4 are turned off, the second switch K2 is turned on, and the capacitor C0 is charged by the transistor M1.
[0052] Figure 6 Show Figure 3 The schematic diagram of the counting circuit in FIG. Figure 6 As shown, the counting circuit 230 includes n D flip-flops and n multiplexers MUX1-MUXn. The n D flip-flops are cascaded with each other, and each D flip-flop includes a data input terminal D, a clock terminal Clk, a first output terminal Q+, and a second output terminal Q-. The clock terminal Clk of the first-stage D flip-flop is used to receive the clock signal CLK output by the oscillation circuit 210, and the clock terminal Clk of each stage of the D flip-flop other than the first-stage D flip-flop is connected to the first output terminal Q+ of the previous stage of the D flip-flop, and the data input terminal D of each D flip-flop is connected to the second output terminal Q-. The n multiplexers MUX1-MUXn are two-to-one multiplexers, and each multiplexer is respectively connected to the first output terminal Q+ and the second output terminal Q- of the corresponding D flip-flop, and is used to obtain the corresponding control signal according to the output of the corresponding D flip-flop.
[0053] In summary, an embodiment of the present invention provides an oscillation circuit, which includes a current control module, which is connected to the first current branch in the charging and discharging module. The current of the first current branch is controlled by adjusting the resistance of an adjustable resistor in the current control module to control the frequency of a clock signal generated by the oscillation circuit, thereby obtaining an adjustable frequency oscillator with a wide frequency range.
[0054] In a further embodiment, the oscillator of the present invention also includes a frequency jitter control circuit, which forms frequency jitter according to the feedback control of the clock signal output by the oscillation circuit. It does not require an external frequency source and a large capacitor and charging current to be set inside the chip, so that frequency jitter can be performed well at different frequencies. Moreover, the method is simple and easy to integrate, which is conducive to cost saving.
[0055] In a further embodiment, the present invention counts the clock signal output by the oscillation circuit through a binary synchronous counter, and forms multiple control signals through a parallel data output terminal to control the periodic change of the capacitance value in the frequency jitter circuit. The control method is simple and effective.
[0056] In a further embodiment, the oscillation circuit of the present invention also includes a second current branch and a third current branch. The second current branch and the third current branch can be turned on when the adjustable resistor in the current control module is short-circuited or open-circuited, so that the frequency of the oscillator can still be set when the external resistor in the oscillator is short-circuited or open-circuited, which is beneficial to improving the performance of the oscillator.
[0057] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0058] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. An oscillator, It is characterized in that An oscillating circuit is included, and the oscillating circuit generates a clock signal by charging and discharging a first capacitor, wherein the oscillating circuit includes: A charge and discharge module, comprising a first current branch, the first capacitor and a first switch, wherein the first current branch and the first capacitor are connected between a power supply voltage and ground, the first switch is connected in parallel between the two ends of the first capacitor and is used to provide a discharge path from the first end of the first capacitor to the ground, and an intermediate node between the first current branch and the first capacitor is used to output a ramp voltage; a first comparator, comparing the ramp voltage with a reference voltage to generate the clock signal; and a current control module connected to the first current branch, the current control module being used to control the current magnitude of the first current branch to control the frequency range of the clock signal, The first current branch includes a first transistor and a second switch which are sequentially connected in series between the power supply voltage and the second end of the first capacitor. The current control module includes: a second transistor, a third transistor, a first resistor and a second resistor connected in series between the power supply voltage and ground, the second transistor and the first transistor forming a current mirror; a first current source, the first end of which is connected to the power supply voltage, and the second end of which is connected to a first node between the first resistor and the second resistor; and an operational amplifier, the inverting input end of which is connected to the first node, the non-inverting input end of which is used to receive a first reference voltage, and the output end of which is connected to the control end of the third transistor, wherein the resistance value of the second resistor is adjustable, and the current of the first current branch is controlled by adjusting the resistance value of the second resistor. The charging and discharging module also includes: a second current branch, comprising a second current source and a third switch connected in series between the power supply voltage and the first end of the first capacitor; and a third current branch, comprising a third current source and a fourth switch connected in series between the power supply voltage and the first end of the first capacitor, the third switch and the fourth switch being turned on when the first node is short-circuited or open-circuited, respectively, to control the frequency range of the clock signal; The oscillation circuit further includes: a switching control module, adapted to compare the first node voltage with the second reference voltage and the third reference voltage, and control one of the second switch to the fourth switch to be turned on according to the comparison result, When the first node is short-circuited, the voltage of the first node is less than the second reference voltage and the third reference voltage, the second switch and the fourth switch are turned off, and the third switch is turned on. When the first node is open, the first node voltage is greater than the second reference voltage and the third reference voltage, the second switch and the third switch are turned off, and the fourth switch is turned on.
2. The oscillator according to claim 1, It is characterized in that The switching control module includes: A second comparator, wherein the non-inverting input terminal is used to receive the second reference voltage, the inverting input terminal is used to receive the first node voltage, and the output terminal is used to output a second switching control signal; a third comparator, whose non-inverting input terminal is used to receive the first node voltage, whose inverting input terminal is used to receive the third reference voltage, and whose output terminal is used to output a third switching control signal; and A NOR gate, wherein the first input terminal receives the second switching control signal, the second input terminal receives the third switching control signal, and the output terminal is used to output the first switching control signal. The first switching control signal to the third switching control signal are used to control the on and off of the second switch to the fourth switch respectively.
3. The oscillator according to claim 1, It is characterized in that Also includes: A frequency jitter control circuit is connected in parallel to both ends of the first capacitor, and is used to provide an external capacitor with a periodically changing capacitance value under the feedback control of the clock signal to achieve frequency jitter of the clock signal.
4. The oscillator according to claim 3, It is characterized in that The frequency jitter control circuit includes a plurality of branches arranged in parallel, and each branch includes a controllable switch and a second capacitor connected in series.
5. The oscillator according to claim 4, It is characterized in that Also includes: A counting circuit is used to convert the clock signal into a plurality of control signals corresponding to the plurality of branches one by one, each of the control signals being used to control the on and off of a controllable switch of a corresponding branch.
6. The oscillator according to claim 4, It is characterized in that The capacitances of the second capacitors in the frequency jitter control circuit increase from low to high in a binary weighted manner.
7. The oscillator according to claim 5, It is characterized in that The counting circuit is implemented by a synchronous binary counter.
