Resistance adjusting circuit and resistance adjusting method

By outputting the selection signal at the load side impedance adjustment controller and selecting the appropriate resistor array for resistance adjustment, the problem of inconsistent impedance at the signal source and load side is solved, and impedance matching and signal integrity are improved.

CN119892011AActive Publication Date: 2025-04-25NIUXIN SEMICON
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510363916.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2025-04-25
Estimated Expiration
2045-03-26

AI Technical Summary

Technical Problem

In high-speed signal transmission, the impedances at the source and load terminals are inconsistent, resulting in signal reflection and affecting the integrity of the signal.

Method used

Through impedance adjustment at the load end, the controller outputs a selection signal, selects an appropriate pull-up resistor array or pull-down resistor array for resistance adjustment, so as to achieve impedance matching between the signal source end and the load end.

Benefits of technology

The impedance matching between the signal source and load terminals is achieved, the accuracy and flexibility of resistance adjustment is improved, signal reflection is reduced, and signal integrity is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892011A_ABST
    Figure CN119892011A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of resistance regulation, and particularly relates to a resistance regulation circuit and a resistance regulation method, the resistance regulation circuit comprises a controller, a resistance array selection module, a reference voltage regulation module, a reference voltage comparison module and a regulation voltage determination module; the reference voltage adjusting module outputs corresponding reference voltage according to the impedance requirement of the load end; the reference voltage comparison module compares the first reference voltage with the voltage on the pull-down resistor array, so that the controller adjusts the resistance value of the pull-down resistor array according to a voltage comparison result; the adjusting voltage determining module outputs corresponding adjusting voltage according to a comparison result of the second reference voltage and the voltage on the pull-up resistor array, so that the controller adjusts the resistance value of the pull-up resistor array according to the adjusting voltage; resistance adjustment is performed on the pull-up resistor array and the pull-down resistor array of the signal source end through the impedance of the load end, impedance matching between the signal source end and the load end is realized, the adjustment accuracy is high, and the flexibility is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of resistance adjustment technology, and specifically relates to a resistance adjustment circuit and a resistance adjustment method. Background Art

[0002] In high-speed signal transmission, the impedance inconsistency between the signal source and the load will cause the signal to be reflected on the transmission line. This is because the transmission line can be regarded as a "waveguide" and the signal will be affected by the impedance during the transmission process. When the signal encounters an impedance mismatch, part of the signal will be reflected back to the source, while the other part of the signal will continue to be transmitted forward. When this reflected signal is superimposed on the original signal, it will change the waveform of the signal, thereby affecting the integrity of the signal.

[0003] Therefore, how to achieve impedance matching between the signal source and the load is a problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a resistance adjustment circuit and a resistance adjustment method, which solve the problem of impedance matching between a signal source end and a load end. The present application can adjust the resistance of a pull-up resistor array and a pull-down resistor array at a signal source end through the impedance of the load end, thereby achieving impedance matching between the signal source end and the load end. The resistance adjustment has high accuracy and strong flexibility.

[0005] In a first aspect, the present application provides a resistance adjustment circuit, which includes: a controller; a resistance array selection module, the resistance array selection module is respectively connected to the controller, the pull-up resistor array and the pull-down resistor array, and is used to select the pull-up resistor array or the pull-down resistor array for resistance adjustment under the action of the selection signal output by the controller; a reference voltage adjustment module, the reference voltage adjustment module is respectively connected to the pull-up resistor array and the pull-down resistor array, and is used to output a corresponding reference voltage according to the impedance requirement of the load end; a reference voltage comparison module, the reference voltage comparison module is respectively connected to the reference voltage adjustment module , the pull-down resistor array is connected to the controller and is used to compare the first reference voltage output by the reference voltage adjustment module with the voltage on the pull-down resistor array, so that the controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result; an adjustment voltage determination module, the adjustment voltage determination module is respectively connected to the reference voltage adjustment module, the first connection end of the pull-up resistor array and the controller, and is used to output a corresponding adjustment voltage according to the comparison result between the second reference voltage output by the reference voltage adjustment module and the voltage on the pull-up resistor array, so that the controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage.

[0006] Optionally, the resistor array selection module includes: a first transistor, a control end of the first transistor is connected to the gate voltage output end, and a first end of the first transistor is connected to the first power supply end; a first switch, a control end of the first switch is connected to the controller, a first end of the first switch is connected to the second end of the first transistor, and the second end of the first switch is connected to the reference voltage adjustment module; a second transistor, a control end of the second transistor is connected to the control end of the first transistor, and a first end of the second transistor is connected to the first end of the first transistor; a second switch, a control end of the second switch is connected to the controller, a first end of the second switch is connected to the second end of the second transistor, and a second end of the second switch is connected to the first connection end of the pull-up resistor array; a third transistor, a control end of the third transistor is connected to the control end of the second transistor, a first end of the third transistor is connected to the first end of the second transistor; a third switch, a control end of the third switch is connected to the controller, a first end of the third switch is connected to the second end of the third transistor, and a second end of the third switch is connected to the first connection end of the pull-down resistor array.

[0007] Optionally, the resistor array selection module also includes: an operational amplifier, the inverting input terminal of the operational amplifier is connected to the first reference voltage terminal, and the output terminal of the operational amplifier serves as the gate voltage output terminal; a fourth switch, the control terminal of the fourth switch is connected to the controller, the first end of the fourth switch is connected to the non-inverting input terminal of the operational amplifier, and the second end of the fourth switch is connected to the second end of the first switch; a fifth switch, the control terminal of the fifth switch is connected to the controller, the first end of the fifth switch is connected to the first end of the fourth switch, and the second end of the fifth switch is connected to the first end of the second switch.

[0008] Optionally, the reference voltage adjustment module includes: a first resistor, a first end of the first resistor is connected to the second end of the first switch, and the second end of the second resistor is grounded; a second resistor, a first end of the second resistor is respectively connected to the second end of the second switch and the control end of the third switch; a third resistor, a first end of the third resistor is connected to the second end of the second resistor, and the second end of the third resistor is grounded.

