Signal detection circuit and deserializer
By designing a new signal detection circuit, using the control circuit to output control signals equal to the input signal, the output circuit outputs signals to be tested equal to the input signal, which solves the problem of low signal amplitude detection accuracy and large area in the prior art. The problem of this achieves reliable detection of signal amplitude and low-cost and low-area solutions.
Patent Information
- Application Number
- CN202411251897.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-03
AI Technical Summary
The existing signal detection circuit cannot reliably detect the amplitude of the received high-speed serial signal, especially in the diode envelope detection circuit. Due to the uncertain threshold voltage and the influence of signal probability, the detection accuracy is low, the area occupied is large, and the cost is high.
A signal detection circuit is designed. Through the control circuit, the output control signal based on the output signal and the input signal, the output signal to be measured with the output level of the output circuit equal to the input signal, thereby realizing reliable detection of the signal amplitude, avoiding the inability to diode threshold voltage. Deterministic and the use of large resistors and large capacitors.
It realizes reliable detection of signal amplitude, high accuracy, small area and low cost, avoiding the threshold voltage uncertainty of the diode envelope detection circuit and the use of large resistor capacitors.
Smart Images

Figure CN119066008A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of analog integrated circuits, and in particular to a signal detection circuit and a deserializer. Background Art
[0002] In the field of analog integrated circuits, in the common application of high-speed serial signals, a signal detection circuit is usually required on the receiving end (e.g., deserializer) to detect the amplitude of the high-speed digital serial signal sent by the sending end (e.g., serializer) to determine whether the signal sent by the sending end is reliably received. Summary of the invention
[0003] The embodiment of the present application provides a signal detection circuit and a deserializer, which can solve the problem that the amplitude of the received serial signal cannot be reliably detected. The technical solution is as follows:
[0004] In one aspect, a signal detection circuit is provided, the signal detection circuit comprising: a control circuit and an output circuit; the control circuit is connected to the output circuit, and the control circuit is also connected to an input signal terminal, and the control circuit and the output circuit are also connected to an output signal terminal;
[0005] The control circuit is used to: output a first control signal and a second control signal based on an output signal output through the output signal terminal and an input signal input through the input signal terminal, wherein the first control signal and the second control signal are used to indicate a magnitude relationship between a level of the output signal and a level of the input signal;
[0006] The output circuit is used to: under the control of the first control signal and the second control signal, output a test signal whose level is equal to that of the input signal through the output signal terminal for detecting the amplitude of the input signal, wherein the amplitude of the test signal is the amplitude of the input signal.
[0007] Optionally, the control circuit comprises: a first comparison subcircuit and a control subcircuit; the first comparison subcircuit is connected to the input signal terminal, the output signal terminal and the control subcircuit respectively, and the control subcircuit is also connected to the output circuit;
[0008] The first comparison subcircuit is used to: compare the level of the input signal with the level of the output signal to obtain a first comparison result;
[0009] The control subcircuit is used to output the first control signal and the second control signal based on the first comparison result.
[0010] Optionally, the control circuit further includes: a second comparison subcircuit; the second comparison subcircuit is connected to the input signal terminal, the reference power supply terminal and the control subcircuit respectively;
[0011] The second comparison subcircuit is used to: compare the level of the input signal with the level of the reference power supply signal provided by the reference power supply terminal to obtain a second comparison result;
[0012] The control subcircuit is configured to output the first control signal and the second control signal based on the first comparison result and the second comparison result when the second comparison result indicates that the level of the input signal is greater than the level of the reference power supply signal.
[0013] Optionally, the control subcircuit includes: a first trigger unit and a control unit; the first trigger unit is connected to the first comparison subcircuit and the control unit respectively, and the control unit is also connected to the output circuit;
[0014] The first trigger unit is used to: perform one or more continuous sampling on the first comparison result based on the received clock signal to obtain at least one first sampling result;
[0015] The control unit is used to: output the first control signal and the second control signal under the control of the at least one first sampling result.
[0016] Optionally, in the case where the control circuit includes a second comparison subcircuit, the control subcircuit further includes: a second trigger unit; the second trigger unit is connected to the second comparison subcircuit and the control unit respectively;
[0017] The second trigger unit is used to: perform one or more continuous sampling on the second comparison result based on the received clock signal to obtain at least one second sampling result;
[0018] The control unit is used to output the first control signal and the second control signal under the control of the at least one second sampling result and the at least one first sampling result.
[0019] Optionally, the first trigger unit and the second trigger unit both include: one or more triggers connected in series.
[0020] Optionally, the frequencies of the clock signal received by the second trigger unit and the clock signal received by the first trigger unit are both the same as the frequency of the input signal.
[0021] Optionally, the control unit is used to: perform logic operation processing on the at least one second sampling result and the at least one first sampling result to output the first control signal and the second control signal.
[0022] Optionally, the output circuit comprises: a current generating subcircuit and a voltage controlling subcircuit; the current generating subcircuit is connected to the voltage controlling subcircuit, and the voltage controlling subcircuit is also connected to the control circuit and the output signal terminal respectively;
[0023] The current generating subcircuit is used to: output a driving current based on a received power supply signal;
[0024] The voltage control subcircuit is used to: under the control of the first control signal and the second control signal, control the level of the output signal based on the driving current, so as to output the signal to be tested through the output signal terminal.
[0025] Optionally, the voltage control subcircuit comprises: a switch control unit and a charge and discharge unit; the switch control unit is connected to the control circuit, the current generating subcircuit and the charge and discharge unit respectively, and the switch control unit and the charge and discharge unit are both connected to the output signal terminal;
[0026] The switch control unit is used to: under the control of the first control signal and the second control signal, control the charge and discharge unit to charge and discharge based on the driving current, so as to control the level of the output signal.
[0027] On the other hand, a deserializer is provided, the deserializer comprising: a controller, and the signal detection circuit as described in the above aspect; the signal detection circuit is connected to the controller;
[0028] The signal detection circuit is used to detect and process the received serial signal and output the serial signal to the controller.
[0029] In summary, the technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0030] A signal detection circuit and a deserializer are provided. In the signal detection circuit, a control circuit can output a control signal indicating the magnitude of the level of the output signal and the input signal to an output circuit based on an output signal outputted through an output signal terminal (i.e., a serial signal outputted to a controller at a receiving terminal) and an input signal inputted through an input signal terminal (i.e., a serial signal sent from a transmitting terminal to a receiving terminal), so that the output circuit outputs a signal to be tested having a level equal to that of the input signal through the output signal terminal, thereby facilitating the controller at the receiving terminal to directly determine the amplitude of the signal to be tested as the amplitude of the input signal, thereby achieving the purpose of reliably determining the amplitude of the serial signal received by the receiving terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is a circuit structure diagram of a signal detection circuit in a related technology provided by an embodiment of the present application;
[0033] Figure 2 is a structural schematic diagram of a signal detection circuit provided in an embodiment of the present application;
[0034] Figure 3 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0035] Figure 4 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0036] Figure 5 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0037] Figure 6 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0038] Figure 7 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0039] Figure 8 is a structural schematic diagram of another signal detection circuit provided in an embodiment of the present application;
[0040] Fig. 9 is a circuit structure diagram of a signal detection circuit provided in an embodiment of the present application;
[0041] Fig.10 It is a structural diagram of a deserializer provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0043] Since the high-speed digital serial signal (hereinafter referred to as the serial signal) sent by the transmitter usually includes a modulated high-frequency oscillation signal, and the signal that can be processed by the controller in the receiving end is usually a low-frequency signal, in order to facilitate the controller in the receiving end to process and detect the amplitude of the serial signal sent by the transmitter, it is necessary to set a signal detection circuit between the transmitter and the receiver to restore the original low-frequency original signal from the received high-frequency oscillation signal, so that the controller in the receiving end can determine the amplitude of the received serial signal by extracting the envelope of the restored low-frequency original signal. Among them, the envelope refers to the change trajectory of the signal amplitude. Correspondingly, the signal detection circuit can also be called a detection / demodulation circuit.
[0044] Optionally, in some embodiments, the signal detection circuit and the controller may be integrated in the receiving end, and both are part of the receiving end. The controller may be, for example, a micro controller unit (MCU), also called a control chip.
[0045] At present, the signal detection circuit is generally a diode envelope detection circuit. The controller at the receiving end can determine the amplitude of the received serial signal by extracting the envelope of the output signal of the diode envelope detection circuit. Figure 1 As shown, the diode envelope detection circuit generally includes: a diode D1, a resistor R1 and a capacitor C1. Among them, the resistor R1 and the capacitor C1 can form a filter, also known as an RC filter. The positive electrode of the diode D1 can be connected to the input signal terminal Vin, and the negative electrode of the diode D1 can be connected to the output signal terminal Vout through the RC filter.
[0046] Under this connection mode, it can be known that the serial signal received by the receiving end (that is, the serial signal sent by the transmitting end) can first act on the positive electrode of the diode D1 and be input through the input signal terminal Vin. Because the transmitting end and the receiving end are usually coupled by AC, that is, coupled by a DC blocking capacitor, the DC component in the serial signal can be filtered out, and only the AC signal is allowed to pass through and input through the input signal terminal Vin. It can be seen that the serial signal acting on the positive electrode of the diode D1 can be a signal similar to "0101...". Among them, "1" can refer to a high level, and the signal "0" can refer to a low level. Because the diode D1 has a unidirectional conduction function, only high-level signals greater than 0 can be conducted and transmitted to the RC filter. The RC filter can filter out the high-frequency component in the high-level signal output by the diode D1 through low-pass filtering, and allow the low-frequency component to pass through, so as to output the average voltage of the signal passing through the diode D1 at the output signal terminal Vout, so that the controller of the receiving end can determine the amplitude of the received serial signal based on the low-frequency signal output by the RC filter. In addition, since the diode D1 generates high-frequency noise during signal processing, the RC filter here is also used to filter out the high-frequency noise.
[0047] It can be understood that the premise of outputting the average voltage here is that the probability of "0" and "1" appearing in the serial signal acting on the positive electrode of the diode D1 is the same. If the probability is different, the voltage output at the output signal terminal Vout needs to be multiplied by the proportion of "1" appearing. For example, taking the probability of "0" and "1" appearing in the serial signal as the same, assuming that the amplitude of the serial signal is A (that is, the high level corresponding to "1" is A, and the low level corresponding to "0" is -A, where A contains the unit volt V), then under the premise of ignoring the threshold voltage of the diode D1 itself, it can be known that: when the signal acting on the positive electrode of the diode D1 is "1", the cathode of the diode D1 can output A; when the signal acting on the positive electrode of the diode D1 is "0", the cathode of the diode D1 can output 0. After filtering by the RC filter, a signal of A / 2 can be output through the output signal terminal Vout. Therefore, the controller at the receiving end can deduce the amplitude A of the serial signal received by the receiving end.
[0048] However, on the one hand, since the threshold voltage of diode D1 is not 0, but a value M between 0.5V and 0.7V, it can be known that after passing through diode D1 and RC filter, the signal outputted through the output signal terminal Vout should be (AM) / 2. And because M is a quantity that changes with process and temperature, that is, the value of M cannot be accurately predicted, so we use Figure 1In the signal detection circuit shown, the controller at the receiving end cannot accurately determine the amplitude A of the received serial signal through the signal output through the output signal terminal Vout. In addition, as mentioned above, the premise of outputting the A / 2 signal through the output signal terminal Vout is that the probability of "0" and "1" appearing in the serial signal is the same. Once the probabilities are different, the uncertainty of detection is further increased. On the other hand, due to Figure 1 The signal detection circuit shown needs to be provided with a resistor R1 and a capacitor C1 to form a filter circuit to extract the voltage of the signal passing through the diode D1, and fully filter out the high-frequency components and the high-frequency noise generated by the diode D1, so a larger resistor R1 and capacitor C1 are required to complete it. For example, for a serial signal of 1000 megabits per second (Mbps), its base frequency is generally 50 megahertz (MHz). If the 50MHz signal needs to be suppressed by 80 decibels (dB), a resistor R1 with a resistance value of about 100 kilo-ohms (kΩ) and a capacitor with a capacitance value of 300 picofarads (pF) are required. Accordingly, the size of the required resistor R1 and capacitor C1 is also relatively large, which will undoubtedly occupy a larger circuit area at the receiving end, and the cost is relatively high.
[0049] Therefore, the embodiment of the present application provides a new type of signal detection circuit, the signal outputted through the output signal terminal Vout does not have the uncertainty brought by the threshold voltage of the current diode, and is not affected by the probability of "0" and "1" appearing in the serial signal, and does not need to set a large resistor and capacitor. Figure 1 As for the circuit shown, it can not only ensure that the controller at the receiving end can reliably determine the amplitude of the serial signal received by the receiving end, that is, the amplitude detection accuracy is good, but also does not need to occupy a large circuit area at the receiving end, and the cost is low, that is, it has a cost advantage.
[0050] Figure 2 Schematic diagram of a signal detection circuit provided in an embodiment of the present application. Figure 2 As shown, the signal detection circuit includes: a control circuit 01 and an output circuit 02.
[0051] The control circuit 01 is connected to the output circuit 02 , and the control circuit 01 is also connected to the input signal terminal Vin. The control circuit 01 and the output circuit 02 are also both connected to the output signal terminal Vout.
[0052] The control circuit 01 is used to output a first control signal UP and a second control signal DN based on an output signal outputted via an output signal terminal Vout and an input signal inputted via an input signal terminal Vin.
[0053] Among them, the first control signal UP and the second control signal DN are used to indicate the magnitude relationship between the level V - Vout of the output signal and the level V - Vin of the input signal. It can be seen from this that in some embodiments, the control circuit 01 can compare the level V - Vout of the output signal and the level V - Vin of the input signal to output the first control signal UP and the second control signal DN.
[0054] For example, when the level V - Vout of the output signal is less than the level V - Vin of the input signal (i.e., V - Vout < V - Vin), the control circuit 01 can output the first control signal UP with the first level and the second control signal DN with the second level. When the level V - Vout of the output signal is greater than the level V - Vin of the input signal (i.e., V - Vout > V - Vin), the control circuit 01 can output the first control signal UP with the second level and the second control signal DN with the first level. When, at a certain time period, the level V - Vout of the output signal is equal to the level V - Vin of the input signal (i.e., V - Vout = V - Vin), the control circuit 01 can output the first control signal UP with the second level and the second control signal DN with the second level.
[0055] Optionally, in the embodiments of the present application, the first level can be a high level 1, and the second level can be a low level 0. It can be seen from this that when the level of the first control signal UP is the high level 1 and the level of the second control signal DN is the low level 0, it can indicate that V - Vout < V - Vin. When the level of the first control signal UP is the low level 0 and the level of the second control signal DN is the high level 1, it can indicate that V - Vout > V - Vin; when the level of the first control signal UP is the low level 0 and the level of the second control signal DN is the low level 0, it can indicate the situation where V - Vout = V - Vin. Of course, in some other embodiments, the first level can also be the low level 0, and correspondingly, the second level can be the high level 1.
[0056] It can be understood that the input signal input through the input signal terminal Vin can refer to the serial signal sent by the sending end to the receiving end; the output signal output through the output signal terminal Vout can refer to the serial signal finally received by the controller of the receiving end; in the middle, the signal detection circuit establishes a signal transmission channel between the controller of the sending end and the receiving end. And, in some embodiments, the signal detection circuit can be integrated with the controller in the receiving end.
[0057] The output circuit 02 is configured to: under the control of the first control signal UP and the second control signal DN, output a signal to be measured with a level equal to the input signal through the output signal terminal Vout for detecting the amplitude of the input signal.
[0058] Optionally, the output circuit 02 can, under the control of the first control signal UP and the second control signal DN, control the level V-Vout of the signal output via the output signal terminal Vout (e.g., increase or decrease the level V-Vout of the output signal), so that finally the test signal equal to the level of the input signal is output to the controller via the output signal terminal Vout, that is, so that the level of the signal output to the controller at the receiving end via the output signal terminal Vout is equal to the level of the input signal. In this way, the controller at the receiving end can directly determine the amplitude of the test signal as the amplitude of the input signal, achieving the purpose of reliably detecting the amplitude of the serial signal transmitted by the transmitting end. That is, in the embodiment of the present application, the amplitude of the test signal is the amplitude of the input signal.
[0059] For example, the output circuit 02 can increase the level V-Vout of the output signal when the level of the first control signal UP is high level 1 and the level of the second control signal DN is low level 0, indicating that V-Vout < V-Vin; it can decrease the level V-Vout of the output signal when the level of the first control signal UP is low level 0 and the level of the second control signal DN is high level 1, indicating that V-Vout > V-Vin; and it can maintain the level V-Vout of the output signal unchanged when the level of the first control signal UP is low level 0 and the level of the second control signal DN is low level 0, indicating that there is a situation where V-Vout = V-Vin. In this way, finally when V-Vout = V-Vin and this V-Vout remains stable, the signal detection circuit can output a test signal with a level equal to that of the input signal via the output signal terminal Vout, for the controller at the receiving end to directly determine the amplitude of the test signal as the amplitude of the input signal.
[0060] That is, in the receiving end provided by the embodiment of the present application, the amplitude of the serial signal output by the signal detection circuit to the controller via the output signal terminal Vout is equal to the amplitude of the serial signal transmitted by the transmitting end, and it does not have the uncertainty brought by the threshold voltage M of the diode D1 in the Figure 1 shown circuit, and is independent of the probabilities of "0" and "1" appearing in the received serial signal. Thus, the controller at the receiving end can reliably and accurately determine the amplitude of the received serial signal, and the amplitude detection accuracy is relatively good.
[0061] In summary, the embodiment of the present application provides a signal detection circuit. In the signal detection circuit, the control circuit can output a control signal for indicating the magnitude of the level of the output signal and the input signal to the output circuit based on the output signal outputted through the output signal terminal (i.e., the serial signal outputted to the controller of the receiving terminal) and the input signal inputted through the input signal terminal (i.e., the serial signal sent from the transmitting terminal to the receiving terminal), so that the output circuit can output a signal to be tested having a level equal to that of the input signal through the output signal terminal. Thus, it is convenient for the controller of the receiving terminal to directly determine the amplitude of the signal to be tested as the amplitude of the input signal, so as to achieve the purpose of reliably determining the amplitude of the serial signal received by the receiving terminal.
[0062] Optionally, Figure 3 is a schematic diagram of the structure of another signal detection circuit provided in an embodiment of the present application. Figure 3 As shown, the control circuit 01 may include: a first comparison subcircuit 011 and a control subcircuit 012 .
[0063] The first comparison sub-circuit 011 may be connected to the input signal terminal Vin, the output signal terminal Vout and the control sub-circuit 012 respectively, and the control sub-circuit 012 may also be connected to the output circuit 02 .
[0064] The first comparison sub-circuit 011 can be used to compare the level V-Vin of the input signal with the level V-Vout of the output signal to obtain a first comparison result Q0.
[0065] For example, the first comparison subcircuit 011 can output a first comparison result Q0 of a first level (e.g., a high level 1) when the comparison determines that the level V-Vin of the input signal is greater than the level V-Vout of the output signal, and can output a first comparison result Q0 of a second level (e.g., a low level 0) when the comparison determines that the level V-Vin of the input signal is less than the level V-Vout of the output signal.
[0066] The control subcircuit 012 can be used to: output a first control signal UP and a second control signal DN based on the first comparison result Q0. That is, the control subcircuit 012 can output the first control signal UP and the second control signal DN for indicating the magnitude relationship between the level V-Vout of the output signal and the level V-Vin of the input signal to the output circuit 02 based on the comparison result output by the first comparison subcircuit 011.
[0067] For example, in combination with the previous example, the control sub-circuit 012 can output a first control signal UP with a high level of 1 and a second control signal DN with a low level of 0 when V - Vout < V - Vin, can output a first control signal UP with a low level of 0 and a second control signal DN with a high level of 1 when V - Vout > V - Vin, and can output a first control signal UP with a low level of 0 and a second control signal DN with a low level of 0 when there is a situation where V - Vout = V - Vin.
[0068] Optionally, Figure 4 is a schematic structural diagram of another signal detection circuit provided by an embodiment of the present application. As Figure 4 shown, the control circuit 01 may further include: a second comparison sub-circuit 013.
[0069] The second comparison sub-circuit 013 can be respectively connected to the input signal terminal Vin, the reference power supply terminal Vref, and the control sub-circuit 012.
[0070] The second comparison sub-circuit 013 can be used to: compare the level V - Vin of the input signal and the level of the reference power supply signal provided by the reference power supply terminal Vref to obtain a second comparison result E0.
[0071] For example, the second comparison sub-circuit 013 can output a second comparison result E0 with a first level (e.g., a high level of 1) when it is determined by comparison that the level V - Vin of the input signal is greater than the level of the reference power supply signal, and can output a second comparison result E0 with a second level (e.g., a low level of 0) when it is determined by comparison that the level V - Vin of the input signal is less than the level of the reference power supply signal.
[0072] On this basis, the control sub-circuit 012 can be used to: when the second comparison result E0 indicates that the level V - Vin of the input signal is greater than the level of the reference power supply signal, further output a first control signal UP and a second control signal DN based on the first comparison result Q0 and the second comparison result E0.
[0073] Optionally, still in combination with Figure 4 , in some embodiments, the reference power supply terminal Vref can be a ground terminal GND with a level of 0. From the above examples, it can be seen that when the level V - Vin of the input signal is greater than 0 (i.e., V - Vin > 0), the second comparison sub-circuit 013 can output a second comparison result E0 with a high level of 1. And when the level V - Vin of the input signal is less than 0 (i.e., V - Vin < 0), the second comparison sub-circuit 013 can output a second comparison result E0 with a low level of 0.
[0074] It can be understood that, since when V-Vin<0, the first comparison subcircuit 011 must output the first comparison result Q0 of the low level 0, the situation of V-Vin<0 can be ignored in the embodiment of the present application. Therefore, by setting the second comparison subcircuit 013 to compare the level V-Vin of the input signal and the level of the reference power supply signal, it can be ensured that the main focus is on the magnitude relationship between the level V-Vin of the input signal and the level V-Vout of the output signal when V-Vin>0. That is, the function of the second comparison subcircuit 013 here is similar to the function of the diode D1 in the above-mentioned diode envelope detection circuit, which is used to instruct the control subcircuit 012 to process the input signal when V-Vin>0. Of course, in some other embodiments, the second comparison subcircuit 013 may not be set, but a signal indicating V-Vin>0 may be directly output to the control subcircuit 012; or, the control subcircuit 012 may be directly set to work in the scenario of V-Vin>0 by default.
[0075] Optionally, in Figure 3 On the basis of Figure 5 FIG. 2 is a schematic diagram showing a structure of another signal detection circuit provided in an embodiment of the present application. Figure 5 As shown, when the control circuit 01 includes the first comparison subcircuit 011, the control subcircuit 012 may include: a first trigger unit 0121 and a control unit 0122. The first trigger unit 0121 may be connected to the first comparison subcircuit 011 and the control unit 0122 respectively, and the control unit 0122 may also be connected to the output circuit 02.
[0076] The first trigger unit 0121 may be configured to: perform one or more consecutive samplings on the first comparison result Q0 based on the received clock signal to obtain at least one first sampling result Q1.
[0077] It can be understood that, for the first trigger unit 0121, the multiple continuous sampling here may mean that the first trigger unit 0121 first samples the first comparison result Q0 based on the clock signal, and then samples the sampling result of the first sampling for a second time based on the clock signal, and so on.
[0078] For example, combined with Figure 5 , the first trigger unit 0121 shown therein can be used to: perform two consecutive samplings on the first comparison result Q0 based on the received clock signal to obtain two first sampling results Q11 and Q12. That is, the first trigger unit 0121 can first perform a first sampling on the first comparison result Q0 based on the clock signal to obtain a first first sampling result Q11, and then perform a second sampling on the first sampling result Q11 to obtain a second first sampling result Q12.
[0079] Optionally, the first trigger unit 0121 can sample the first comparison result Q0 under the control of the transition edge of the clock signal. For example, assuming that the transition edge of the clock signal is a rising edge from a low level 0 to a high level 1, the first trigger unit 0121 can sample the first comparison result Q0 when the rising edge of the clock signal arrives.
[0080] Optionally, combined Figure 5 In some embodiments, the first trigger unit 0121 may be connected to the clock signal terminal CLK to receive a clock signal provided by the clock signal terminal CLK.
[0081] The control unit 0122 may be configured to: output a first control signal UP and a second control signal DN under the control of at least one first sampling result Q1.
[0082] Optionally, in some embodiments, the control unit 0122 may be used to perform a logic operation on the at least one first sampling result Q1 to output a first control signal UP and a second control signal DN. Accordingly, the control unit 0122 may also be referred to as a logic unit.
[0083] For example, combined with Figure 5 The control unit 0122 shown therein can be used to perform logic operation processing on the two first sampling results Q11 and Q12 output by the first trigger unit 0121 to output a first control signal UP and a second control signal DN to the output circuit 02 .
[0084] Optionally, the logical operation processing recorded in the embodiments of the present application may include at least one of: AND logical operation processing, OR logical operation processing, NOR logical operation processing, NAND logical operation processing, XOR logical operation processing and the like.
[0085] Optionally, in Figure 4 On the basis of Figure 6 FIG. 2 is a schematic diagram showing a structure of another signal detection circuit provided in an embodiment of the present application. Figure 6 As shown, in the case where the control circuit 01 further includes a second comparison sub-circuit 013 , the control sub-circuit 012 may further include: a second trigger unit 0123 .
[0086] The second trigger unit 0123 may be connected to the second comparison sub-circuit 013 and the control unit 0122 respectively.
[0087] The second trigger unit 0123 can be used to: perform one or more consecutive samplings on the second comparison result E0 based on the received clock signal to obtain at least one second sampling result E1.
[0088] It can be understood that, like the first trigger unit 0121, for the second trigger unit 0123, the multiple continuous sampling here may also mean that the second trigger unit 0123 first samples the second comparison result E0 for the first time based on the clock signal, and then samples the sampling result of the first sampling for the second time based on the clock signal, and so on.
[0089] For example, combined with Figure 6 , the second trigger unit 0123 shown therein can be used to: perform two consecutive samplings on the second comparison result E0 based on the received clock signal to obtain two second sampling results E11 and E12. That is, the second trigger unit 0123 can first perform a first sampling on the second comparison result E0 based on the clock signal to obtain a first second sampling result E11, and then perform a second sampling on the first sampling result E11 to obtain a second second sampling result E12.
[0090] Optionally, like the first trigger unit 0121, the second trigger unit 0123 can also sample the second comparison result E0 under the control of the transition edge of the clock signal. For example, assuming that the transition edge of the clock signal is a rising edge from a low level 0 to a high level 1, the second trigger unit 0123 can sample the second comparison result E0 when the rising edge of the clock signal arrives.
[0091] Optionally, combined Figure 6 In some embodiments, the second trigger unit 0123 may also be connected to the clock signal terminal CLK to receive the clock signal provided by the clock signal terminal CLK.
[0092] Optionally, still combined Figure 6 It can be seen that in the embodiment of the present application, the clock signal terminal CLK connected to the first trigger unit 0121 and the clock signal terminal CLK connected to the second trigger unit 0123 can be shared. That is, the first trigger unit 0121 and the second trigger unit 0123 can be connected to the same clock signal terminal CLK. Of course, in some other embodiments, the clock signal terminal CLK connected to the first trigger unit 0121 and the clock signal terminal CLK connected to the second trigger unit 0123 may not be shared. That is, the first trigger unit 0121 and the second trigger unit 0123 can be connected to different clock signal terminals CLK.
[0093] Optionally, the receiving end itself has a clock with the same frequency as the received serial signal for synchronously receiving the serial signal. Therefore, in some embodiments, the clock signal terminal CLK connected to the first trigger unit 0121 and the second trigger unit 0123 can come from the receiving end itself, without the need to set up an additional clock circuit to provide the required clock signal. Of course, the clock signal terminal CLK can also be externally connected.
[0094] Optionally, in an embodiment of the present application, the frequencies of the clock signal received by the first trigger unit 0121 and the clock signal received by the second trigger unit 0123 may both be the same as the frequency of the input signal. That is, the clock signals received by the first trigger unit 0121 and the second trigger unit 0123 may both be signals of the same frequency as the serial signal received by the receiving end. For example, assuming that the frequency of the serial signal received by the receiving end is x bit rate (bps), the frequency of the clock signal is also x hertz (Hz). In this way, it can be ensured that the signals sampled by the first trigger unit 0121 and the second trigger unit 0123 are synchronized with the serial signal received by the receiving end, further ensuring that the amplitude detection accuracy is good. Of course, in some other embodiments, the frequency of the clock signal may also be close to the frequency of the input signal.
[0095] Correspondingly, for Figure 6 As for the structure shown, the control unit 0122 can be used to: output a first control signal UP and a second control signal DN under the control of at least one second sampling result E1 and at least one first sampling result Q1.
[0096] Optionally, in some embodiments, the control unit 0122 may be configured to perform logic operation processing on the at least one second sampling result E1 and the at least one first sampling result Q1 to output a first control signal UP and a second control signal DN.
[0097] For example, combined with Figure 6 The control unit 0122 shown therein can be used to perform logic operations on the two first sampling results Q11 and Q12 output by the first trigger unit 0121 and the two second sampling results E11 and E12 output by the second trigger unit 0123, so as to output a first control signal UP and a second control signal DN to the output circuit 02.
[0098] Optionally, as described above, in the embodiment of the present application, the output circuit 02 may be used for:
[0099] When the first control signal UP and the second control signal DN indicate that the level V-Vin of the input signal is greater than the level V-Vout of the output signal, the level V-Vout of the output signal is increased. For example, when the level of the first control signal UP is a high level 1 and the level of the second control signal DN is a low level 0, it can indicate that V-Vin>V-Vout, and V-Vout can be increased at this time.
[0100] When the first control signal UP and the second control signal DN indicate that the level V - Vin of the input signal is less than the level V - Vout of the output signal, the level V - Vout of the output signal is decreased. For example, when the level of the first control signal UP is low level 0 and the level of the second control signal DN is high level 1, it can indicate that V - Vin < V - Vout, and at this time, V - Vout can be decreased.
[0101] When the first control signal UP and the second control signal DN indicate that the level V - Vin of the input signal is equal to the level V - Vout of the output signal, the level V - Vout of the output signal is maintained. For example, when the level of the first control signal UP is low level 0 and the level of the second control signal DN is low level 0, it can indicate that there is a situation of V - Vin = V - Vout, and at this time, V - Vout can be maintained unchanged.
[0102] Optionally, on the Figure 6 basis, Figure 7 FIG. shows a schematic structural diagram of another signal detection circuit provided by an embodiment of the present application. As Figure 7 shown, the output circuit 02 may include: a current generation sub - circuit 021 and a voltage control sub - circuit 022.
[0103] The current generation sub - circuit 021 may be connected to the voltage control sub - circuit 022, and the voltage control sub - circuit 022 may also be respectively connected to the control circuit 01 and the output signal terminal Vout.
[0104] It can be understood that on the basis that the control circuit 01 includes a first comparison sub - circuit 011, a control sub - circuit 012, and a second comparison sub - circuit 013, and the control sub - circuit 012 includes a first trigger unit 0121, a control unit 0122, and a second trigger unit 0123, the voltage control sub - circuit 022 here may be connected to the control unit 0122 included in the control sub - circuit 012 to receive the first control signal UP and the second control signal DN output by the control unit 0122.
[0105] The current generation sub - circuit 021 can be used to: output a drive current based on the received power signal.
[0106] Optionally, in combination with Figure 7 it can be seen that in some embodiments, the current generation sub - circuit 021 may be connected to the power supply terminal VDD to receive the power signal provided by the power supply terminal VDD, and may be grounded.
[0107] The voltage control sub - circuit 022 can be used to: under the control of the first control signal UP and the second control signal DN, control the level V - Vout of the output signal based on the drive current, so as to output the signal to be measured through the output signal terminal Vout.
[0108] That is, the voltage control subcircuit 022 can increase or decrease or maintain the level V-Vout of the output signal based on the driving current based on the level V-Vin of the input signal indicated by the first control signal UP and the second control signal DN and the level V-Vout of the output signal, and finally output a test signal having a level equal to that of the input signal.
[0109] Optionally, in Figure 7 On the basis of Figure 8 FIG. 2 is a schematic diagram showing a structure of another signal detection circuit provided in an embodiment of the present application. Figure 8 As shown, the current generating sub-circuit 021 may include: a current generating unit 0211 and a current mirror unit 0212 .
[0110] The current generating unit 0211 may be connected to the current mirror unit 0212 , and the current mirror unit 0212 may also be connected to the voltage control sub-circuit 022 .
[0111] The current generating unit 0211 may be used to generate a driving current based on a power signal.
[0112] The current mirror unit 0212 can be used to output the driving current to the voltage control sub-circuit 022 in a mirrored manner.
[0113] That is, the current generating unit 0211 may generate a driving current, and then the current mirror unit 0212 may synchronously mirror (or copy or map) the driving current generated by the current generating unit 0211 to the voltage control sub-circuit 022 .
[0114] Optionally, combined Figure 8 It can be seen that the current generating unit 0211 and the current mirror unit 0212 can be connected to the power supply terminal VDD respectively, and can be grounded.
[0115] Optionally, continue to refer to Figure 8 It can be seen that the voltage control subcircuit 022 may include: a switch control unit 0221 and a charge and discharge unit 0222 .
[0116] The switch control unit 0221 may be connected to the control circuit 01 , the current generating sub-circuit 021 and the charge-discharge unit 0222 , respectively, and both the switch control unit 0221 and the charge-discharge unit 0222 may be connected to the output signal terminal Vout.
[0117] It is understandable that if Figure 7 According to the embodiment, the switch control unit 0221 here may be connected to the control unit 0122 in the control circuit 01 to receive the first control signal UP and the second control signal DN output by the control unit 0122 .
[0118] The switch control unit 0221 may be used to: under the control of the first control signal UP and the second control signal DN, control the charge and discharge unit 0222 to charge and discharge based on the driving current, so as to control the level V-Vout of the output signal.
[0119] That is, the switch control unit 0211 can control the charge-discharge unit 0222 to charge and discharge based on the driving current to increase, decrease or maintain the level V-Vout of the output signal. For example, when the charge-discharge unit 0222 is controlled to charge, the level V-Vout of the output signal can be increased; when the charge-discharge unit 0222 is controlled to discharge, the level V-Vout of the output signal can be reduced; and when the charge-discharge unit 0222 is controlled to stop charging and discharging, the level V-Vout of the output signal can be maintained.
[0120] It can be understood that, on the basis of controlling the charging and discharging of the charging and discharging unit 0222, the purpose of filtering out the high-frequency components in the signal can be achieved at the same time, which is similar to the function of the above-mentioned RC filter. That is, in the embodiment of the present application, the high-frequency components in the received serial signal can be filtered out by the voltage control subcircuit 022, so that the signal to be tested outputted through the output signal terminal Vout is a low-frequency signal, so that the controller can reliably detect the amplitude of the serial signal received by the receiving end from the transmitting end. On this basis, it can also be known that the embodiment of the present application does not need to set up an RC filter to simultaneously filter out the high-frequency components in the serial signal and the high-frequency noise generated by the diode D1, and accordingly, there is no need to use larger-sized resistors and capacitors. In this way, the area occupied by the signal detection circuit at the receiving end can be smaller, and the cost can be lower.
[0121] Optionally, combined Figure 8 It can also be seen that the charge and discharge unit 0221 can also be grounded. And, it can be understood that for Figure 5 The output circuit 02 can also refer to Figure 7 and Figure 8 The structure shown will not be described in detail.
[0122] Optionally, in Figure 8 On the basis of Fig. 9 FIG. 1 is a schematic diagram showing a circuit structure of a signal detection circuit provided in an embodiment of the present application. Fig. 9 As shown, both the first comparison subcircuit 011 and the second comparison subcircuit 013 may include a comparator (CMP). For distinction, the comparator CMP included in the first comparison subcircuit 011 is labeled as CMP1, and the comparator CMP included in the second comparison subcircuit 013 is labeled as CMP2.
[0123] Optionally, refer to Fig. 9 It can also be seen that the positive input terminal + of the comparator CMP1 can be connected to the input signal terminal Vin, the negative input terminal - of the comparator CMP1 can be connected to the output signal terminal Vout, and the output terminal of the comparator CMP1 can be connected to the first trigger unit 0121 in the control sub-circuit 012. The positive input terminal + of the comparator CMP2 can be connected to the input signal terminal Vin, the negative input terminal - of the comparator CMP2 can be connected to the reference power supply terminal Vref. For example, when the reference power supply terminal Vref is the ground terminal GND, the negative input terminal - of the comparator CMP2 can be grounded, and the output terminal of the comparator CMP2 can be connected to the third trigger unit 0123 in the control sub-circuit 012.
[0124] In this connection mode, based on the comparison principle of the comparator, it can be known that, as described above, when V - Vin > 0, the comparator CMP2 can output a second comparison result E0 of high level 1; when V - Vin < 0, the comparator CMP2 can output a second comparison result E0 of low level 0. When V - Vin > V - Vout, the comparator CMP1 can output a first comparison result Q0 of high level 1; when V - Vin < V - Vout, the comparator CMP1 can output a first comparison result Q0 of low level 0. That is to say, the first level can be high level 1, and the second level can be low level 0. On the basis of swapping the connection modes of the positive input terminal + and the negative input terminal - of the comparator CMP, the first level can be low level 0, and the second level can be high level 1.
[0125] Optionally, continue to refer to Fig. 9 It can be seen that both the first trigger unit 0121 and the second trigger unit 0123 can include one or more sequentially connected flip-flops.
[0126] It can be understood that the sequential connection of multiple flip-flops may mean that the output terminal of the previous flip-flop is connected to the input terminal of the next flip-flop. And, taking the first trigger unit 0121 as an example, the number of flip-flops it includes is the same as the number of consecutive sampling times. That is to say, including m sequentially connected flip-flops, m consecutive samplings can be performed to obtain m first sampling results E1. Where m can be an integer greater than 1. The same applies to the second trigger unit 0123 and will not be elaborated here.
[0127] For example, m can be 2. That is to say, as described above, the first trigger unit 0121 can perform two consecutive samplings on the first comparison result Q0 based on the clock signal to obtain two first sampling results Q11 and Q12. The second trigger unit 0123 can perform two consecutive samplings on the second comparison result E0 based on the clock signal to obtain two second sampling results E11 and E12. Correspondingly, refer to Fig. 9It can be seen that the first trigger unit 0121 and the second trigger unit 0123 may include: two triggers connected in series.
[0128] And, optionally, the triggers included in the first trigger unit 0121 and the second trigger unit 0123 may both be Fig. 9 The D flip-flop DFF shown in the figure may have a clock terminal Clk, an input terminal D, an output terminal Q and a reset terminal Q'. To distinguish, Fig. 9 The two D flip-flops DFF included in the first trigger unit 0121 are marked as DFF1 and DFF2 respectively; the two D flip-flops DFF included in the second trigger unit 0123 are marked as DFF3 and DFF4 respectively. Of course, in some other embodiments, other types of flip-flops may also be used.
[0129] Among them, the clock terminals Clk of DFF1 to DFF4 can all be connected to the same clock signal terminal CLK to receive the clock signal provided by the clock signal terminal CLK. The input terminal D of DFF1 can be connected to the output terminal of the comparator CMP1 in the first comparison sub-circuit 011 to receive the first comparison result Q0 output by the comparator CMP1, and the output terminal Q of DFF1 can be connected to the input terminal D of DFF2 and the control unit 0122 respectively to output the first first sampling result Q11 obtained by sampling the first comparison result Q0 for the first time to DFF2 and the control unit 0122. The output terminal Q of DFF2 can be connected to the control unit 0122 to output the second first sampling result Q12 obtained by sampling the first first sampling result Q11 for the second time to the control unit 0122. The input terminal D of DFF3 can be connected to the output terminal of the comparator CMP2 in the second comparison sub-circuit 013 to receive the second comparison result E0 output by the comparator CMP2, and the output terminal Q of DFF3 can be connected to the input terminal D of DFF4 and the control unit 0122 respectively to output the first second sampling result E11 obtained by sampling the second comparison result E0 for the first time to DFF4 and the control unit 0122. The output terminal Q of DFF4 can be connected to the control unit 0122 to output the second second sampling result E12 obtained by sampling the first second sampling result E11 for the second time to the control unit 0122.
[0130] Optionally, continue to refer to Fig. 9 It can be seen that the control unit 0122 may include: a decoder.
[0131] Optionally, the decoder may include a plurality of interconnected digital gate circuits to perform logic operations on at least one first sampling result Q1 (e.g., two first sampling results Q11 and Q12) and at least one second sampling result E1 (e.g., two first sampling results E11 and E12) received, and output a first control signal UP and a second control signal DN. That is, the decoder may be, for example, a digital decoder, also known as a combinational logic circuit constructed by digital gate circuits.
[0132] Optionally, continue to refer to Fig. 9 It can be seen that the current generating unit 0211 in the current generating subcircuit 021 may include: a first transistor M1, a resistor R and a second transistor M2 connected in series between the power supply terminal VDD and the ground terminal GND. As mentioned above, the power supply terminal VDD can be used to provide a power signal.
[0133] The current mirror unit 0212 in the current generating sub-circuit 021 may include: a third transistor M3 and a fourth transistor M4 which respectively form a current mirror structure with the first transistor M1 and the second transistor M2 and are connected in series between the power supply terminal VDD and the ground terminal GND. Accordingly, it can be known that in some embodiments, the first transistor M1 and the third transistor M3 may have the same size, and the second transistor M2 and the fourth transistor M4 may have the same size. The size here may refer to the aspect ratio of the transistor.
[0134] The switch control unit 0221 in the voltage control sub-circuit 022 may include: a fifth transistor M5 and a sixth transistor M6 connected in series between the third transistor M3 and the fourth transistor M4.
[0135] The charge and discharge unit 0222 in the voltage control subcircuit 022 may include: a capacitor C connected between the series node P1 of the fifth transistor M5 and the sixth transistor M6 and the ground terminal GND, and the series node P1 may be connected to the output signal terminal Vout. That is, the capacitor C may be connected in series between the series node P1 and the ground terminal GND.
[0136] That is, if Fig. 9As shown, the gate of the first transistor M1 can be connected to the second electrode of the first transistor M1, and the first electrode of the first transistor M1 can be connected to the power supply terminal VDD. The gate of the second transistor M2 can be connected to the second electrode of the second transistor M2, and the first electrode of the second transistor M2 can be grounded. The gate of the third transistor M3 can be connected to the gate of the first transistor M1, the first electrode of the third transistor M3 can be connected to the power supply terminal VDD, and the second electrode of the third transistor M3 can be connected to the first electrode of the fifth transistor M5. The gate of the fourth transistor M4 can be connected to the gate of the second transistor M2, the first electrode of the fourth transistor M4 can be grounded, and the second electrode of the fourth transistor M4 can be connected to the first electrode of the sixth transistor M6. The gate of the fifth transistor M5 can be connected to the decoder and used to receive the first control signal UP. The gate of the sixth transistor M6 can be connected to the decoder and used to receive the second control signal DN. The second electrode of the fifth transistor M5 and the second electrode of the sixth transistor M6 can be connected (here, it refers to the series node P1) and connected to the output signal terminal Vout. One end of the resistor R may be connected to the second electrode of the first transistor M1, and the other end of the resistor R may be connected to the second electrode of the second transistor M1. One end of the capacitor C may be connected to the series node P1, and the other end of the capacitor C may be grounded.
[0137] Optionally, the transistors used in all embodiments of the present application may be thin film transistors or field effect transistors or other devices with the same characteristics. According to the role in the circuit, the transistors used in the embodiments of the present application are mainly switching transistors. For example, the transistor may be a metal-oxide semiconductor (MOS) field effect transistor, also known as a MOS tube. Since the source and drain of the switching transistor used here are symmetrical, the source and drain are interchangeable, and the source is referred to as the first pole and the drain is referred to as the second pole, or the drain is referred to as the first pole and the source is referred to as the second pole. According to the form in the accompanying drawings, the middle end of the transistor is defined as the gate, the signal input end is the source, and the signal output end is the drain.
[0138] In addition, the switch transistor used in the embodiment of the present application may include any one of a P-type transistor and an N-type transistor or a combination thereof. Among them, the P-type transistor is turned on when the gate is at a low voltage and is turned off when the gate is at a high voltage, and the N-type transistor is turned on when the gate is at a high voltage and is turned off when the gate is at a low voltage. The P-type MOS tube is also called a PMOS tube, and the N-type MOS tube is also called an NMOS tube. For example, refer to Fig. 9, the first transistor M1 and the third transistor M3 shown in the figure can both be PMOS transistors, and the second transistor M2, the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6 can all be NMOS transistors. In addition, the multiple signals in each embodiment correspond to a first level and a second level, and the first level and the second level only represent that the level of the signal has two different state quantities, and do not represent that the first level or the second level has a specific value.
[0139] exist Fig. 9 Based on the structure shown, it can be known that in the output circuit 02, the first transistor M1, the second transistor M2 and the resistor R can form a current generating unit 0211 to generate a driving current I1 flowing through the drain of the first transistor M1. In addition, the driving current I1 can satisfy: I1 = (Vdd-Vgs1-Vgs2) / R0.
[0140] Among them, Vdd may refer to the power signal provided by the power supply terminal VDD, Vgs1 may refer to the gate-source voltage difference of the first transistor M1, Vgs2 may refer to the gate-source voltage difference of the second transistor M2, and R0 may refer to the resistance value of the resistor R. It can be seen that by adjusting the resistance value R0 of the resistor R, the magnitude of the generated driving current I1 can be adjusted. Since the third transistor M3 and the first transistor M1 form a current mirror structure, and the fourth transistor M4 and the second transistor M2 form a current mirror structure, it can be seen that the drain current of the third transistor M3 and the drain current of the fourth transistor M4 can be equal to the above-mentioned driving current I1.
[0141] Exemplarily, when the level of the first control signal UP is high level 1 and the level of the second control signal DN is low level 0, indicating that the level V-Vin of the input signal is greater than the level V-Vout of the output signal (i.e., V-Vin > V-Vout), the N-type fifth transistor M5 can be turned on and the N-type sixth transistor M6 can be turned off. As a result, the drain current I1 of the third transistor M3 can flow through the turned-on fifth transistor M5 and then charge the capacitor C, increasing the level V-Vout of the output signal and achieving the purpose of increasing the level V-Vout of the output signal. When the level of the first control signal UP is low level 0 and the level of the second control signal DN is high level 1, indicating that the level V-Vin of the input signal is less than the level V-Vout of the output signal (i.e., V-Vin < V-Vout), the N-type fifth transistor M5 can be turned off and the N-type sixth transistor M6 can be turned on. Thus, the drain current I1 of the fourth transistor M4 can flow through the turned-on sixth transistor M6 and then discharge the capacitor C, decreasing the level V-Vout of the output signal and achieving the purpose of decreasing the level V-Vout of the output signal. When the level of the first control signal UP is low level 0 and the level of the second control signal DN is low level 0, indicating that at a certain time period, the level V-Vin of the input signal is equal to the level V-Vout of the output signal (i.e., there is a situation where V-Vin = V-Vout), the N-type fifth transistor M5 and the N-type sixth transistor M6 can both be turned off. As a result, the charging and discharging of the capacitor C can be stopped, and the level V-Vout of the output signal can be maintained unchanged.
[0142] That is to say, combining Fig. 9 with the foregoing description, the signal detection circuit provided in the embodiments of the present application may include two parts: a control circuit 01 and an output circuit 02. And, in one embodiment, the control circuit 01 may include: a comparator CMP1, a comparator CMP2, D flip-flops DFF1, DFF2, DFF3, and DFF4, and a decoder. The output circuit 02 may include: a first transistor M1 and a third transistor M3 of PMOS, a second transistor M2, a fourth transistor M4, a fifth transistor M5, and a sixth transistor M6 of NMOS, as well as a resistor R and a capacitor C.
[0143] Taking Fig. 9 the shown structure and taking a certain rising edge of the clock signal as the reference time point as an example, and combining with the foregoing description example, the working principle of the signal detection circuit provided in the embodiments of the present application is summarized and described as follows:
[0144] If at this time the first second sampling result E11 output by DFF3 and the second second sampling result E12 output by DFF4 are both high level 1, that is, E11=E12=1, it can be explained that the level V-Vin of the input signal input through the input signal terminal Vin at the current moment and the moment one cycle before the clock signal can be both positive, that is, both are values greater than 0. Further, if the first first sampling result Q11 output by DFF1 and the second first sampling result Q12 output by DFF2 are both low level 0, that is, Q11=Q12=0, it can be explained that the positive amplitude of the level V-Vin of the input signal at these two moments is less than the level V-Vout of the output signal output through the output signal terminal Vout, and the positive amplitude refers to the absolute value of the amplitude A of V-Vin, which is a positive number. If the first first sampling result Q11 output by DFF1 and the second first sampling result Q12 output by DFF2 are both high level 1, that is, Q11=Q12=1, it can be explained that the positive amplitude of the level V-Vin of the input signal at these two moments is greater than the level V-Vout of the output signal. If one of the first sampling result Q11 output by DFF1 and the second first sampling result Q12 output by DFF2 is a high level 1 and the other is a low level 0, that is, Q11=1, Q12=0, or Q11=0, Q12=1, it can be explained that at these two moments, the level V-Vin of the input signal is first greater than the level V-Vout of the output signal and then less than the level V-Vout of the output signal, or the level V-Vin of the input signal is first less than the level V-Vout of the output signal and then greater than the level V-Vout of the output signal. That is, between these two moments, there is a certain period of time when the level V-Vin of the input signal is equal to the level V-Vout of the output signal. Of course, if the first second sampling result E11 output by DFF3 and the second second sampling result E12 output by DFF4 are not all high level 1, it can be explained that at these two moments, there is a situation where the level V-Vin of the input signal is less than 0. When V-Vin<0, it can be seen that after the comparator CMP1 compares the level V-Vin of the input signal and the level V-Vout of the output signal, the output first comparison result Q0 must be 0, which is meaningless for subsequent judgments. Therefore, the situation of V-Vin<0 can be ignored in the embodiment of the present application.
[0145] Based on outputting E11, E12, Q11 and Q12 to the decoder, the logical relationship of the decoder is summarized as follows:
[0146] When E11 and E12 are not all 1, the levels of the first control signal UP and the second control signal DN output by the decoder can both be 0 (i.e., UP=DN=0). In this way, the fifth transistor M5 and the sixth transistor M6 can be turned off. Furthermore, the level of the output signal V-Vout can remain unchanged. That is, it corresponds to the above meaningless judgment situation.
[0147] When E11 = E12 = 1 and Q11 = Q12 = 1, which indicates that V - Vin > V - Vout, the level of the first control signal UP output by the decoder can be high level 1, and the level of the second control signal DN can be low level 0, that is, UP = 1, DN = 0. In this way, the fifth transistor M5 can be turned on and the sixth transistor M6 can be turned off. Furthermore, the capacitor C can be charged to increase the level of the output signal V - Vout, that is, V - Vout can increase at this time.
[0148] When E11 = E12 = 1 and Q11 = Q12 = 0, which indicates that V - Vin < V - Vout, the level of the first control signal UP output by the decoder can be low level 0, and the level of the second control signal DN can be high level 1, that is, UP = 0, DN = 1. In this way, the fifth transistor M5 can be turned off and the sixth transistor M6 can be turned on. Furthermore, the capacitor C can be discharged to decrease the level of the output signal V - Vout, that is, V - Vout can decrease at this time.
[0149] When E11 = E12 = 1 and Q11 ≠ Q12, which indicates that there is a situation where V - Vin = V - Vout, the level of the first control signal UP output by the decoder can be low level 0, and the level of the second control signal DN can be low level 0, that is, UP = 0, DN = 0. In this way, the fifth transistor M5 can be turned off and the sixth transistor M6 can be turned off. Furthermore, the charging and discharging of the capacitor C can be stopped to maintain the level of the output signal V - Vout, that is, V - Vout can remain unchanged at this time.
[0150] That is to say, in the embodiment of the present application, through the path where CMP2, DFF3, and DFF4 are located, it is possible to only focus on the comparison result between the level of the input signal V - Vin and the level of the output signal V - Vout when the level of the input signal V - Vin > 0. Specifically, on the premise that the level of the input signal V - Vin > 0: when the positive amplitude of the input signal is greater than the level of the output signal V - Vout, Q11 and Q12 can continuously be high level 1, causing the level of the output signal V - Vout to increase. When the positive amplitude of the input signal is less than the level of the output signal V - Vout, Q11 and Q12 can continuously be low level 0, causing the level of the output signal V - Vout to decrease. Finally, when V - Vout = V - Vin, the output remains stable. That is, finally, the amplitude of the serial signal output by the signal detection circuit of the receiving end to the controller of the receiving end through the output signal terminal V - Vout is the same as the amplitude of the serial signal input by the sending end to this receiving end through the input signal terminal V - Vin.
[0151] It can be seen from this that, on the one hand, since the serial signal output to the controller at the receiving end through the signal detection circuit will not be affected by Figure 1 The threshold voltage of the diode shown in the figure is not affected by the threshold voltage of the diode, and is independent of the probability of "1" and "0" appearing in the serial signal sent by the transmitter. Therefore, the controller at the receiving end can reliably and quickly determine the amplitude of the received serial signal, and the amplitude detection accuracy is high. On the other hand, since the resistor R and capacitor C in the signal detection circuit are used to generate the driving current and the generated voltage respectively, instead of Figure 1 The example shown is used for low-pass filtering, so the size of the resistor R and the capacitor C can be much smaller than Figure 1 The resistors and capacitors are shown in Table 1. Fig. 9 , for a serial signal with a base frequency of about 50 MHz as the input signal, and in the scenario where the serial signal is also suppressed by 80 dB, in the signal detection circuit protected by the embodiment of the present application, the resistance value of the resistor R can be about 1 kΩ, and the capacitance value of the capacitor C can be about 1 pF, which is much smaller than Figure 1 The resistance value of the resistor R1 in the structure shown needs to be set to 100kΩ, which is much smaller than Figure 1 The capacitance value of the capacitor C1 of the structure shown is required to be set to 300pF. In addition, except for the resistor R and the capacitor C, all other components of the signal detection circuit protected by the embodiment of the present application can be formed by MOS tubes, so the overall area is relatively small compared to Figure 1 The structure shown is smaller and less expensive.
[0152] In summary, the embodiment of the present application provides a signal detection circuit. In the signal detection circuit, the control circuit can output a control signal for indicating the magnitude of the level of the output signal and the input signal to the output circuit based on the output signal outputted through the output signal terminal (i.e., the serial signal outputted to the controller of the receiving terminal) and the input signal inputted through the input signal terminal (i.e., the serial signal sent from the transmitting terminal to the receiving terminal), so that the output circuit can output a signal to be tested having a level equal to that of the input signal through the output signal terminal. Thus, it is convenient for the controller of the receiving terminal to directly determine the amplitude of the signal to be tested as the amplitude of the input signal, so as to achieve the purpose of reliably determining the amplitude of the serial signal received by the receiving terminal.
[0153] The present application also provides a deserializer. Fig.10 As shown, the deserializer includes: a controller 10, and Figures 1 to 9 Any of the signal detection circuits 00 shown is connected to the controller 10 .
[0154] The signal detection circuit 00 is used to detect and process the received serial signal, and output the serial signal to the controller 10. Optionally, the controller 10 may be, for example, an MCU.
[0155] Moreover, based on the foregoing records, it can be known that the level of the signal to be tested output by the signal detection circuit 00 to the controller 10 via the output signal terminal Vout is equal to the level of the serial signal received via the input signal terminal Vin, so the controller 10 can directly determine the amplitude of the received signal as the amplitude of the signal received by the signal detection circuit 00, and the reliability of the amplitude determination is better.
[0156] Optionally, combined Fig.10 It can also be seen that the input signal terminal Vin of the signal detection circuit 00 can be connected to a serializer to receive a serial signal input by the serializer. Accordingly, the receiving terminal described in the embodiment of the present application can be a deserializer.
[0157] It is understandable that, since the deserializer has substantially the same technical effects as the aforementioned signal detection circuit, the technical effects of the deserializer will not be described repeatedly here for the purpose of brevity.
[0158] It should be noted that the terms used in the embodiments of the present application are used to explain the embodiments of the present application, and are not intended to limit the present application. Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the common meanings understood by people with ordinary skills in the field to which the present application belongs.
[0159] For example, the words "first", "second" or "third" and similar words used in the patent application specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "an" do not indicate a quantitative limitation, but rather indicate the existence of at least one. Words such as "include" or "comprise" mean that the elements or objects appearing before "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. "Up", "down", "left" or "right" etc. are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. "Connected" or "coupled" refers to an electrical connection. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0160] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A signal detection circuit, characterized in that: The signal detection circuit comprises: a control circuit and an output circuit; the control circuit is connected to the output circuit, and the control circuit is also connected to the input signal terminal, and the control circuit and the output circuit are also connected to the output signal terminal; The control circuit is used to: output a first control signal and a second control signal based on an output signal output through the output signal terminal and an input signal input through the input signal terminal, wherein the first control signal and the second control signal are used to indicate a magnitude relationship between a level of the output signal and a level of the input signal; The output circuit is used to: under the control of the first control signal and the second control signal, output a test signal whose level is equal to that of the input signal through the output signal terminal for detecting the amplitude of the input signal, wherein the amplitude of the test signal is the amplitude of the input signal.
2. The signal detection circuit according to claim 1, characterized in that: The control circuit comprises: a first comparison subcircuit and a control subcircuit; the first comparison subcircuit is connected to the input signal terminal, the output signal terminal and the control subcircuit respectively, and the control subcircuit is also connected to the output circuit; The first comparison subcircuit is used to: compare the level of the input signal with the level of the output signal to obtain a first comparison result; The control subcircuit is used to output the first control signal and the second control signal based on the first comparison result.
3. The signal detection circuit according to claim 2, characterized in that: The control circuit further includes: a second comparison subcircuit; the second comparison subcircuit is respectively connected to the input signal terminal, the reference power supply terminal and the control subcircuit; The second comparison subcircuit is used to: compare the level of the input signal with the level of the reference power supply signal provided by the reference power supply terminal to obtain a second comparison result; The control subcircuit is configured to output the first control signal and the second control signal based on the first comparison result and the second comparison result when the second comparison result indicates that the level of the input signal is greater than the level of the reference power supply signal.
4. The signal detection circuit according to claim 2 or 3, characterized in that: The control subcircuit comprises: a first trigger unit and a control unit; the first trigger unit is connected to the first comparison subcircuit and the control unit respectively, and the control unit is also connected to the output circuit; The first trigger unit is used to: perform one or more continuous sampling on the first comparison result based on the received clock signal to obtain at least one first sampling result; The control unit is used to: output the first control signal and the second control signal under the control of the at least one first sampling result.
5. The signal detection circuit according to claim 4, characterized in that: In the case where the control circuit includes a second comparison subcircuit, the control subcircuit further includes: a second trigger unit; the second trigger unit is connected to the second comparison subcircuit and the control unit respectively; The second trigger unit is used to: perform one or more continuous sampling on the second comparison result based on the received clock signal to obtain at least one second sampling result; The control unit is used to output the first control signal and the second control signal under the control of the at least one second sampling result and the at least one first sampling result.
6. The signal detection circuit according to claim 5, characterized in that: The first trigger unit and the second trigger unit both include: one or more triggers connected in series.
7. The signal detection circuit according to claim 5, characterized in that: The frequencies of the clock signal received by the second trigger unit and the clock signal received by the first trigger unit are both the same as the frequency of the input signal.
8. The signal detection circuit according to claim 5, characterized in that: The control unit is used to perform logic operation processing on the at least one second sampling result and the at least one first sampling result to output the first control signal and the second control signal.
9. The signal detection circuit according to any one of claims 1 to 3, characterized in that: The output circuit comprises: a current generating subcircuit and a voltage controlling subcircuit; the current generating subcircuit is connected to the voltage controlling subcircuit, and the voltage controlling subcircuit is also connected to the control circuit and the output signal terminal respectively; The current generating subcircuit is used to: output a driving current based on a received power supply signal; The voltage control subcircuit is used to: under the control of the first control signal and the second control signal, control the level of the output signal based on the driving current, so as to output the signal to be tested through the output signal terminal.
10. The signal detection circuit according to claim 9, characterized in that: The voltage control subcircuit comprises: a switch control unit and a charge-discharge unit; the switch control unit is connected to the control circuit, the current generating subcircuit and the charge-discharge unit respectively, and the switch control unit and the charge-discharge unit are both connected to the output signal terminal; The switch control unit is used to: under the control of the first control signal and the second control signal, control the charge and discharge unit to charge and discharge based on the driving current, so as to control the level of the output signal.
11. A deserializer, characterized in that: The deserializer comprises: a controller, and a signal detection circuit as claimed in any one of claims 1 to 10; the signal detection circuit is connected to the controller; The signal detection circuit is used to detect and process the received serial signal and output the serial signal to the controller.
