This application claims the benefit of China application Serial No. CN202311034284.1, filed on Aug. 17, 2023, the subject matter of which is incorporated herein by reference.
The present application relates to a receiver, and more particularly to a receiver with an application of multiple transmission modes and capable of detecting handshake signals.
A receiver needs to first determine whether a received signal is a handshake signal complying to specifications of a transmission protocol before a connection with another device can be established. In the prior art, handshake signals specified by different transmission protocols have different signal characteristics, such that a receiver may need to be provided with multiple sets of circuits for identification. Thus, in an application of multiple transmission modes, the number of circuits in the receiver is significantly increases, resulting in overly large increases in the circuit area and costs.
In some embodiments, it is an object of the present application to provide a cost-down receiver with an application of multiple transmission modes so as to improve the issues of the prior art.
In some embodiments, a receiver includes a termination resistor circuit, a reference voltage generator, a comparator, a filter and a digital circuit. The termination resistor circuit outputs a common-mode voltage in a calibration mode and outputs a plurality of input signals in a plurality of transmission modes. The reference voltage generator outputs the common-mode voltage in the calibration mode, and provides a plurality of reference voltages in the transmission modes. The comparator generates a first signal according to the common-mode voltage and performs an offset calibration in response to an offset calibration signal in the calibration mode, and compares the reference voltages with the input signals to generate the first signal in the transmission modes. The filter outputs the first signal as an output signal in the calibration mode, and generates the output signal according to the first signal in the transmission modes. The digital circuit generates the offset calibration signal according to the output signal.
Features, implementations and effects of the present application are described in detail in preferred embodiments with the accompanying drawings below.
To better describe the technical solution of the embodiments of the present application, drawings involved in the description of the embodiments are introduced below. It is apparent that, the drawings in the description below represent merely some embodiments of the present application, and other drawings apart from these drawings may also be obtained by a person skilled in the art without involving inventive skills.
All terms used in the literature have commonly recognized meanings. Definitions of the terms in commonly used dictionaries and examples discussed in the disclosure of the present application are merely exemplary, and are not to be construed as limitations to the scope or the meanings of the present application. Similarly, the present application is not limited to the embodiments enumerated in the description of the application.
The term “coupled” or “connected” used in the literature refers to two or multiple elements being directly and physically or electrically in contact with each other, or indirectly and physically or electrically in contact with each other, and may also refer to two or more elements operating or acting with each other. As given in the literature, the term “circuit” may be a device connected by at least one transistor and/or at least one active element by a predetermined means so as to process signals.
The receiver 100 includes a signal detection circuit 110 and a data receiving circuit 120. The signal detection circuit 110 may detect whether an input signal VIN and an input signal VIN received belong to handshake signals under a predetermined transmission protocol to accordingly establish a connection according to the handshake signals. Once it is determined that the connection is established, the data receiving circuit 120 may be activated so as to perform data processing according to the subsequent input signal VIP and input signal VIN. In some embodiment, the signal detection circuit 110 is applicable to multiple transmission modes by using one single comparator to thereby reduce circuit costs.
The termination resistor circuit 210 is configured to provide impedance matching so as to receive the input signal VIP and the input signal VIN. More specifically, the termination resistor circuit 210 may operate in the calibration mode or in one of the multiple transmission modes. The termination resistor circuit 210 may output a common-mode voltage VCM in the calibration mode and output the input signal VIP and the input signal VIN in he multiple transmission modes. Configuration details of the termination resistor circuit 210 are to be described with reference to
The reference voltage generator 220 generates the common-mode voltage VCM and multiple reference voltages VREF1 and VREF2 according to a supply voltage VDD. More specifically, the reference voltage generator 220 may operate in one of the multiple transmission modes or in the calibration mode in response to multiple calibration control signals SCB and SC. The reference voltage generator 220 may output the common-mode voltage VCM in the calibration mode, and provide the multiple reference voltages VREF1 and VREF2 in the multiple transmission modes. Configuration details of the reference voltage generator 220 are described with reference to
The comparator 230 may generate a signal S1 according to the common-mode voltage VCM to accordingly perform an offset calibration in response to an offset calibration signal OC in the calibration mode, and compare the multiple reference voltages VREF1 and VREF2 with the multiple input signals VIP and VIN to generate the signal S1 in the multiple transmission modes. In some embodiments, the comparator 230 may have different circuit configurations in different transmission modes in response to the control signal SM. Configuration details of the comparator 230 are to be described with reference to
The filter 240 may selectively operate in one of the multiple transmission modes or in the calibration mode in response to multiple mode control signals SM1 and SM2 and the calibration signal SC, and output a corresponding output signal SO. For example, the filter 240 may operate in the calibration mode in response to the calibration control signal SC, and output an output signal S1 in the calibration mode as the output signal SO. The filter 240 may operate in a first transmission mode of the multiple transmission modes in response to the control signal SM1, and perform low-pass filtering on the signal S1 to generate the output signal SO in the first transmission mode. Alternatively, the filter 240 may operate in a second transmission mode of the multiple transmission modes in response to the mode control signal SM2, and generate the output signal SO according to the signal S1 in the second transmission mode, wherein the output signal SO is an envelope signal of the signal S1. Configuration details of the filter 240 are to be described with reference to
In some embodiments, the digital circuit 250 may be implemented by multiple digital logic circuits so as to execute a predetermined operation process according to the output signal SO. For example, when the receiver 100 operates in the calibration mode, the digital circuit 250 may perform a calibration algorithm (for example but not limited to, a successive approximation register (SAR) algorithm) to accordingly output an offset calibration signal OC, so as to calibrate an offset caused by non-ideal factors such as manufacturing variations. Alternatively, when the receiver 100 operates in one of the multiple transmission modes, the digital circuit 250 may detect according to the output signal SO whether the currently received input signal VIP and signal VIN are handshake signals defined by a protocol corresponding to a corresponding transmission mode, so as to determine whether to establish a connection to a device (not shown) issuing the input signal VIP and the input signal VIN. In some embodiments, the digital circuit 250 may further generate the multiple calibration signals SC and SCB and the mode control signals SM, SM1 and SM2 described above.
The DAC 260 may source a current signal IP and a current IN from the comparator 230 according to the offset calibration signal OC so as to calibrate the comparator 230. For example, the DAC 260 may source the current signal IP and the current signal IN according to the offset calibration signal OC in the calibration mode, so that a level at an internal node of the comparator 230 can be calibrated to a target level to eliminate the offset of the comparator 230. Configuration details of the DAC 260 are to be described with reference to
The multiple switches SW1+ and SW1− are coupled to the multiple termination resistors RT1 and RT2, and are turned on in the multiple transmission modes and turned off in the calibration mode. More specifically, second terminals of the multiple switches SW1+ and SW1− are respectively coupled to the multiple switches SW2+ and SW2− and the multiple capacitors C+ and C−. Control terminals of the multiple switches SW1+ and SW1− receive the calibration control signal SCB. In other words, the multiple switches SW1+ and SW1− may be selectively turned on according to the calibration control signal SCB.
In some embodiments, when the receiver 100 operates in the calibration mode, the calibration control signal SC is at an enabled level (for example but not limited to, a level corresponding to logic 1), and the calibration control signal SCB is at a disabled level (for example but not limited to, a level corresponding to logic 0). On the other hand, when the receiver 100 operates in one of the multiple transmission modes, the calibration control signal SC is at a disabled level, and the calibration control signal SCB is at an enabled level. In this case, when the receiver 100 operates in the calibration mode, the multiple switches SW1+ and SW1− may be turned off in response to the calibration control signal SCB at a disabled level. Thus, the multiple switches SW1+ and SW1− do not transmit the multiple input signals VIN and VIP to subsequent circuits.
First terminals of the multiple switches SW2+ and SW2− are respectively coupled to the second terminals of the multiple switches SW1+ and SW1−, second terminals of the multiple switches SW2+ and SW2− are coupled to ground, and control terminals of the multiple switches SW2+ and SW2− receive the calibration control signal SC. In other words, the multiple switches SW2+ and SW2− may be selectively turned on according to the calibration control signal SC. In this case, when the receiver 100 operates in the calibration mode, the multiple switches SW2+ and SW2− may be turned on in response to the calibration control signal SC at a disabled level, so as to couple first ends of the multiple capacitors C+ and C− to ground. First ends of the multiple resistors R11 and R12 are coupled to second ends of the multiple capacitors C+ and C−, and second ends of the multiple resistors R11 and R12 receive the common-mode voltage VCM.
With the settings above, when the receiver 100 operates in the calibration mode, the multiple switches SW2+ and SW2− are turned on, and the multiple switches SW1+ and SW− are turned off. In this case, the multiple switches SW2+ and SW2− couple the first ends of the multiple capacitors C+ and C− to ground via the multiple switches SW2+ and SW2−, and the second ends of the multiple capacitors C+ and C− receive the common-mode voltage VCM via the multiple resistors R11 and R12, accordingly providing the common-mode voltage VCM to the comparator 230. Alternatively, when the receiver 100 operates in one of the transmission modes, the multiple switches SW1+ and SW1− are turned on, and the multiple switches SW2+ and SW− are turned off. In this case, the multiple capacitors C+ and C− are operable as an alternating-current (AC) coupling circuit, so as to receive AC components in the multiple input signals VIP and VIN via the multiple switches SW1+ and SW1−. The multiple resistors R11 and R12 may add the common-voltage VMC to these AC components, and output an added result (equivalent to the input signals VIP and VIN having been shifted) to the comparator 230.
First terminals of the multiple switches SW4+ and SW4− are coupled to the voltage dividing circuit 410 to respectively receive the reference voltage VREF1 and VREF2, second terminals of the multiple switches SW4+ and SW4− are coupled to second ends of the multiple switches SW3+ and SW3− and the comparator 230, and control terminals of the multiple switches SW4+ and SW4− receive the calibration control signal SCB. When the receiver 100 operates in the calibration mode, the multiple switches SW4+ and SW4− may be turned off in response to the calibration control signal SCB. Conversely, when the receiver 100 operates in transmission modes, the multiple switches SW4+ and SW4− may be turned on in response to the calibration control signal SCB so as to transmit the multiple reference voltages VREF1 and VREF2 to the comparator 230.
On the other hand, in one of the transmission modes, the inputs of the multiple input pair circuits 510 and 520 are switched to the multiple input signals VIP and VIN and the multiple reference voltages VREF1 and VREF2, such that the multiple input pair circuits 510 and 520 are able to generate the multiple signals S21 and S22 according to the multiple input signals VIP and VIN and the multiple reference voltages VREF1 and VREF2. For example, the input pair circuit 510 may compare the input signal VIP with the reference voltage VREF1, and the input pair circuit 520 may compare the input signal VIN with the reference voltage VREF2, thereby generating the corresponding signals S21 and S22. The differential to single-ended circuit 530 may generate the signal S1 according to the signal S21 and the signal S22.
In some embodiments, the comparator 230 may have different circuit configurations in different transmission modes. As described above, the resistance values of the multiple resistors RO1 and RO2 may be adjusted according to the mode control signal SM to thereby provide different resistance values. For example, according to the mode control signal SM, the resistance values of the multiple resistors RO1 and RO2 in the first transmission mode may be different from the resistance values in the second transmission mode. Alternatively, the current values of the current sources 515 and 525 may be adjusted according to the mode control signal SM to thereby provide different current values. For example, according to the mode control signal SM, the current values of the multiple current sources 515 and 525 in the first transmission mode may be different from the current values in the second transmission mode. In some embodiments, the mode control signal SM may be the mode control signal SM1, the mode control signal SM2, or another signal based on at least one of the two signals above.
The filter circuit 610 generates the signal S2 according to the signal S1. The filter circuit 610 generates the signal S3 according to the signal S1. The switch SW6 is coupled to the filter circuit 610 so as to receive the signal S2. The switch SW6 is turned off in the calibration mode, and is turned on in the first transmission mode so as to output the signal S2 as the output signal SO. In some embodiments, when the receiver 100 operates in the first transmission mode, the mode control signal SM1 may have a first logical value (for example but not limited to, logic 1), and the mode control signal SM2 may have a second logical value (for example but not limited to, logic 0). Conversely, when the receiver 100 is configured to operate in the first transmission mode, the mode control signal SM2 may have a first logical value, and the mode control circuit SM1 may have a second logical value. In this case, the switch SW6 may be turned on according to the mode control signal SM1 so as to output the signal S2 as the output signal SO in the first transmission mode.
The filter circuit 620 generates the signal S3 according to the signal S1. The filter circuit 620 generates the signal S3 according to the signal S1. The switch SW7 is coupled to the filter circuit 620 so as to receive the signal S3. The switch SW7 is turned off in the calibration mode, and is turned on in the second transmission mode so as to output the signal S3 as the output signal SO. For example, the switch SW6 may be turned on according to the mode control signal SM2 so as to output the signal S3 as the output signal SO in the second transmission mode.
In some embodiments, the first transmission mode may be, for example but not limited to, the USB mode. On the basis of the USB 3.0 specifications, a handshake signals used during a handshake between a transmitting end and a receiving end is a low-frequency signal. Thus, circuit behaviors of the filter circuit 610 above may be used to detect such handshake signal, instead of outputting high-speed data signals as the signal S2.
As an explanation from another perspective, when the pulse in the signal S1 has shorter low-level period, the transistor P2 is constantly turned on such that the node N2 is charged by the supply voltage VDD, allowing the buffer 624 to generate a corresponding envelope signal component in the signal S3. On the other hand, when the pulse in the signal S1 has a sufficient low-level period, the off period of the transistor P2 is increased, such that the level of the node N2 is pulled down by the current source 622, in a way that the pulse width of the corresponding pulse in the signal S3 is increased by the buffer 624.
In some embodiments, the second transmission mode may be, for example but not limited to, the SATA mode. Based on the SATA specifications, a handshake signal used during a handshake is a series of pulse signals. Thus, circuit behaviors of the filter circuit 620 above may be used to detect such handshake signals, and the multiple pulse signals in the handshake signal are reshaped to envelope signals for the digital circuit 250 to perform corresponding signal processing.
The transistor MN1 is configured to be a diode-connected transistor, and is driven by the current source 910 to generate a driving voltage VD. The multiple transistors M[0] to M[m] operate as multiple unit current sources. The transistor M[m] is driven by the driving voltage VD so as to source a current from the transistor MN2 or the transistor MN3. The multiple switches S[0] to S[m−1] are respectively controlled by the multiple control signals P[0] to P[m−1], so as to selectively transmit the driving voltage VD to the multiple transistors M[0] to M[m−1]. For example, when the switch S[m−1] is turned on according to the control signal P[m−1], the transistor M[m−1] is able to receive the driving voltage VD and is turned on accordingly to source a current from the transistor MN2 and/or the transistor MN3. When the switch S[m−1] and the switch S[m−2] are turned on according to the control signal P[m−1] and the control signal P[m−2], the transistor M[m−1] and the transistor M[m−2] are able to receive the driving voltage VD and are turned on accordingly to source a current from the transistor MN2 or the transistor MN3. Similarly, when the multiple switch S[0] to S[m−1] are all turned on according to the control signals P[0] to P[m−1], the transistors M[0] to M[m−1] are able to receive the driving voltage VD and are turned on accordingly to source a current from the transistor MN2 or the transistor MN3.
A first terminal (for example, the source) of the transistor MN2 is coupled to a node outputting the signal S22 in the comparator 230 so as to source a current signal IP, a second terminal (for the example, the drain) of the transistor MN2 is coupled to the multiple transistors M[0] to M[m], and a control terminal (for example, the gate) of the transistor MN2 receives the control signal P[m]. Similarly, a first terminal of the transistor MN3 is coupled to a node outputting the signal S21 in the comparator 230 so as to source a current signal IN, a second terminal of the transistor MN2 is coupled to the multiple transistors M[0] to M[m], and a control terminal of the transistor MN3 receives the control signal N[m]. The transistor MN2 and the transistor MN3 may be selectively turned on according to the control signal P[m] and the control signal N[m], respectively, so as to source the current signal IP and/or the current signal IN from the comparator 230.
In operation S1001, in response to the calibration control signals SC and SCB, the switches SW1+ and SW1− are turned off and the switches SW2+ and SW2− are turned on, such that the termination resistor circuit 210 outputs the common-mode voltage VCM. In operation S1002, in response to the calibration control signals SC and SCB, the switches SW3+ and SW3− are turned on and the switches SW4+ and SW4− are turned off, such that the reference voltage generator 220 outputs the common-mode voltage VCM.
In operation S1003, the comparator 230 generates the signal S1 in response to the common-mode voltage VCM. Moreover, in operation S1003, in response to the calibration control signal SC and the multiple mode control signals SM1 and SM2, the switch SW5 is turned on and the multiple switches SW6 and SW7 are turned off, such that the filter 240 outputs the signal S1 as the output signal SO. In operation S1004, the digital circuit 250 generates the offset calibration signal OC according to the output signal SO, and accordingly controls the DAC 260 to source the current signal IP or the current IN to calibrate the comparator 230.
In operation S1101, in response to the calibration control signals SC and SCB, the switches SW1+ and SW1− are turned on and the switches SW2+ and SW2− are turned off, such that the termination resistor circuit 210 outputs the input signal VIP and the input signal VIN. In operation S1102, in response to the calibration control signals SC and SCB, the switches SW3+ and SW3− are turned off and the switches SW4+ and SW4− are turned on, such that the reference voltage generator 220 outputs the multiple reference voltages VREF1 and VREF2.
In operation S1103, the comparator 230 generates the signal S1 in response to the multiple input signals VIP and VIN. In operation S1104, in response to the calibration control signal SC and the multiple mode control signals SM1 and SM2, the switch SW6 is turned on and the multiple switches SW5 and SW7 are turned off, such that the filter 240 generates the signal S2 according to the signal S1 and outputs the signal S2 as the output signal SO. In operation S1105, the digital circuit 250 determines according to the output signal SO whether the input signal VIP and the input signal VIN are handshake signals corresponding to the first transmission mode.
Different from operation S1104 in
Details associated with the multiple operations in
In conclusion, the receiver and the signal detection circuit in some embodiments of the present application are able to implement an application of multiple transmission modes by using one single comparator, and are integrated with an off calibration mechanism for a comparator. Thus, detection accuracy of the comparator can be improved and at the same time circuit costs can be reduced.
While the present application has been described by way of example and in terms of the preferred embodiments, it is to be understood that the disclosure is not limited thereto. Various modifications made be made to the technical features of the present application by a person skilled in the art on the basis of the explicit or implicit disclosures of the present application. The scope of the appended claims of the present application therefore should be accorded with the broadest interpretation so as to encompass all such modifications.
Number | Date | Country | Kind |
---|---|---|---|
202311034284.1 | Aug 2023 | CN | national |