The disclosure of Japanese Patent Application No. 2010-213441 filed on Sep. 24, 2010 including the specification, drawings and abstract is incorporated herein by reference in its entirety.
The present invention relates to a technology which is effective for a semiconductor device having a clock oscillation circuit which generates a clock signal used for a circuit operation.
In a semiconductor device such as a microcomputer, a reduction in external components is required for a device size reduction, a cost reduction, and the like. Examples of the semiconductor device include one in which a clock oscillation circuit for generating a clock signal to be supplied to internal modules such as a CPU (Central Processing Unit) and a peripheral functional block is embedded.
In general, the semiconductor device further has a frequency divider for dividing the frequency of the clock signal generated by the clock oscillation circuit. The frequency divider is provided so as to increase clock frequency options to be chosen by selecting a frequency division ratio.
The clock oscillation circuit has, for example, a reference voltage generation circuit, a current generation circuit, a control circuit, a frequency-voltage conversion circuit, and an oscillation circuit. The frequency-voltage conversion circuit, the oscillation circuit, and the control circuit form a feedback loop.
The reference voltage generation circuit generates each of reference voltages VREFI and VREFC, and outputs the generated reference voltages VREFI and VREFC to the current generation circuit and the oscillation circuit. As the current generation circuit, a constant current generation circuit is used which outputs a substantially constant current based on the reference voltages.
Here, a current Iref having small power-supply/temperature dependence is generated. The frequency-voltage conversion circuit generates a voltage VSIG based on the current Iref generated by the current generation circuit, a capacitance, and a control signal generated by the control circuit.
The control circuit generates the control signal based on the clock signal generated by a voltage controlled oscillation circuit. The frequency-voltage conversion circuit generates a voltage based on the current generated by the current generation circuit, the capacitance, and the control signal generated by the control circuit from the clock signal outputted from the voltage controlled oscillation circuit. The oscillation circuit has an integration circuit.
The integration circuit changes the control voltage of the voltage controlled oscillation circuit such that the reference voltage VREFC generated by the reference voltage generation circuit is equal to the voltage VSIG outputted from the frequency-voltage conversion circuit to adjust the clock frequency to a desired frequency.
As an example of this type of clock oscillation circuit, there is known a clock oscillation circuit in which a current controlled oscillator, a frequency divider, a frequency comparison circuit, an integrator, and a voltage-current conversion circuit are coupled in series. By feed-backing an output current of the voltage-current conversion circuit in the final stage to the input side of the current controlled oscillator in the first stage, and using an output of the current controlled oscillator as an oscillation output, the stabilization of an oscillation frequency and an improvement in oscillation accuracy are intended to be achieved (see Patent Document 1).
However, the present inventors have found that a clock generation technique in a clock oscillation circuit provided within a semiconductor device as described above has the following problem.
The on-chip oscillator is formed of a clock oscillation circuit in which a reference voltage generation circuit, a current generation circuit, a control circuit, a frequency-voltage conversion circuit, an integration circuit, and a voltage controlled oscillation circuit form a feedback loop.
An oscillation frequency T of a clock signal generated by the clock oscillation circuit described above is represented by the following expression (1) including a capacitance C embedded in the frequency-voltage conversion circuit, a constant current component VREFI/R generated in the circuit, and the reference voltage VREFC.
The oscillation frequency T is held constant by controlling a ratio between the reference voltages VREFI and VREFC with respect to the capacitance C and the resistance R which are constants.
An operation of the circuit of
The reference voltage generation circuit generates the reference voltages VREFC and VREFI, and outputs the generated reference voltages VREFC and VREFI to the current generation circuit and the integration circuit. The current generation circuit internally generates the constant current Iref showing small temperature dependence in response to a power supply voltage change or a temperature change, converts the constant current Iref at a constant ratio using a current mirror circuit to generate a current Iconst, and outputs the generated current Iconst to the frequency-voltage conversion circuit. The frequency-voltage conversion circuit generates the voltage VSIG using the current Iconst outputted from the current generation circuit and control signals ZCHR, DISC, and SAMP generated by the control circuit from the clock from the voltage controlled oscillation circuit. Each of the control signals ZCHR, DISC, and SAMP has a pulse width equal to an output clock frequency. The integration circuit samples the voltage VSIG, changes a control voltage VCNT from the voltage controlled oscillation circuit such that the reference voltage VREFC having no power-supply/temperature dependence is equal to the output VSIG of the frequency-voltage conversion circuit, and adjusts the clock frequency to a desired frequency.
In the clock oscillation circuit, error factors resulting from the temperature characteristics of elements included in the circuit, variations in the circuit, and the like exist, as shown in an expression (2) which is shown in contrast to the expression (1).
In the expression (2), C(t) represents an electrostatic capacitive element having temperature dependence in contrast to the ideal capacitance C in the expression (1) and R(t) represents a resistive element having temperature dependence in contrast to the ideal resistance R in the expression (1), while M is a constant of the ratio of the current conversion using the current mirror circuit for a frequency switching function, though not shown in the expression (1).
Examples of the error factors include the following: (i) the current error ΔImismatch resulting from the threshold voltage mismatch ΔVth between transistors included in the current mirror circuit or the like, which is added to or subtracted from the current component in the denominator of the expression (1) to become an error; (ii) the parasitic capacitance Cp1 at a terminal NDD reached by the current flowing from the current generation circuit to the frequency-voltage conversion circuit and the voltage variation ΔVNDD at the terminal NDD, which are added to the component of the product between the capacitance and the voltage in the numerator to become errors; (iii) the parasitic capacitance Cp1 coupled to the output signal from the frequency-voltage conversion circuit, which is added to the internal capacitance C(t) of the frequency-voltage conversion circuit to become an error; (ix) the sub-threshold leakage Ioff in the transistors included in the current mirror circuit, which is added to the current component in the denominator to become an error; and (v) the offset voltages Vof1 and V of2 in the current generation circuit and the operational amplifier of the integration circuit, which are added to the respective voltage components VREFI and VREFC in the denominator and the numerator to become errors.
The current error ΔImismatch as the error factor (i) changes when the frequency is switched with the constant M to cause a variation in an expected frequency. The switching of the frequency is a function which is embedded when needed according to the specifications of the semiconductor device. However, by switching the frequency, frequency accuracy varies to possibly cause a problem such as the influence thereof on an application.
To thus provide the clock signal with high frequency accuracy, it is essential to take measures against the error factor in the expression (2), and implement constant accuracy irrespective of the frequency.
In the conventional semiconductor device, when the clock frequency (including an operation frequency generated based on the clock frequency) is to be changed, the constant M is changed. The constant M is changed by changing the transistor size of the current mirror circuit. However, when the transistor size is changed, the current error ΔImismatch changes due to fluctuations in transistor variations.
Thus, it has been found that, when the clock frequency is switched, the influence of the transistor variations is one of important factors, and varies the clock frequency.
An object of the present invention is to provide a technology which enables a high-accuracy clock signal to be generated even when the settings of the clock frequency are changed or there is a variation in power supply, temperature, or the like.
The above and other objects and novel features of the present invention will become apparent from a statement in the present specification and the accompanying drawings.
The following is a brief description of the outline of a representative aspect of the invention disclosed in the present application.
The present invention is characterized by including a power supply terminal to which an external power supply voltage is supplied, a clock oscillation circuit which outputs a clock signal, and an internal circuit which operates in accordance with an operation frequency generated based on the foregoing clock signal, wherein the foregoing clock oscillation circuit has a current output circuit capable of adjusting dependence of an output current therefrom on the foregoing power supply voltage and a temperature, a frequency-voltage conversion circuit which has a plurality of electrostatic capacitive elements coupled in parallel to a capacitive node for receiving the foregoing output current, and changes the number of the electrostatic capacitive elements to be coupled to thereby change a frequency of the foregoing clock signal, and a clock setting portion which generates a clock setting signal for setting the frequency of the foregoing clock signal, and outputs the clock setting signal to the foregoing frequency-voltage conversion circuit.
The following is a brief description of effects achievable by the representative aspect of the invention disclosed in the present application.
(1) Since it is possible to vary the capacitance value of the frequency-voltage conversion circuit, and perform the switching of the frequency of the clock signal, a high-accuracy clock signal can be generated.
(2) The effect (1) described above allows the reliability of the semiconductor device to be improved.
Hereinbelow, the embodiments of the present invention will be described in detail based on the drawings. Note that, throughout all the drawings for illustrating the embodiments, the same members are designated by the same reference numerals in principle, and a repeated description thereof is omitted.
A semiconductor device of the present invention includes a power supply terminal (power supply terminal 100) to which an external power supply voltage is supplied, a clock oscillation circuit (clock oscillation circuit 2) which outputs a clock signal, and an internal circuit (internal circuit 19) which operates in accordance with an operation frequency generated based on the foregoing clock signal. The foregoing clock oscillation circuit has a configuration including a current output circuit (current output circuit 11) capable to adjusting the dependence of an output current on the foregoing power supply voltage and a temperature, and a frequency-voltage conversion circuit (frequency-voltage conversion circuit 13) which has a plurality of electrostatic capacitive elements (first electrostatic capacitive element portion 113 and a second electrostatic capacitive element portion 114) capable of being coupled in parallel to a capacitive node (capacitive node 112) for receiving the foregoing output current, and changes the number of the capacitors to be coupled to thereby change a frequency of the foregoing clock signal.
A semiconductor device in a second form of the present invention includes a clock oscillation circuit (clock oscillation circuit 2), and an internal circuit (internal circuit 19) which operates in accordance with an operation frequency generated based on a clock signal outputted from the foregoing clock oscillation circuit. The foregoing clock oscillation circuit has a configuration including a constant current circuit (current output circuit 11) for supplying a constant output current, a capacitive node (capacitive node 112) for receiving the output current from the foregoing constant current circuit, a frequency-voltage conversion circuit having electrostatic capacitive elements capable of being coupled in parallel to the capacitive node, and a switch for switching the number of the electrostatic capacitive elements to be coupled to the foregoing capacitive node, and an oscillation circuit (oscillation circuit 18) for setting a frequency of the clock signal based on an output signal from the foregoing frequency-voltage conversion circuit, and outputting the foregoing clock signal.
A semiconductor device 1 includes a power supply terminal 100, a clock oscillation circuit 2, and an internal circuit 19. To the power supply terminal 100, a power supply voltage is supplied from outside the semiconductor device. As the power supply voltage, a voltage in a range of, e.g., 1 V to 5 V is supplied. The clock oscillation circuit 2 is supplied with the power supply voltage from the power supply terminal 100, and outputs a clock signal. The internal circuit 19 operates by receiving the clock signal.
The clock oscillation circuit 2 has a current output circuit 11, a frequency-voltage conversion circuit 13, a clock setting portion 111, an oscillation circuit 18, and a control circuit 12. The current output circuit 11 outputs an output current having dependence on the power supply voltage and a temperature that can be adjusted.
As the current output circuit 11, there is used a constant current circuit which is generally immune to the influence of the dependence on the power supply voltage and the temperature, and outputs a constant current which is substantially constant even when the power supply voltage or the temperature changes or the like.
The output current of the current output circuit 11 is supplied to the frequency-voltage conversion circuit 13. The current output circuit 11 has a reference voltage generation circuit 10 and a current generation circuit 1011. The reference voltage generation circuit 10 is coupled to the power supply terminal 100, and generates a reference voltage from the power supply voltage with a voltage serving as a reference in the semiconductor device.
The current generation circuit 1011 receives the reference voltage, and outputs an output current. The frequency-voltage conversion circuit 13 is configured as follows, and a voltage is outputted from the capacitive node 112. The frequency-voltage conversion circuit 13 has a first electrostatic capacitive element portion 113, which is coupled to the capacitive node 112.
To the capacitive node 112, a second electrostatic capacitive element portion 114 is further coupled via capacitor selection switches 115. The first and second electrostatic capacitive element portions are coupled in parallel between a reference voltage node 120 to which the reference voltage is supplied and the capacitive node 112. As the reference voltage, 0 V is normally supplied but, another voltage may also be supplied as the reference voltage as long as it is lower than the power supply voltage.
The clock oscillator circuit 2 also has a charge switch 121 coupled between an output node 125 from which the output current of the current output circuit 11 is outputted and the capacitive node 112, and a discharge switch 122 coupled between the capacitive node 112 and the reference voltage node 120.
When the charge switch 121 is turned ON, the output current flows to the capacitive node 112 to raise the voltage of the capacitive node 112. When the discharge switch 122 is turned ON, the voltage of the capacitive node 112 lowers.
In accordance with the frequency of the clock signal, ON/OFF timings for the charge switch 121 and the discharge switch 122 are controlled. Note that, in general, the respective ON timings for the charge switch 121 and the discharge switch 122 are set to cause complementary operations.
The speed at which the voltage of the capacitive node 112 changes varies depending on the frequency of the clock signal.
The oscillator circuit 18 receives the voltage of the capacitive node 112, and outputs the clock signal to the internal circuit 19. The oscillator circuit 18 changes the frequency of the clock signal in accordance with the voltage value of the capacitive node 112.
As the oscillator circuit, a ring oscillator or the like is typically used. The clock signal is sent also to the control circuit 12. The control circuit 12 controls the ON/OFF states of the charge switch 121 and the discharge switch 122 in accordance with the clock signal.
The frequency-voltage conversion circuit 13, the oscillator circuit 18, and the control circuit 12 form a feedback loop which generates the clock signal with a constant frequency. The internal circuit 19 includes circuits which receive the clock signal, and operate based on the clock signal, such as a CPU, an A/D (Analog/Digital) conversion circuit, and a frequency divider circuit for dividing the frequency of the clock signal.
The clock setting portion 111 generates a clock setting signal, and outputs the generated clock setting signal to the frequency-voltage conversion circuit 13. The capacitor selection switches 115 of the frequency-voltage conversion circuit 13 are controlled by the clock setting signal.
In this manner, the number of the electrostatic capacitive elements of the second electrostatic capacitive element portion 114 coupled to the capacitive node 112 is determined. As the number of the electrostatic capacitive elements coupled to the capacitive node 112 increases, the capacitance value of the capacitive node 112 increases, and the voltage change at the capacitive node 112 becomes slower.
That is, using the capacitance of the capacitive node 112, the voltage change at the capacitive node 112 can be adjusted. This allows the frequency of the clock signal to be changed. To adjust the voltage change at the capacitive node 112, a method can also be considered which adjusts an amount of the output current from the current output circuit 11.
As a method for adjusting the output current, it can be considered to adjust the sizes of transistors for supplying the current and the number of the transistors coupled in series.
However, the present inventors have noticed that, due to variations in the transistors for adjustment, it is difficult to generate a clock signal with high accuracy. The present inventors have also noticed that, particularly when the targeted frequency of the clock signal to be set is varied on a per semiconductor-device basis, it is difficult to control, e.g., variations relative to the high-accuracy targeted frequency to 5%, and further to 1% or less.
Depending on the application of equipment in which the semiconductor device 1 is mounted, the operation frequency of the internal circuit 19 may differ so that the clock frequency is also set to a different frequency. For example, the targeted frequency of the clock frequency is 10 MHz to 60 MHz.
As a result of examining the characteristics of elements, the present inventors have noticed that a frequency with higher accuracy relative to the targeted frequency can be generated by changing the number of the electrostatic capacitive elements to be coupled to the capacitive node 112 rather than by changing the targeted frequency using the transistors for supplying the current.
MOS transistors have manufacturing-derived characteristic variations. The characteristic variations result from a large number of factors such as, e.g., threshold voltage, gate length, and gate oxide film thickness. By contrast, the accuracy of the capacitance value of, e.g., a polysilicon-insulator-polysilicon capacitor or a metal-insulator-metal capacitor formed over a semiconductor element is substantially determined by the processing accuracy of element dimensions. In particular, the accuracy of the ratio between the respective capacitance values of the electrostatic capacitive elements formed in proximity over the same chip is high. Accordingly, compared with variations in the MOS transistors, variations in the electrostatic capacitive elements are relatively small.
As a result, instead of using a method which changes the sizes of transistors or the number of transistors coupled in parallel to thereby change the current value, by using a method which changes the values of the electrostatic capacitive elements and the number of the electrostatic capacitive elements coupled in parallel, the frequency of the clock signal can be adjusted with high accuracy.
Thus, by changing the number of the electrostatic capacitive elements coupled to the capacitive node 112, it is possible to generate the frequency with high accuracy relative to the targeted frequency.
Hereinbelow, a further description will be given of an internal configuration.
In Embodiment 1, as shown in
The clock oscillation circuit 2 serving as a clock oscillation means generates the clock signal supplied to the internal modules of the semiconductor device 1. The frequency divider circuit 5 varies the clock signal generated by the clock oscillation circuit 2 by dividing the frequency thereof, and supplies the varied clock signal as an operation clock to the internal modules such as the frequency divider circuit 5, the CPU 6, the A/D converter 7, and the timer 8 and the peripheral circuit 9 as one of the other modules.
The CPU 6 controls operations in the semiconductor device 1. The A/D converter 7 converts an analog signal to a digital signal. The timer 8 counts up a timer clock or the like to make desired time settings, and outputs a timer counter signal when a given time is reached.
The memory 4 is formed of a nonvolatile memory exemplified by a flash memory, and stores control signals after trimming from the clock oscillation circuit 2. Upon activation of the semiconductor device 1, the control signals stored in the memory 4 are read and stored into the register 3.
The operation of the clock oscillation circuit 2 is controlled based on the control signals stored in the register 3. The control signals stored in the memory 4 include temperature trimming signals VCNTL_VREFI and VCNTL_VREFC, frequency adjustment control signals SELI and SELC as adjustment signals for achieving the targeted frequency, and the like.
As shown in the drawing, the clock oscillation circuit 2 is comprised of the reference voltage generation circuit 10, the current output circuit 11, the control circuit 12, the frequency-voltage conversion circuit 13, and an oscillation circuit including an integration circuit 14 and a voltage controlled oscillation circuit 15, and is a clock generation circuit in which these circuits form a feedback loop.
The reference voltage generation circuit 10 includes a band gap reference circuit BGR, resistors R1 to R4, and a transistor Q1 formed of a bipolar element. The current output circuit 11 includes an operational amplifier AMP1 and transistors T1 and T2 each formed of a P-channel MOS transistor.
The frequency-voltage conversion circuit 13 includes switches SW1 to SW3 and an electrostatic capacitive element C1. The integration circuit 14 includes an operational amplifier AMP2 and an electrostatic capacitive element C2.
The reference voltage generation circuit 10 generates a reference voltage VREFI having a temperature characteristic as shown in the upper left-hand portion of
In the reference voltage generation circuit 10, the band gap reference circuit BGR is a circuit as a reference voltage source which generates a voltage showing a small change in response to a temperature change. Here, the band gap reference circuit BGR generates a current Iptat having positive primary temperature dependence. Note that the voltage change in response to the temperature change is smaller than, e.g., a change in the saturation current of a MOS transistor in response to a temperature change.
To the output portion of the band gap reference circuit BGR, one coupling portion of the register R1 is coupled. A voltage generated in the resistor R1 is the reference voltage VREFI, which is outputted to the current output circuit 11.
To the other coupling portion of the resistor R1, the collector and base of the transistor Q1 and one coupling portion of the resistor R3 are each coupled. To the emitter of the transistor Q1, one coupling portion of the resistor R2 is coupled. To the other coupling portion of the resistor R2, a reference potential VSS is coupled.
To the other coupling portion of the resistor R3, one coupling portion of the resistor R4 is coupled. To the other coupling portion of the resistor R4, the reference potential VSS is coupled. The voltage generated at the coupling portion between the resistors R3 and R4 is outputted as the reference voltage VREFC to the integration circuit 14.
The current output circuit 11 generates a current Iref having small power-supply/temperature dependence as shown in the lower left-hand portion of
To the negative (−) input terminal of the operational amplifier AMP1, the reference voltage VREFI is coupled to be inputted thereto. To the output portion of the operational amplifier AMP1, the gates of the transistors T1 and T2 are each coupled.
To each of the sources of the transistors T1 and T1, a power supply voltage VDD is coupled to be supplied thereto. To the drain of the transistor T1, the positive (+) input terminal of the operational amplifier AMP1 and one coupling portion of the resistor Rosc are each coupled.
To the other coupling portion of the resistor Rosc, the reference potential VSS is coupled. From the other coupling portion of the transistor T2, a current Iconst is outputted. From the drain of the transistor T2, a voltage VNDD is supplied to the switch SW1 of the frequency-voltage conversion circuit 13.
The frequency-voltage conversion circuit 13 generates, based on a control signal ZCHR generated in the control circuit 12, a voltage VSIG from the current Iconst (M·Iref), the capacitance of the electrostatic capacitive element C1, and a clock signal CKOUT outputted from the voltage controlled oscillation circuit 15. The control signal ZCHR is a signal having a pulse width equal to the frequency of the clock signal CKOUT.
In the frequency-voltage conversion circuit 13, to one coupling portion of the switch SW1, the voltage VNDD is coupled to be supplied thereto. To the other coupling portion of the switch SW1, one coupling portion of the switch SW2, one coupling portion of the switch SW3, and one coupling portion of the electrostatic capacitive element C1 are each coupled. To each of the other coupling portions of the switch SW2 and the electrostatic capacitive element C1, the reference potential VSS is coupled.
The ON/OFF (conductive/non-conductive) state of the switch SW1 is controlled based on the control signal ZCHR outputted from the control circuit 12. The ON/OFF (conductive/non-conductive) state of the switch SW2 is controlled based on a control signal DISC outputted from the control circuit 12. The ON/OFF (conductive/non-conductive) state of the switch SW3 is controlled based on a control signal SAMP similarly outputted from the control circuit 12.
The integration circuit 14 is formed of, e.g., a parallel-switched-capacitor integration circuit, and samples the voltage VSIG. The integration circuit 14 generates a control voltage VCNT such that the reference voltage VREFC having small power-supply/temperature dependence is equal to the voltage VSIG outputted from the frequency-voltage conversion circuit 13.
To the negative (−) input terminal of the operational amplifier AMP2 and one coupling portion of the electrostatic capacitive element C2, the voltage VSIG outputted from the other coupling portion of the switch SW3 is coupled to be inputted thereto.
To the positive (+) input terminal of the operational amplifier AMP2, the reference voltage VREFC is coupled to be inputted thereto. To the output portion of the operational amplifier AMP2, the other coupling portion of the electrostatic capacitive element C2 is coupled, and outputted as the control voltage VCNT to the voltage controlled oscillation circuit 15.
The voltage controlled oscillation circuit 15 adjusts the clock signal CKOUT based on the control voltage VCNT inputted thereto such that the clock signal CKOUT has a desired frequency. The clock signal CKOUT generated by the voltage controlled oscillation circuit 15 is also coupled to the control circuit 12 to be inputted thereto.
Here, an oscillation frequency Tckout of the clock signal CKOUT generated in the clock oscillation circuit 2 is determined by a time required to charge the both-end voltage of the capacitance of the electrostatic capacitive element C1 of the frequency-voltage conversion circuit 13 from 0 V to the voltage VREFC with the reference current Iconst (M·Iref) generated by the current output circuit 11, which can be represented by the following expression (3).
Tckout=(C·VREFC)/(VREFI/R)=(C1·Rosc·VREFC)/VREFI (3)
For the clock oscillation circuit 2 to output the clock signal CKOUT having no temperature/power-supply dependence, a mechanism for cancelling out the temperature dependence of each of the electrostatic capacitive element C1 and the resistor Rosc is required.
To satisfy the requirement, the reference voltage generation circuit 10 generates the reference voltage for cancelling out the temperature dependence of each of the electrostatic capacitive element C1 and the resistor Rosc. As shown in the expression (1), the reference voltage VREFI is a voltage having a temperature characteristic which cancels out the temperature dependence resulting from the product between the capacitance of the electrostatic capacitive element C1 and the resistance of the resistor Rosc, and the reference voltage VREFC needs to be a voltage having no temperature dependence.
Temperature trimming is performed by monitoring the output frequency of the clock signal CKOUT, and typically performed at a room temperature and a high temperature. The voltage value of the reference voltage VREFI is switched such that oscillation frequencies monitored at the two temperatures are equal, and the control signal with which the frequencies are equal is preliminarily written and stored in the memory 4.
Next, using
In
The oscillation frequency Tckout of the clock generated in the clock oscillation circuit 2 is determined by a time required to charge the both-end voltage in the electrostatic capacitive element C1 of the frequency-voltage conversion circuit 13 from 0 V to the reference voltage VREFC with the reference current Iconst (M·Iref) generated by the current output circuit 11.
When the frequency of the clock signal CKOUT is faster than the targeted frequency, during the period of the oscillation frequency Tckout, the voltage VSIG generated at the both ends of the electrostatic capacitive element C1 by charging the electrostatic capacitive element C1 with the reference current Iconst has a value lower than that of the reference voltage VREFC, as shown in
In the integration circuit 14 functioning as a comparator between two voltages which are the voltage VSIG outputted from the frequency-voltage conversion circuit 13 and the reference voltage VREFC, charge sharing occurs between the electrostatic capacitive elements C1 and C2 such that, during a sampling period (SAMP=Hi), virtually grounded differential inputs (the reference voltage VREFC and the voltage VSIG) are equal.
When the frequency of the clock signal CKOUT is fast, charges move from the electrostatic capacitive element C2 to the electrostatic capacitive element C1, and the control voltage VCNT inputted to the voltage controlled oscillation circuit 15 rises (
Conversely, when the oscillation frequency of the clock signal CKOUT is slower than the targeted frequency, as a result of charging the electrostatic capacitive element C1 during the period of the oscillation frequency Tckout, the voltage VSIG has a value higher than that of the reference voltage VREFC, as shown in
As a result of the charge sharing between the electrostatic capacitive elements C1 and C2, charges move from the electrostatic capacitive element C1 to the electrostatic capacitive element C2 so that the control voltage VCNT lowers. As a result, the oscillation frequency of the clock signal CKOUT becomes faster.
Subsequently, when the oscillation frequency of the clock signal CKOUT is equal to the targeted frequency, as shown in
In general, an oscillator provided in a semiconductor device implements the switching of a frequency by switching a current mirror ratio in a current circuit and changing a constant current value.
In this case, as shown in the drawing, the current output circuit 11 includes an operational amplifier AMP3, MOS transistors MB1 and MB2, MOS transistors M0 to M3, a resistor R, and switches S1 to S6. The transistors MB1, MB2, and M0 to M3 are formed of P-channel MOS transistors.
To the negative (−) input terminal of the operational amplifier AMP3, the reference voltage VREFI is inputted. To each of the gates of the MOS transistors MB1, MB2, and M0 to M3, the output portion of the operational amplifier AMP3 is coupled.
The switches S1 to S6 are formed of, e.g., P-channel MOS transistors or the like. To one coupling portion of each of the switches S1 to S6, the power supply voltage VDD is coupled. To the other coupling portions of the switches S1 to S6, one portions of the transistors MB1, MB2, and M0 to M3 are respectively coupled.
To the other coupling portion of the transistor MB1, one coupling portion of the resistor R and the positive (+) input terminal of the operational amplifier AMP3 are each coupled. To the other coupling portion of the resistor R, the reference potential VSS is coupled.
The respective other couplings portions of the transistors MB2 and M0 to M3 are commonly coupled and, to the respective control terminals of the switches S3 to S6, frequency adjustment control signals SELI0 to SELI3 are coupled to be inputted thereto.
To the control terminal of the switch S4-1, the frequency adjustment control signal SEM is coupled to be inputted thereto. To each of the switches S5-1 to S5-3, the frequency adjustment control signal SELI2 is coupled to be inputted thereto.
To each of the switches S6-1 to S6-7, the frequency adjustment control signal SELI3 is coupled to be inputted thereto. To each of one coupling portions of the switches S4-1, S5-1 to S5-3, and S6-1 to S6-7, the power supply voltage VDD is coupled.
To the other coupling portions of the switches S4-1, S5-1 to S5-3, and S6-1 to S6-7, one coupling portions of the transistors M1-1, M2-1 to M2-3, and M3-1 to M3-7 are respectively coupled. The other coupling portions of the transistors M1-1, M2-1 to M2-3, and M3-1 to M3-7 are commonly coupled. The coupling configuration is otherwise the same as that of the current output circuit 11 of
In this case, by using the reference voltage VREFI generated by the reference voltage generation circuit 10 as an input voltage to the voltage follower circuit and setting the coupling portion (node VFBCK) between the transistor MB1 and the resistor R at the voltage level of the reference voltage VREFI, the constant current Iref=VREFI/R is generated.
Then, by switching the generated current using the current mirror circuit including the transistors M0 to M3, the frequency is changed.
When the current Iconst is increased, the oscillation frequency becomes faster. Conversely, when the current Iconst is reduced, the oscillation frequency becomes slower. The mirror ratio is switched by controlling the size of the gate width W of each of the transistors M0 to M3, as shown in
In the configuration of
In the configuration of
Here, the switching of the frequency performed by the commonly practiced switching of the constant current value using the current mirror ratio cannot be performed without being affected by device manufacturing variations because different devices are used for the individual frequency adjustment control signals SELI. As a result, frequency accuracy may be varied depending on the frequency adjustment control signals SELI.
Examples of a means for reducing the influence of the variations include an increase in transistor size, the application of an over-drive voltage (Vgs-Vth) to a level where the influence of a threshold voltage does not affect the frequency accuracy, and the like.
However, when the transistor size is increased, an area reduction cannot be achieved and, when the over-drive voltage is applied, a voltage reduction (power consumption reduction) cannot be achieved, each due to a tradeoff relationship therebetween.
Examples of a technique for solving the problem include the switching of the frequency using the electrostatic capacitive elements provided in the frequency-voltage conversion circuit 13.
In the switching of the frequency using the electrostatic capacitive elements, variations in the threshold voltages of the transistors as observed in the switching of the current using the current mirror ratio and the like do not occur, and pair accuracy between elements is relatively high. This allows easy design and, by selecting an electrostatic capacitive element with small variations such as a polysilicon capacitor, it is possible to prevent frequency accuracy from differing from one frequency adjustment control signal SELI to another. Here, a specific configuration of the clock oscillation circuit 2 of
However, to implement the switching of the electrostatic capacitive elements, it is necessary to add a circuit to the node for the voltage VSIG of the frequency-voltage conversion circuit which is extremely sensitive to frequency accuracy. Accordingly, a circuit configuration which minimizes the parasitic capacitance Cp2 included in the expression (2) is required.
In this case, as shown in the drawing, the frequency-voltage conversion circuit 13 includes a switch portion including the switches SW1 and SW2, electrostatic capacitive elements C and C10 to C13, and switches CSW0 to CSW3 included in a capacitor selector portion. Here, the electrostatic capacitive elements C10 to C13 have capacitance values successively weighted with 2.
To one coupling portion of the switch SW1, an output terminal of the current output circuit 11 is coupled. To the other coupling portion of the switch SW1, respective one coupling portions of the switch SW2, the electrostatic capacitive element C, and the switches CSW0 to CSW3 are each coupled.
To the other coupling portions of the switches CSW0 to CSW3, one coupling portions of the electrostatic capacitive elements C10 to C13 are respectively coupled. To each of the other coupling portions of the switch SW2 and the electrostatic capacitive elements C and C10 to C13, the reference potential VSS is coupled.
To the control terminal of the switch SW1, the control signal ZCHR is coupled to be inputted thereto. To the control terminal of the switch SW2, the control signal DISC is coupled to be inputted thereto. To the control terminals of the switches CSW0 to CSW3, 4-bit frequency adjustment control signals SELC0 to SELC3 are respectively coupled to be inputted thereto.
The switch portion including the switches SW1 and SW2 performs charging and discharging of the capacitors using the current Iconst supplied from the current output circuit 11. The control signal ZCHR outputted from the control circuit 12 is a signal for charging, and the control signal DISC outputted from the control circuit 12 is a signal for discharging.
In this case, as shown in the drawing, the frequency-voltage conversion circuit 13 has a configuration obtained by adding electrostatic capacitive elements C11-1, C12-1 to C12-3, and C13-1 to C13-7 and switches CSW1-1, CSW2-1 to CSW2-3, and CSW3-1 to CSW3-7 to the configuration of
One coupling portions of the switches CSW1-1, CSW2-1 to CSW2-3, and CSW3-1 to CSW3-7 are each coupled to the coupling portion between the switches SW1 and SW2. To the other coupling portions of the switches CSW1-1, CSW2-1 to CSW2-3, and CSW3-1 to CSW3-7, one coupling portions of the electrostatic capacitive elements C11-1, C12-1 to C12-3, and C13-1 to C13-7 are respectively coupled. To each of the other coupling portions of the electrostatic capacitive elements C11-1, C12-1 to C12-3, and C13-1 to C13-7, the reference potential VSS is coupled.
To the control terminal of the switch CSW1-1, the frequency adjustment control signal SELC1 is coupled to be inputted thereto. To each of the control terminals of the switches CSW2-1 to CSW2-3, the frequency adjustment control signal SELC2 is coupled to be inputted thereto.
To each of the control terminals of the switches CSW3-1 to CSW3-7, the frequency adjustment control signal SELC3 is coupled to be inputted thereto. The coupling configuration is otherwise the same as in
The control signal ZCHR is generated in the control circuit 12 by halving the frequency of the clock signal CKOUT, and the width L thereof is equal to the frequency of the clock signal CKOUT. The control signal DISC causes the voltage VSIG to be equal to the reference potential VSS with a timing which does not affect a charge time so as to discharge charges from the electrostatic capacitive elements C and C10 to C13.
Note that, in
The clock oscillation circuit 2 performs negative feedback control such that, as shown in an expression (5), the output voltage VSIG is equal to the reference voltage VREFC in the frequency-voltage conversion circuit 13. To achieve high frequency accuracy, it is necessary that there is no power-supply/temperature dependence in a charging operation, and no non-linear component is produced.
In the circuit configuration shown in
The electrostatic capacitive elements C10 to C13 have different absolute capacitance values (
A switch CSW for selecting the electrostatic capacitive element is formed of, e.g., an N-channel MOS transistor as shown in
In addition, the level at which the reference voltage VREFC is set is limited, and accordingly the reference voltage VREFC cannot be set at a high level. As a result, a sufficient bias cannot be applied to the transistor serving as the switch, a source voltage changes with the charging operation to increase the ON resistance, and non-linearity due to the ON resistance and the capacitance occurs in the expression (5) so that the advantage of applying the P-channel MOS transistor to the switch is low.
In the case of forming the switch of the N-channel MOS transistor also, in the same manner as in the case of forming the switch of the P-channel MOS transistor, the source voltage rises with charging, and therefore a constant ON resistance cannot be provided in a charging period so that non-linear components occur in the rising capacitor voltage, as shown in
Therefore, under the limited condition that the reference voltage VREFC is set at a low voltage level free from the influence of the ON resistance of the switch formed of the N-channel MOS transistor, the switch formed of the N-channel MOS transistor allows the frequency to be switched using the capacitors.
Moreover, since the parasitic capacitance Cp2 of the switch formed of the N-channel MOS transistor occurs in the output voltage VSIG, in the circuit configuration of
As shown in
However, by providing the switches CSW0 to CSW3 closer to the negative electrodes of the electrostatic capacitive elements C and C1 to C4, the node Vx shown in
Here, the description has been given to the circuit configuration of
In this case, as shown in the drawing, the frequency-voltage conversion circuit 13 has a configuration obtained by newly adding a reset portion including NAND circuits NAND1 to NAND4 and inverters Iv1 to Iv4 to the circuit configuration of
To the input portions of the inverters Iv1 to Iv4, the frequency adjustment control signals SELC0 to SELC3 are respectively coupled to be inputted thereto. To the output portions of the inverters Iv1 to Iv4, one input portions of the NAND circuits NAND1 to NAND4 are respectively coupled. To each of the other input portions of the NAND circuits NAND1 to NAND4, a reset signal RST outputted from the control circuit 12 is coupled to be inputted thereto.
To the output portions of the NAND circuits NAND1 to NAND4, the control terminals of the switches CSW0 to CSW3 are respectively coupled. The coupling configuration is otherwise the same as in
In the circuit of
To introduce the resetting function, to the frequency-voltage conversion circuit 13, the reset signal RST is newly inputted.
As shown in the drawing, when a “L” level signal is inputted as the reset signal RST, the switches (CSW0 to CSW3) for the node Vx that is uncertain are turned ON so that the node Vx is reset to the voltage level of the reference potential Vss. The resetting operation needs to be performed with a timing which does not affect frequency accuracy, and may be performed appropriately during a capacitor discharging period.
As shown in
As shown in
In this case, the frequency-voltage conversion circuit 13 is configured by adding switches CSW10 to CSW13, electrostatic capacitive elements C14 to C17, and inverters Iv22 to Iv25 to the circuit shown in
As shown in
As shown in
Accordingly, the voltage VSIG outputted from the frequency-voltage conversion circuit 13 needs to be held till the node thereof is coupled to the integration circuit 14 after charging is completed.
In the circuit configuration shown in
By contrast, in the circuit configuration of
The frequency-voltage conversion circuit 13 of
In this case also, in the same manner as in
As shown in the expression (2), the parasitic capacitance Cpx in the voltage VSIG outputted from the frequency-voltage conversion circuit 13 gives influence to frequency accuracy.
For example, as shown in
Cp2=Cpx//Cx (7)
Therefore, it is necessary to minimize the parasitic capacitance Cpx.
As shown in the drawing, the electrostatic capacitive elements C1 to C4, C2-1, C3-1 to C3-3, and C4-1 to C4-7 and a control portion (circuit configuration surrounded by the dotted rectangle of
As a result, according to Embodiment 1, the number of the electrostatic capacitive elements coupled to the capacitive node 12 in the frequency-voltage conversion circuit 13 can be changed. This allows the clock oscillation circuit 2 to generate the clock signal with a high-accuracy targeted frequency.
In Embodiment 1 described above, the description has been given to the technique which switches the targeted frequency of the clock signal by changing the values of the electrostatic capacitive elements or the number of the electrostatic capacitive elements, and thereby adjusts the frequency of the clock signal to the targeted frequency with high accuracy. In Embodiment 2 of the present invention, a description will be given of a technique which adjusts the targeted frequency of the clock by a current switching method.
In the method of switching the frequency by the conventional current switching method, a clock signal with a high-accuracy frequency cannot be obtained. However, by adding an improvement to the current switching method, it is also possible to obtain a clock signal with a frequency higher in accuracy than the conventionally obtained clock signal.
In Embodiment 2, a description will be given of the current switching method (which changes the sizes or number of the transistors).
In Embodiment 2,
As shown in the drawing, the current output circuit 11 includes the operational amplifier AMP1, P-channel MOS transistors MB10, MB20, MC10, MC20, and a resistor R0.
To the negative (−) input terminal of the operational amplifier AMP1, the reference voltage VREFI is coupled to be inputted thereto. To the output portion of the operational amplifier AMP1, the gates of the transistors MB10 and MB20 are each coupled.
To each of one coupling portions of the transistors MB10 and MB20, the power supply voltage VDD is coupled to be supplied thereto. To the other coupling portion of the transistor MB10, one coupling portion of the transistor MC10 is coupled. To the other coupling portion of the transistor MC10, the positive (+) input terminal of the operational amplifier AMP1 and one coupling portion of the resistor R0 are each coupled. To the other coupling portion of the resistor R0, the reference potential VSS is coupled.
To the other coupling portion of the transistor MB20, one coupling portion of the transistor MC20 is coupled. To each of the gates of the transistors MC10 and MC20, a bias voltage Biasp is supplied. To the other coupling portion of the transistor MC20, the frequency-voltage conversion circuit 13 is coupled.
The current output circuit 11 follows the reference voltage VREFI of the reference voltage generation circuit 10 to apply the reference voltage VREFI to the resistor R, and generate the current Iref=VREFI/R.
At this time, the reference voltage VREFI is adjusted by the current output circuit 11 to have a temperature coefficient equivalent to the primary temperature coefficient of the resistor R0, and provide a current Iref without temperature dependence.
The current Iref is current-mirrored by the transistors MB10 and MB20, and outputted to the frequency-voltage conversion circuit 13. In this case, by using the transistors MC10 and MC20 coupled in cascode, respective drain-source voltages Vds of the transistors MC10 and MC20 are set equal to each other, and the voltage dependence of the current Iconst is eliminated.
To one coupling portion of the transistor MB30, the power supply voltage VDD is supplied. To the other coupling portion of the transistor MB30, one coupling portion of the transistor MC30 is coupled.
To the gate of the transistor MB30, the output portion of the operational amplifier AMP1 is coupled. To the other coupling portion of the transistor MC30, the other coupling portion of the transistor MC20 is coupled.
The selector SEL selects either the power supply voltage VDD or the bias voltage Biasp based on the control signal SELI, and outputs a signal to be inputted to the gate of the transistor MC30 such that the outputted signal has the selected voltage.
In the current output circuit 11 of each of
By thus providing the current output circuit 11 with a configuration as described above, it is possible to generate the constant current Iconst without temperature dependence.
Next, it presents a technical challenge to perform how accurately the frequency-voltage converting operation using the constant current Iconst from the current output signal 11 and the control signal ZCHR serving as the charge signal is performed. It is to be noted that the output of the current output circuit 11 is formed of a P-channel MOS device.
In general, when it is needed to implement high analog accuracy against variations in power supply voltage as needed in an oscillator embedded in a semiconductor device, operating a circuit using the level of the reference potential VSS as a reference is fundamental.
However, the substrate of a PMOS device of a current generation circuit is supplied with the power supply voltage VDD, and a diffusion capacitance Cp1 exists between the drain/source and the power supply voltage VDD. As a result, an amount of charges Cp1·ΔVNDD with which the diffusion capacitance Cp1 is charged has dependence on the power supply voltage VDD.
Therefore, it is necessary to provide a frequency-voltage conversion circuit with a configuration in which, to improve frequency accuracy, the node to which the voltage VNDD is supplied is free from voltage variations irrespective of a power supply.
As shown in the drawing, the switch portion of the frequency-voltage conversion circuit 13 is comprised of transistors MSW1 and MSW2 forming the switch SW1, an inverter Iv20, and transistors MSW3 and MSW4 forming the switch SW2.
The operations of the transistors MSW1 and MSW2 are controlled by the control switch ZCHR to operate as current switches for switching the flow of the current Iconst. The transistors MSW1 and MSW2 are configured as the current switches in order to prevent variations in the voltage VNDD caused by the elimination of a path which allows the current Iconst to flow when the switch SW1 is in the OFF state. At this time, the sizes and device species of the transistors MSW1 and MSW2 are the same.
To prevent variations in the voltage VNDD, it is necessary to cause the transistor MSW1 to perform a saturated operation in the process of charging. From a condition for the saturated operation of the transistor MSW1, a design expression (expression (7)) related to the voltage level of the voltage VSIG, i.e., the level of the reference voltage VREFC can be derived.
V
NDD
−Vthp
—
msw1<VNDD−VSIG=Vov—msw1
V
NDD
−Vthp
—
msw1<VNDD−VREFC
Vthp
—
msw1>VREFC (7)
Here, Vthp_msw1 is the threshold voltage of the transistor MSW1, Vov_msw1 is a voltage obtained by subtracting Vthp_msw1 from the voltage VNDD, and it is the condition for the saturated operation of the transistor MSW1 that the drain-source voltage of the transistor MSW1 is higher than Vov_msw1. From the expression (7), it will be understood that, by setting the voltage VREFC lower than Vthp_msw1, it is consequently possible to ensure the potential difference between the potential of the voltage VSIG and the potential of the voltage VNDD, which satisfies the condition for the saturated operation of the transistor MSW1. Therefore, in Embodiment 2, it is important to set the voltage VREFC lower than the threshold voltage Vthp_msw1 of the transistor MSW1.
On the other hand,
In the circuit configuration of
As a result, in Embodiment 2, by configuring the current output circuit 11 such that the transistors the ON/OFF states of which are controlled by the selector SEL are coupled in cascode, it is possible to prevent the degradation of current accuracy by the switching (current switching) of the transistors. By generating the current Iconst having small temperature dependence, and supplying the current Iconst to the frequency-voltage conversion circuit 13, the clock oscillation circuit 2 can generate the clock signal with the high-accuracy targeted frequency.
In Embodiment 3,
As shown in
In this case, as shown in the drawing, the current output circuit 11 is configured by providing the circuit configuration of
In this case, in the current source for switching the frequency, the transistor MS20 serving as a path for discarding the current during a non-selection period is prepared. As an enable signal for the path for discarding the current, an inversion signal of the control signal SELI outputted from the control circuit 12 is used.
By discarding the current to the reference potential VSS, the node Vz of
In this case, the current output circuit 11 has a configuration obtained by providing the circuit configuration of
As a result, according to Embodiment 3, it is possible to reduce the leakage current flowing into the frequency-voltage conversion circuit 13 using the transistor MS20 provided in the current output circuit 11. Therefore, the clock signal with the higher-accuracy targeted frequency can be generated.
In Embodiment 4,
The reference voltage generation circuit 10 includes resistors R11 to R18, resistors R21 to R24, resistors R31 to 38, switches SWT0 to SWT3, switches SWI0 to SWI7, switches SWC0 to SWC7, a transistor Bip1 formed of a bipolar element, and decoders DEC1 and DEC2.
The resistors R11 to R18 are coupled in series. Between the other coupling portion of the resistor R18 and the reference potential VSS, the resistors R31 to R38 coupled in series similarly to the transistor Bip1 and the resistors RR21 to R24 which are coupled in series are each coupled in parallel.
To each of the coupling portions between the transistor Bip1 and the resistor R21 and between the resistors R21 to R24, a current Iptat which is a PTAT (Proportional To Absolute Temperature) current generated by the reference voltage generation circuit 10 is coupled to be supplied thereto.
To the respective coupling portions between the resistors R11 to R18, one coupling portions of the switches SWI0 to SWI7 are coupled. The other coupling portions of the switches SWI0 to SWI7 are commonly coupled to serve as the output portion of the reference voltage VREFI.
To the respective coupling portions between the resistors R31 to R38, one coupling portions of the switches SWC0 to SWC7 are coupled. The other coupling portions of the switches SWC0 to SWC7 are commonly coupled to serve as the output portion of the reference voltage VREFC.
The decoder DEC1 decodes the temperature trimming signal VCNTL_VREFI, and turns ON any arbitrary one of the switches SWIO to SWI7. The decoder DEC2 decodes the temperature trimming signal VCNTL_VREFC, and turns ON any arbitrary one of the switches SWC0 to SWC7.
Of the operation, a description will be given using the simplified schematic view of
The reference voltage VREFC is implemented by subjecting the voltage VFLAT having no temperature dependence to resistive voltage division as shown in an expression (9), and the output level thereof is controlled using the temperature trimming signal CNTL_VREFC.
The output level and temperature characteristic of the reference voltage VREFI are adjusted using the temperature trimming signal VCNTL_VREFI so as to cancel out the temperature characteristic of the resistance of the constant current generation circuit with the product between the resistance R1 and the current Iptat, as shown in an expression (10).
The characteristic feature of the circuit shown in
However, because of coupling to the collector of the transistor Bip1, the ON resistance of a transistor used for a shunt switch increases due to the substrate bias effect thereof. In an oscillator embedded in the semiconductor device in which frequency variations need to be suppressed to a range of ±1%, the temperature dependence of the ON resistance cannot be ignored.
In the clock oscillation circuit 2, in the voltage VFLAT (
By the foregoing operation, the generation of the reference voltage VREFI having temperature dependence and the reference voltage VREFC having no temperature dependence is implemented with the same generation path.
The reference voltage generation circuit 10 is configured by newly adding an operational amplifier AMP5 and a P-channel MOS transistor TMOS1 to the circuit configuration of
Accordingly, as shown in
In Embodiment 4, by coupling the resistors R21 to R24 to the emitter side of the transistor Bip1, it is possible to reduce the ON resistance of the transistor Bip1, and therefore reduce frequency variations in the clock oscillation circuit 2.
While the invention achieved by the present inventors has been specifically described heretofore based on the embodiments of the present invention, it will be appreciated that the present invention is not limited to the embodiments described above, and various changes and modifications can be made in the invention within the scope not departing from the gist thereof. It is also possible to implement the plurality of embodiments shown in the present invention in mutually combined relation.
In each of the embodiments described above, an example has been shown in which the clock oscillation circuit 2 includes the reference voltage generation circuit 10, the current output circuit 11, the control circuit 12, the frequency-voltage conversion circuit 13, the integration circuit 14, and the voltage controlled oscillation circuit 15. However, as shown in
By providing the frequency divider 16, the control of the clock oscillation circuit 2 is performed with respect to the divided frequency of the clock signal CKOUT. As a result, it is possible to provide the clock signal CKOUT with a higher frequency without increasing a frequency for a circuit operation.
The present invention is suited to a technology for generating a high-accuracy clock signal in a semiconductor device including an oscillation circuit which internally generates an operation clock.
Number | Date | Country | Kind |
---|---|---|---|
2010-213441 | Sep 2010 | JP | national |