OSCILLATOR CIRCUIT
20200313616 ยท 2020-10-01
Inventors
Cpc classification
H02M3/07
ELECTRICITY
G01R23/09
PHYSICS
G01R19/16528
PHYSICS
H03B5/1228
ELECTRICITY
H03L7/097
ELECTRICITY
International classification
G01R19/165
PHYSICS
G01R23/09
PHYSICS
H02M3/07
ELECTRICITY
Abstract
A frequency variable oscillator generates a clock having a frequency according to a control signal. A reference current source generates a reference current. A path selector distributes the reference current to a first path and a second path in a time-sharing manner in synchronization with the clock. An F/V conversion circuit includes a capacitor connected to the first path, and charges or discharges the capacitor with the reference current and generates a detection voltage. The reference voltage source includes a resistor connected to the second path, and outputs a reference voltage according to a voltage across the resistor. A feedback circuit adjusts a control signal so that the detection voltage approaches the reference voltage.
Claims
1. An oscillator circuit comprising: a frequency variable oscillator structured to generate a clock having a frequency according to a control signal; a reference current source structured to generate a reference current; a path selector structured to distribute the reference current to a first path and a second path in a time-sharing manner in synchronization with the clock; an F/V conversion circuit including a capacitor connected to the first path and structured to charge or discharge the capacitor with the reference current and generate a detection voltage; a reference voltage source including a resistor connected to the second path and structured to output a reference voltage according to a voltage across the resistor; and a feedback circuit structured to adjust a control signal so that the detection voltage approaches the reference voltage.
2. The oscillator circuit according to claim 1, wherein the feedback circuit includes a clocked comparator structured to compare the reference voltage and the detection voltage in synchronization with the clock.
3. The oscillator circuit according to claim 2, wherein the frequency variable oscillator is a voltage controlled oscillator, and the feedback circuit further includes a charge pump controlled by an up signal and a down signal according to an output of the clocked comparator.
4. The oscillator circuit according to claim 2, wherein the frequency variable oscillator is a digitally controlled oscillator, and the feedback circuit further includes an up/down counter controlled by an up signal and a down signal according to an output of the clocked comparator.
5. The oscillator circuit according to claim 2, further comprising: a timing generator structured to control the clocked comparator and the path selector on the basis of the clock.
6. The oscillator circuit according to claim 1, wherein the feedback circuit includes an error amplifier having an offset cancellation mechanism synchronized with the clock.
7. The oscillator circuit according to claim 1, further comprising: a dummy current source structured to supply a dummy reference current to the second path during a period where the path selector distributes the reference current to the first path.
8. The oscillator circuit according to claim 1, wherein the capacitor includes a variable capacitor controlled according to a control code, and the oscillator circuit further comprises: a frequency locked loop (FLL) circuit structured to generate a control code so that the frequency of the clock approaches a frequency of a reference clock input from the outside; and a memory structured to hold the control code in a state where the FLL circuit is locked, in a non-volatile manner.
9. A semiconductor device comprising: the oscillator circuit according to claim 1; and a circuit block structured to receive a clock generated by the oscillator circuit.
10. An oscillator integrated circuit (IC) comprising the oscillator circuit according to claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Embodiments will now be described, by way of example only, with reference to the accompanying drawings which are meant to be exemplary, not limiting, and wherein like elements are numbered alike in several Figures, in which:
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
DETAILED DESCRIPTION OF THE INVENTION
[0029] The invention will now be described based on preferred embodiments which do not intend to limit the scope of the present invention but exemplify the invention. All of the features and the combinations thereof described in the embodiment are not necessarily essential to the invention.
Outline of Embodiment
[0030] One embodiment disclosed in the present specification relates to an oscillator circuit. The oscillator circuit includes: a frequency variable oscillator structured to generate a clock having a frequency according to a control signal; a reference current source structured to generate a reference current; a path selector structured to distribute the reference current to a first path and a second path in a time-sharing manner in synchronization with the clock; an F/V conversion circuit including a capacitor connected to the first path and structured to charge or discharge the capacitor with the reference current and generate a detection voltage; a reference voltage source including a resistor connected to the second path and structured to generate a reference voltage according to a voltage across the resistor; and a feedback circuit structured to adjust a control signal so that the detection voltage approaches the reference voltage.
[0031] According to the embodiment, by generating the reference voltage and the detection voltage in a time-sharing manner on the basis of a reference current generated by a common current source, a problem that occurs when two reference currents are used can be solved, and a clock with high frequency accuracy can be generated.
[0032] The feedback circuit may include an error amplifier having an offset cancellation mechanism by clock control, or a clocked comparator that compares the reference voltage and the detection voltage in synchronization with the clock. By using a comparator that operates discontinuously in time, it is possible to preferably compare the detection voltage and the reference voltage generated in a time-sharing manner.
[0033] In a system using the error amplifier, a system offset occurs due to finite gain of the amplifier. By using the clocked comparator instead of the error amplifier and forming a complete integration type system similar to a charge pump type PLL circuit, DC gain can be made infinite, and the system offset can be eliminated theoretically.
[0034] The frequency variable oscillator may be a voltage controlled oscillator. The feedback circuit may further include a charge pump controlled by an up signal and a down signal according to an output of the clocked comparator.
[0035] The frequency variable oscillator may be a digitally controlled oscillator, and the feedback circuit may further include an up/down counter controlled by an up signal and a down signal according to an output of the clocked comparator.
[0036] The oscillator circuit may further include a timing generator structured to control the clocked comparator and the path selector on the basis of the clock.
[0037] The frequency oscillator may further include a dummy current source structured to supply a dummy reference current to the second path during a period where the path selector distributes the reference current to the first path. Thereby, a voltage level of the reference voltage can be kept substantially constant during one clock cycle, and a settling time of the reference voltage can be reduced.
[0038] The capacitor may include a variable capacitor controlled according to a control code. The oscillator circuit may further include a frequency locked loop (FLL) circuit structured to generate a control code so that the frequency of the clock approaches a frequency of a reference clock input from the outside; and a memory structured to hold the control code in a state where the FLL circuit is locked, in a non-volatile manner. Thereby, it is possible to absorb a process variation of a capacitor or a reference resistor, and to further improve frequency accuracy.
Embodiment
[0039] Hereinafter, the present invention will be described on the basis of preferred embodiments while referring to the drawings. The same or equivalent components, members, and processes illustrated in the drawings will be denoted by the same reference numerals, and repeated description will be omitted as appropriate. Further, the embodiments do not limit the invention, but are exemplary, and all features and combinations thereof described in the embodiments are not necessarily essential to the invention.
[0040] In the present specification, a state where a member A is connected to a member B includes not only a case where the member A and the member B are directly connected physically but also a case where the member A and the member B are indirectly connected via another member that does not substantially affect an electrical connection state or does not impair a function and an effect provided by connection.
[0041] Similarly, a state where a member C is provided between the members A and B includes not only a case where the members A and C or the members B and C are directly connected but also a case where the members A and C or the members B and C are indirectly connected via another member that does not substantially affect an electrical connection state or does not impair a function and an effect provided by connection.
[0042]
[0043] The frequency variable oscillator 102 generates an oscillator clock CLKOSC having a frequency f.sub.OSC according to a control signal S.sub.CTRL. As described later, the frequency variable oscillator 102 may be a voltage controlled oscillator (VCO) or a digital controlled oscillator (DCO), and its circuit type is not limited. In the present embodiment, the oscillator clock CLKOSC is extracted as the output CLKOUT of the oscillator circuit 100.
[0044] The reference current source 104 generates a reference current I.sub.REF0. The path selector 106 distributes the reference current I.sub.REF0 to a first path 108 and a second path 109 in a time-sharing manner, according to a selection signal SEL generated on the basis of the oscillator clock CLKOSC. A reference current I.sub.REF1 flowing through the first path 108 and a reference current I.sub.REF2 flowing through the second path 109 are both equal to the reference current I.sub.REF0.
I.sub.REF1=I.sub.REF2=I.sub.REF0
[0045] The path selector 106 may select the first path 108 for a charging time T.sub.CHG (for example, two cycles of four consecutive cycles) proportional to a cycle of the oscillator clock CLKOSC.
[0046] The F/V conversion circuit 120 includes a capacitor C connected to first path 108. The F/V conversion circuit 120 charges the capacitor C with the reference current I.sub.REF1 flowing through the first path 108, and generates a detection voltage V.sub.C. The capacitor C is charged for the charging time T.sub.CHG during which the reference current I.sub.REF1 is supplied from the path selector 106.
[0047] An initialization switch SW11 is connected in parallel with the capacitor C. The initialization switch SW11 is controlled according to a reset signal RST. The initialization switch SW11 is turned on before starting charging, and initializes the charge of the capacitor C, that is, the detection voltage V.sub.C in each operation cycle. The initialization switch SW11 is turned off for the charging time T.sub.CHG.
[0048] After the elapse of the charging time, the detection voltage V.sub.C across the capacitor C is represented by Formula (7).
V.sub.C=I.sub.REF1T.sub.CHG/C=I.sub.REF0T.sub.CHG/C (7)
[0049] The reference voltage source 130 includes a resistor R connected to the second path 109, and outputs a reference voltage V.sub.R according to a voltage across the resistor R due to the reference current I.sub.REF2 flowing through the second path 109.
V.sub.REF=I.sub.REF2R=I.sub.REF0R (8)
[0050] The feedback circuit 110 adjusts the control signal S.sub.CTRL so that the detection voltage V.sub.C of Formula (7) approaches the reference voltage V.sub.R. In a steady state, since the detection voltage V.sub.C of Formula (7) is equal to the reference voltage V.sub.R of Formula (8), Formula (9) is obtained.
1/T.sub.CHG=1/CR (9)
[0051] The charging time T.sub.CHG is proportional to a cycle of the oscillator clock CLKOSC (inversely proportional to the oscillation frequency f.sub.OSC), and is represented by Formula (10) using a constant A.
T.sub.CHG=A/f.sub.OSC (10)
[0052] From Formulas (9) and (10), the frequency f.sub.OSC of the oscillator clock CLKOSC is stabilized to a value of Formula (11).
f.sub.OSC=A/CR (11)
[0053] The timing generator 170 generates a SEL signal and an RST signal on the basis of the oscillator clock CLKOSC. For example, the timing generator 170 may generate the SEL signal and the RST signal by dividing the frequency of the oscillator clock CLKOSC (or a divided clock CLKDIV) and performing a logical operation on the divided clock.
[0054] The above is a basic configuration of the oscillator circuit 100. According to the oscillator circuit 100, it is guaranteed that the reference current I.sub.REF1 supplied to the F/V conversion circuit 120 is equal to the reference current I.sub.REF2 supplied to the reference voltage source 130. Therefore, theoretically, no error occurs between the reference currents I.sub.REF1 and I.sub.REF2, and a high-accuracy clock can be generated. Subsequently, more specific embodiments will be described.
[0055]
[0056] The oscillator circuit 100A includes a frequency divider 103. The frequency divider 103 divides a frequency of an oscillator clock CLKOSC by , and generates an output clock CLKOUT.
[0057] A feedback circuit 110A includes a clocked comparator 112, a charge pump 114, and a loop filter 116. The clocked comparator 112 compares the reference voltage V.sub.R and the detection voltage V.sub.C in synchronization with a timing signal (COMP signal) based on the output clock CLKOSC. The output of the clocked comparator 112 is converted into an up (UP) signal and a down (DN) signal.
[0058] The charge pump 114 charges/discharges a capacitor C.sub.CP according to the UP signal/DN signal. A voltage V.sub.CP of the capacitor C.sub.CP is supplied as the control voltage V.sub.CTR to the VCO to be the frequency variable oscillator 102 via the loop filter 116. Since the capacitor C.sub.CP itself functions as a filter, the loop filter 116 can be eliminated when a fluctuation of the voltage V.sub.CP has a sufficiently small effect on a fluctuation of a frequency of the VCO.
[0059] A timing generator 170A generates a SEL signal, an RST signal, and a COMP signal, on the basis of the oscillator clock CLKOSC. Note that a frequency divider 172 corresponding to the frequency divider 4 in
[0060] Subsequently, an exemplary operation will be described.
[0061] In this example, the oscillator circuit 100A sets four cycles of the oscillator clock CLKOSC as one operation cycle. Specifically, the SEL signal repeats high and low every two cycles of the four cycles of the oscillator clock CLKOSC. The path selector 106 turns on the first path 108 when the SEL signal is high, and turns on the second path 109 when the SEL signal is low.
[0062] Further, in the last cycle of the four cycles of the oscillator clock CLKOSC, the RST signal is asserted (for example, high), and the initialization switch SW11 is turned on.
[0063] The first operation cycle is focused on. While the SEL signal is high, the charging time becomes a charging time T.sub.CHG1, the reference current I.sub.REF1 is supplied to the capacitor C, and the detection voltage V.sub.C increases. When the SEL signal becomes low, the reference current I.sub.REF1 becomes zero, and an increase in the detection voltage V.sub.0 stops. The detection voltage V.sub.0 is held in the capacitor C until the RST signal is asserted. That is, the capacitor C also functions as a sample-and-hold circuit.
[0064] When the SEL signal becomes low, the reference current I.sub.REF1 flows through the reference resistor R, and the reference voltage V.sub.R is generated. After the reference voltage V.sub.R is settled, the COMP signal is asserted (high). In response to the assertion of the COMP signal, the clocked comparator 112 compares the detection voltage V.sub.C and the reference voltage V.sub.R. In the first operation cycle, V.sub.C<V.sub.R is obtained, and the DN signal is asserted. In response to the assertion of the DN signal, the charge pump voltage V.sub.CP decreases, the control voltage V.sub.CTRL increases, and the oscillation frequency f.sub.2 of the next operation cycle decreases (f.sub.1>f.sub.2).
[0065] The second operation cycle operates similarly. Since the frequency of the clock CLKOSC decreases, a length of high of the SEL signal, that is, a charging time T.sub.CHG2 increases. Therefore, a peak of the detection voltage V.sub.C becomes higher than that in the previous operation cycle. Then, a voltage comparison is performed according to the COMP signal. Also in this operation cycle, V.sub.C<V.sub.R is obtained, and the DN signal is asserted. In response to the assertion of the DN signal, the charge pump voltage V.sub.CP decreases, the control voltage V.sub.CTRL increases, and the oscillation frequency f.sub.3 of the next operation cycle further decreases (f.sub.2>f.sub.3).
[0066] In the third operation cycle, a length of high of the SEL signal, that is, a charging time T.sub.CHG3 further increases. Therefore, a peak of the detection voltage V.sub.C becomes higher than that in the previous operation cycle. In this operation cycle, V.sub.R<V.sub.C is obtained, and an UP signal is asserted. In response to the assertion of the UP signal, the charge pump voltage V.sub.CP increases, the control voltage V.sub.CTRL decreases, and the oscillation frequency f.sub.4 of the next operation cycle increases. (f.sub.3<f.sub.4)
[0067] By repeating the above operation, feedback is applied. In the first embodiment, the charging time T.sub.CHG is equal to one cycle of the output clock CLKOUT, and a proportional coefficient A in Formula (10) is 1. Therefore, according to the oscillator circuit 100A of
f.sub.OUT=1/CR (12)
[0068] The frequency divider 103 may be omitted, and the oscillator clock CLKOSC may be used as the output clock CLKOUT. In that case, A= and f.sub.OUT=2/CR are obtained. In short, the output clock CLKOUT can be used as the oscillator clock CLKOSC or its divided clock.
[0069] The above is the operation of the oscillator circuit 100A. According to the oscillator circuit 100A, by generating the reference voltage V.sub.R and the detection voltage V.sub.C in a time-sharing manner using the reference current I.sub.REF0 generated by the common current source 104, the problem of variations in the reference currents I.sub.REF1 and I.sub.REF2 described with reference to
[0070] Further, by using the clocked comparator 112 that operates discontinuously in time, it is possible to preferably compare the detection voltage V.sub.C and the reference voltage V.sub.R generated in a time-sharing manner. In a system using an error amplifier, when a system offset occurs due to finite gain of the amplifier, DC gain can be made infinite by forming a complete integration type system similar to a charge pump type PLL circuit, as illustrated in
[0071] In addition, in the configuration of
Second Embodiment
[0072]
[0073] According to the oscillator circuit 100B of
Third Embodiment
[0074] In the operation of
[0075]
[0076] The dummy current source 105 generates the same amount of dummy current I.sub.REF as a reference current I.sub.REF0. The path selector 107 is connected to a second path 109 and a third path 109d. The third path 109d may be provided with the dummy resistor R having a resistance value equal to that of the resistor R. This has an effect of suppressing a voltage fluctuation of each wiring connected to the path selector 107 and returning the reference voltage to the normal voltage level more quickly. However, when the voltage fluctuation can be sufficiently suppressed only by eliminating the dummy current I.sub.REF, the dummy resistor R may be eliminated.
[0077] The path selector 107 includes a switch SW31 provided between the dummy current source 105 and the second path 109, and a switch SW32 provided between the dummy current source 105 and the third path 109d. During a period where the path selector 106 distributes the reference current I.sub.REF0 to the first path 108 (that is, during a charging period T.sub.CHG), the switch SW31 is turned on, and the dummy current I.sub.REF is supplied to the second path 109. Further, during a period where the path selector 106 distributes the reference current I.sub.REF0 to the second path 109, the switch SW32 is turned on, and the dummy current I.sub.REF is supplied to the third path 109d.
[0078]
[0079] As described above, according to the third embodiment, a fluctuation of the reference voltage V.sub.R can be suppressed. As a result, a restriction on a stabilization time of the reference voltage V.sub.R is relaxed, so that a higher-speed operation can be performed. Since the dummy current I.sub.REF always flows, power consumption increases as compared to the second embodiment.
Fourth Embodiment
[0080] As described above, since an oscillation frequency of an oscillator circuit 100 is defined by capacitance of a capacitor C and a resistance value of a resistor R, an error occurs in the oscillation frequency when the capacitance C or the resistance R fluctuates due to process variations. In a fourth embodiment, frequency calibration will be described.
[0081]
[0082] The oscillator circuit 100D includes a frequency locked loop (FLL) circuit 190. When the frequency calibration is performed, a reference clock CLKREF including no error is provided from the outside to the FLL circuit 190. The FLL circuit 190 generates a control code CNT according to a difference between frequencies of an output clock CLKOUT of the oscillator circuit 100, and changes a capacitance value of the variable capacitor Cv.
[0083] The FLL circuit 190 includes a frequency detector (FD: Frequency Detector) 192, a memory 194, and a selector 196. At the time of the calibration, the selector 196 selects an output of the frequency detector 192. The frequency detector 192 detects a difference between frequencies of the CLKOUT signal and the CLKREF signal, and increases or decreases the variable capacitance Cv according to the difference. Specifically, the control code CNT is changed so that the variable capacitance Cv becomes smaller when the frequency of the CLKOUT signal is lower, and the variable capacitance Cv becomes larger when the frequency of the CLKOUT signal is higher. By repeating the above operation, FLL is eventually locked, and the frequency of the CLKOUT signal is matched with the frequency of the reference clock CLKREF. The final control code CNT is written to the memory 194 and is held in a non-volatile manner. After the calibration is completed once, the selector 196 selects the control code CNT stored in the memory 194. Note that the resistance R may be directly calibrated instead of the variable capacitance Cv.
[0084] By adding the FLL circuit 190 as described above, accuracy of the frequency can be further improved.
Applications
[0085]
[0086] A semiconductor device 200B in
[0087] The present invention has been described on the basis of the embodiments. The embodiments are merely examples, and it is understood by those skilled in the art that various modifications can be made in the combination of the respective components or the respective processing processes, and that the modifications are also within the scope of the present invention. Hereinafter, the modifications will be described.
[0088] In the embodiment, the F/V conversion circuit 120 charges the capacitor C with the reference current I.sub.REF1, and sets the voltage after charging as the detection voltage. However, the present invention is not limited thereto. On the contrary, the capacitor C may be discharged with the reference current I.sub.REF, and the voltage after discharging may be set as the detection voltage V.sub.C.
[0089] The waveforms and sequences of the timing signals SEL, RST, and COMP are merely examples, and the waveforms of the respective signals can be appropriately changed as long as the same operation is possible.
[0090] While the preferred embodiments of the present invention have been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims.