Background of the Invention
1. Field of the Invention
This invention relates to relaxation type oscillators incorporating resistive and capacitive elements (RC) and, more particularly, to a RC relaxation type oscillator circuit suitable to be fabricated in integrated circuit form to which a resistive and capacitive frequency determining network is coupled thereto at a single external pin of the oscillator, and wherein the frequency of oscillation is made substantially independent to process and temperature variations in the integrated oscillator circuit.
2. Description of the Prior Art
Relaxation oscillators which generally rely on resistive-capacitive frequency determining networks are utilized in many applications including timing circuits in data transmission systems, sweep oscillators, television receivers, reference oscillators in decoders for stereo FM radio receivers, telephone ringers and telecommunication systems, and the like. Moreover, differential relaxation oscillators that are suited to be fabricated in integrated circuit form are known in the art. For example, U.S. Pat. Nos. 3,688,220 and 3,824,494 disclose such oscillators wherein a sawtooth oscillation signal is generated having a frequency of oscillation determined by the RC frequency determining network.
As disclosed in the prior art relaxation oscillators are found in many different forms but generally are quite sensitive to supply voltage variations, temperature variations and the charge rate at which the capacitive element is charged and discharged which determines the oscillator frequency period. In one favored form the prior art relaxation oscillators comprise a differential comparator amplifier which has a reference voltage applied to one input thereof and the frequency determining network coupled to the other input. In general operation of this type of relaxation oscillator the capacitive element of the frequency determining network is charged at some rate until such a time that the voltage developed thereacross exceeds the trip point of the comparator at which time the capacitor is then caused to be discharged through the resistive element of the frequency determining network. One of the main problems that arise in some of the prior art integrated circuit relaxation oscillators including a comparator ampifier is due to the inaccuracy associated with the charging rate of the capacitor, i.e., the percentage of the oscillation time period that is required to charge the capacitor to its peak value. How accurately the capacitor is charged also affects the precision of the oscillation frequency. For instance, if the rate of charge of the capacitor is too slow the inaccuracy of the oscillator circuit is degenerated since the rate of charge then becomes a function of the devices of the integrated circuit, i.e., the rate will depend on the beta amplification factors of the transistors as well as the junction resistances thereof which vary both with temperature and process variations. Hence, the frequency of oscillation will also vary. If the rate of charge of the capacitor is too fast, the response time of the comparator amplifier becomes critical. The desired charge on the capacitor can be exceeded if the differential amplifier cannot switch at the exact moment the voltage across the capacitor exceeds the reference voltage level as aforedescribed. This causes overshoot of the desired peak voltage across the capacitor which affects the operating frequency of the oscillator. Therefore, due to these errors, it has been very difficult, if not impossible, to fabricate precision differential relaxation oscillators in integrated circuit form.
Thus, a need for a precision relaxation oscillator suited for fabricated in integrated circuit form having an accuracy of .+-.5% of the desired operating frequency using 1% standard external components arises.
Summary of the Invention
Accordingly, it is an object of the present invention to provide an improved differential relaxation oscillator circuit.
It is another object of this invention to provide an improved differential relaxation oscillator circuit the operating characteristics of which are substantially independent to temperature and process variations.
In accordance with the foregoing and other objects there is provided an oscillator circuit having a parallel RC timing circuit connected between a point of reference potential and one input of a comparator amplifier, the other input of which is coupled to a fixed reference potential to establish a trip point or switching level for the comparator. A current source charges the capacitive element of the RC timing network towards an upper peak voltage level. The comparator amplifier switches to a second operating state from a first operating state as the voltage across the capacitor exceeds the fixed reference potential which switching occurs prior to the capacitive element being charged to its peak voltage level. A current detecting circuit which is operatively coupled with the current source disables a reference potential control circuit while the capacitive element is being charged. As the capacitive element is charged to a peak voltage level a current is sensed by the detecting circuit that enables the control circuit which is coupled between the other input of the comparator amplifier and the point of reference potential thereby reducing the potential at the other input of the comparator amplifier. Simultaneously, the control circuit disables the current source wherein the capacitive element is allowed to be discharged toward the reduced reference potential level supplied at the other input of the comparator amplifier. Thereafter, the comparator amplifier switches to its first operating state thereby disabling the control circuit such that the current source is then enabled to source current to cause charging of the capacitive element.
By switching the operating states of the comparator amplifier well in advance of the capacitive element being charged to its peak voltage value the speed of the comparator amplifier is not critical to the operation of the oscillator since the comparator amplifier does not determine the point at which charging of the capacitor ceases and discharging thereof begins. Rather, the current detecting circuit by enabling the control circuit to cause reduction of the bias potential supplied to the comparator amplifier determines the point at which the capacitive element is allowed to be discharged by disabling the current source via the control circuit. Thus, the capacitive element can be quickly charged which eliminates inaccuracies due to temperature and circuit fabrication process variations. Moreover, overshoot problems which produce inaccuracies in the frequency of oscillation are avoided.
Brief Description of the Drawings
FIG. 1 is a schematic diagram illustrating the oscillator of the preferred embodiment;
FIG. 2 illustrates waveforms useful in understanding the operation of the oscillator circuit of FIG. 1; and
FIG. 3 is a schematic diagram illustrating a bias potential producing output gate circuit that can be utilized in the oscillator of the present invention.
Detailed Description of the Preferred Embodiment
Turning to FIGS. 1 and 2 differential relaxation oscillator 10 of the present invention is now fully described. As indicated by being enclosed within the dashed box, oscillator 10 is suited to be fabricated in integrated form and is coupled between a source of operating potential V.sub.CC and ground reference. Oscillator 10 comprises a differential comparator amplifier 12 which includes PNP transistors 14 and 16 differentially coupled at their emitters to V.sub.CC via resistor 18. The collectors of transistors 14 and 16 are connected to a differential to single ended converter circuit comprising diode 20 and transistor 22. The differential-to-single ended converter circuit is well understood to those skilled in the art and provides an output from comparator 12 at the base of transistor 24. Diode 20 may be constructed by utilizing a diode connected transistor as is known. The base of transistor 16 serves as one input of comparator 12 which receives a fixed reference potential thereat that appears at the node 25 intersecting series connected resistor 26 and element 28. In one embodiment of the invention element 28 is a resistor having a substantially equal value as resistor 26 which thereby sets the trip point of comparator 12 at V.sub.CC /2. The output of comparator 12 is returned to the base of transistor 16 through the base to collector path of transistor 24, which has its collector-emitter path coupled between one side of resistor 30 to ground reference. The other side of resistor 30 is returned to the base of transistor 16. The other input of comparator 12 is connected at the base of transistor 14 and is connected to a frequency determining network comprising capacitor 36 and resistor 38 which may be elements external to the integrated circuit. The other side of the frequency determining network is connected to ground reference.
A path for current to charge capacitor 36 is supplied through PNP transistor 34 which has the emitter coupled to V.sub.CC and its collector to terminal 32. PNP transistor 40 is provided to sense when transistor 34 becomes saturated and has its emitter coupled to the collector of transistor 34, its base to the base of transistor 34 and its collector to the base of transistor 46. Transistor 42, having its collector-emitter path coupled between the base of transistor 34 and ground reference via resistor 44 renders transistor 34 conductive when transistor 24 is non-conductive such that current is supplied from transistor 34 to charge capacitor 36. Base current drive to transistor 42 is supplied via resistor 30. Transistor 46 which has its base coupled via resistor 48 to ground reference detects in conjunction with transistor 40 being turned on when capacitor 36 is charged to a peak voltage level as will be explained. The collector-emitter path of transistor 46 is connected via inverting transistor 49 to the output of comparator 12, the base of transistor 24 and ground reference. Collector current is supplied via resistor 45.
In operation, as illustrated in FIG. 2, capacitor 36 is charged and then discharged whereby the voltage V.sub.C developed thereacross is generally sawtooth shaped. If it is assumed that at t.sub.0 capacitor 36 has been discharged to its lower threshold voltage level V.sub.L, comparator 12 will be switched to a first operating state such that transistor 24 is rendered non-conductive since transistor 22 sinks all of the current supplied from the output of the comparator. Hence, a fixed reference potential which may be equal to substantially V.sub.CC /2 is supplied at the base of transistor 16 at node 25. Thus, the trip point or switching level of comparator 12 is set at an upper threshold level equal to V.sub.CC /2.
In response to the comparator switching to its first operating state, transistor 42 is rendered conductive to turn on transistor 34 which sources current to charge capacitor 36. As capacitor 36 is charged transistor 34 is in a non-saturated state which reverse biases the emitter-base junction of transistor 40 to keep transistor 40 off. Because transistor 40 is turned off current detecting transistor 46 is also off which allows transistor 49 to be on to sink base current from transistor 24. Therefore, as long as transistor 46 is reverse biased, transistor 24 cannot be rendered conductive.
Prior to t.sub.1, when the voltage developed across capacitor 36 exceeds V.sub.CC /2 as the capacitor is charged, comparator 12 switches operating states whereby transistor 22 is turned off. However, transistor 24 is maintained in a non-conductive state as transistor 49 sinks the current supplied from the output of comparator 12. At t.sub.1, capacitor 36 is charged to its upper voltage level V.sub.H. As the voltage developed across capacitor 36 approaches V.sub.H, transistor 34 becomes saturated which both reduces the magnitude of the current supplied therefrom to the capacitor and forward biases transistor 40. The current supplied from transistor 40 to the base of transistor 46 renders transistor 46 conductive to in turn render transistor 49 non-conductive. In response to transistor 49 becoming non-conductive transistor 24 is no longer disabled and is turned on by the current supplied at the output of comparator 12 to the base thereof.
When transistor 24 is rendered conductive transistor 42 is disabled thereby rendering the current source comprising transistor 42 as well as transistors 34 and 40 non-conductive. Hence, capacitor 36 begins discharging through resistor 38. Concurrently, resistor 30 is placed in parallel with element 28 as transistor 24 becomes conductive to lower the reference potential supplied at the base of transistor 16. Thus, the switching level of comparator 12 is reduced to a value corresponding to V.sub.L. This allows capacitor 36 to be discharged to this potential. When the voltage across capacitor 36 decreases to V.sub.L, at time t.sub.2, comparator 12 switches states causing transistor 24 to become non-conductive. Transistor 42 is then no longer disabled and current is again sourced to capacitor 36 thereby charging the capacitor. Simultaneously, the reference potential supplied at the one input of comparator 12 that appears at node 25 is returned to its higher value, V.sub.CC /2, and operation of the circuit is repeated. As indicated, an output may be taken at node 56 of the oscillator circuit.
Referring now to FIG. 3, element 28 may be comprised of a NAND gate 50, the input of which is coupled at a collector of multi-collector transistor 52. Multi-collector transistor 52 is connected in series with diode 54 between node 25 and ground reference. Transistor 52 and NAND gate 50 may be formed using known integrated injection logic circuit techniques to provide a buffered output at node 56. For example, setting V.sub.CC equal to 4V.sub.be, where V.sub.be is the voltage drop across a standard diode, the trip point of comparator 12 is maintained at V.sub.CC /2. A capacitor 58 may be included to lengthen the duration of the output pulses occurring at outut 56.
A significant aspect of the present invention is that operation of the oscillator circuit is made substantially independent to the switching speed of comparator 12 by setting the upper switching point for instance, midway between the upper and lower peak voltage levels that capacitor 36 is charged and discharged between. Thus, capacitor 36 can be charged at a fast rate to eliminate inaccuracies due to temperature and device process variations while inaccuracies due to slow comparator switching times are eliminated.
Another significant aspect of the present invention relates to detecting a current produced by the capacitor being charged to an upper peak voltage which then causes the capacitor to be discharged. Hence, discharge of the capacitor cannot occur until the comparator has switched from a first operating state to a second operating state "AND" the capacitor charge causes transistor 34 to saturate. Thus, transistor 49 of the detecting circuit and transistor 22 act as a wired AND gate to prevent transistor 24 from disabling the current source until capacitor 36 is charged to its upper peak voltage level.