Background of the Invention
This invention relates to threshold receiver circuits and, specifically, receiver circuits which are process and temperature insensitive.
Numerous types of receiver circuits are found in the prior art, especially those used to receive signals in computer applications. Typically, the circuits receive an analog input signal which, when the input signal is less than a predetermined minimum threshold, will output a first logic signal and when greater than a predetermined maximum threshold, will output a second logic signal. Receiver circuits are known in the prior art which use an input buffer with hysteresis. However, in the prior art circuits both the positive going and negative going thresholds are strongly dependent upon device process parameters and temperature. Also, in order to achieve apparent thresholds which are outside the range of the supply voltages for the receiver circuit, prior art circuits require at least two resistors per input signal. In addition, testing such prior art circuits is difficult when the logic output signal is not directly observable.
The present invention overcomes these problems in the prior art. An object of the present invention is to improve the signal threshold immunity with respect to process and temperature variations.
The novel circuit of the present invention features thresholds which may be programmed by means of controlling the ratio of a reference resistor to an external resistor for each input signal. Advantages of the receiver circuit of the present invention are that the signal thresholds can be outside of the supply voltage limits for the receiver circuit, and also only one resistor is required per each signal input. The receiver thresholds also have hysteresis. The present invention also makes it possible to test a receiver circuit at its input pin by forcing a voltage and observing a current. This reduces the time and complexity involved with the testing of analog parameters on a complex integrated circuit whose internal nodes cannot be directly measured.
Summary of the Invention
The threshold receiver is divided into two major portions, the first produces a reference voltage herein referred to as "VMIRR", and the second produces a logic signal which indicates that the received input signal is either above or below pre-programmed threshold levels.
The first portion includes a voltage divider and high-gain amplifier which are used to control the source-to-gate voltage of one or more output transistors in parallel. The resulting total drain currents (herein referred to as "IREF") of these transistors is used to produce a voltage-drop across an external reference resistor ("RREF"). The closed feedback control loop including the amplifier, and output transistors maintain "IREF" close to its nominal value regardless of wide parametric variations of the transistors and wide temperature variations. The gate voltage required to produce "IREF" is the "VMIRR" which is distributed to the second major portion of the receiver circuitry.
The second portion of the receiver has at least one output transistor whose gate(s) is(are) always connected to "VMIRR" and one or more output transistor(s) whose gate(s) is(are) switched to "VMIRR" only when the received signal is above the predetermined threshold.
The geometry of all output transistors is identical and layed-out in such a manner as to enhance matching. Thus, when the drain-to-source voltages of all transistors is approximately equal, the resulting total drain currents in the second major portion of the receiver circuitry, herein referred to as "ISIG", is a multiple or division of "IREF", i.e. proportional to the numbers and sizes of output transistors in the second and first portions of the input circuitry.
"ISIG" is made to flow through another external resistor herein referred to as "RSIG"(REXT), and then through the signal source. Thus, the total voltage-drop across "RSIG" is proportional to the ratio of "RSIG"/"RREF" and the ratio of "ISIG"/"IREF". The non-inverting input of a differential voltage comparator is connected to the drains which source "ISIG" and its inverting input is roughly at the same potential as the drains of the reference transistors.
Thus, the signal source voltage required to bring the non-inverting input to its threshold is equal to the threshold voltage plus or minus the voltage drop across "RREF". The required signal source voltage need not be limited by the power voltages supplied to the circuitry. The required signal source voltage can be programmed by adjusting the values of "RREF", and "RSIG". Also, the change of "ISIG" which occurs as the non-inverting input passes through its threshold results in hysteresis at the signal voltage, and provides a method of observing the output logic state.
The above described assumes that the reference, signal and hysteresis transistors are all P-channel devices, however, the circuit can be implemented with N-channel devices and an appropriate change in the sense of the hysteresis control logic.
Brief Description of the Drawings
The features of the present invention which are believed to be novel are set forth with particularity in the appended claims. The invention, together with further objects and advantages thereof, may best be understood by reference to the following description taken in conjunction with the accompanying drawings, in the several figures of which like reference numerals identify like elements, and in which:
FIG. 1 is a general block diagram of the threshold receiver circuit.
FIG. 2 is a schematic diagram of the FIG. 1 block diagram.
FIG. 3 is a schematic diagram of a portion of the FIG. 2 schematic diagram.
FIG. 4 is a schematic diagram of an unfiltered input application of the FIG. 2 circuit.
FIG. 5 is a schematic diagram of a filtered input application of the FIG. 2 circuit.
FIG. 6 is a graph of waveforms occurring in the threshold receiver circuit for the filtered application.
Description of the Preferred Embodiment
The novel threshold receiver 8 circuit is shown in FIG. 1 in general block diagram form. The receiver circuit has a first portion 10 which is a non-inverting unity gain amplifier which is operatively connected to voltage sources VDD and VSS where VSS may be a common electrical ground. An external resistor RREF is provided and is connected between the output of the non-inverting unity gain amplifier 10 and a second source of voltage which could be VSS. The amplifier 10 also provides a voltage which appears on node VMIRR.
One or more channel subcircuits 20 may be used in the receiver circuit, one subcircuit 20 for each signal, VSIG, which is to be received. Each sub-circuit 20 is powered by the supply voltage VDD and VSS, where VSS may be a common ground point and has associated with it an external resistor REXT which connects to the signal source VSIG. Each of the subcircuits 20 provides a logic output on each terminal 22.
The receiver circuit 8 provides accurate thresholds for input signals, including analog signals and high-speed digital signals. In general terms, a reference current passing through the reference resistor, RREF, is mirrored to the input resistor, REXT thereby causing their respective current flows to be related to each other. The voltage-drop across the input resistor, REXT, is thus proportional to the reference current, to the mirror-transfer coefficient and also to the ratio of the resistors, RREF and REXT, but is insensitive to process and temperature changes. The input signal to the circuit VSIG can be outside the VDD-VSS power-supply range. Input threshold hysteresis for each subcircuit is accomplished by making the mirror-transfer coefficient a function of hysteresis transistors associated with each subcircuit.
The simplified schematic of FIG. 2 illustrates one embodiment of the present invention. All components, with the exception of resistors RREF and REXT, are fabricated on a common substrate in order to match and track each other closely. A reference circuit is shown which consists of amplifier A1, transistors, MREF1 and MREF2, a reference voltage VREF 12 (shown here as the output of a voltage divider, usually VDD/2, but other reference voltages are also suitable), a protection circuit 11 (such as resistor RP1), and an external reference resistor, RREF. Only one receiver subcircuit 20 is shown, consisting of amplifier A2, switch circuitry 24, three transistors MSIG, MHYS1, and MHYS2, which are matched to the reference transistors, MREF1 and MREF2, a threshold network with voltage hysteresis 21, a logic inverter 26, a protection circuit, (such as resistor RP1), and an external signal resistor, REXT. The completed circuit may contain several channel subcircuits 20, all of which are connected to the single reference circuit 10.
VREF is imposed at the inverting input of amplifier A1. Amplifier A1 and transistors MREF1 and MREF2 together form a non-inverting unity gain amplifier with its output node 9 approximately equal to VREF. The total current through transistors, MREF1 and MREF2, is thus approximately equal to VREF divided by the total resistance (RREF+RP1). The device sizes are such that the gate-source voltage (VDD-VMIRR) is within the range of VDD-VSS.
Each receiver subcircuit 20 contains three transistors, MSIG, MHYS1 and MHYS2, which are matched to the transistors in the reference circuit 10.
Thus, when the switch 24 is in the position shown, and Vos (offset error voltage) and Vgs (gate-source voltage) of MSIG, MHYS1 and MHYS2 are equal to those of MREF1 and MREF2, the mirror transfer coefficient is the ratio of the combined gain of MSIG, MHYS1 and MHYS2 to the combined gains of MREF1 and MREF2. Also, when the switch 24 is in its other state (i.e. connected to terminal 23 shown in FIG. 2), the mirror transfer coefficient is the ratio of the gain of MSIG, to the combined gain of MREF1 and MREF2. The voltage drop across REXT is equal to the product of VREF and the mirror transfer coefficient.
The receiver subcircuit is at its threshold when node V7 is approximately equal to the output of the threshold network 21, VDD*D2*(1.+-.KHYS). Also, VSIG is equal to V7 less the voltage drop across REXT and RP2.
The two possible values of VSIG which bring the receiver sub-circuit to its threshold will be identified as VTH+ and VTH-, upper and lower thresholds. They can be computed with the following equation: ##EQU1## Where: VDD=positive power supply
D1=divider 12 ratio in the reference circuit 10
D2=divider 21 ratio in the receiver sub-circuit 20
+KHYS=the factor by which D2 of divider 21 is modified when the circuit is built with voltage hysteresis; positive when Vout 22 is high, negative when Vout 22 is low.
RP1=a circuit protection resistor 11, small when compared with PREF and REXT.
RP2=a circuit protection resistor, to track RP1, and equal to it.
PREF=external reference resistor
REXT=external signal threshold setting resistor.
WR=total effective width of the reference transistors MREF1 & MREF2 in the reference circuit 10
WE=total effective width of the "ON" transistors MSIG or MSIG, MHYS1, MHYS2 in the receiver subcircuit 20 (assuming equal lengths of all transistors in 10 & 20)
GDS=Effective drain-source conductance of the matched transistors MSIG, MHYS1, MHYS2
VOS1=offset error of amplifier A1
VOS2=offset error of amplifier A2
Thus, if it is assumed that the dividers are both equal, with factors D1=D2=0.5, and that RREF=REXT, and (WE/WR)=1.5 (Vout 22 is low), and RP1=RP2, and KHYS=VOS1=VOS2=0 (that is, that voltage hysteresis KHYS is not employed and that voltage offsets for amplifiers A1 and A2 are both equal to zero),
This is effectively the negative-going threshold voltage of the receiver circuit, and if VSS=0, is outside the range of VDD-VSS.
When the input voltage is more negative than VTH-, the internal control circuitry 24 imposes VDD at the gates of MHYS1 and MHYS2, thereby turning these P- channel devices off. The ratio of effective widths (WE/WR) is thereby reduced from 1.5 to 0.5.
Thus, if it is assumed that the dividers are both equal, with factors D1=D2=0.5, and that PREF=REST, and (WE/WR)=0.5, and RP1=RP2, and VOS1=VOS2=VOS3=0,
This is effectively the positive-going threshold voltage of the receiver circuit, and if VSS=0, is inside the range of VDD-VSS.
The effective hysteresis at the signal input is the difference between positive-going and negative-going thresholds: ##EQU2## WHERE: (WE/WR).sub.30 =the ratio of effective widths when Vout 22 is low.
(WE/WR).sub.- =the ratio of effective widths when Vout 22 is high.
FIG. 3 is a simplified circuit diagram of the switch circuitry 24 depicted in block diagram form in FIG. 2. Inverters Q1 and Q2, have their inputs connected to VOUT 22. A third inverter Q3, has its input connected to the output of second inverter Q2. A first (P-channel) transistor has its gate connected to the output of amplifier, Q3. Its source is connected to V.sub.MIRR, and its drain is connected to a switching node on which is voltage, VHYS. A second (N-channel) transistor has its gate connected to the output of amplifier Q2. Its drain is connected to VMIRR and its source is connected to the switching node. A third transistor (P-channel) has its gate connected to an output of amplifier Q1, its source to VDD and its drain to the switching node. The switching node is connected to the gates of the hysteresis transistors, MHYS1 and MHYS2.
In actual application, signal Inputs may be either unfiltered or filtered as shown in FIGS. 4 and 5.
In one embodiment of the present invention a voltage of approximately VDD/2 is produced across an external reference resistor R.sub.REF and between the reference pin and ground, resulting in nominally 112.6 microamps passing through the resistor. This current is mirrored to each of 16 inputs of 16 channel subcircuits. When input voltage VSIG is just above Vth-, 225 microamps is sourced to the external circuitry. When VSIG drops below Vth-, the comparator A2 changes state and also reduces the input current-source to 112.6 microamps. Voltage hysteresis of .+-.1.0 volt is also added to the inverting input of comparator A2 shown in FIG. 5.
For unfiltered applications, when the input pin is at its threshold, the negative-going signal source V.sub.SIG (i.e. the external transistor collector) is at:
and a positive-going signal source .sup.V SIG will be at:
Table 1 lists the effective threshold values of collector voltages for various standard external resistor values when V.sub.DD =5.0 Ov, KHYS=0.4, and RREF 22K.
Filtering is achieved by adding the capacitor CEXT as shown in FIG. 5. Waveforms for an application are shown in FIG. 6.
Thus when the external photo-transistor 31 is ON, its collector is at -5 v if VEE is slightly less than -5 VDC. During this interval, this phototransistor sinks both capacitor current and input current.
When the capacitor voltage reaches the comparator threshold V.sub.DD D2(1-KHYS) the input current switches from 225 microamps to 112 microamps, producing a small amount of hysteresis at the non-inverting comparator input, and also increasing the capacitor charging-rate. The threshold network 21 is also switched.
The capacitor continues to charge until it is clamped by internal protection devices at just below VSS.
FIG. 6 illustrates the waveforms corresponding to the filtered input application shown in FIG. 5, combined with the circuit shown in FIG. 2. It is there seen that the voltage to phototransistor 31 (see FIG. 5) causes a change in the input voltage at the junction of CEXT and REXT which is modified by the charging rate of capacitor CEXT as governed by resistor REXT. It is also seen that the current through RP2 (-IIn) does not change state until VINPUT (see FIG. 5) is less than V.sub.DD D2 plus or minus (V.sub.DD D2) KHYS. This in turn causes the output voltage (VOUT 22) to change state.
The invention is not limited to the particular details of the apparatus and method depicted and other modifications and applications are contemplated. Certain other changes may be made in the above described apparatus and method without departing from the true spirit and scope of the invention herein involved. It is intended, therefore, that the subject matter in the above depiction shall be interpreted as illustrative and not in a limiting sense.