This invention relates to semiconductor integrated circuits and, more particularly, to a signal detection circuit. The function of the signal detection circuit is to compare an amplitude of a differential input signal to a comparator threshold voltage and to produce an output signal which is either high or low depending on whether the signal's amplitude is less than or greater than the comparator threshold voltage. This invention is similar to a method of detecting an amplitude of a signal which uses a current-source-biased comparator, but replaces the current source with a short to a power supply terminal and adds input signal level-shifters, providing for a much-improved differential input signal common-mode range.
To compare the amplitude of a differential input signal to a comparator threshold voltage, a signal detection circuit includes first and second matched input signal level-shifters, a compare voltage generation circuit, and a two-stage comparator. The differential input signal is comprised of a true input signal and a complement input signal, and the first input signal level-shifter is coupled to the true input signal, and the second input level-shifter is coupled to the complement input signal. The compare voltage generation circuit outputs a first compare voltage set to an average voltage of the output signals of the level-shifters plus the comparator threshold voltage, and a second compare voltage set to the average voltage of the output signals of the level-shifters minus the comparator threshold voltage. The first stage of the two-stage comparator outputs a low signal if the more positive of the level-shifted input signals is greater than the more positive of the compare voltages. The second stage of the two-stage comparator amplifies the output of the first stage of the two-stage comparator, includes positive feedback to inhibit comparator self-oscillation, and has a sufficiently low bandwidth so as not to pass to its output a momentary pulse at its input due to a transition in the differential input signal.
The signal detection circuits of
The differential input signal is comprised of input signals INP and INM, which are coupled to the matched input signal level-shifters. Input signal INP is coupled to level-shifted signal INPX through series components R1 and C1. A level-shift current from transistor M1 induces a voltage drop across R1, and capacitor C1 provides a low-impedance signal path to couple INP to INPX with minimal high-frequency signal loss. Similarly, input signal INM is coupled to level-shifted signal INMX through series components R2 and C2, and a level-shift current from transistor M2 sets a voltage drop across R2, and capacitor C2 provides a low-impedance signal path to couple INM to INMX with minimal high-frequency signal loss. These two level-shifters are matched: R1 and R2 are the same size and resistance value, C1 and C2 are the same size and capacitance value, and M1 and M2 are the same size and have matched K-factors (voltage-to-current conversion gain).
The matched circuit sets the voltage of the common signal COM to that of the average voltage of INPX and INMX, and comprises resistors R3 and R4, and transistor M3. In a preferred embodiment, resistors R1, R2, R3, and R4 are the same size and value, the gate width of M3 is twice the gate width of M1 and M2 (or, alternatively, M3 comprises two transistors matched to M1 and M2), and the gate lengths of M1, M2, and M3 are equal. Two final components of the circuit of
b depicts the two-stage comparator, comprising a first comparator 8 and a second comparator 9. A first dual-input voltage-to-current converter comprised of transistors M4 and M5 has an output and its inputs are coupled to compare voltages THRESHP and THRESHM. A second dual-input voltage-to-current converter comprised of transistors M8 and M9 has an output coupled to OUT1, and its inputs are coupled to level-shifted signals INPX and INMX. A current mirror comprised of transistors M6 and M7 has an input coupled to the output of the first dual-input voltage-to-current converter and an output coupled to OUT1 and to an input of the second comparator. Coupled to a second input of the second comparator is a threshold voltage THRESH.
Consider currents I1 and I2 of
I1=KM4(VGS,M4−VT,M4)2+KM5(VGS,M5−VT,M5)2 (1)
I2=KM8(VGS,M8−VT,M8)2+KM9(VGS,M9−VT,M9)2 (2)
Each of the constants KMn and VT,Mn (n=4,5,8,9) represent a transistor's K-factor (voltage-to-current conversion gain) and threshold voltage, respectively. In a preferred embodiment, and for the purposes of simplifying the following analysis, the gate length of all transistors of
VGS,M4=VTHRESHP−VVSS (3)
VGS,M5=VTHRESHM−VVSS (4)
VGS,M8=VINPX−VVSS (5)
VGS,M9=VINMX−VVSS (6)
VTHRESHP=VCOM+V1 (7)
VTHRESHM=VCOMV1 (8)
Defining VPEAK as a peak voltage of signals INP and INM above average voltage (VINP+VINM)/2, and with a voltage drop across each of level-shifting resistors R1–R4 being substantially equal, the following relations are true:
VINPX=VCOM+VPEAK (9)
VINMX=VCOM−VPEAK (10)
Combining equations (1) through (10) gives the following result:
I2−I1=2K(VPEAK2−V12) (11)
The signal detection circuit is operating at a threshold when I1=I2. When I1>I2, a net positive current will charge OUT1 to a voltage substantially near VDD, and when I1<I2, a net negative current will discharge OUT1 to a voltage substantially near VSS. A condition for which the first comparator is at its threshold is given by that voltage of VPEAK for which I2−I1=0, and is obtained by inspection as VPEAK=V1, thereby confirming the proper definition of V1 as the comparator threshold voltage.
Finally, it is instructive to differentiate equation (11):
∂(I2−I1)∂VPEAK=4KV1 (12)
The quantity 4KV1 is a measure of the first comparator's voltage-to-current gain, and this gain is a non-zero quantity if V1≠0. In all practical applications of this signal detection circuit, this is indeed the case.
a illustrates the circuit of
b illustrates the circuit of
c illustrates a circuit which implements the functionality of voltage sources V1 and V2 of
IM10=IR7=(VVDD−VREF)/RR7 (13)
Switched current-source 16 is a binary-weighted switched current source and is comprised of dual-gate transistors M20, M21, M22, and M23. In a preferred embodiment, these dual-gate transistors each consist of two series transistors having a gate width and an equal gate length. The gate width of the transistors of dual-gate transistor M22 is twice that of the transistors of dual-gate transistor M23; the gate width of the transistors of dual-gate transistor M21 is twice that of the transistors of dual-gate transistor M22; and the gate width of the transistors of dual-gate transistor M20 is twice that of the transistors of dual-gate transistor M21. Additionally, the gate width of transistor M10 is twice the gate width of the transistors of dual-gate transistor M20. In combination, bias generator 15 and switched current-source 16 form a binary-weighted, programmable current source controlled by logic terminals IN0, IN1, IN2, and IN3 and having an output current given by
IX=(IN/16)*IM10 (14)
where IN is a decimal number between 0 and 15 and is set by logic levels IN[3:0].
Current-to-voltage converter 17 comprises three current mirrors each with a gain substantially equal to 1, and resistors R5 and R6. A first current mirror comprising M11 and M12 generates output current I12 equal to input current IX; a second current mirror comprising M11 and M13 generates output current I13 equal to input current IX; and a third current mirror comprising M14 and M15 generates output current I15 equal to input current I12. It then follows that compare voltages VTHRESHP and VTHRESHM are given by
VTHRESHP=VCOM+IX*RR5 (15)
VTHRESHM=VCOM−IX*RR6 (16)
In a preferred embodiment, all resistors of
VTHRESHP=VCOM+V1 (17)
VTHRESHM=VCOM−V1 (18)
where V1=(VVDD/4)*(IN/16) (19)
This final equation (19) illustrates the influence of logic terminals IN[3:0] on the comparator threshold voltage, V1.
The signal detection circuit can be implemented with discreet components, with semiconductor devices embedded in an integrated circuit such as an application specific integrated circuit (ASIC), or with a combination of both. Individual signals or devices can be active high or low, and corresponding circuitry can be converted or complemented to suit any particular convention. The term “coupled” used in the claims includes various types of connections or couplings and includes a direct connection or a connection through one or more intermediate components. Except to the extent specified in the following claims, circuit configurations and device sizes shown herein are provided as examples only. Those skilled in the art will recognize that desired and proper circuit operation can be achieved with other circuit configurations, device sizes, and/or combinations of device sizes.
This application claims the benefit of priority pursuant to 35 USC §119(e) from U.S. provisional patent application Ser. No. 60/445,751, filed Feb. 7, 2003, and entirely incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5936466 | Andoh et al. | Aug 1999 | A |
Number | Date | Country | |
---|---|---|---|
20050174148 A1 | Aug 2005 | US |
Number | Date | Country | |
---|---|---|---|
60445751 | Feb 2003 | US |