[0009] Optionally, the reference voltage comparison module includes: a sixth switch, wherein the control end of the sixth switch is connected to the controller, and the first end of the sixth switch is connected to the second end of the first switch; a seventh switch, wherein the control end of the seventh switch is connected to the controller, the first end of the seventh switch is connected to the second end of the third switch, and the second end of the seventh switch is connected to the second end of the sixth switch; a first capacitor, wherein the first end of the first capacitor is connected to the second end of the sixth switch; and a comparator, wherein the inverting input end of the comparator is grounded, the non-inverting input end of the comparator is connected to the second end of the first capacitor, and the output end of the comparator is connected to the controller.

[0010] Optionally, the reference voltage comparison module also includes: an eighth switch, wherein the control end of the eighth switch is connected to the controller, the first end of the eighth switch is connected to the second reference voltage end, and the second end of the eighth switch is connected to the inverting input end of the comparator; and a ninth switch, wherein the control end of the ninth switch is connected to the controller, the first end of the ninth switch is connected to the non-inverting input end of the comparator, and the second end of the ninth switch is connected to the output end of the comparator.

[0011] Optionally, the reference voltage comparison module also includes: a fourth resistor, a first end of the fourth resistor is connected to the second end of the sixth switch, and the second end of the fourth resistor is connected to the first end of the first capacitor; a second capacitor, a first end of the second capacitor is connected to the second end of the fourth resistor, and the second end of the second capacitor is grounded; a fifth resistor, a first end of the fifth resistor is connected to the second end of the first capacitor, and the second end of the fifth resistor is connected to the non-inverting input terminal of the comparator; a sixth resistor, a first end of the sixth resistor is connected to the inverting input terminal of the comparator; a third capacitor, a first end of the third capacitor is connected to the second end of the sixth resistor, and the second end of the third capacitor is grounded.

[0012] Optionally, the regulation voltage determination module includes: a differential amplifier, the inverting input terminal of the differential amplifier is connected to the second end of the second resistor, and the non-inverting input terminal of the differential amplifier is connected to the first connection terminal of the pull-down resistor array; a fourth transistor, the control terminal of the fourth transistor is connected to the output terminal of the differential amplifier, and the second end of the fourth transistor is grounded; a fifth transistor, the control terminal of the fifth transistor is connected to the first end of the fourth transistor, the first end of the fifth transistor is connected to the first power supply terminal, and the second end of the fifth transistor is connected to the control terminal of the fifth transistor; a sixth transistor, the control terminal of the sixth transistor is connected to the control terminal of the fifth transistor, and the first end of the sixth transistor is connected to the first end of the fifth transistor; a seventh resistor, the first end of the seventh resistor is connected to the second end of the sixth transistor, the second end of the seventh resistor is also connected to the controller, and the second end of the seventh resistor is connected to the second power supply terminal.

[0013] Optionally, the pull-up resistor array includes a plurality of pull-up resistor modules connected in parallel, each pull-up resistor module includes a pull-up transistor and a pull-up resistor, the control end of the pull-up transistor is connected to the controller, the first end of the pull-up transistor serves as the first connection end of the pull-up resistor array, the second end of the pull-up transistor is connected to the first end of the pull-up resistor, and the second end of the pull-up resistor serves as the second connection end of the pull-up resistor array; the pull-down resistor array includes a plurality of pull-down resistor modules connected in parallel, each pull-down resistor module includes a pull-down resistor and a pull-down transistor, the first end of the pull-down resistor serves as the first connection end of the pull-down resistor array, the second end of the pull-down resistor is connected to the first end of the pull-down transistor, the control end of the pull-down transistor is connected to the controller vector, and the second end of the pull-down transistor is grounded.

[0014] In a second aspect, the present application provides a resistance adjustment method, which is applied to a resistance adjustment circuit, and the resistance adjustment method includes: a resistor array selection module connects the pull-down resistor array to the adjustment loop according to a first selection signal output by a controller; a reference voltage comparison module compares a first reference voltage output by a reference voltage adjustment module with the voltage on the pull-down resistor array, and outputs a voltage comparison result; the controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result; when the resistance value adjustment of the pull-down resistor array is completed, the resistor array selection module outputs a second selection signal according to the controller, and connects the pull-up resistor array to the adjustment loop; an adjustment voltage determination module outputs a corresponding adjustment voltage according to a comparison result of a second reference voltage output by the reference voltage adjustment module and the voltage on the pull-up resistor array; and the controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage.

[0015] The technical solution provided by this application has at least the following beneficial effects: The resistor array selection module of the present application is controlled by the controller output selection signal, and selects the corresponding pull-up resistor array or pull-down resistor array to be connected to the adjustment loop, so as to realize the time-sharing resistance adjustment of the pull-up resistor array and the pull-down resistor array, and improve the stability and accuracy of the resistance adjustment. Further, the reference voltage adjustment module of the present application outputs the corresponding first reference voltage and the second reference voltage according to the different impedance requirements of the load end; the reference voltage comparison module compares the first reference voltage and the voltage on the pull-down resistor array, so that the controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result; in addition, the adjustment voltage determination module outputs the corresponding adjustment voltage according to the second reference voltage, so that the controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage; therefore, the present application can adjust the resistance of the pull-up resistor array and the pull-down resistor array at the signal source end through the impedance of the load end, so as to realize the impedance matching between the signal source end and the load end, and the resistance adjustment has high accuracy and strong flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0017] Figure 1 Shown is a schematic structural diagram of a resistance adjustment circuit provided in an embodiment of the present application.

[0018] Figure 2 Shown is a schematic structural diagram of a pull-up resistor array and a pull-down resistor array provided in an embodiment of the present application.

[0019] Figure 3 Shown is a circuit diagram of a resistance adjustment circuit provided in an embodiment of the present application.

