This invention relates to a frequency generator, in particular to a clock generator for integrated circuits.
Multiple frequency processing system is becoming more popular in recent VLSI system applications. In such applications, an external clock source is usually used as a source to generate all the required signal frequencies. An external clock source requires a crystal oscillator, increases the integrated circuit (IC) pin count, and increase the layout area of the printed circuit board (PCB), on which the external source occupies. From a system standpoint, the external source impairs the clock signal integrity and high frequency operation due to increased stray capacitance. The increased wiring may also introduce high frequency radiation and cross-talk. Thus, the use of external clock source not only increases the system cost but also down grade the system performance such as speed and electromagnetic inference, etc.
During the past few years, the personal computer (PC) boosts up its performance power by increasing the processing speed and accuracy of the PC motherboard. The traditional clock timing source of the mother board are provided by a phase-locked loop (PLL), clock generator integrated circuit (IC). Typically, the source adopts a 14.318 MHz crystal oscillator as its timing reference. Because this crystal oscillator must lie beside the PLL clock chip, it occupies an area in the layout of a printed circuit board and radiates electromagnetic waves which increase the interference and cross-talk of signal processing.
While it is desirable to use an oscillator such as a relaxation oscillator or a ring oscillator, integrated with the IC for the system, it is difficult to maintain a stable frequency which is insensitive to temperature variations, because as temperature changes the component values or the operating currents may vary. Although it is possible to use a bandgap voltage reference to obtain a constant voltage which is independent of temperature variations, the circuit components, in particular the semiconductor resistance, cannot be made temperature invariant.
Summary
An object of the present invention is not to use an external crystal to save IC area and PCB area. Another object of the present invention is to compensate for the temperature variation of component values in an IC. Still another object of the present invention is to reduce electromagnetic interference (EMI) of the PC system and to increase the integrity of the motherboard. A further object of the present is to enhance the stability ard reliability of a PC system.
These objects are achieved by using an independent frequency generating circuiit built inside the IC. A voltage supply with a temperature dependent output voltage is used to control a voltage-controlled oscillator so as to maintain a constant frequency. The power supply connects a positive temperature coefficient voltage in series with a negative temperature coefficient voltage. The negative temperature coefficient voltage is obtained from forward biased PN junctions. The positive temperature coefficient is obtained by taking the difference between two forward biased junction voltages operating at two different current densities. When the positive temperature coefficient voltage exceeds the negative temperature coefficient voltage, the control voltage has a positive temperature coefficient, and vice versa.
A programmable voltage buffer (or unity gain voltage buffer) provides an adjustable control of the reference voltage. A voltage-controlled oscillator (VCO) generates the corresponding frequency output according to the control voltage input.
The oscillator may be a relaxation oscillator, a ring oscillator or any other type suitable for integrated circuits. The operating currents are held constant by compensating the positive temperature coefficient of the resistance used in the current source with control voltage which has the same temperature coefficient.
Brief Description of the Drawings
FIG. 1a shows the block diagram of the independent frequency generating circuit of the present invention, using a programmable voltage buffer; FIG. 1b shows the block diagram using a fixed gain voltage buffer.
FIG. 2 shows a power supply with variable temperature coefficient.
FIG. 3 shows a voltage to current converter as a current source.
FIG. 4 shows a voltage-controlled relaxation oscillator.
FIG. 5 shows a ring oscillator.
FIG. 6a shows a voltage controlled ring oscillator; FIG. 6b shows the current source for the for the ring oscillator.
Detailed Description of the Preferred Embodiment
FIGS. 1a and 1b show the block diagrams of an independent frequency generating circuit of the present invention. A voltage control oscillator is controlled by a reference voltage with a desired temperature coefficient to obtain a frequency which is insensitive to temperature variations.
FIG. 2 show the circuit of a variable temperature coefficient voltage supply. Two identical MOSFETs Q3 and Q4 have their source electrodes connected to a negative power supply Vss and their gates connected to the output of an operational amplifier OP. The drain of Q3 is connected through resistance R2 to the inverting input A of OP and the emitter of a bipolar transistor (BJT) Q1. The drain of Q4 is connected through another resistance R2 to the noninverting input B of OP, which is connected through resistance R1 to the emitter of BJT Q2. The bases of Q1 and Q2 are connected to ground and the collectors are connected to a positive power supply VDD.
With Q4 serving as an inverter and R2+R1+emitter junction of Q2 as a load, a negative feedback voltage is developed at the non-inverting input B. Since virtual ground requirement of an operational amplifier dictates that voltage at A and B be the same, the drain currents of both Q3 and Q4 must be the same and equal to I. The emitter area Ae2 of Q2 is A times larger than the emitter area Ae1 of Q1. Let the base emitter junction voltage drops of Q1 and Q2 be Vbe1 and Vbe2 respectively. Then the voltage drop IR1 equals the difference Vbe1-Vbe2, i.e.
and the output voltage Vref is:
The emitter current of a BJT is given as:
where Jo is the saturation current density and is proportional to T.sup.-2.3 qVg/kT
q is the electron charge=1.6.times.10.sup.-19 coulumbs
k is the Boltzmann's constant=1.38.times.10.sup.-23 J/.degree.K
T is the absolute temperature in .degree.K
For constant emitter current of Q1 at different temperatures, differentiate equation (3) with respect to temperature and set it to zero, yielding the required variation of .DELTA.Vbe1 for a change of temperature .DELTA.T:
At any temperature T higher than a reference temperature To, the corresponding Vbe1 (T) is:
Therefore Vbe1 has a negative temperature coefficient.
On the other hand, from equations (1) and (2), ##EQU1## Thus, the current I=(kT/q)lnA!/R1 is proportional to T. The voltage drop across R2 then has a positive temperature coefficient.
The reference voltage becomes:
Since the first bracketed term on the right hand side has a negative temperature coefficient and the second bracketed term on the right hand side has a positive temperature coefficient, the reference voltage Vref (T) may have either a net positive temperature coefficient or a negative temperature coefficient by adjusting the resistance ratio (R2/R1) and/or adjusting the emitter area ratio A.
In many types of oscillators, the frequency is dependent of the operating current. For a relaxation oscillator, the frequency is dependent of the charging and discharging current of a capacitor. For a ring oscillator, the frequency is dependent on the delay time of an inverter which in turn is a function of the dc current. For such oscillators, the operating currents should be held constant when temperature varies. If these currents are derived from a current source, it is important that the current from a current source is stable over a range of operating temperature.
FIG. 3 shows a commonly used current source, i.e. a voltage to current converter. A control voltage Vin is applied to the non-inverting input of an operational amplifier OP1. The output of OP1 is connected to the gate of an MOSFET M3 and the inverting input of OP1 which is connected through a resistance Rin to ground. Because of equal virtual ground potential of the two inputs, the current I through Rin is equal to Vin/Rin, which is equal to the drain current of M3. The drain current constitutes a current source.
FIG. 4 shows a typical VCO, which is of relaxation type. The operational amplifier OP2 with positive feedback from the voltage divider R2, R1 to form a Schmitt trigger generates a square wave by charging and discharging the capacitor C at the inverting input. This current is mirrored from a current source I comprising an operation amplifier OP1, a resistance Rin and a MOSFET M3 to constitute a voltage to current converter as shown in FIG. 3. The crain current I is mirrored through mirrors M4, M5 to MOSFET M1 for charging C when V1 is high and transmission gates M9, M11 are closed and transmission gates M8, M10 are open. This current I is mirrored to MOSFET M2 through a mirror M7 for discharging the capacitor C. (MOSFET M6 is used to clamp the drains of M3 and M4 in the drain current saturation regions.) When the output voltage V1 is positive, V1 switches state when the voltage Vc across the capacitor C reaches a threshold voltage of the Schmitt trigger. The charging time and the discharging time constitute a period of the oscillator and is inversely proportional the current I. For constant frequency, the current I must be held constant.
The current I is equal to Vin/Rin. In an integrated circuit, the resistance Rin is made of semiconductor which has a positive temperature coefficient. Let Rin at a temperature T be
Then if the reference voltage as expressed in equation (8) is made equal to
The condition for maintaining current I(T)=Vref(T)/Rin(T) to be constant can be derived from (9) and (10),
By adjusting the resistance ratio R2/R1, A and/or Vbe1(To) a temperature invariant current can be obtained.
The Vref(T) can be amplified or attenuated to obtain a suitable control voltage for the VCO.
FIG. 5 shows the basic schematic diagram of a ring oscillator with N odd-number inverters connected in cascade. The oscillator frequency fosc is equal to:
where .tau.inv is the inverter delay per stage and is inversely proportional to the transconductance gm of the transistors. The gm is in turn proportional to the square root of the dc drain current. Thus if the inverters are fed from a constant current source similar to that shown in FIG. 3, the oscillating frequency can be held constant.
FIG. 6a shows such a voltage control ring oscillator, using differential inverters. FIG. 6b shows the inverters with a current source IB. The current sources IB can be controlled and held constant at different temperatures just as in the case of the relaxation oscillator described earlier by using a temperature compensation.
The output voltage from a programmable voltage buffer or unity-gain voltage buffer is used to generate a control voltage to control the voltage controlled oscillator (VCO), as shown in FIG. 1a and FIG. 1b respectively. The VCO generates the correlated frequency output according to the control voltage output. The programmable voltage buffer allows the system to readjust its operating frequency internally for optimal performance. In a PC system, the main task is executed in the Central Processing Unit (CPU) and the Cache RAM. The Basic Input Output System (BIOS) can control the programmable voltage buffer to increase the operating frequency for best performance. On the other hand, if the system performs mostly peripheral Input/Output task, the BIOS can lower the system frequency with the programmable voltage buffer for better stability and reliability. Otherwise) the CPU may overheat. Slowing down the operating speed of the CPU can cool down the CPU and improve the system reliability.
The design can further utilize fuse-trimming to trim the R2/R1 ratio to achieve greater accuracy. The VCO can be a conventional one such as a ring oscillator, relaxation oscillator, . . . etc. depending on the system requirement. It can be designed to meet the system application requirement.
While the foregoing descriptions apply to a relaxation oscillator and a ring oscilia or, the temperature compensation technique is not limited to these two types of oscillators. The technique is applicable to any circuits requiring a positive or negative temperature coefficient for compensation. The technique can be used wherever a temperature invariant current source is needed.