Oscillation circuit
The oscillation circuit design stabilizes frequency by using a reference voltage generation circuit and current source circuit to cancel out the effects of temperature changes, ensuring consistent performance.
Patent Information
- Application Number
- JP2023073116
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The oscillation frequency of existing oscillation circuits is affected by changes in the bandgap reference voltage due to temperature and other environmental factors, leading to instability.
An oscillation circuit design that includes a reference voltage generation circuit, current source circuit, capacitors, comparators, and discharge circuits, where the charging currents and comparator thresholds are designed to cancel out the effects of reference voltage changes, ensuring stable oscillation frequency.
The oscillation frequency remains stable despite variations in the reference voltage, maintaining consistent performance by canceling out the influence of temperature and other environmental factors.
Smart Images

Figure 2024158156000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an oscillator circuit and the like. [Background technology]
[0002] Patent Document 1 discloses an oscillator that includes a bandgap circuit that outputs a bandgap reference voltage, a voltage-to-current converter that converts the bandgap reference voltage into a current, a capacitor that is charged by the converted current, a comparator that compares the voltage charged in the capacitor with a reference voltage, a charge / discharge switch that discharges the capacitor based on the comparison result of the comparator, and a T flip-flop that outputs a clock signal based on the comparison result of the comparator. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2014-33425 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the above-mentioned Patent Document 1, the charging current of the capacitor is generated using a bandgap reference voltage, and the comparator compares the voltage charged in the capacitor with the reference voltage. The bandgap reference voltage and the reference voltage change due to the influence of temperature, etc., and the characteristics of this change are different, so there is a risk of the oscillation frequency changing. [Means for solving the problem]
[0005] One aspect of the present disclosure relates to an oscillator circuit including a reference voltage generation circuit that generates a reference voltage, a current source circuit that receives the reference voltage from the reference voltage generation circuit and outputs a first charging current corresponding to the reference voltage, a first capacitor having one end to which the first charging current is input, a first comparator having a first input terminal to which a voltage at one end of the first capacitor is input and a second input terminal to which the reference voltage from the reference voltage generation circuit is input, a first discharge circuit that discharges the first capacitor at a timing based on an output signal of the first comparator, and a clock signal output circuit that outputs a clock signal based on the output signal of the first comparator. [Brief description of the drawings]
[0006] [Figure 1] 13 shows an example of the configuration of an oscillator circuit when the method of the present embodiment is not used. [Diagram 2] 13 shows a detailed configuration example of an output circuit. [Diagram 3] 6 is an example of a signal waveform of an oscillation circuit when the method of the present embodiment is not used. [Figure 4] 3 shows a first configuration example of an oscillator circuit in this embodiment. [Diagram 5] 3 shows a detailed configuration example of a clock signal output circuit. [Figure 6] 4 is an example of signal waveforms illustrating the operation of the oscillator circuit according to the present embodiment. [Figure 7] 1 shows a first detailed configuration example of a current source circuit. [Figure 8] 2 shows a second example of an oscillator circuit. [Figure 9] 4 shows a second detailed configuration example of a current source circuit. [Figure 10] 3 shows a detailed configuration example of a mirror ratio adjustment circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] A preferred embodiment of the present disclosure will be described in detail below. Note that the present embodiment described below does not unduly limit the contents described in the claims, and not all of the configurations described in the present embodiment are essential components. Note that the connection in the present embodiment is an electrical connection. An electrical connection is a connection that allows an electrical signal to be transmitted, and is a connection that allows information to be transmitted by an electrical signal. The electrical connection may be a connection via a passive element or an active element, etc.
[0008] 1 shows an example of the configuration of an oscillator circuit when the method of this embodiment is not used. The oscillator circuit 300 includes a current source circuit 310, a capacitor 330, an N-type transistor TRBc, and an output circuit 320.
[0009] The current source circuit 310 outputs a charging current ICB based on a reference voltage VREFB from a bandgap reference circuit. The current source circuit 310 includes an operational amplifier OPB, P-type transistors TRBa and TRBb, a capacitor CCB, and a resistor RB.
[0010] The operational amplifier OPB performs feedback control so that the drain voltage of the P-type transistor TRBa becomes the same voltage as the reference voltage VREFB from the bandgap reference circuit. The resistor RB converts the drain voltage of the P-type transistor TRBa into a current. The current value is VREFB / RB. The P-type transistor TRBb outputs the charging current ICB by mirroring the current flowing through the resistor RB. When the mirror ratio is m, ICB = m x (VREFB / RB).
[0011] A charging current ICB is input to one end of the capacitor 330, thereby charging the capacitor 330. The output circuit 320 outputs a control signal SWB that controls the N-type transistor TRBc to be on or off based on a voltage CTB at one end of the capacitor 330. The capacitor 330 is charged when the N-type transistor TRBc is off, and is discharged when the N-type transistor TRBc is on. The capacitor 330 is periodically charged and discharged, and the output circuit 320 outputs a clock signal CLKB based on the periodic charging and discharging.
[0012] 2 shows a detailed configuration example of the output circuit 320. The output circuit 320 includes comparators CPBa and CPBb, an RS latch circuit RSB, and a flip-flop circuit FFB.
[0013] The comparator CPBa compares the voltage CTB with the reference voltage VHB and outputs a signal SIB as a result. The comparator CPBb compares the voltage CTB with a reference voltage VLB lower than the reference voltage VHB and outputs a signal RIB as a result. The reference voltages VHB and VLB are different reference voltages from the reference voltage VREFB from the bandgap reference circuit.
[0014] The RS latch circuit RSB receives the signal SIB as a set signal and the signal RIB as a reset signal. The output signal of the RS latch circuit RSB is the control signal SWB. The control signal SWB is input to the clock terminal of the flip-flop circuit FFB, which outputs the clock signal CLKB obtained by dividing the control signal SWB by two.
[0015] FIG. 3 shows an example of a signal waveform of an oscillation circuit when the method of this embodiment is not used.
[0016] When the control signal SWB is at a low level, the N-type transistor TRBc is off, so that the capacitor 330 is charged. This causes the voltage CTB to gradually increase. When the voltage CTB reaches the reference voltage VHB, the signal SIB goes from a low level to a high level, so that the RS latch circuit RSB is set and the control signal SWB goes from a low level to a high level.
[0017] When the control signal SWB is at a high level, the N-type transistor TRBc is on, and the capacitor 330 is discharged. This causes the voltage CTB to drop. When the voltage CTB reaches the reference voltage VLB, the signal RIB goes from a low level to a high level, so that the RS latch circuit RSB is reset and the control signal SWB goes from a high level to a low level.
[0018] The flip-flop circuit FFB inverts the logic level of the clock signal CLKB at each rising edge of the control signal SWB. The period TBs of the clock signal CLKB is twice the period of the control signal SWB.
[0019] The period TBs of the clock signal CLKB is affected by the current value n×(VREFB / RB) of the charging current ICB, the voltage value of the reference voltage VHB, the voltage value of the reference voltage VLB, and the discharge time. When the period TBs changes, the oscillation frequency 1 / TBs of the clock signal CLKB changes.
[0020] Specifically, the current value of the charging current ICB is determined by the reference voltage VREFB from the bandgap reference circuit, and is therefore affected by the temperature dependency of the bandgap reference voltage. On the other hand, the reference voltages VHB and VLB are different reference voltages from the reference voltage VREFB, and therefore their temperature dependencies are different from the temperature dependency of the reference voltage VREFB. For this reason, the temperature dependency of the charging current ICB and the temperature dependencies of the reference voltages VHB and VLB are not cancelled out, and the period TBs changes, and the oscillation frequency of the clock signal CLKB may change. FIG. 3 shows an example of a waveform CTBa. CTBa is an example of a waveform when the reference voltage VREFB is higher than CTB. When the reference voltage VREFB increases, the current value of the charging current ICB increases, but the reference voltages VHB and VLB do not change because they are independent of the reference voltage VREFB. In this example, the slope of CTBa is larger than the slope of CTB, and therefore the oscillation frequency of the clock signal CLKB increases. Thus, in the configuration examples of FIGS. 1 and 2, the oscillation frequency changes due to the change in the reference voltage VREFB.
[0021] Furthermore, the period TBs of the clock signal CLKB includes the discharge time of the capacitor 330. This discharge time varies depending on the temperature characteristics or process variations of the N-type transistor TRBc, and therefore there is a risk that the oscillation frequency of the clock signal CLKB will vary.
[0022] 4 shows a first configuration example of the oscillator circuit in this embodiment. The oscillator circuit 100 includes a reference voltage generating circuit 110, a current source circuit 120, a first capacitor 131, a second capacitor 132, a first discharge circuit 141, a second discharge circuit 142, a first comparator 151, a second comparator 152, and a clock signal output circuit 160. The oscillator circuit 300 is included in, for example, an integrated circuit device in which a plurality of circuit elements are integrated on a semiconductor substrate.
[0023] The reference voltage generating circuit 110 generates a reference voltage VREF, which is a constant voltage. The reference voltage generating circuit 110 is, for example, a bandgap reference circuit that generates a bandgap reference voltage as the reference voltage VREF. However, as described later, in this embodiment, even if the reference voltage VREF changes, the change in the oscillation frequency is suppressed. For this reason, the reference voltage generating circuit 110 may be various voltage generating circuits such as a resistive voltage divider circuit or a regulator.
[0024] The current source circuit 120 generates a first charging current IC1 and a second charging current IC2 according to a reference voltage VREF, outputs the first charging current IC1 to a node NCT1, and outputs the second charging current IC2 to a node NCT2. Specifically, IC1=VREF / α1, IC2=VREF / α2. Each of α1 and α2 is a positive real number in ohms, and details thereof will be described later with reference to FIG. 7. The current value of the first charging current IC1 and the current value of the second charging current IC2 are basically the same, but may be different.
[0025] One end of the first capacitor 131 is connected to the node NCT1, and the other end is connected to a low potential power supply node to which a low potential power supply VSS is supplied. The voltage of the low potential power supply VSS is, for example, a ground voltage.
[0026] One end of the second capacitor 132 is connected to the node NCT2, and the other end is connected to the low potential power supply node. The capacitance value of the first capacitor 131 and the capacitance value of the second capacitor 132 are basically the same, but may be different.
[0027] The non-inverting input terminal of the first comparator 151 is connected to the node NCT1, and the inverting input terminal is connected to the output node of the reference voltage generating circuit 110. The first comparator 151 compares the voltage CT1 of the node NCT1 with the reference voltage VREF, and outputs the result as an output signal CP1.
[0028] The second comparator 152 has a non-inverting input terminal connected to the node NCT2, and an inverting input terminal connected to the output node of the reference voltage generating circuit 110. The second comparator 152 compares the voltage CT2 at the node NCT2 with the reference voltage VREF, and outputs the result as an output signal CP2.
[0029] The clock signal output circuit 160 outputs the clock signal CLK based on the output signals CP1 and CP2. Specifically, the clock signal output circuit 160 causes the clock signal CLK to fall at the edge of the output signal CP1 and causes the clock signal CLK to rise at the edge of the output signal CP2.
[0030] The first discharge circuit 141 discharges the first capacitor 131 at a timing based on the clock signal CLK. Since the edge timing of the clock signal CLK is determined by the edge timing of the output signals CP1 and CP2, it can be said that the first discharge circuit 141 discharges the first capacitor 131 at a timing based on the output signals CP1 and CP2. The first discharge circuit 141 includes an inverter INV and an N-type transistor TR1. The drain of the N-type transistor TR1 is connected to the node NCT1, and the source is connected to the low potential side power supply node. The inverter INV outputs a logically inverted signal of the clock signal CLK to the gate of the N-type transistor TR1.
[0031] The second discharge circuit 142 discharges the second capacitor 132 at a timing based on the clock signal CLK. It can also be said that the second discharge circuit 142 discharges the second capacitor 132 at a timing based on the output signals CP1 and CP2. The second discharge circuit 142 includes an N-type transistor TR2. The drain of the N-type transistor TR2 is connected to the node NCT2, and the source of the N-type transistor TR2 is connected to the low potential side power supply node.
[0032] 5 shows a detailed configuration example of a clock signal output circuit. The clock signal output circuit 160 is an RS latch circuit 161. The output signal CP1 of the first comparator 151 is input to a reset terminal of the RS latch circuit 161, and the output signal CP2 of the second comparator 152 is input to a set terminal. The clock signal CLK is output from the output terminal of the RS latch circuit 161.
[0033] 6 shows an example of signal waveforms for explaining the operation of the oscillator circuit in this embodiment. When the clock signal CLK is at a high level, the N-type transistor TR1 of the first discharge circuit 141 is off. Therefore, the first capacitor 131 is charged by the first charging current IC1, and the voltage CT1 at one end of the first capacitor 131 rises. When the voltage CT1 reaches the reference voltage VREF, the output signal CP1 of the first comparator 151 goes from a low level to a high level. This resets the RS latch circuit 161, and the clock signal CLK goes from a high level to a low level.
[0034] When the clock signal CLK is at a low level, the N-type transistor TR1 of the first discharge circuit 141 is on. The N-type transistor TR1 shorts both ends of the first capacitor 131, discharging the charge of the first capacitor 131. Although Fig. 6 shows a waveform of the voltage CT1 that causes the discharge to occur instantaneously, in reality, the discharge time is determined by a time constant determined by the capacitance value of the first capacitor 131 and the on-resistance of the N-type transistor TR1.
[0035] Furthermore, when the clock signal CLK is at a low level, the N-type transistor TR2 of the second discharge circuit 142 is off. As a result, the second capacitor 132 is charged by the second charging current IC2, and the voltage CT2 at one end of the second capacitor 132 rises. When the voltage CT2 reaches the reference voltage VREF, the output signal CP2 of the second comparator 152 changes from a low level to a high level. This sets the RS latch circuit 161, and the clock signal CLK changes from a low level to a high level.
[0036] When the clock signal CLK is at a high level, the N-type transistor TR1 of the first discharge circuit 141 is off. As described above, when the voltage CT1 at one end of the first capacitor 131 reaches the reference voltage VREF, the clock signal CLK goes from a high level to a low level.
[0037] Furthermore, when the clock signal CLK is at a high level, the N-type transistor TR2 of the second discharge circuit 142 is on. The N-type transistor TR2 shorts both ends of the second capacitor 132, discharging the charge of the second capacitor 132. Although Fig. 6 shows a waveform of the voltage CT2 such that the discharge occurs instantaneously, in reality, the discharge time is determined by a time constant determined by the capacitance value of the second capacitor 132 and the on-resistance of the N-type transistor TR2.
[0038] In this embodiment, the period Ts of the clock signal CLK is the sum of the charging time of the first capacitor 131 and the charging time of the second capacitor 132. As described below, since the charging time is not affected by the change in the reference voltage VREF, the period Ts of the clock signal CLK is unlikely to change. Even when a band gap reference circuit generates the reference voltage VREF, the reference voltage VREF changes slightly due to temperature or other environmental factors. According to this embodiment, it is possible to cope with such a change in the reference voltage VREF. In addition, since it is not affected by the discharge time, even if the discharge time changes, the period Ts of the clock signal CLK is not affected. As a result, even if the reference voltage VREF changes, deviation of the oscillation frequency is unlikely to occur.
[0039] The point that the period Ts is not affected by the change in the reference voltage VREF will be explained. The period Ts is expressed by the following formula (1). Note that C1 is the capacitance value of the first capacitor 131, and C2 is the capacitance value of the second capacitor 132. Note that VSS=0V. Ts=(C1×VREF) / IC1+(C2×VREF) / IC2 (1)
[0040] As described above, the first charging current is IC1=VREF / α1, and the second charging current is IC2=VREF / α2. Substituting these into the above formula (1) gives the following formula (2). Ts = C1 × α1 + C2 × α2 (2)
[0041] In this way, since the threshold of the comparator is the reference voltage VREF and the charging current is proportional to the reference voltage VREF, they cancel each other out and the period Ts does not change. This is shown as waveforms CT1a, CT2a, CT1b, and CT2b in FIG. 6. CT1a and CT2a are examples of the waveforms of the capacitor voltages CT1 and CT2 when the reference voltage VREF rises to VREFa, and CT1b and CT2b are examples of the waveforms of the capacitor voltages CT1 and CT2 when the reference voltage VREF falls to VREFb. For example, the slope of the voltage CT1a is determined by the first charging current IC1, so it is proportional to the reference voltage VREFa. Since the threshold of the first comparator 151 is the reference voltage VREFa, the high level period of the clock signal CLK does not change. In other words, even if the reference voltage VREF changes to VREFa, it does not affect the period Ts.
[0042] 7 shows a first detailed configuration example of the current source circuit 120. The current source circuit 120 includes an amplifier circuit 121, a resistor RA, and a current mirror circuit 122.
[0043] The amplifier circuit 121 converts the reference voltage VREF into a current IA and outputs the current IA to a node NIA. One end of a resistor RA is connected to the node NIA, and the other end is connected to a low potential power supply node to which a low potential power supply VSS is supplied. The amplifier circuit 121 controls the voltage of the node NIA to be the reference voltage VREF, so that IA=VREF / RA. The amplifier circuit 121 includes an operational amplifier OPA, a P-type transistor TA, and a capacitor CA.
[0044] The source of the P-type transistor TA is connected to a high potential side power supply node to which a high potential side power supply VDD is supplied, and the drain is connected to a node NIA. The high potential side power supply VDD is a power supply with a higher voltage than the low potential side power supply VSS. The inverting input terminal of the operational amplifier OPA is connected to the output node of the reference voltage generating circuit 110. That is, a reference voltage VREF is input to the inverting input terminal. The non-inverting input terminal of the operational amplifier OPA is connected to the node NIA. The output terminal of the operational amplifier OPA is connected to the gate of the P-type transistor TA, and the output voltage OPAQ of the operational amplifier OPA is input to the gate of the P-type transistor TA. The capacitor CA is a capacitor for phase compensation. One end of the capacitor CA is connected to the output terminal of the operational amplifier OPA, and the other end is connected to the node NIA.
[0045] When the amplifier circuit 121 is viewed as a whole, the terminal to which the reference voltage VREF is input corresponds to the non-inverting input terminal of the amplifier circuit 121, and the inverting input terminal and output terminal of the amplifier circuit 121 are connected to the node NIA.
[0046] The current mirror circuit 122 outputs a first charging current IC1 and a second charging current IC2 by mirroring the current IA at a predetermined current ratio. The current mirror circuit 122 includes P-type transistors TB1, TB2, TC1, and TC2, and N-type transistors TB3 and TB4.
[0047] The P-type transistors TA and TB1 form a current mirror. That is, the current IA, which is the drain current of the P-type transistor TA, is mirrored, and the mirror current becomes the drain current of the P-type transistor TB1. This drain current becomes the drain current of the N-type transistor TB3.
[0048] The N-type transistors TB3 and TB4 form a current mirror. That is, the drain current of the N-type transistor TB3 is mirrored, and the mirror current becomes the drain current of the N-type transistor TB4. This drain current becomes the drain current of the P-type transistor TB2.
[0049] The P-type transistors TB2 and TC1 form a current mirror. That is, the drain current of the P-type transistor TB2 is mirrored, and the mirror current becomes the drain current of the P-type transistor TC1. This drain current is output as the first charging current IC1.
[0050] The P-type transistors TB2 and TC2 form a current mirror. That is, the drain current of the P-type transistor TB2 is mirrored, and the mirror current becomes the drain current of the P-type transistor TC2. This drain current is output as the second charging current IC2.
[0051] Let n1 be the mirror current ratio from current IA to the first charging current IC1, and n2 be the mirror current ratio from current IA to the second charging current IC2. Each of n1 and n2 may be a real number greater than 0. In this case, the first charging current is IC1=n1×IA=n1×(VREF / RA). In the above-mentioned IC1=VREF / α1, it is expressed by the following equation (3). The second charging current is IC2=n2×IA=n2×(VREF / RA). In the above-mentioned IC2=VREF / α2, it is expressed by the following equation (4). When n1=n2, α1=α2, so IC1=IC2. α1 = RA / n1 (3) α2 = RA / n2 (4)
[0052] In this embodiment, the oscillator circuit 300 includes a reference voltage generating circuit 110 that generates a reference voltage VREF, a current source circuit 120, a first capacitor 131, a first comparator 151, a first discharge circuit 141, and a clock signal output circuit 160. The current source circuit 120 receives the reference voltage VREF from the reference voltage generating circuit 110 and outputs a first charging current IC1 according to the reference voltage VREF. The first charging current IC1 is input to one end of the first capacitor 131. A voltage CT1 at one end of the first capacitor 131 is input to a first input terminal of the first comparator 151, and the reference voltage VREF from the reference voltage generating circuit 110 is input to a second input terminal of the first comparator 151. The first discharge circuit 141 discharges the first capacitor 131 at a timing based on an output signal CP1 of the first comparator 151. The clock signal output circuit 160 outputs a clock signal CLK based on the output signal CP 1 of the first comparator 151 .
[0053] According to this embodiment, the current source circuit 120 outputs a first charging current IC1 according to the reference voltage VREF, the first capacitor 131 is charged by the first charging current IC1, and the first comparator 151 compares the voltage CT1 at one end of the first capacitor 131 with the reference voltage VREF. As explained in the above equations (1) and (2), the change in the first charging current IC1 due to the change in the reference voltage VREF and the change in the reference voltage VREF, which is the threshold of the first comparator 151, cancel each other out, so that deviation in the oscillation frequency is unlikely to occur.
[0054] 4 shows an example in which the first input terminal of the first comparator 151 is a non-inverting input terminal and the second input terminal is an inverting input terminal. However, the oscillator circuit 300 may be configured such that the first input terminal of the first comparator 151 is an inverting input terminal and the second input terminal is a non-inverting input terminal.
[0055] In this embodiment, the oscillation circuit 300 includes a second capacitor 132, a second comparator 152, and a second discharge circuit 142. The second comparator 152 receives a voltage CT2 at one end of the second capacitor 132 at a first input terminal and a reference voltage VREF at a second input terminal. The second discharge circuit 142 discharges the second capacitor 132 at a timing based on an output signal CP2 of the second comparator 152. The current source circuit 120 outputs a second charging current IC2 according to the reference voltage VREF to one end of the second capacitor 132. The clock signal output circuit 160 outputs a clock signal CLK based on the output signal CP1 of the first comparator 151 and the output signal CP2 of the second comparator 152.
[0056] According to this embodiment, the change in the second charging current IC2 due to the change in the reference voltage VREF and the change in the reference voltage VREF, which is the threshold of the second comparator 152, are cancelled out, so that deviation of the oscillation frequency is unlikely to occur. In addition, the period Ts of the clock signal CLK is determined by the charging period until the voltage CT1 at one end of the first capacitor 131 reaches the reference voltage VREF from the potential of the low potential power supply VSS and the charging period until the voltage CT2 at one end of the second capacitor 132 reaches the reference voltage VREF from the potential of the low potential power supply VSS. As a result, the period Ts is not affected by the discharge time of the capacitor, so the oscillation frequency does not change even if the discharge time of the capacitor changes.
[0057] 4 shows an example in which the first input terminal of the second comparator 152 is a non-inverting input terminal and the second input terminal is an inverting input terminal. However, the oscillation circuit 300 may be configured such that the first input terminal of the second comparator 152 is an inverting input terminal and the second input terminal is a non-inverting input terminal.
[0058] Furthermore, in this embodiment, when the clock signal CLK is at the first logic level, the first discharge circuit 141 discharges the first capacitor 131. The second capacitor 132 is charged by the second charging current IC2. The clock signal output circuit 160 changes the clock signal CLK from the first logic level to the second logic level when the output signal CP2 of the second comparator 152 changes. When the clock signal CLK is at the second logic level, the second discharge circuit 142 discharges the second capacitor 132. The first capacitor 131 is charged by the first charging current IC1. The clock signal output circuit 160 changes the clock signal CLK from the second logic level to the first logic level when the output signal CP1 of the first comparator 151 changes.
[0059] According to this embodiment, the period Ts of the clock signal CLK is determined by the charging period until the voltage CT1 at one end of the first capacitor 131 reaches the reference voltage VREF and the charging period until the voltage CT2 at one end of the second capacitor 132 reaches the reference voltage VREF.
[0060] 4 and 6 show an example in which the first logic level is a low level and the second logic level is a high level. However, the oscillator circuit 300 may be configured so that the first logic level is a high level and the second logic level is a low level.
[0061] In this embodiment, the clock signal output circuit 160 includes an RS latch circuit 161. The output signal CP1 of the first comparator 151 is input to a reset terminal of the RS latch circuit 161, and the output signal CP2 of the second comparator 152 is input to a set terminal of the RS latch circuit 161. The clock signal output circuit 160 outputs a clock signal CLK of a first logic level when the RS latch circuit 161 is reset, and outputs a clock signal CLK of a second logic level when the RS latch circuit 161 is set. In this embodiment, when the clock signal CLK is at the first logic level, the first discharge circuit 141 performs a discharge operation. When the clock signal CLK is at the second logic level, the second discharge circuit 142 performs a discharge operation.
[0062] According to this embodiment, when the clock signal CLK is at the first logic level, the second capacitor 132 is charged, and when the voltage CT2 at one end of the second capacitor 132 reaches the reference voltage VREF, the RS latch circuit 161 is set, and the clock signal CLK changes from the first logic level to the second logic level. When the clock signal CLK is at the second logic level, the first capacitor 131 is charged, and when the voltage CT1 at one end of the first capacitor 131 reaches the reference voltage VREF, the RS latch circuit 161 is reset, and the clock signal CLK changes from the second logic level to the first logic level. As a result, the period Ts of the clock signal CLK is determined by the charging period of the first capacitor 131 and the charging period of the second capacitor 132.
[0063] 5 shows an example in which the RS latch circuit 161 outputs a clock signal CLK. In this case, the first logic level is a low level, and the second logic level is a high level. However, as long as the clock signal CLK is output based on the output signal of the RS latch circuit 161, the first logic level may be a high level, and the second logic level may be a low level. For example, some logic element may be inserted between the output of the RS latch circuit 161 and the output of the clock signal output circuit 160.
[0064] In this embodiment, the capacitance of the first capacitor 131 is C1, the capacitance of the second capacitor 132 is C2, the reference voltage is VREF, the first charging current IC1 according to the reference voltage VREF is VREF / α1, the second charging current IC2 according to the reference voltage VREF is VREF / α2, and the period of the clock signal CLK is Ts, where Ts=C1×α1+C2×α2.
[0065] In this way, the change in the first charging current IC1 due to the change in the reference voltage VREF and the change in the reference voltage VREF, which is the threshold of the first comparator 151, cancel each other out, so that the period Ts of the clock signal CLK is less likely to change. As a result, even if the reference voltage VREF changes, deviation in the oscillation frequency is less likely to occur.
[0066] Fig. 8 shows a second configuration example of the oscillator circuit. The oscillator circuit 100 further includes a memory circuit 170. Note that the same components as those described in Fig. 4 are denoted by the same reference numerals, and the description of those components will be omitted as appropriate.
[0067] The memory circuit 170 stores information MRT indicating the current ratio of the current mirror in the current source circuit 120. The current source circuit 120 outputs the first charging current IC1 and the second charging current IC2 by performing current mirroring with a variable current ratio. The current ratio is a current ratio indicated by the information MRT. As a result, the first charging current IC1 and the second charging current IC2 are adjusted by the information MRT, and the oscillation frequency of the clock signal CLK is adjusted accordingly. The memory circuit 170 is a register or a memory. The memory is a volatile memory such as a RAM, or a non-volatile memory such as an OTP memory or an EEPROM. RAM stands for Random Access Memory. OTP stands for One Time Programmable. EEPROM stands for Electrically Erasable Programmable Read Only Memory. For example, the oscillator circuit 300 includes an interface circuit that receives information MRT of the current ratio from the outside, and the memory circuit 170 stores the received information MRT of the current ratio. When the storage circuit 170 is a non-volatile memory, the information MRT of the current ratio may be stored in advance in the non-volatile memory during an inspection process or the like.
[0068] Fig. 9 is a second detailed configuration example of the current source circuit. The current source circuit 120 includes an amplifier circuit 121, a resistor RA, and a current adjustment circuit 125. Note that the same components as those described in Fig. 7 are denoted by the same reference numerals, and the description of those components will be omitted as appropriate.
[0069] The current adjustment circuit 125 includes a mirror ratio adjustment circuit 126, P-type transistors TB2, TC1, and TC2, and N-type transistors TB3 and TB4.
[0070] The mirror ratio adjustment circuit 126 outputs the current IB by mirroring the current IA at a current ratio indicated by the current ratio information MRT. This current IB becomes the drain current of the N-type transistor TB3. The mirror current ratio from the current IA to the current IB is na, the mirror current ratio from the current IB to the first charging current IC1 is n1b, and the mirror current ratio from the current IB to the second charging current IC2 is n2b. At this time, the first charging current is IC1=(na×n1b)×IA, and the second charging current is IC2=(na×n2b)×IA. The current ratio na is variably adjusted by the information MRT, so that the first charging current IC1 and the second charging current IC2 are variably adjusted.
[0071] In the above (3) and (4), α1=RA / (na×n1b), α2=RA / (na×n2b). Substituting this into the above equation (2) gives the following equation (5). That is, by changing the current ratio na using the current ratio information MRT, the period Ts of the clock signal CLK can be adjusted, that is, the oscillation frequency of the clock signal CLK can be adjusted. Ts=C1×RA / (na×n1b)+C2×RA / (na×n2b) ···(5)
[0072] 10 is a detailed configuration example of the mirror ratio adjustment circuit. The mirror ratio adjustment circuit 126 includes P-type transistors TD1 to TD8 and TE1 to TE8. Here, an example will be described in which the current ratio information MRT is 8-bit data MRT[7:0], but the number of bits may be 2 or more.
[0073] Let i be an integer between 1 and 8. The P-type transistors TDi and TEi are connected in series between the high-potential power supply node and the drain of the N-type transistor TB3. Specifically, the source of the P-type transistor TDi is connected to the high-potential power supply node, and the drain is connected to the source of the P-type transistor TEi. The drain of the P-type transistor TEi is connected to the drain of the N-type transistor TB3. The gate of the P-type transistor TDi is connected to the gate of the P-type transistor TA, and the P-type transistors TA and TDi form a current mirror. The bit MRT[i-1] is input to the gate of the P-type transistor TEi. When MRT[i-1]=0, the P-type transistor TEi is on, and a current IB including the drain current of the P-type transistor TDi is output. When MRT[i-1]=1, the P-type transistor TEi is off, and the drain current of the P-type transistor TDi is cut off.
[0074] Let nai be the mirror current ratio from the current IA to the drain current of the P-type transistor TDi. This current ratio is weighted by a power of 2. For example, nai = 0.25 × 2 (i-1) It is.
[0075] In this embodiment, the current source circuit 120 includes an amplifier circuit 121, a resistor RA, and a current adjustment circuit 125. A reference voltage VREF is input to the non-inverting input terminal of the amplifier circuit 121, and an output terminal is connected to the inverting input terminal. One end of the resistor RA is connected to the output terminal of the amplifier circuit 121, and the other end is connected to a low potential side power supply node. The current adjustment circuit 125 mirrors the current IA flowing through the resistor RA at a variable current ratio, and outputs the mirrored current as a first charging current IC1 and a second charging current IC2.
[0076] As explained in the above formula (5), by variably adjusting the current ratio, it becomes possible to variably adjust the oscillation frequency of the clock signal CLK. For example, it is possible to adjust the oscillation frequency to match the specifications of a circuit that uses the clock signal CLK. Note that, as shown in the above formula (5), even if the current ratio is changed, the period Ts of the clock signal CLK does not depend on the reference voltage VREF, so even if the reference voltage VREF fluctuates, there is still no deviation in the oscillation frequency.
[0077] This embodiment also includes a storage circuit 170 that stores information MRT on the current ratio. The current adjustment circuit 125 mirrors the current IA flowing through the resistor RA at a current ratio indicated by the information MRT.
[0078] According to this embodiment, by storing in the memory circuit 170 the information MRT of the current ratio corresponding to a desired oscillation frequency, the oscillation frequency of the clock signal CLK can be adjusted to the desired oscillation frequency.
[0079] Although the present embodiment has been described in detail as above, it will be easily understood by those skilled in the art that many modifications are possible without substantially departing from the novel matters and effects of the present disclosure. Therefore, all such modifications are intended to be included in the scope of the present disclosure. For example, a term described at least once in the specification or drawings together with a different term having a broader meaning or synonymy can be replaced with that different term anywhere in the specification or drawings. In addition, all combinations of the present embodiment and modifications are also included in the scope of the present disclosure. In addition, the configurations and operations of the reference voltage generating circuit, current source circuit, discharge circuit, clock signal output circuit, and oscillation circuit are not limited to those described in the present embodiment, and various modifications are possible. [Explanation of symbols]
[0080] 100...oscillating circuit, 110...reference voltage generating circuit, 120...current source circuit, 121...amplifier circuit, 122...current mirror circuit, 125...current adjusting circuit, 126...mirror ratio adjusting circuit, 131...first capacitor, 132...second capacitor, 141...first discharging circuit, 142...second discharging circuit, 151...first comparator, 152...second comparator, 160...clock signal output circuit, 161...RS latch circuit, 170...memory circuit, CLK...clock signal, IC1...first charging current, IC2...second charging current, MRT...current ratio information, Ts...period, VREF...reference voltage
Claims
1. a reference voltage generating circuit for generating a reference voltage; a current source circuit that receives the reference voltage from the reference voltage generating circuit and outputs a first charging current corresponding to the reference voltage; a first capacitor to one end of which the first charging current is input; a first comparator having a first input terminal to which the voltage at one end of the first capacitor is input and a second input terminal to which the reference voltage from the reference voltage generating circuit is input; a first discharge circuit that discharges the first capacitor at a timing based on an output signal of the first comparator; a clock signal output circuit that outputs a clock signal based on an output signal of the first comparator; 1. An oscillator circuit comprising:
2. 2. The oscillator circuit according to claim 1, A second capacitor; a second comparator having a first input terminal to which the voltage at one end of the second capacitor is input and a second input terminal to which the reference voltage is input; a second discharge circuit that discharges the second capacitor at a timing based on an output signal of the second comparator; Including, the current source circuit outputs a second charging current corresponding to the reference voltage to one end of the second capacitor; The clock signal output circuit outputs the clock signal based on an output signal of the first comparator and an output signal of the second comparator.
3. 3. The oscillator circuit according to claim 2, when the clock signal is at a first logic level, the first discharging circuit discharges the first capacitor and the second capacitor is charged by the second charging current, the clock signal output circuit changes the clock signal from the first logic level to a second logic level when an output signal of the second comparator changes; When the clock signal is at the second logic level, the second discharging circuit discharges the second capacitor and the first capacitor is charged by the first charging current, and the clock signal output circuit changes the clock signal from the second logic level to the first logic level when the output signal of the first comparator changes.
4. 3. The oscillator circuit according to claim 2, The clock signal output circuit includes: an RS latch circuit having an output signal of the first comparator input to a reset terminal and an output signal of the second comparator input to a set terminal; 1. An oscillator circuit, comprising: an oscillator circuit configured to output the clock signal at a first logic level when the RS latch circuit is reset; and an oscillator circuit configured to output the clock signal at a second logic level when the RS latch circuit is set.
5. 5. The oscillator circuit according to claim 4, when the clock signal is at a first logic level, the first discharge circuit performs a discharge operation; 2. An oscillator circuit, comprising: a first discharging circuit that performs a discharging operation when the clock signal is at a second logic level;
6. 3. The oscillator circuit according to claim 2, When the capacitance value of the first capacitor is C1, the capacitance value of the second capacitor is C2, the reference voltage is VREF, the first charging current corresponding to the reference voltage is VREF / α1, the second charging current corresponding to the reference voltage is VREF / α2, and the period of the clock signal is Ts, Ts=C1×α1+C2×α2 1. An oscillator circuit comprising:
7. 2. The oscillator circuit according to claim 1, The current source circuit comprises: an amplifier circuit having a non-inverting input terminal to which the reference voltage is input and an output terminal to which an inverting input terminal is input; a resistor having one end connected to an output terminal of the amplifier circuit and the other end connected to a low potential side power supply node; a current adjustment circuit that mirrors the current flowing through the resistor at a variable current ratio and outputs the mirrored current as the first charging current; 1. An oscillator circuit comprising:
8. 3. The oscillator circuit according to claim 2, The current source circuit comprises: an amplifier circuit having a non-inverting input terminal to which the reference voltage is input and an output terminal to which an inverting input terminal is input; a resistor having one end connected to an output terminal of the amplifier circuit and the other end connected to a low potential side power supply node; a current adjustment circuit that mirrors the current flowing through the resistor at a variable current ratio and outputs the mirrored current as the first charging current and the second charging current; 1. An oscillator circuit comprising:
9. 9. The oscillator circuit according to claim 7, a memory circuit for storing information on the current ratio; The current adjustment circuit includes: An oscillator circuit, characterized in that a current flowing through the resistor is mirrored at a current ratio indicated by the information.
Citation Information
Patent Citations
Oscillator
JP2014033425A