[0020] Figure 4 The figure is a flow chart of a resistance adjustment method provided in an embodiment of the present application.

[0021] Description of reference numerals: 100, resistance adjustment circuit; 110, controller; 120, resistance array selection module; 130, reference voltage adjustment module; 140, reference voltage comparison module; 150, adjustment voltage determination module; 200, pull-up resistor array; 210, pull-up resistor module; 300, pull-down resistor array; 310, pull-down resistor module; M1, a first transistor; M2, a second transistor; M3, a third transistor; M4, a fourth transistor; M5, a fifth transistor; M6, a sixth transistor; Q1, a pull-up transistor; Q2, a pull-down transistor; T1, first switch; T2, second switch; T3, third switch; T4, fourth switch; T5, fifth switch; T6, sixth switch; T7, seventh switch; T8, eighth switch; T9, ninth switch; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; Ra, pull-up resistor; Rb, pull-down resistor; C1, first capacitor; C2, second capacitor; C3, third capacitor; U1, operational amplifier; U2, comparator; U3, differential amplifier. DETAILED DESCRIPTION

[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0023] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0024] The present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the technical features involved in the various embodiments of the present application described below can be combined with each other as long as they do not conflict with each other. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be understood as limiting the present application.

[0025] Assume that there is a high-speed digital signal source and a load end, and the signal is transmitted through a transmission line (such as a coaxial cable). The characteristic impedance of the transmission line is 50Ω, which is an important parameter in the design of the transmission line; here is a detailed explanation of the impedance matching and impedance mismatching: 1. Impedance matching: Assume that the output impedance of the signal source is 50Ω and the input impedance of the load is also 50Ω. In this case, the impedances of the signal source, transmission line, and load are completely matched.

[0026] Signal transmission process: The signal source sends out a square wave signal, and the signal propagates along the transmission line. The characteristic impedance of the transmission line is 50Ω. When the signal reaches the load end, the impedance of the load end is also 50Ω, and the signal is completely absorbed. Due to impedance matching, the signal is not reflected during the transmission process, and the waveform remains intact. The signal seen by the receiving end is almost the same as the signal waveform sent by the transmitting end.

[0027] 2. Impedance mismatch: Assume that the output impedance of the signal source is still 50Ω, but the input impedance of the load end becomes 100Ω. In this case, the impedance of the load end does not match the characteristic impedance of the transmission line.

[0028] Signal transmission process: The signal source sends out a square wave signal, and the signal propagates along the transmission line. The characteristic impedance of the transmission line is 50Ω. When the signal reaches the load end, due to the mismatch between the impedance of the load end (100Ω) and the characteristic impedance of the transmission line (50Ω), part of the signal will be reflected back to the signal source. The reflected signal is superimposed on the original signal on the transmission line, causing the signal waveform seen by the receiving end to be distorted.

[0029] In order to solve the impedance matching between the signal source end and the load end, the present application provides a resistance adjustment circuit for adjusting the pull-up resistor array and the pull-down resistor array of the signal source end so that the impedance between the signal source end and the load end is matched; specifically, the following embodiments are included: In a first aspect, the present application provides a resistance adjustment circuit, which specifically includes the following embodiments: Figure 1 FIG. 1 is a schematic diagram of a resistance adjustment circuit provided in an embodiment of the present application; Figure 1 As shown, the resistance adjustment circuit 100 includes a controller 110, which may be a single chip microcomputer or a chip including a plurality of connection ports and having a control program written therein.

[0030] In this embodiment, the resistance adjustment circuit 100 also includes a resistance array selection module 120, which is respectively connected to the controller 110, the pull-up resistor array 200 and the pull-down resistor array 300, and is used to select the pull-up resistor array 200 or the pull-down resistor array 300 for resistance adjustment under the action of the selection signal output by the controller 110.

[0031] In one embodiment, if Figure 2As shown, the pull-up resistor array 200 includes a plurality of pull-up resistor modules 210 connected in parallel, each pull-up resistor module 210 includes a pull-up transistor Q1 and a pull-up resistor Ra, the control end of the pull-up transistor Q1 is connected to the controller 110, the first end of the pull-up transistor Q1 serves as the first connection end of the pull-up resistor array 200, the second end of the pull-up transistor Q1 is connected to the first end of the pull-up resistor Ra, and the second end of the pull-up resistor Ra serves as the second connection end of the pull-up resistor array 200.

[0032] In this embodiment, the pull-down resistor array 300 includes a plurality of pull-down resistor Rb modules 310 connected in parallel, each pull-down resistor Rb module 310 includes a pull-down resistor Rb and a pull-down transistor Q2, a first end of the pull-down resistor Rb serves as a first connection end of the pull-down resistor array 300, a second end of the pull-down resistor Rb is connected to a first end of the pull-down transistor Q2, a control end of the pull-down transistor Q2 is connected to a controller 110, and a second end of the pull-down transistor Q2 is grounded.

[0033] It should be noted that, according to the controller 110 controlling the on or off of each pull-up transistor Q1, different numbers and combinations of pull-up resistors Ra are connected in parallel, so as to achieve the purpose of adjusting the resistance value of the pull-up resistor array 200; in addition, due to different gate voltages, the pull-up transistor Q1 will also output different internal resistances, further fine-tuning the resistance value of the pull-up resistor array 200; similarly, the control principle of the pull-down resistor array 300 is the same as that of the pull-up resistor array 200. When adjusting the resistance of the pull-up resistor array 200 and the pull-down resistor array 300, it is necessary to connect the first connection end of the pull-up resistor array 200 to the power supply end, the second connection end of the pull-up resistor array 200 to the first connection end of the pull-down resistor array 300, and the second connection end of the pull-down resistor array 300 to the ground. It is worth noting that: in order to ensure the stability and accuracy of the resistance adjustment, the pull-up transistor Q1 and the pull-down transistor Q2 in this embodiment are of the same model, and the pull-down resistor Rb and the pull-up resistor Ra have the same resistance value.

