TECHNICAL FIELDThis invention relates to oscillator circuits, and more particularly to tunable oscillator circuits.[0001]
BACKGROUNDOscillator circuits can be used to provide timing signals. For example, a personal computer motherboard typically has a Real Time Clock (RTC) circuit that provides an accurate 32.768 KHz oscillating signal that is further processed to obtain the second, minute, and hour values used by the computer system to keep time.[0002]
The RTC circuit is typically part of an I/O controller hub chip (sometimes referred to as the south-bridge chipset), and is connected to an external crystal resonator that resonates within a narrow range of operating frequencies. Depending on the crystal oscillator topology, one or more discrete external load capacitors may be connected to the RTC circuit to tune the oscillating frequency. The values of the load capacitors are selected according to an initial circuit layout design so that the RTC circuit in conjunction with the external components will oscillate at a predetermined frequency.[0003]
However, variation between different motherboard designs may result in placement of the load capacitors at slightly different locations on the motherboard, resulting in the addition of a certain amount of parasitic capacitance associated with the wiring connections. Other factors, such as tolerances in circuit components and minute routing differences, will also affect the oscillating frequency. Because a small variance in the oscillating frequency may significantly affect the accuracy of the system time signal over time, individual tuning of the capacitance value tailored to a specific motherboard design is required to obtain accurate system timing signals.[0004]
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.[0005]
DESCRIPTION OF DRAWINGSFIG. 1 is a schematic diagram of a computer chipset with external components that form a digitally tunable oscillator.[0006]
FIG. 2 is a schematic diagram of an on-chip capacitor bank of the oscillator circuit of FIG. 1.[0007]
FIG. 3 is a schematic diagram of a buffer circuit connected to a transmission gate switch.[0008]
FIG. 4 is a schematic diagram of an alternative embodiment of an on-chip capacitor bank.[0009]
FIG. 5 is a block diagram of an electronic device.[0010]
Like reference symbols in the various drawings indicate like elements.[0011]
DETAILED DESCRIPTIONAs will be described in more detail below, the invention is directed towards circuitry for controlling oscillating frequency of an oscillator. In addition to the external load capacitors, the circuitry includes on-chip capacitors, each of which is independently selectable by a control signal, and each of which provides a controllable amount of capacitance to the oscillator to control the oscillating frequency of the oscillator. The term “on-chip capacitor” means that the capacitor is manufactured on a semiconductor chip.[0012]
Referring to FIG. 1, a tunable clock oscillator circuit[0013]100 (enclosed in dotted lines) includes two digitally selectable on-chip capacitor banks106 and108 connected to a terminal X1and a terminal X2, respectively, of acrystal resonator102. Terminals X1and X2are connected to aninput terminal110 and anoutput terminal112, respectively, of aninverting amplifier104. A feedback resistor Rfis connected in parallel toresonator102 to biasamplifier104 into a linear mode.Capacitor banks106 and108 are used to fine-tune the oscillating frequency ofoscillator circuit100. By selecting different combinations of capacitors in the on-chip capacitor banks, a different amount of capacitance can be connected toresonator102, thereby controlling the oscillating frequency ofoscillator circuit100.
Two external load capacitors C[0014]L1and CL2are connected to terminals X1and X2, respectively. The capacitance values of load capacitors CL1and CL2are selected according to specifications given by the manufacturer ofresonator102. The impedance of load capacitors, combined with the crystal's calibrated impedance, tunes the circuit to operate in a particular frequency in the “parallel or series resonance” area (depending on oscillator topology). For example,resonator102 resonates at approximately 32.77 KHz, capacitors CL1and CL2have capacitances of about 15 pF, and resistor Rfhas a value of about 10 MegOhms.
[0015]Capacitor banks106 and108 each include an array of capacitors that are individually selectable by a set of externally provided control signals to provide a variable amount of capacitance. For example,capacitor banks106 and108 each provide a selectable amount of capacitance in the range of 0 to 4 pF.
[0016]Amplifier104 andcapacitor banks106,108 are located within an RTC circuit122 (enclosed in dotted lines), which is part of achipset114 of a computer system.RTC circuit122 has a set oflatches120 that latches a set of control signals S0to S9that is generated byprogrammable registers118 ofchipset114. Control signals S0to S9are used to select the individual capacitors incapacitor banks106 and108.
[0017]RTC circuit122 is powered by a system power supply, as well as a separate battery supply when the computer system is turned off. When the battery supply is first connected toRTC circuit122, default values are loaded into the latches to select a default set of capacitors. When the computer is initially booted up afterRTC circuit122 is connected to the battery supply, a predefined register setting is read from aBIOS memory116 and passed throughchipset registers118 tolatches120. The latches store the register setting for the life of the battery, or until the setting is changed bychipset registers118.
The load capacitors C[0018]L1and CL2are shown as being connected outside ofchipset114. However, it is understood that the load capacitors CL1and CL2may also be integrated withinchipset114. It is also possible to integrate the resonator, load capacitors, resistor, and the RTC circuitry within the same package.
Referring to FIG. 2,[0019]capacitor bank106 has acapacitor array202 that includes five capacitors, C0to C4. Each capacitor is selectable by one of the control signals S0to S4through control gate switches G0to G4. The capacitance values of the capacitors have a binary-weighted relationship, such that C4has twice the amount of capacitance as C3, C3has twice the amount of capacitance of C2, and so forth. For example, C4=2 pF, C3=1 pF, C2=0.5 pF, C1=0.25 pF, C0=0.125 pF.
[0020]Chipset registers118 provide control signals S0to S4, which are latched bylatches120. A control signal selects a capacitor by turning on the corresponding control gate switch so that one terminal of the capacitor is connected toterminal110 ofcrystal resonator102. To obtain a certain value of capacitance,chipset registers118 select a number of capacitors so that the sum of the capacitances of the selected capacitors most closely approximate the desired capacitance value. Capacitorbank108 operates similarly tocapacitor bank106.
Capacitors C[0021]0to C4are enhancement mode P-type MOSFETs (PMOS) with the drain nodes connected to the source nodes. The gate of the MOSFET functions as one terminal of the capacitor, and the drain/source node functions as the other terminal. A VCC_FILTER signal is derived from the power supply signal VCC to bias the PMOS capacitors into saturation. Most of the high frequency noise contained in the Vccsignal is filtered by a low pass filter composed of resistor Rbiasand capacitor Cbias. The VCC_FILTER signal also provides a filtered power supply signal to a buffer circuit that drives transmission gate switches (Figure3). Use of the low pass filter also enables low power operation because capacitor Cbiasblocks direct current from flowing.
Referring to FIG. 3, a control gate switch G[0022]0includes abuffer circuit302 and a transmission gate T0. Buffer circuit302 is used to decouple transmission gate switch T0from logic circuit that produces signal S0. This is to prevent noise generated in the chipset logic circuit from reachingoscillator circuit100 through transmission gate switch T0. Buffer circuit302 is powered by the Vcc—FILTERsignal. Use of Vcc—FILTERsignal is required to prevent unwanted noise in the RTC power supply signal from interfering with the operation ofoscillator circuit100. Additional buffer circuits (having the same configuration as buffer circuit302) are provided to decouple transmission gate switches T1to T9from the logic circuits that produce signals S1to S9.
FIG. 4 shows an example of an on-chip capacitor bank constructed from “depletion mode” NMOS transistors. An on-[0023]chip capacitor bank402 includes an on-chip capacitor array404 and control gates G10to G14. Capacitor array404 includes depletion mode NMOS capacitors C10to C14, each of which is made of an N-type MOSFET, with one terminal of the capacitor being the gate node of the MOSFET, and the other terminal of the capacitor being the source-drain connected node of the MOSFET.
When NMOS capacitors are used, it is not necessary to use V[0024]cc—FILTERsignal to bias the capacitors into saturation. This is because a depletion mode transistor has a negative threshold voltage, so a channel is formed for all non-negative oscillation voltage levels, and thus provides a greater capacitance. Because Vcc—FILTERis used only to power the logic gates ofbuffer circuit302, smaller values for resistor Rbiasand capacitor Cbiascan be used. This allows for reduction of the size of thecapacitor bank402 because the “series effect” of the capacitor bank and the capacitor Cbiasis eliminated.
An advantage of using[0025]tunable capacitor banks106,108 is that the computer system can dynamically adjust the oscillating frequency ofoscillator circuit100 based on a reference time signal. The computer may log on to the Internet at regular time intervals, and compare the system time signal with a reference time signal, such as that provided by the NIST Internet Time Service. Based on the difference between the system time and reference time,chipset114 may change the setting ofregisters118 to select a different arrangement of capacitors incapacitor banks106 and108. By selecting a slightly higher or lower amount of capacitance to be connected tocrystal resonator102,chipset114 can fine-tune the oscillating frequency ofoscillator circuit100. After each adjustment, the chipset register setting are latched bylatches120 so thatoscillator circuit100 can provide accurate time signals even after system is powered down or off.
Another advantage of using tunable capacitor banks in an oscillator circuit is that adjustment of the oscillation frequency can be performed after the hardware connections of the electronic components and circuit boards are fixed. Due to tolerances in the components and boards, the actual capacitance connected to the crystal resonator is often slightly different from the capacitance values in the original design. By adjusting the amount of capacitance provided by the tunable capacitor banks, oscillation frequency can be tuned without altering any hardware component or connection. The adjustment can be done manually or automatically through appropriate software.[0026]
Use of tunable capacitor banks is not limited to the RTC circuit of computer systems. All circuits that require fine-tuning of an accurate amount of capacitance may use a tunable capacitor bank. All electronic devices that require an accurate oscillating signal may use tunable capacitor banks to fine-tune the oscillation frequency. The fine-tuning of the oscillation frequency may be used to compensate changes in temperature and humidity, or to compensate manufacturing tolerances. Such fine-tuning of the oscillation frequency after hardware connections are fixed allows more flexibility in the selection of electronic components and circuit board layout designs.[0027]
Referring to FIG. 5, an[0028]electronic device500 includes achipset508 that has aRTC circuit514 that provides a stable clock signal.RTC circuit514 includes two tunable on-chip capacitor banks connected to each of the two terminals of aresonator102. TheRTC circuit514 is powered by both a main power supply and a battery supply so that it can keep the oscillation even when the main power supply is shut off.
[0029]Chipset508 includes a set of latches that store a set of register bit values used to control the selection of on-chip capacitors in the capacitor banks. Whenchipset508 is delivered to a manufacturer ofdevice500, the latches store default values. When the manufacturer designs a circuit board using thechipset508, the manufacturer may decide to modify the values stored in the latches by writing new register bit values into aBIOS116.
When the battery is first inserted to provide power to[0030]RTC circuit514, the register bit values are read fromBIOS116 and passed to the latches.Chipset508 includes a register that stores a “capacitor-set flag” which is used to track whether the register bit values need to be updated. Initially, the capacitor-set flag is set to “0”. Every timeelectronic device500 boots, the capacitor-set flag is checked. If the flag is set to “1”, the latch values are not changed. If the flag equals “0”, the register bit values stored inBIOS116 are read and used to overwrite the values previously stored in the latches. The capacitor-set flag is then set to “1”.
A user can overwrite the register bit values stored in[0031]BIOS116. The user then sets the capacitor-set flag to “1” to preventBIOS116 from overwriting the user-defined settings whendevice500 boots the next time. The latch settings may also be modified by an operating system (OS) running ondevice500. For example, the OS may perform an adjustment to the clock signal. An accurate reference time signal is received from an input/output device510. The OS controlschipset508 to adjust the latch settings according to the reference time signal so thatRTC circuit514 provides an accurate time signal. The OS then sets the capacitor-set flag to “1” to preventBIOS116 from overwriting the latch settings. The register bit values defined by the user or operating system are maintained in the latches as long as the battery continues to provide power to the latches and the RTC circuit.
[0032]Device500 further includes aprocessor502 that processes data and amemory device504 that stores data. Theelectronic device500 may be a computer, a handheld device, a consumer electronics device, or any other device that requires an accurate time signal.
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, the capacitor bank may incorporate a greater number of capacitors to provide a greater range of capacitance selection. The capacitance values of the capacitors in the capacitor bank may have some relationship other than a binary-weighted relationship so as to provide different capacitance combinations. The capacitors in the capacitor bank may be on-chip poly-capacitors or on-chip metal capacitors. The capacitors in the capacitor bank may even include discrete capacitors that are not made on a semiconductor chip. The external capacitors C[0033]L1and CL2may be connected in series toresonator102 such thatresonator102 operate in a series resonance mode. For the capacitor bank of FIG. 2, a series connection with resistor Rbiasand capacitor Cbiasis not required if the oscillator signals remain above the threshold voltage of the capacitors in the capacitor bank.Device500 may save the latch settings in a file in ahard drive512. The file is loaded each time afterdevice500 is booted and used to set the chipset registers to select appropriate capacitors in the capacitor banks. This prevents the loss of latch settings in the event that the battery power is lost. Accordingly, other embodiments are within the scope of the following claims.