Abstract:
A frequency-responsive integrated circuit (IC) for determining when the frequency of a clock pulse input signal is below a predetermined threshold level, the IC including a capacitor charged up at a nearly constant rate by a current source. If the capacitor voltage reaches one-third of the DC power voltage, and input pulses are received, the capacitor is discharged to start another charge-up cycle. If no input pulses were received, the capacitor continues to charge up until its voltage reaches two-thirds of the DC power voltage, at which point an output signal is produced indicating that the input frequency is below the predetermined threshold level.

Description:
This application is a divisional application of application Ser. No. 07/876,756 as originally filed on May 1, 1992 now U.S. Pat. No. 5,446,322. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     This invention relates to frequency-responsive circuitry. More particularly, this invention relates to such circuitry for determining when the frequency of an alternating signal, such as a clock signal, is below a predetermined level. 
     2. Description of the Prior Art 
     Lap top computers can be powered either with internal battery, i.e., when operating in stand-alone mode with the on-board black-and-white, low-power display device they carry, such as a liquid crystal display (LCD), or can be plugged into line power for operation with an auxiliary higher-power-consumption three-color display monitor providing a superior presentation of data but requiring control circuitry which consumes power at a rate which would quickly exhaust an on-board battery. 
     When in battery-powered mode, much of the display control circuitry of the computer is not needed for the relatively simpler black-and-white display, and those portions of the computer circuitry can be powered-down in that mode in order to conserve battery power. The computer advantageously is provided with automatic means for turning off such power-consuming circuitry as is not needed when operating with the battery-powered black-and-white display. 
     Some three-color monitor displays may require a clock frequency of from about 25 to 40 MHz. System considerations, such as testing, may dictate the use of much lower clock frequencies when operating on a-c line power, and a limit of 200 kHz might for example be selected as the lower threshold for line-power operation. When operating with battery power for the on-board black-and-white display, the clock frequency of the color display circuitry is set to be much lower, or even at zero, because of the relative simplicity of the on-board display. Control means responsive to clock frequency thus can be used to determine when the computer is being operated on battery power. Following such determination, the control means will automatically turn off the unneeded circuits. To be commercially practical, such control means must be highly reliable in operation, yet relatively inexpensive to make. 
     SUMMARY OF THE INVENTION 
     In a preferred embodiment of the invention, to be described in detail hereinbelow, there is provided a frequency-responsive integrated circuit (IC) which receives the computer clock signal and produces an output signal whenever the clock frequency is below a threshold value such as 200 kHz. This circuit basically comprises a capacitor charged at a nearly constant rate by a current source, and discharged at selected times when certain conditions are met. 
     As the capacitor charges up, its voltage is sensed by a first comparator which detects when the voltage reaches a relatively low preset trip-point level such as one-third of the DC supply voltage (V DD ). If the computer is operating on line power to activate an auxiliary monitor display, its clock frequency will be high (e.g., between 200 kHz and 40 MHz). This high frequency is indicated by the receipt of clock pulses prior to the time the capacitor voltage reaches the low preset comparator reference level, and the appearance of such clock pulses will be detected and the capacitor discharged at the comparator trip point to start another charge-up timing cycle. Since the computer is being supplied with external line power for the auxiliary monitor display, the full complement of display control circuitry will be needed and will be powered. 
     If the computer is shifted to battery power, the clock frequency drops to a very low value, or zero, since the on-board display does not need high-frequency operation. Now, as the capacitor charges up, no clock pulses will have been received prior to the time its voltage reaches the trip point of the first comparator. That is, the low clock frequency results in a time interval between clock pulses which is substantially longer than the time required for the capacitor voltage to reach the comparator trip point (which may for example be about 20 μsec). Thus the capacitor continues to charge up beyond that trip point. 
     As the capacitor continues to charge up beyond that trip point, a second comparator senses its voltage. This comparator detects when the voltage reaches a higher preset voltage (e.g., two-thirds of V DD ) without any clock pulses having been received since the start of capacitor charging. This absence of clock pulses indicates a low-frequency clock rate. Upon detecting that condition, the second comparator produces an output signal to indicate that the computer is operating on battery power. That output signal causes power-down of certain components of the display control circuitry, to conserve battery power. 
     The frequency-responsive IC described herein incorporates a number of important features to assure that its operation is reliable notwithstanding uncontrolled conditions such as changes in V DD  or process variations in manufacturing the IC. Such reliable operation is particularly important to assure that the IC does not indicate falsely that the clock frequency is below the selected threshold level and switch the display-control circuitry off. In that regard, features of the invention provide a considerable dynamic range of operation with assured performance. Other objects, aspects and advantages of the invention will be pointed out in, or apparent from, the following description of a preferred embodiment considered together with the accompanying drawing which shows a circuit diagram of the new integrated circuit. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a circuit diagram of an integrated circuit embodying the present invention. 
    
    
     DESCRIPTION OF PREFERRED EMBODIMENT 
     Referring now to FIG. 1, the frequency-responsive IC comprises a charging capacitor C which is an MOS device (MN5) with source and drain connected to ground for one capacitor terminal, and the gate serving as the other capacitor terminal. Current is directed to the gate of MN5 by a current source MP3 connected to the positive power line V DD . The capacitor charging current is compensated for changes in V DD  by a band-gap regulator circuit generally indicated at 10, and provided with a start-up circuit generally indicated at 12. Detailed information on band-gap regulators may be found in many prior art publications, such as U.S. Pat. Nos. 3,940,760 and 4,622,512, issued to A. P. Brokaw. 
     The band-gap circuit 10 includes two bipolar transistors QP2 and QP1/QP3, providing a 2:1 emitter area ratio. The transistor emitter currents are directed to current mirrors MN1, MN2 and MP1, MP2, which force the transistor currents to be equal. With unequal emitter areas, a ΔV BE  voltage is developed between the emitters. This ΔV BE  voltage appears across the resistor R formed by an MOS transistor MN8, and develops a corresponding current ΔV BE  /R through the bipolar transistors. This current is mirrored to the current source MP3 supplying charging current to the MOS capacitor C. Changes in V DD  have very little effect on the magnitude of this charging current, because the ΔV BE  voltage is essentially proportional only to the variable of absolute temperature. 
     This capacitor charging arrangement also provides compensation for the usual variations in the manufacturing process which result in differences between successive lots of IC chips. For example, if process variations cause a reduced thickness of oxide beneath the gate of MN5, there would be an increase in the capacitance C tending to decrease the rate-of-change of the capacitor voltage ramp-up. However, that same reduced thickness of oxide would occur also for MN8 thereby reducing the resistance R and increasing the charging current into the capacitor. Thus, there is automatic compensation for at least part of the increase in capacitance. In that way, the rate-of-change of the capacitor voltage advantageously is maintained very nearly constant. 
     As noted above, the current through resistor R is proportional to ΔV BE , and thus is proportional to absolute temperature. However, as the temperature increases, the resistance of R also increases, thus tending to maintain the charging current into capacitor C constant in the face of temperature changes. 
     After the capacitor C is charged up to a preset level, it is discharged back to zero volts under certain conditions as described below, and the capacitor charging cycle begins again. Discharge of the capacitor is effected by an MOS transistor 14 (MN3) acting as a switch connected directly across the capacitor. This switch is controlled by a timing control circuit generally indicated at 20 and now to be described. 
     The timing control circuit 20 includes an input terminal CLK which receives the clock signal whose frequency is to be sensed. This CLK terminal is connected to one input of a D-type flip/flop 22 and, through an inverter 24, to the other flip-flop input to provide a differential input signal. The output Q of the flip/flop is fed back through an inverter 26 to the D input, thereby forming a toggle flip-flop. In that configuration, each input clock pulse reverses the state of the flip-flop unless the signal to the reset terminal 28 disables the flip/flop, as will be further described. 
     When the flip-flop is toggled by a series of input clock pulses, it acts as a 2:1 frequency divider, and produces output pulses having an effective duty-cycle of 50% regardless of the duty-cycle of the stream of clock pulses. Thus, the constraints of prior art circuits on clock pulse duty-cycle are avoided by this toggle flip-flop arrangement. 
     If high-frequency clock pulses (e.g., at 40 MHz) are applied to the CLK terminal, and if the flip-flop 22 turned on the switch MN3 to discharge the capacitor for each clock-pulse cycle, there would be significant current flow through the gate-to-drain capacitance (Cgd) of MN3 as a result of the considerable voltage activity at the gate. This current flow could be of the same order of magnitude as the charging current from MP3, and thus could significantly alter the capacitor charging rate and interfere with the desired timing function to be provided by that capacitor. The timing control circuit 20, however, is provided with means to prevent this adverse result, as will now be described. 
     Initially, as the capacitor C begins to charge up, the Q output of the flip-flop 22 is forced to logic zero by a signal on its reset terminal 28 which also disables the flip-flop. Thus, if a high-frequency (e.g., 40 MHz) stream of clock pulses is applied to the CLK terminal, the flip-flop will (initially) not change state to turn on the switch MN3 for each clock pulse received. Thus the capacitor will charge up steadily and at a fixed rate while a relatively large number of high-frequency clock pulses is received, for example, a hundred or so pulses. This disabling of the flip-flop prevents the voltage swing activity which otherwise would occur at the gate of MN3 during ramp-up of the capacitor voltage, thereby minimizing the flow of parasitic transient or a-c current into the capacitor C and assuring smooth and steady ramp-up of its voltage. 
     As the voltage on the charging capacitor C ramps up, it is sensed by a first comparator 30 comprising a string of three series-connected MOS transistors MP5, MP7 and MN10,and one additional transistor MP8, with current supplied by V DD . These transistors are scaled in such a way that the comparator trips when the capacitor voltage reaches a relatively low-level reference voltage, e.g., about one-third V DD . The resulting comparator output is passed through an inverter 32 to the reset terminal 28 of the flip-flop 22 and enables that flip-flop so that upon receipt of the next clock pulse the flip-flop switches state and turns on MN3 to discharge the capacitor C. 
     If the stream of clock pulses on the CLK terminal is at a relatively low frequency, such as 10 kHz, the time between pulses will be sufficiently long that the capacitor C will be able to charge up to beyond the trip point of the first comparator 30 without being discharged back to zero by MN3. Ultimately, however, the capacitor voltage will reach the trip point of a second comparator 40 which comprises a second set of three series-connected transistors MP5, MN6 and MN4, and an additional transistor MN7. These transistors are so scaled that the comparator trip point is at a relatively higher voltage than that of the first comparator 30, preferably about two-thirds of V DD . 
     When the second comparator trips, its signal passes through an inverter 42 to an output terminal OUT. This output signal indicates that the received clock pulses are at a frequency below a predetermined threshold (such as 200 kHz). The computer thus is indicated to be on battery power, and the output signal accordingly effects switchover (by conventional means not shown) to the power-down mode where selected portions of the computer circuitry are turned off to conserve battery power. 
     Although a preferred embodiment of the invention has been disclosed herein in detail, it is to be understood that this is for the purpose of illustrating the invention, and should not be construed as necessarily limiting the scope of the invention since it is apparent that many changes can be made by those skilled in the art while still practicing the invention claimed herein. For example, the invention may be provided as a cell in an IC chip containing other circuitry, or it may be provided as a separate chip. Still other variations are readily possible as is known in the art, including different circuit arrangements for achieving the basic purposes of the invention as set forth in the accompanying claims.