[0034] In addition, the resistor array selection module 120 of the present application is controlled by the selection signal output by the controller 110, and selects the corresponding pull-up resistor array 200 or the pull-down resistor array 300 to be connected to the adjustment loop, thereby realizing time-sharing resistance adjustment of the pull-up resistor array 200 and the pull-down resistor array 300; for example, when the controller 110 outputs a first selection signal, the resistor array selection module 120 connects the pull-down resistor array 300 to the adjustment loop and disconnects the pull-up resistor array 200, thereby realizing resistance adjustment of the pull-down resistor array 300; when the controller 110 outputs a second selection signal, the resistor array selection module 120 connects the pull-up resistor array 200 to the adjustment loop and disconnects the pull-down resistor array 300, thereby realizing resistance adjustment of the pull-up resistor array 200.

[0035] In this embodiment, the resistance adjustment circuit 100 also includes a reference voltage adjustment module 130, which is respectively connected to the pull-up resistor array 200 and the pull-down resistor array 300, and is used to output a corresponding reference voltage according to the impedance requirements of the load end; specifically, according to the impedance requirements of different load ends, reference resistors with different resistance values ​​can be adjusted to be connected to the adjustment loop, thereby providing different reference voltages for the pull-up resistor array 200 and the pull-down resistor array 300.

[0036] In this embodiment, the resistance adjustment circuit 100 further includes a reference voltage comparison module 140, which is connected to the reference voltage adjustment module 130, the pull-down resistor array 300 and the controller 110 respectively, and is used to compare the first reference voltage output by the reference voltage adjustment module 130 with the voltage on the pull-down resistor array 300, so that the controller 110 adjusts the resistance value of the pull-down resistor array 300 according to the voltage comparison result. Specifically, the first reference voltage is determined by the impedance requirement of the load end, that is, according to the impedance requirement of the load end, the resistance of the pull-down resistor array 300 needs to be adjusted to 1.2K, and the corresponding first reference voltage is 5V; therefore, the reference voltage comparison module 140 compares the first reference voltage with the real-time voltage on the pull-down resistor array 300, so that the controller 110 adjusts the resistance value in the pull-down resistor array 300 according to the voltage comparison result feedback until the first reference voltage and the real-time voltage on the pull-down resistor array 300 are equal.

[0037] In this embodiment, the resistance adjustment circuit 100 further includes an adjustment voltage determination module 150, which is connected to the reference voltage adjustment module 130, the first connection end of the pull-up resistor array 200 and the controller 110 respectively, and is used to output a corresponding adjustment voltage according to a comparison result between the second reference voltage output by the reference voltage adjustment module 130 and the voltage on the pull-up resistor array 200, so that the controller 110 adjusts the resistance value of the pull-up resistor array 200 according to the adjustment voltage. Specifically, the second reference voltage is determined by the impedance requirement of the load end, that is, when the resistance of the pull-up resistor array 200 is adjusted to 400Ω according to the impedance requirement of the load end, the corresponding second reference voltage is 3V; therefore, the adjustment voltage determination module 150 outputs a corresponding adjustment voltage to the controller 110 according to the second reference voltage, so that the controller 110 adjusts the resistance value of the pull-up resistor array 200 according to the adjustment voltage feedback.

[0038] In summary, the resistor array selection module 120 of the present application is controlled by the selection signal output by the controller 110, and selects the corresponding pull-up resistor array 200 or the pull-down resistor array 300 to be connected to the adjustment loop, thereby realizing time-sharing resistance adjustment of the pull-up resistor array 200 and the pull-down resistor array 300, and improving the stability and accuracy of the resistance adjustment. Furthermore, the reference voltage adjustment module 130 of the present application outputs a corresponding first reference voltage and a second reference voltage according to different impedance requirements of the load end; the first reference voltage and the voltage on the pull-down resistor array 300 are compared through the reference voltage comparison module 140, so that the controller 110 adjusts the resistance value of the pull-down resistor array 300 according to the voltage comparison result; in addition, the corresponding adjustment voltage is output according to the second reference voltage through the adjustment voltage determination module 150, so that the controller 110 adjusts the resistance value of the pull-up resistor array 200 according to the adjustment voltage; therefore, the present application can adjust the resistance of the pull-up resistor array 200 and the pull-down resistor array 300 at the signal source end through the impedance of the load end, so as to achieve impedance matching between the signal source end and the load end, and the resistance adjustment has high accuracy and strong flexibility.

[0039] Figure 3 FIG. 1 is a circuit diagram of a resistance adjustment circuit provided in an embodiment of the present application; Figure 3 As shown, the resistor array selection module 120 includes: a first transistor M1, a first switch T1, a second transistor M2, a second switch T2, a third transistor M3 and a third switch T3; the control end of the first transistor M1 is connected to the gate voltage output end, and the first end of the first transistor M1 is connected to the first power supply end; the control end of the first switch T1 is connected to the controller 110, the first end of the first switch T1 is connected to the second end of the first transistor M1, and the second end of the first switch T1 is connected to the reference voltage adjustment module 130; the control end of the second transistor M2 is connected to the control end of the first transistor M1, and the first end of the second transistor M2 is connected to the third switch T3; A first end of a transistor M1 is connected; a control end of a second switch T2 is connected to a controller 110, a first end of the second switch T2 is connected to a second end of the second transistor M2, and a second end of the second switch T2 is connected to a first connection end of the pull-up resistor array 200; a control end of a third transistor M3 is connected to a control end of the second transistor M2, a first end of the third transistor M3 is connected to a first end of the second transistor M2; a control end of the third switch T3 is connected to the controller 110, a first end of the third switch T3 is connected to a second end of the third transistor M3, and a second end of the third switch T3 is connected to a first connection end of the pull-down resistor array 300.

[0040] In this embodiment, the control ends of the first switch T1, the second switch T2 and the third switch T3 are respectively connected to the controller 110 ( Figure 3), that is, the opening and closing of the first switch T1, the second switch T2 and the third switch T3 are controlled by the controller 110; specifically, when the controller 110 controls the first switch T1 and the third switch T3 to be closed at the same time and controls the second switch T2 to be disconnected, the pull-down resistor array 300 is selected; when the controller 110 controls the first switch T1 and the third switch T3 to be disconnected at the same time and controls the second switch T2 to be closed, the pull-up resistor array 200 is selected.

[0041] It should be noted that the gate voltage output terminal is used to output the gate voltage for turning on the first transistor M1, the second transistor M2 and the third transistor M3; in addition, the output current of the first transistor M1 is N times that of the second transistor M2, and the value of N can be determined together with the voltage division ratio of the reference resistor in the reference voltage adjustment module 130; here, this embodiment takes the example that the output current of the first transistor M1 is 6 times that of the second transistor M2 and the third transistor M3.

[0042] like Figure 3 As shown, in another embodiment, the resistor array selection module 120 also includes an operational amplifier U1, a fourth switch T4 and a fifth switch T5; the inverting input terminal of the operational amplifier U1 is connected to the first reference voltage terminal, and the output terminal of the operational amplifier U1 serves as a gate voltage output terminal; the control terminal of the fourth switch T4 is connected to the controller 110, the first terminal of the fourth switch T4 is connected to the non-inverting input terminal of the operational amplifier U1, and the second terminal of the fourth switch T4 is connected to the second terminal of the first switch T1; the control terminal of the fifth switch T5 is connected to the controller 110, the first terminal of the fifth switch T5 is connected to the first terminal of the fourth switch T4, and the second terminal of the fifth switch T5 is connected to the first terminal of the second switch T2.

[0043] It should be noted that the opening and closing of the fourth switch T4 and the fifth switch T5 are also controlled by the controller 110. When the controller 110 controls the first switch T1 to be closed, it also controls the fourth switch T4 to be closed, so that the operational amplifier U1 performs operational amplification on the first reference voltage output from the first reference voltage terminal and uses it as the gate voltage for opening the first transistor M1.

[0044] like Figure 3 As shown, the reference voltage adjustment module 130 includes a first resistor R1, a second resistor R2 and a third resistor R3; the first end of the first resistor R1 is connected to the second end of the first switch T1, and the second end of the second resistor R2 is grounded; the first end of the second resistor R2 is respectively connected to the second end of the second switch T2 and the control end of the third switch T3; the first end of the third resistor R3 is connected to the second end of the second resistor R2, and the second end of the third resistor R3 is grounded.

[0045] It should be noted that the first resistor R1 can be a variable resistor or an external resistor, that is, the purpose of making the resistance value of the first resistor R1 variable can be achieved by replacing the external resistor. Combining the reference voltage adjustment module 130 with the resistor array selection module 120, it can be seen that: when the first switch T1 and the third switch T3 are closed, that is, when the pull-down resistor array 300 is selected for resistance adjustment, the first reference voltage output by the reference voltage adjustment module 130 is the voltage on the first resistor R1, that is, the voltage on the node C; when the second switch T2 is closed, that is, when the pull-up resistor array 200 is selected for resistance adjustment, the second reference voltage output by the reference voltage adjustment module 130 is the voltage on the third resistor R3, that is, the voltage on the node B; in addition, Figure 3 In the example, the voltage at node A is the voltage at the pull-down resistor array 300 .

[0046] like Figure 3 As shown, the reference voltage comparison module 140 includes a sixth switch T6, a seventh switch T7, a first capacitor C1 and a comparator U2, the control end of the sixth switch T6 is connected to the controller 110, and the first end of the sixth switch T6 is connected to the second end of the first switch T1; the control end of the seventh switch T7 is connected to the controller 110, the first end of the seventh switch T7 is connected to the second end of the third switch T3, and the second end of the seventh switch T7 is connected to the second end of the sixth switch T6; the first end of the first capacitor C1 is connected to the second end of the sixth switch T6; the inverting input end of the comparator U2 is grounded, the non-inverting input end of the comparator U2 is connected to the second end of the first capacitor C1, and the output end of the comparator U2 is connected to the controller 110.

[0047] It should be noted that the reference voltage comparison module 140 is mainly used to compare the first reference voltage with the voltage on the pull-down resistor array 300; therefore, while the controller 110 controls the first switch T1 and the third switch T3 to be closed, the controller 110 first controls the sixth switch T6 to be closed and the seventh switch T7 to be opened, so that the first reference voltage on the node C is stored in the first capacitor C1 through the sixth switch T6, and then the controller 110 controls the sixth switch T6 to be opened and the seventh switch T7 to be closed, so that the voltage on the node A (i.e., the voltage on the pull-down resistor array 300) is stored in the first capacitor C1 through the seventh switch T6. T7 is written into the first capacitor C1; this time a voltage difference occurs at the first end of the first capacitor C1, and at the same time, the second end of the capacitor, i.e., the non-inverting input end of the comparator U2, also generates the same voltage difference. The comparator U2 compares the voltage difference with the low level (assuming it is 0V) at the ground end. If the voltage difference is greater than 0V, the comparator U2 outputs a high level, so that the controller 110 continues to adjust the resistance value of the pull-down resistor array 300; if the voltage difference is equal to or less than 0V, the comparator U2 outputs a low level, and the comparator U2 flips from a high level to a low level, indicating that the resistance value of the pull-down resistor array 300 has been adjusted.

[0048] Optionally, the reference voltage comparison module 140 further includes: an eighth switch T8 and a ninth switch T9, wherein the control end of the eighth switch T8 is connected to the controller 110, the first end of the eighth switch T8 is connected to the second reference voltage end, and the second end of the eighth switch T8 is connected to the inverting input end of the comparator U2; the control end of the ninth switch T9 is connected to the controller 110, the first end of the ninth switch T9 is connected to the non-inverting input end of the comparator U2, and the second end of the ninth switch T9 is connected to the output end of the comparator U2. Specifically, when the controller 110 controls the sixth switch T6 to be closed, the eighth switch T8 and the ninth switch T9 are controlled to be closed, and the input and output ends of the comparator U2 are reset by the reference voltage output by the second reference voltage end, thereby improving the accuracy of voltage comparison.

[0049] Optionally, the reference voltage comparison module 140 also includes a fourth resistor R4, a second capacitor C2, a fifth resistor R5, a sixth resistor R6 and a third capacitor C3, the first end of the fourth resistor R4 is connected to the second end of the sixth switch T6, and the second end of the fourth resistor R4 is connected to the first end of the first capacitor C1; the first end of the second capacitor C2 is connected to the second end of the fourth resistor R4, and the second end of the second capacitor C2 is grounded; the first end of the fifth resistor R5 is connected to the second end of the first capacitor C1, and the second end of the fifth resistor R5 is connected to the non-inverting input end of the comparator U2; the first end of the sixth resistor R6 is connected to the inverting input end of the comparator U2; the first end of the third capacitor C3 is connected to the second end of the sixth resistor R6, and the second end of the third capacitor C3 is grounded.

[0050] It should be noted that the second capacitor C2, the third capacitor C3 and the sixth resistor R6 of this embodiment respectively have filtering functions.

[0051] like Figure 3As shown, the regulation voltage determination module 150 includes a differential amplifier U3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6 and a seventh resistor R7; the inverting input terminal of the differential amplifier U3 is connected to the second end of the second resistor R2, and the non-inverting input terminal of the differential amplifier U3 is connected to the first connection terminal of the pull-down resistor array 300; the control terminal of the fourth transistor M4 is connected to the output terminal of the differential amplifier U3, and the second end of the fourth transistor M4 is grounded; the control terminal of the fifth transistor M5 is connected to the first end of the fourth transistor M4, the first end of the fifth transistor M5 is connected to the first power supply terminal, and the second end of the fifth transistor M5 is connected to the control terminal of the fifth transistor M5; the control terminal of the sixth transistor M6 is connected to the control terminal of the fifth transistor M5, and the first end of the sixth transistor M6 is connected to the first end of the fifth transistor M5; the first end of the seventh resistor R7 is connected to the second end of the sixth transistor M6, the second end of the seventh resistor R7 is also connected to the controller 110, and the second end of the seventh resistor R7 is connected to the second power supply terminal.

[0052] It should be noted that the function of the adjustment voltage determination module 150 is to determine the gate voltage of the pull-up transistor Q1 in the pull-up resistor array 200 controlled by the controller 110, that is, to output the corresponding node voltage according to the comparison result of the voltage on the node B and the voltage on the node A; specifically, when the pull-up resistor array 200 is adjusted, the second switch T2 is closed, and the current on the second switch T2 is divided into two paths, one path flows through the pull-up resistor array 200 and the pull-down resistor array 300, and the other path flows through the second resistor R2 and the third resistor R3; in this embodiment, the second reference voltage on the node B and the voltage at the node A are input into the differential amplifier U3 for comparison, and the differential amplifier U3 outputs different voltages according to the different voltage differences of the two input voltages, and obtains the corresponding adjustment voltage through the current source composed of the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6, that is, the upper voltage of the node D is VP+I2×R7, and the current of I2 changes according to the voltage change output by the differential amplifier U3; when VA =VB, the pull-up resistor array 200 is adjusted.

[0053] In a second aspect, the present application provides a resistance adjustment method, which specifically includes the following embodiments: Figure 4 FIG. 1 is a flow chart of a resistance adjustment method provided in an embodiment of the present application; Figure 4 As shown, the adjustment method specifically includes the following steps: Step S100: The resistor array selection module connects the pull-down resistor array to the regulation loop according to the first selection signal output by the controller.

[0054] Step S200: The reference voltage comparison module compares the first reference voltage output by the reference voltage adjustment module with the voltage on the pull-down resistor array, and outputs a voltage comparison result.

[0055] Step S300: The controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result.

[0056] Step S400: When the resistance value of the pull-down resistor array is adjusted, the resistor array selection module outputs a second selection signal according to the controller, and connects the pull-up resistor array to the adjustment loop.

[0057] Step S500: The regulated voltage determination module outputs a corresponding regulated voltage according to a comparison result between a second reference voltage output by the reference voltage regulation module and the voltage on the pull-up resistor array.

[0058] Step S600: The controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage.

[0059] It should be noted that the resistance adjustment method provided in this embodiment is mainly applied to the resistance adjustment circuit in the above embodiment; the resistance adjustment method is divided into pull-down resistor array adjustment and pull-up resistor array adjustment. Figure 3 The specific process of the resistance adjustment method is described in detail: 1. Pull-down resistor array adjustment process: The controller outputs a first selection signal to control the first switch T1, the third switch T3 and the fourth switch T4 to be closed, so that the current output from the first transistor M1 flows to the first resistor R1 through the first switch T1, and the current output from the third transistor M3 flows to the pull-down resistor array through the third switch T3 and the node A; at the same time, the controller first controls the sixth switch T6 to be closed and the seventh switch T7 to be opened, so that the voltage VC on the node C (i.e., the voltage on the first resistor R1) is written into the first capacitor C1 through the sixth switch T6; then, the controller controls the sixth switch T6 to be opened and the seventh switch T7 to be closed, so that the voltage VA on the node A is written into the first capacitor C1 through the seventh switch T7; this time, a voltage difference will occur at the first end of the first capacitor C1 At the same time, the second end of the capacitor, i.e. the positive input end of the comparator U2, will also produce the same voltage difference , the comparator U2 compares the voltage difference with the low level (assuming it is 0V) on the ground terminal. If the voltage difference is greater than 0V, the comparator U2 outputs a high level, so that the controller continues to adjust the resistance value of the pull-down resistor array; if the voltage difference is equal to or less than 0V, the comparator U2 outputs a low level, and the comparator U2 flips from a high level to a low level, indicating that the resistance value of the pull-down resistor array 300 has been adjusted. Among them, the adjustment result of the pull-down resistor array 300 can be understood as a binary sequence, for example: Figure 2In the pull-down resistor array, when the adjustment result is 1000, it means that the first pull-down transistor Q2 from left to right is closed, the second pull-down transistor Q2 is disconnected, the third pull-down transistor Q2 is disconnected, and the fourth pull-down transistor Q2 is disconnected; if the adjustment result is 0110, it means that the first pull-down transistor Q2 is disconnected, the second pull-down transistor Q2 is closed, the third pull-down transistor Q2 is closed, and the fourth pull-down transistor Q2 is disconnected; the adjustment results corresponding to other binary sequences are also the same control principle, which will not be repeated here.

[0060] 2. Pull-up resistor array adjustment process: the controller outputs a second selection signal to control the second switch T2 and the fifth switch T5 to be closed, and the other switches to be opened; the current output from the second transistor M2 is divided into two paths after passing through the second switch T2, one path flows through the pull-up resistor array and the pull-down resistor array, and the other path flows through the second resistor R2 and the third resistor R3; at this time, the voltage VB on the node B and the voltage VA at the node A are input into the differential amplifier U3 for comparison, and the differential amplifier U3 outputs different voltages according to the different voltage differences between the two input voltages, and obtains the corresponding adjustment voltage through the current source composed of the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6, that is, the voltage VD of the node D = VP + I2 × R7, and the current of I2 changes according to the voltage change output by the differential amplifier U3; when VA =VB, the pull-up resistor array is adjusted; wherein, the adjustment result of the pull-up resistor array is also a binary sequence similar to the adjustment result of the pull-down resistor array; in addition, in order to improve the adjustment efficiency of the pull-up resistor array, the controller can first assign the adjustment result of the pull-down resistor to the pull-up resistor array, and then perform fine-tuning on this basis.

[0061] It is worth noting that the resistance values ​​adjusted by the pull-up resistor array and the pull-down resistor array can be equal or unequal; in addition, the resistance ratio of the pull-up resistor array and the pull-down resistor array is adjusted accordingly by the ratio of the second resistor to the third resistor; by changing the resistance value of the first resistor, the resistance value required by the pull-down resistor array in the current adjustment process can be known, 6×I1×R1=I1×pull-down resistor array.

[0062] In this application, it is applicable to the mipi dphy protocol with a Vcomm voltage of 400mv (low differential swing), and the pull-up resistor array uses an N-type MOS tube in series with the resistor to ensure that the switch is turned on while reducing power consumption.

[0063] In addition, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third" may explicitly or implicitly include one or more of the feature. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0064] In the description of this specification, the description with reference to the terms "some embodiments", "exemplarily", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0065] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. Therefore, any changes or modifications made in accordance with the claims and description of the present application should fall within the scope of the patent of this application.

Claims

1. A resistance adjustment circuit, characterized in that: The resistance adjustment circuit comprises: Controller; A resistor array selection module, the resistor array selection module is connected to the controller, the pull-up resistor array and the pull-down resistor array respectively, and is used to select the pull-up resistor array or the pull-down resistor array for resistance adjustment under the action of the selection signal output by the controller; A reference voltage regulating module, the reference voltage regulating module is connected to the pull-up resistor array and the pull-down resistor array respectively, and is used to output a corresponding reference voltage according to an impedance requirement of a load end; A reference voltage comparison module, the reference voltage comparison module is connected to the reference voltage adjustment module, the pull-down resistor array and the controller respectively, and is used to compare the first reference voltage output by the reference voltage adjustment module with the voltage on the pull-down resistor array, so that the controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result; an adjustment voltage determination module, the adjustment voltage determination module is respectively connected to the reference voltage adjustment module, the first connection end of the pull-up resistor array and the controller, and is used to output a corresponding adjustment voltage according to a comparison result between a second reference voltage output by the reference voltage adjustment module and the voltage on the pull-up resistor array, so that the controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage.

2. The resistance adjustment circuit according to claim 1, characterized in that: The resistor array selection module includes: A first transistor, wherein a control terminal of the first transistor is connected to a gate voltage output terminal, and a first terminal of the first transistor is connected to a first power supply terminal; A first switch, wherein a control end of the first switch is connected to the controller, a first end of the first switch is connected to a second end of the first transistor, and a second end of the first switch is connected to the reference voltage adjustment module; a second transistor, wherein a control terminal of the second transistor is connected to a control terminal of the first transistor, and a first terminal of the second transistor is connected to a first terminal of the first transistor; a second switch, wherein a control end of the second switch is connected to the controller, a first end of the second switch is connected to a second end of the second transistor, and a second end of the second switch is connected to a first connection end of the pull-up resistor array; a third transistor, wherein a control terminal of the third transistor is connected to a control terminal of the second transistor, and a first terminal of the third transistor is connected to a first terminal of the second transistor; A third switch, wherein a control end of the third switch is connected to the controller, a first end of the third switch is connected to a second end of the third transistor, and a second end of the third switch is connected to a first connection end of the pull-down resistor array.

3. The resistance adjustment circuit according to claim 2, characterized in that: The resistor array selection module also includes: An operational amplifier, wherein an inverting input terminal of the operational amplifier is connected to a first reference voltage terminal, and an output terminal of the operational amplifier serves as the gate voltage output terminal; a fourth switch, wherein a control end of the fourth switch is connected to the controller, a first end of the fourth switch is connected to the non-inverting input end of the operational amplifier, and a second end of the fourth switch is connected to the second end of the first switch; A fifth switch, wherein a control end of the fifth switch is connected to the controller, a first end of the fifth switch is connected to a first end of the fourth switch, and a second end of the fifth switch is connected to a first end of the second switch.

4. The resistance adjustment circuit according to claim 2, characterized in that: The reference voltage adjustment module comprises: a first resistor, wherein a first end of the first resistor is connected to a second end of the first switch, and a second end of the first resistor is grounded; a second resistor, wherein a first end of the second resistor is respectively connected to the second end of the second switch and the control end of the third switch; A third resistor, wherein a first end of the third resistor is connected to a second end of the second resistor, and a second end of the third resistor is grounded.

5. The resistance adjustment circuit according to claim 2, characterized in that: The reference voltage comparison module comprises: a sixth switch, wherein a control end of the sixth switch is connected to the controller, and a first end of the sixth switch is connected to a second end of the first switch; a seventh switch, wherein a control end of the seventh switch is connected to the controller, a first end of the seventh switch is connected to the second end of the third switch, and a second end of the seventh switch is connected to the second end of the sixth switch; a first capacitor, wherein a first end of the first capacitor is connected to a second end of the sixth switch; A comparator, wherein the inverting input terminal of the comparator is grounded, the non-inverting input terminal of the comparator is connected to the second terminal of the first capacitor, and the output terminal of the comparator is connected to the controller.

6. The resistance adjustment circuit according to claim 5, characterized in that: The reference voltage comparison module also includes: an eighth switch, wherein a control end of the eighth switch is connected to the controller, a first end of the eighth switch is connected to the second reference voltage end, and a second end of the eighth switch is connected to the inverting input end of the comparator; A ninth switch, wherein the control end of the ninth switch is connected to the controller, the first end of the ninth switch is connected to the non-inverting input end of the comparator, and the second end of the ninth switch is connected to the output end of the comparator.

7. The resistance adjustment circuit according to claim 5, characterized in that: The reference voltage comparison module also includes: a fourth resistor, wherein a first end of the fourth resistor is connected to a second end of the sixth switch, and a second end of the fourth resistor is connected to a first end of the first capacitor; a second capacitor, wherein a first end of the second capacitor is connected to a second end of the fourth resistor, and a second end of the second capacitor is grounded; a fifth resistor, wherein a first end of the fifth resistor is connected to the second end of the first capacitor, and a second end of the fifth resistor is connected to the non-inverting input end of the comparator; a sixth resistor, wherein a first end of the sixth resistor is connected to an inverting input end of the comparator; A third capacitor, wherein a first end of the third capacitor is connected to a second end of the sixth resistor, and a second end of the third capacitor is grounded.

8. The resistance adjustment circuit according to claim 4, characterized in that: The regulation voltage determination module comprises: a differential amplifier, wherein an inverting input terminal of the differential amplifier is connected to the second end of the second resistor, and a non-inverting input terminal of the differential amplifier is connected to the first connection terminal of the pull-down resistor array; a fourth transistor, wherein a control terminal of the fourth transistor is connected to the output terminal of the differential amplifier, and a second terminal of the fourth transistor is grounded; a fifth transistor, wherein a control terminal of the fifth transistor is connected to a first terminal of the fourth transistor, a first terminal of the fifth transistor is connected to a first power supply terminal, and a second terminal of the fifth transistor is connected to a control terminal of the fifth transistor; a sixth transistor, wherein a control terminal of the sixth transistor is connected to the control terminal of the fifth transistor, and a first terminal of the sixth transistor is connected to the first terminal of the fifth transistor; A seventh resistor, wherein a first end of the seventh resistor is connected to the second end of the sixth transistor, a second end of the seventh resistor is also connected to the controller, and a second end of the seventh resistor is connected to the second power supply end.

9. The resistance adjustment circuit according to any one of claims 1 to 8, characterized in that: The pull-up resistor array includes a plurality of pull-up resistor modules connected in parallel, each of the pull-up resistor modules includes a pull-up transistor and a pull-up resistor, the control end of the pull-up transistor is connected to the controller, the first end of the pull-up transistor serves as the first connection end of the pull-up resistor array, the second end of the pull-up transistor is connected to the first end of the pull-up resistor, and the second end of the pull-up resistor serves as the second connection end of the pull-up resistor array; The pull-down resistor array includes a plurality of pull-down resistor modules connected in parallel, each pull-down resistor module includes a pull-down resistor and a pull-down transistor, the first end of the pull-down resistor serves as the first connection end of the pull-down resistor array, the second end of the pull-down resistor is connected to the first end of the pull-down transistor, the control end of the pull-down transistor is connected to the controller vector, and the second end of the pull-down transistor is grounded.

10. A resistance adjustment method, characterized in that: Applied to the resistance adjustment circuit according to any one of claims 1 to 9, the resistance adjustment method comprises: The resistor array selection module connects the pull-down resistor array to the regulation loop according to the first selection signal output by the controller; The reference voltage comparison module compares the first reference voltage output by the reference voltage adjustment module with the voltage on the pull-down resistor array, and outputs a voltage comparison result; The controller adjusts the resistance value of the pull-down resistor array according to the voltage comparison result; When the resistance value of the pull-down resistor array is adjusted, the resistor array selection module outputs a second selection signal according to the controller, and connects the pull-up resistor array to the adjustment loop; The adjustment voltage determination module outputs a corresponding adjustment voltage according to a comparison result between the second reference voltage output by the reference voltage adjustment module and the voltage on the pull-up resistor array; The controller adjusts the resistance value of the pull-up resistor array according to the adjustment voltage.

Citation Information

Patent Citations

  • Method and circuit for regulating loads of dynamic self-adaptation terminal

    CN101571709A

  • Off-line driving device with adjustable slew rate and resistance

    CN104104383A

  • Calibrating circuit and method of input / output driver, and semiconductor memory

    CN107919154A

  • Tuning method of automatic tuning circuit, automatic tuning circuit and signal transmitting device

    CN113381775A

  • Calibration circuit, method and related device

    CN116996061A