A slope feedback control circuit and microprocessor chip

By detecting the control terminal voltage of the drive tube in the detection circuit, indirectly calculating the LIN bus slope, and adjusting the control current output by the constant current circuit according to the preset value, the problem of the detection circuit in the prior art is solved, and the reliability of signal detection is improved.

CN222736137UActive Publication Date: 2025-04-08CHENGDU GEEHY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421478352.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2025-04-08
Estimated Expiration
2034-06-26

AI Technical Summary

Technical Problem

In the prior art, when detecting the LIN bus voltage, the detection circuit is susceptible to interference from high voltage or clutter signals, resulting in low reliability of signal detection.

Method used

A slope feedback control circuit is designed to indirectly obtain the LIN bus slope by detecting the control end voltage of the drive tube, and generate a switch control signal based on the preset slope and the detected slope difference, and adjust the control current and direction of the constant current circuit output.

Benefits of technology

Improve the reliability of signal detection and avoid detection errors caused by high voltage or clutter signal interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222736137U_ABST
    Figure CN222736137U_ABST
Patent Text Reader

Abstract

The present application provides a slope feedback control circuit and a microprocessor chip. The slope feedback control circuit includes a driving circuit, a detection circuit, a constant current circuit and a LIN bus. The driving circuit includes a driving tube and a first capacitor; the first input end of the detection circuit is electrically connected to the control end of the driving tube, the second input end of the detection circuit is electrically connected to the signal sending end, and the output end of the detection circuit is electrically connected to the first input end of the constant current circuit; the second input end of the constant current circuit is electrically connected to the signal sending end, and the output end of the constant current circuit is electrically connected to the control end of the driving tube; the first end of the first capacitor is electrically connected to the control end of the driving tube, the second end of the first capacitor is electrically connected to the first end of the driving tube, and the second end of the driving tube is electrically connected to the first voltage end; the input end of the LIN bus is electrically connected to the second end of the first capacitor and the first end of the driving tube, and the LIN bus is electrically connected to the second end of the first capacitor and the first end of the driving tube. The present application improves the reliability of signal detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a slope feedback control circuit and a microprocessor chip. Background Art

[0002] The Local Interconnect Network (LIN) is a low-cost serial communication network defined for automotive distributed electronic systems. LIN is a supplement to other automotive multi-channel networks such as the Controller Area Network (CAN). LIN is suitable for applications that do not have high requirements on network bandwidth, performance or fault tolerance.

[0003] The LIN bus slope mainly affects electromagnetic interference (EMI), electromagnetic compatibility (EMC) and communication efficiency. EMI refers to the electromagnetic interference generated by the device to the environment, and electromagnetic compatibility refers to the ability of the device to tolerate electromagnetic interference in the environment. A LIN bus slope that is too high may cause electromagnetic interference, and a LIN bus slope that is too low may cause the LIN communication duty cycle to not meet the standard requirements. Therefore, the LIN bus slope needs to be controlled. In the slope feedback control circuit, if the load capacitance or load resistance of the LIN bus changes, the voltage of the LIN bus needs to change synchronously.

[0004] In the prior art, the detection circuit needs to detect the voltage of the LIN bus, and then adjust the output voltage of the LIN bus to control the slope of the LIN bus. However, in the prior art, the voltage of the LIN bus detected by the detection circuit is relatively high, or there may be noise signals that interfere with the detection circuit, thereby reducing the reliability of signal detection. Utility Model Content

[0005] In view of this, an embodiment of the present application provides a slope feedback control circuit and a microprocessor chip for improving the reliability of signal detection.

[0006] A first aspect provides a slope feedback control circuit, the slope feedback control circuit comprising: a drive circuit, a detection circuit, a constant current circuit, and a LIN bus, the drive circuit comprising a drive tube and a first capacitor;

[0007] The first input end of the detection circuit is electrically connected to the control end of the driving tube, the second input end of the detection circuit is electrically connected to the signal sending end, and the output end of the detection circuit is electrically connected to the first input end of the constant current circuit;

[0008] The second input end of the constant current circuit is electrically connected to the signal sending end, and the output end of the constant current circuit is electrically connected to the control end of the driving tube;

[0009] The first end of the first capacitor is electrically connected to the control end of the driving tube, the second end of the first capacitor is electrically connected to the first end of the driving tube, and the second end of the driving tube is electrically connected to the first voltage end;

[0010] The LIN bus is electrically connected to the second end of the first capacitor and the first end of the driving tube;

[0011] The detection circuit is used to detect the LIN bus slope, generate a switch control signal according to the difference between the LIN bus slope and a preset slope, and output the switch control signal to the constant current circuit;

[0012] The signal sending terminal is used to control the change direction of the LIN bus voltage;

[0013] The constant current circuit is used to output a control current to the control end of the driving tube, adjust the magnitude of the control current according to the switch control signal, and adjust the direction of the control current according to the sending signal output by the sending signal end.

[0014] In a possible implementation, the slope feedback control circuit further includes: a load, wherein the load includes a load capacitor and a load resistor;

[0015] The first end of the load resistor is electrically connected to the second voltage end, the second end of the load resistor is electrically connected to the first end of the load capacitor, and the second end of the load capacitor is electrically connected to the first voltage end;

[0016] The LIN bus is also electrically connected to the second end of the load resistor and the first end of the load capacitor.

[0017] In a possible implementation, the slope feedback control circuit further includes: a second capacitor;

[0018] A first end of the second capacitor is electrically connected to the control end of the driving tube, and a second end of the second capacitor is electrically connected to the first voltage end;

[0019] The second capacitor is used to adjust the voltage of the control end of the driving tube according to the magnitude of the control current output by the constant current circuit and the direction of the control current.

[0020] In a possible implementation, the detection circuit includes: an inverter, an XOR gate, a time-to-digital converter TDC, and a logic module;

[0021] The input end of the inverter is electrically connected to the control end of the driving tube, the output end of the inverter is electrically connected to the first input end of the XOR gate, and the second input end of the XOR gate is electrically connected to the signal sending end;

[0022] An output terminal of the XOR gate is electrically connected to the time-to-digital converter TDC, and the time-to-digital converter TDC is electrically connected to the logic module.

[0023] In a possible implementation, the detection circuit further includes: a first switch and a pull-down resistor;

[0024] The common end of the first switch is electrically connected to the first input end of the XOR gate, the first branch end of the first switch is electrically connected to the pull-down resistor, and the second branch end of the first switch is electrically connected to the output end of the inverter;

[0025] The control end of the first switch is electrically connected to the signal sending end, and the signal sending end is used to control the first switch to electrically connect the first input end of the XOR gate to the pull-down resistor, or to electrically connect the first input end of the XOR gate to the output end of the inverter.

[0026] In a possible implementation, the constant current circuit includes: a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a fifth switch tube, a second switch, a third switch, a plurality of first resistors, and a fourth switch arranged corresponding to each of the first resistors, the first switch tube, the second switch tube, and the fourth switch tube form a first current mirror, the third switch tube and the fifth switch tube form a second current mirror, the second switch tube is electrically connected to the second current mirror, and the second switch tube provides current for the second current mirror;

[0027] A plurality of the first resistors are connected in series, and each of the fourth switches is connected in parallel with a corresponding first resistor;

[0028] The control end of the first switch tube is electrically connected to the control end of the second switch tube and the second end of the first switch tube, the first end of the first switch tube is electrically connected to the third voltage end, the second end of the first switch tube is electrically connected to the first ends of a plurality of first resistors connected in series, and the second ends of the plurality of first resistors connected in series are electrically connected to the first voltage end;

[0029] The control end of the second switch tube is electrically connected to the control end of the fourth switch tube, the first end of the second switch tube is electrically connected to the third voltage end, and the second end of the second switch tube is electrically connected to the first end of the third switch tube;

[0030] The control end of the third switch tube is electrically connected to the control end of the fifth switch tube and the first end of the third switch tube, and the second end of the third switch tube is electrically connected to the first voltage end;

[0031] The first end of the fourth switch tube is electrically connected to the third voltage end, and the second end of the fourth switch tube is electrically connected to the first end of the second switch;

[0032] The second end of the second switch is electrically connected to the first end of the third switch, the second end of the third switch is electrically connected to the first end of the fifth switch tube, and the second end of the fifth switch tube is electrically connected to the first voltage end;

[0033] The second end of the second switch and the first end of the third switch are also electrically connected to the control end of the driving tube;

[0034] The control end of the fourth switch is electrically connected to the output end of the detection circuit, and is used to control the number of first resistors connected to the series circuit to control the current size of the constant current circuit;

[0035] The control end of the second switch and the control end of the third switch are electrically connected to the signal sending end, and are used to control the current direction of the constant current circuit.

[0036] In a possible implementation, the constant current circuit includes: a plurality of current source circuits, each of the current source circuits including a first current source, a second current source, a fifth switch, a sixth switch, a seventh switch and an eighth switch;

[0037] A first end of the fifth switch is electrically connected to a third voltage end, a second end of the fifth switch is electrically connected to a first end of the first current source, a second end of the first current source is electrically connected to a first end of the sixth switch, a second end of the sixth switch is electrically connected to a first end of the seventh switch, a second end of the seventh switch is electrically connected to a first end of the second current source, a second end of the second current source is electrically connected to a first end of the eighth switch, and a second end of the eighth switch is electrically connected to the first voltage end;

[0038] The control end of the sixth switch and the control end of the seventh switch are electrically connected to the output end of the detection circuit, and the detection circuit is used to control the number of the first current source and the second current source connected to the circuit to adjust the magnitude of the control current;

[0039] The control end of the fifth switch and the control end of the eighth switch are electrically connected to the signal sending end, and the signal sending end is used to control the operation of the first current source or the second current source to adjust the direction of the control current.

[0040] In a possible implementation manner, a ninth switch is provided between each of the second capacitors and the control end of the driving tube, and the control end of the ninth switch is electrically connected to the output end of the detection circuit;

[0041] The detection circuit is used for the number of the second capacitor access circuits.

[0042] A second aspect provides a microprocessor chip, comprising the slope feedback control circuit in the first aspect or any possible implementation of the first aspect.

[0043] In the technical solution provided in the embodiment of the present application, the slope feedback control circuit includes a driving circuit, a detection circuit, a constant current circuit and a LIN bus. The driving circuit includes a driving tube and a first capacitor. The first input end of the detection circuit is electrically connected to the control end of the driving tube. The detection circuit generates a switch control signal according to the difference between the detected LIN bus slope and the preset slope. The constant current circuit outputs a control current to the control end of the driving tube, adjusts the magnitude of the control current according to the switch control signal, and adjusts the direction of the control current according to the sending signal output by the sending signal end. In the embodiment of the present application, the detection circuit does not need to detect the voltage slope of the LIN bus, but detects the control end voltage of the driving tube through the detection circuit, and then obtains the LIN bus slope and generates a switch control signal according to the difference between the LIN bus slope and the preset slope. The constant current circuit adjusts the magnitude of the control current output to the driving tube according to the switch control signal and adjusts the direction of the control current according to the sending signal output by the sending signal end, thereby avoiding the problem that the voltage of the LIN bus detected by the detection circuit is high, or there may be a clutter signal that interferes with the detection circuit, thereby improving the reliability of signal detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in 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 paying creative labor.

[0045] Figure 1 A schematic diagram of the structure of a slope feedback control circuit provided in an embodiment of the present application;

[0046] Figure 2 A signal timing diagram of a slope feedback control circuit provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a detection circuit provided in an embodiment of the present application;

[0048] Figure 4 for Figure 3Signal timing diagram of the medium slope feedback control circuit;

[0049] Figure 5 A schematic diagram of the structure of another detection circuit provided in an embodiment of the present application;

[0050] Figure 6 for Figure 5 Signal timing diagram of the medium slope feedback control circuit;

[0051] Figure 7 A structural schematic diagram of a constant current circuit provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of another constant current structure provided in an embodiment of the present application;

[0053] Fig. 9 A schematic diagram of the structure of a microprocessor chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0055] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0056] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0057] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0058] Figure 1 A schematic diagram of a slope feedback control circuit provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the slope feedback control circuit includes a driving circuit, a detection circuit 1, a constant current circuit 2 and a LIN bus, and the driving circuit includes a driving tube M0 and a first capacitor C1.

[0059] The first input terminal of the detection circuit 1 is electrically connected to the control terminal of the driving tube M0, the second input terminal of the detection circuit 1 is electrically connected to the signal transmission terminal, and the output terminal of the detection circuit 1 is electrically connected to the first input terminal of the constant current circuit 2, wherein the signal transmission terminal is used to output the transmission signal TXD to the detection circuit 11. The second input terminal of the constant current circuit 2 is electrically connected to the signal transmission terminal, and the output terminal of the constant current circuit 2 is electrically connected to the control terminal of the driving tube M0, wherein the signal transmission terminal is used to output the transmission signal TXD to the constant current circuit 2. The first terminal of the first capacitor C1 is electrically connected to the control terminal of the driving tube M0, the second terminal of the first capacitor C1 is electrically connected to the first terminal of the driving tube M0, and the second terminal of the driving tube M0 is electrically connected to the first voltage terminal. The LIN bus is electrically connected to the second terminal of the first capacitor C1 and the first terminal of the driving tube M0.

[0060] like Figure 1 As shown, the slope feedback control circuit also includes a load, and the LIN bus is also electrically connected to the load. The load may include a load capacitor C load and load resistance R load . Load resistance R load The first end is electrically connected to the second voltage terminal VSUP_LIN, and the load resistor R load The second end is electrically connected to the load capacitor C load The first end, load capacitance C load The second end of the LIN bus is electrically connected to the first voltage end; the LIN bus is also electrically connected to the load resistor R load The second terminal and load capacitor C load Specifically, the first end of the LIN bus is electrically connected to the second end of the first capacitor C1 and the first end of the driver M0, as well as the load resistor R load The second terminal and load capacitor C load The first end.

[0061] like Figure 1 As shown, the slope feedback control circuit also includes a second capacitor C gs , the second capacitor C gs The first end of the capacitor C is electrically connected to the control end of the driving tube M0. gs The second end of the second capacitor C is electrically connected to the first voltage end. gs The number can also be multiple, each second capacitor C gs Both are arranged between the control terminal and the first voltage terminal of the driving tube M0, which is not specifically shown. gs It is used to adjust the voltage of the control end of the driving tube M0 according to the magnitude of the control current output by the constant current circuit 2 and the direction of the control current.

[0062] In the embodiment of the present application, the control end of the driving tube M0 is a gate. The driving tube M0 may be a metal-oxide-semiconductor field-effect transistor (MOS). For example, if the driving tube M0 is an N-type MOS, the first end of the driving tube M0 is a drain, and the second end of the driving tube M0 is a source.

[0063] In the embodiment of the present application, the first capacitor C1 may be a Miller capacitor.

[0064] In the embodiment of the present application, the first voltage terminal may be a low voltage terminal. For example, the voltage of the first voltage terminal may be a low level voltage or a ground voltage. Figure 1 As shown, the voltage of the first voltage terminal is the ground voltage, that is, the first voltage terminal can be the ground terminal GND.

[0065] In the embodiment of the present application, the second voltage terminal VSUP_LIN may be a high voltage terminal. For example, the voltage of the second voltage terminal may be a high level voltage.

[0066] like Figure 1 As shown, the driving circuit is used to output a driving current to the LIN bus. The driving current is used to load the capacitance C on the LIN bus. load Generates the LIN bus voltage V Lin The constant current circuit 2 is used to output a control current to the control end of the driving tube M0. The control current is used to generate a control voltage on the second capacitor Cgs. The control voltage is the voltage of the control end of the driving tube M0. The control voltage can control the magnitude of the driving current output by the driving tube M0.

[0067] like Figure 1 As shown, the detection circuit 1 is used to detect the slope of the LIN bus, generate a switch control signal according to the difference between the LIN bus slope and the preset slope, and output the switch control signal to the constant current circuit 2. The constant current circuit 2 is used to adjust the magnitude of the control current according to the switch control signal, and adjust the direction of the control current according to the transmission signal TXD.

[0068] like Figure 1 As shown, the sending signal terminal is used to control the LIN bus voltage V Lin The direction of change can be adjusted to control the direction of the current. For example, the LIN bus voltage V Lin When the change direction is rising, the control current is sinking current; the LIN bus voltage V Lin When the change direction of is downward, the control current is a pulling current.

[0069] Figure 2 A signal timing diagram of a slope feedback control circuit provided in an embodiment of the present application is shown in FIG. Figure 2As shown, V LIN is the LIN bus voltage, V Lin is a linearly changing voltage; V G is the control voltage of the control end of the driving tube M0; TXD is the sending signal output by the sending signal end, for example, TXD=1 or TXD=0; t LIN is the pulse time. Figure 2 It can be seen that the time point corresponding to when TXD rises from 0 to 1 is the time point when TXD starts to change; V Lin When the voltage at point a changes to the voltage at point b, the voltage change is complete. The time point corresponding to the voltage at point b is V Lin The time point at which the change is completed. Figure 2 As shown, when the pulse time t is detected LIN After that, the pulse time t LIN Calculate the LIN bus slope k, k = ΔV Lin / t LIN , where ΔV Lin =V b -V a .

[0070] LIN bus voltage V Lin The change direction may include V Lin Rising or V Lin Decline. Figure 2 As shown, when TXD = 1, the LIN bus voltage V Lin The direction of change is V Lin The voltage V at the control end of the driving tube M0 rises. G When TXD = 0, the LIN bus voltage V Lin The direction of change is V Lin When it drops, the voltage V at the control end of the driving tube M0 G If the voltage rises, the control current direction provided by the constant current circuit 2 to the driving tube M0 is to flow into the constant current circuit 2.

[0071] As an alternative, Figure 3 A schematic diagram of a detection circuit provided in an embodiment of the present application is shown in FIG. Figure 3As shown, the detection circuit 1 includes an inverter 11, an XOR gate 12, a time-to-digital converter TDC (Time-to-Digital Converter, TDC) 13 and a logic module 14. The input end of the inverter 11 is electrically connected to the control end of the driving tube M0, the output end of the inverter 11 is electrically connected to the first input end of the XOR gate 12, and the second input end of the XOR gate 12 is electrically connected to the sending signal end; the output end of the XOR gate 12 is electrically connected to the time-to-digital converter TDC 13, and the time-to-digital converter TDC 13 is electrically connected to the logic module 14. Among them, the sending signal end is used to output a sending signal TXD to the second input end of the XOR gate 12.

[0072] The inverter 11 is used to drive the voltage V G Perform inversion processing to generate a first voltage And output the first voltage to the first input terminal of XOR gate 2 XOR gate 12 is used to The output pulse is generated by performing XOR processing with the transmission signal TXD, and the output pulse is output to the time digital converter TDC 13. The time digital converter TDC13 is used to generate a pulse time according to the output pulse, perform time digital conversion on the pulse time to generate a digital signal, and output the digital signal to the logic module 14. The logic module 14 is used to convert the digital signal into a switch control signal, and output the switch control signal to the constant current circuit 2. Specifically, the logic module 14 is used to compare whether the digital signal is the same as the expected time length. If the comparison shows that the digital signal is different from the expected time length, the switch control signal output to the constant current circuit 2 is the first switch control signal; if the comparison shows that the digital signal is the same as the expected time length, the switch control signal output to the constant current circuit 2 is the second switch control signal.

[0073] Figure 4 for Figure 3 The signal timing diagram of the medium slope feedback control circuit is as follows: Figure 3 and Figure 4 As shown, V G The inverting signal, V G =1, V G = 0, V LIN Take the rising phase as an example. At the starting time, TXD = 1 and The output pulse of XOR gate 12 is 1; LIN Rising until the end time point, TXD = 1 and The output voltage of XOR gate 12 is 1; LIN In the stable high level stage, TXD=1, The output voltage of XOR gate 12 is 0; LN In the stable low level stage, TXD=0, The output voltage of the XOR gate 12 is 0. Figure 4 As shown in FIG. 1 , the output voltage of the XOR gate 12 is always 1 during the time period between the start time point and the end time point, so an output pulse is generated during the time period between the start time point and the end time point. The time digital converter TDC 13 can obtain an output pulse according to the output signal at the start time point and the output voltage at the end time point, and determine the duration of the output pulse as the pulse time t LIN .from Figure 4 It can be seen that in V Lin The pulse time t is generated when rising LIN .

[0074] like Figure 4 As shown, if TXD = 1 and When TXD=0, the output voltage of XOR gate 12 is 0; if TXD=0 and When , the output voltage of the XOR gate 12 is 0. In this case, since the output voltage is 0, no output pulse is generated.

[0075] like Figure 4 As shown, since the threshold voltage of the inverter 11 is lower than the voltage of the Miller platform ( Figure 4 The voltage between the two dotted lines is the voltage of the Miller platform), so the slope feedback control circuit is mainly based on V Lin Get the pulse time t when rising LIN When V Lin When the voltage drops, since the threshold voltage of the inverter 11 is lower than the voltage of the Miller platform, the voltage at the control end of the driving tube M0 changes slowly, and a short erroneous pulse time is generated at time point t0, which is much shorter than the actual V Lin of the change time.

[0076] To solve Figure 3 The solution shown in the figure generates a problem of a shorter erroneous pulse time, and the embodiment of the present application provides another detection circuit solution.

[0077] As another option, Figure 5 A schematic diagram of another detection circuit provided in an embodiment of the present application is shown in FIG. Figure 5As shown, the detection circuit 1 includes an inverter 11, an XOR gate 12, a first switch S1, a pull-down resistor R0, a time-to-digital converter TDC 13, and a logic module 14. The input end of the inverter 11 is connected to the control end of the driving tube M0, the common end of the first switch S1 is electrically connected to the first input end of the XOR gate 12, the first branch end of the first switch S1 is electrically connected to the pull-down resistor R0, the second branch end of the first switch S1 is electrically connected to the output end of the inverter 11, and the second input end of the XOR gate 12 is electrically connected to the signal transmission end; the output end of the XOR gate 12 is electrically connected to the time-to-digital converter TDC 13, and the time-to-digital converter TDC 13 is electrically connected to the logic module 14; the control end of the first switch S1 is electrically connected to the signal transmission end. Among them, the signal transmission end is used to output a transmission signal TXD to the control end of the first switch S1 and the second input end of the XOR gate 12; the first end of the pull-down resistor R0 is electrically connected to the first branch end of the first switch S1; the second end of the pull-down resistor R0 is electrically connected to the first voltage end. The signal sending terminal is used to control the first switch S1 to electrically connect the first input terminal of the XOR gate 12 to the pull-down resistor R0 , or to electrically connect the first input terminal of the XOR gate 12 to the output terminal of the inverter 11 .

[0078] The inverter 11 is used to drive the voltage V G Perform inversion processing to generate a first voltage The first switch S1 is used to electrically connect the common terminal with the first branch terminal under the control of the transmission signal TXD so that the first input terminal of the XOR gate 12 is electrically connected to the pull-down resistor R0, or to electrically connect the common terminal with the second branch terminal so that the first input terminal of the XOR gate 12 is connected to the output terminal of the inverter 11. Specifically, when the transmission signal TXD is at a high level, the transmission signal can control the first switch to electrically connect the common terminal with the second branch terminal so that the first input terminal of the XOR gate 12 is electrically connected to the output terminal of the inverter 11; when the transmission signal TXD is at a low level, the transmission signal can control the common terminal to electrically connect the first branch terminal so that the first input terminal of the XOR gate 12 is connected to the pull-down resistor R0. The XOR gate 12 is used to perform XOR processing on the first voltage and the transmission signal TXD to generate an output pulse when the first input terminal is connected to the output terminal of the inverter 11, and output the output pulse to the time digital converter TDC 13. The time-to-digital converter TDC 13 is used to generate a pulse time according to the output pulse, perform time-to-digital conversion on the pulse time to generate a digital signal, and output the digital signal to the logic module 14. The logic module 14 is used to convert the digital signal into a switch control signal, and output the switch control signal to the constant current circuit 2. Specifically, the logic module 14 is used to compare whether the digital signal is the same as the expected time length. If the comparison shows that the digital signal is different from the expected time length, the switch control signal output to the constant current circuit 2 is the first switch control signal; if the comparison shows that the digital signal is the same as the expected time length, the switch control signal output to the constant current circuit 2 is the second switch control signal.

[0079] The XOR gate 12 is used to perform XOR processing on the first voltage and the transmission signal TXD to generate an output voltage when the first input terminal is electrically connected to the pull-down resistor R0. The output voltage is a low level. In this case, the slope feedback control circuit does not generate an output pulse.

[0080] Figure 6 for Figure 5 The signal timing diagram of the medium slope feedback control circuit is as follows: Figure 5 and Figure 6 As shown, V G The inverting signal, then V G =1, V G = 0,

[0081] like Figure 5 and Figure 6 As shown, when TXD=1 (high level), the first switch S1 connects the first input terminal of the XOR gate 12 to the output terminal of the inverter 11 under the control of TXD, and the detection circuit 1 works normally. The output voltage of the XOR gate 12 is 1; at the end time point, TXD = 1 and The output voltage of the XOR gate 12 is 1. Figure 6 As shown in FIG. 1 , the output voltage of the XOR gate 12 is always 1 during the time period between the start time point and the end time point, so an output pulse is generated during the time period between the start time point and the end time point. The time digital converter TDC 13 can obtain an output pulse according to the output signal at the start time point and the output voltage at the end time point, and determine the duration of the output pulse as the pulse time t LIN .from Figure 6 It can be seen that in V Lin When rising, the detection circuit 1 works normally and generates a pulse time t LIN .

[0082] like Figure 5 and Figure 6 As shown, when TXD=0 (low level), the first switch S1, under the control of TXD, electrically connects the first input terminal of the XOR gate 12 to the pull-down resistor R0. At this time, TXD=0 and The output voltage of the XOR gate 12 is 0 (low level), so at time point t0, the detection circuit 1 does not generate an output pulse. Figure 6 It can be seen that in V Lin When falling, the XOR gate 12 of the detection circuit 1 only outputs a low level, and the detection circuit 1 does not generate an output pulse.

[0083] like Figure 6 As shown in FIG. 1 , during the operation of the slope feedback control circuit, TXD changes first, that is, TXD can drop from 1 to 0 and rise from 0 to 1; the change of TXD causes the current direction of the control current output by the constant current circuit 2 to change; then, the constant current circuit 2 charges the control end of the driving tube M0 through the output control current, so that the voltage V G Therefore, TXD changes earlier than V G changes.

[0084] and Figure 3 Compared with the detection circuit scheme shown, Figure 5 The detection circuit solution shown does not generate an output pulse at time point t0, thereby avoiding interference caused by erroneous pulse time, thereby making the detection of pulse time more accurate.

[0085] Figure 7 A structural diagram of a constant current circuit provided in an embodiment of the present application is shown in FIG. Figure 7As shown, the constant current circuit 2 includes a first switch tube M1, a second switch tube M2, a third switch tube M3, a fourth switch tube M4, a fifth switch tube M5, a second switch S2, a third switch S3, a plurality of first resistors R1 and a fourth switch S4 arranged corresponding to each first resistor R1. The first switch tube M1, the second switch tube M2 and the fourth switch tube M4 form a first current mirror, the third switch tube M3 and the fifth switch tube M5 form a second current mirror, the second switch tube M2 is electrically connected to the second current mirror, and the second switch tube M2 provides current for the second current mirror.

[0086] A plurality of first resistors R1 are connected in series, and each fourth switch S4 is connected in parallel with a corresponding first resistor R1.

[0087] The control end of the first switch tube M1 is electrically connected to the control end of the second switch tube M2 and the second end of the first switch tube M1, the first end of the first switch tube M1 is electrically connected to the third voltage terminal VDD, the second end of the first switch tube M1 is electrically connected to the first ends of the plurality of first resistors R1 connected in series, and the second ends of the plurality of first resistors R1 connected in series are electrically connected to the first voltage terminal. The control end of the second switch tube M2 is electrically connected to the control end of the fourth switch tube M4, the first end of the second switch tube M2 is electrically connected to the third voltage terminal VDD, and the second end of the second switch tube M2 is electrically connected to the first end of the third switch tube M3. The control end of the third switch tube M3 is connected to the control end of the fifth switch tube M5 and the first end of the third switch tube M3, and the second end of the third switch tube M3 is electrically connected to the first voltage terminal. The first end of the fourth switch tube M4 is electrically connected to the third voltage terminal VDD, and the second end of the fourth switch tube M4 is electrically connected to the first end of the second switch S2.

[0088] The second end of the second switch S2 is electrically connected to the first end of the third switch S3, the second end of the third switch S3 is electrically connected to the first end of the fifth switch tube M5, and the second end of the fifth switch tube M5 is electrically connected to the first voltage end. The second end of the second switch S2 and the first end of the third switch S3 are also electrically connected to the control end of the driving tube M0. The control end of the fourth switch S4 is electrically connected to the output end of the detection circuit, which is used to control the number of first resistors R1 connected to the series circuit to control the current size of the constant current circuit 2; the control end of the second switch S2 and the control end of the third switch S3 are electrically connected to the signal sending end to control the current direction of the constant current circuit 2. Figure 7 As shown, the control end of the fourth switch S4 is electrically connected to the output end of the logic module 14 of the detection circuit 1 .

[0089] In the embodiment of the present application, the control terminals of the first switch tube M1, the second switch tube M2 and the fourth switch tube M4 are gates. The first switch tube M1, the second switch tube M2 and the fourth switch tube M4 may be MOS, for example, the first switch tube M1, the second switch tube M2 and the fourth switch tube M4 may be P-type MOS, then the first terminal of the first switch tube M1 is the source, the second terminal of the first switch tube M1 is the drain, the first terminal of the second switch tube M2 is the source, the second terminal of the second switch tube M2 is the drain, the first terminal of the fourth switch tube M4 is the source, and the second terminal of the fourth switch tube M4 is the drain.

[0090] In the embodiment of the present application, the control ends of the third switch tube M3 and the fifth switch tube M5 are gates, and the third switch tube M3 and the fifth switch tube M5 can be MOS. For example, the third switch tube M3 and the fifth switch tube M5 can be N-type MOS, then the first end of the third switch tube M3 is the drain, the second end of the third switch tube M3 is the source, the first end of the fifth switch tube M5 is the drain, and the second end of the fifth switch tube M5 is the source.

[0091] like Figure 7 As shown, the logic module 14 is used to compare whether the digital signal corresponding to the time pulse is the same as the expected time length. If the comparison shows that the digital signal is different from the expected time length, it indicates that it does not meet expectations and the number of first resistors R1 connected to the series circuit needs to be changed. Therefore, the logic module 14 outputs a first switch control signal to the control end of the plurality of fourth switches S4. The first switch control signal is used to control whether the first resistor R1 corresponding to the fourth switch S4 is connected to the series circuit by controlling the opening or closing of the fourth switch S4. For example, if the fourth switch S4 is opened, the first resistor R1 corresponding to the fourth switch S4 is connected to the series circuit; if the fourth switch S4 is closed, the first resistor R1 corresponding to the fourth switch S4 will not be connected to the series circuit. Thus, the number of first resistors R1 connected to the series circuit is changed, and the magnitude of the current flowing through the plurality of first resistors R1 connected in series is changed, so as to control the magnitude of the current of the constant current circuit.

[0092] In the embodiment of the present application, if the digital signal is longer than the expected time length, it indicates that the pulse time is large and the LIN bus slope is small. At this time, the number of first resistors R1 connected to the series circuit should be reduced to increase the current flowing through the multiple first resistors R1 connected in series, thereby increasing the output current of the constant current circuit 2, and by increasing the control current, reducing the pulse time, so as to achieve the purpose of increasing the LIN bus slope to the expected slope. If the digital signal is less than the expected time length, it indicates that the pulse time is small and the LIN bus slope is large. At this time, the number of first resistors R1 connected to the series circuit should be increased to reduce the current flowing through the multiple first resistors R1 connected in series, thereby reducing the output current of the constant current circuit 2, and by reducing the control current, increasing the pulse time, so as to achieve the purpose of reducing the LIN bus slope to the expected slope.

[0093] like Figure 7 As shown, if the logic module 14 compares the digital signal and finds that the time length is the same as the expected time length, it indicates that it meets expectations and there is no need to change the number of the current first resistors R1 connected to the series circuit. Therefore, the logic module 14 outputs a second switch control signal to the control end of the plurality of fourth switches S4. The second switch control signal is used to control whether the first resistor R1 corresponding to the fourth switch S4 is connected to the series circuit by controlling the opening or closing of the fourth switch S4. Thus, the second switch control signal is used to maintain the number of the first resistors R1 connected to the series circuit unchanged, so that the magnitude of the current flowing through the plurality of first resistors R1 connected in series remains unchanged.

[0094] like Figure 7 As shown, the first current mirror copies the current flowing through the multiple first resistors R1 connected in series into the current of the second switch tube M2 and the current of the fourth switch tube M4 according to a certain ratio. The second switch tube M2 provides current to the third switch tube M3 of the second current mirror, and the second current mirror copies the current of the third switch tube M3 into the current of the fifth switch tube M5 according to a certain ratio. If the current flowing through the multiple first resistors R1 connected in series changes, the current of the fourth switch tube M4 and the current of the fifth switch tube M5 will also change, thereby achieving the change of the output current of the constant current circuit 2 by changing the number of the first resistors R1 connected to the series circuit.

[0095] like Figure 7 As shown, when TXD=1, the second switch S2 is closed under the control of TXD, and the third switch S3 is opened under the control of TXD. The control current output to the control end of the driving end M0 is the current of the fourth switch tube M4. At this time, the control current direction is to flow out from the constant current circuit 2. gsWhen TXD=0, the second switch S2 is disconnected under the control of TXD, and the third switch S3 is closed under the control of TXD. The control current output to the control end of the driving end M0 is the current of the fourth switch tube M4. At this time, the control current direction is to flow into the constant current circuit 2. At the second capacitor C gs A reduced control terminal voltage of the driving tube M0 is formed at the first end.

[0096] Figure 8 A schematic diagram of another constant current circuit provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the constant current circuit 2 includes multiple current source circuits, each of which includes a first current source I1, a second current source I2, a fifth switch S5, a sixth switch S6, a seventh switch S7 and an eighth switch S8.

[0097] The first end of the fifth switch S5 is electrically connected to the third voltage terminal VDD, the second end of the fifth switch S5 is electrically connected to the first end of the first current source I1, the second end of the first current source I1 is electrically connected to the first end of the sixth switch S6, the second end of the sixth switch S6 is electrically connected to the first end of the seventh switch S7, the second end of the seventh switch S7 is electrically connected to the first end of the second current source I2, the second end of the second current source I2 is electrically connected to the first end of the eighth switch S8, and the second end of the eighth switch S8 is electrically connected to the first voltage terminal. The control end of the sixth switch S6 and the control end of the seventh switch S7 are connected to the output end of the detection circuit 1, and the detection circuit 1 is used to control the number of the first current source I1 and the second current source I2 connected to the circuit to adjust the size of the control current. The control end of the fifth switch S5 and the control end of the eighth switch S8 are electrically connected to the signal sending end, and the signal sending end is used to control the operation of the first current source I1 or the second current source I2 to adjust the direction of the control current. Figure 8 As shown, the control end of the sixth switch S6 and the control end of the seventh switch S7 are electrically connected to the output end of the logic module 14 of the detection circuit 1 .

[0098] like Figure 8As shown, the logic module 14 is used to compare whether the digital signal corresponding to the time pulse is the same as the expected time length. If the comparison shows that the digital signal is different from the expected time length, it indicates that it does not meet expectations and it is necessary to change the number of the first current source I1 and the second current source I2 connected to the circuit. Therefore, the logic module 14 outputs a first switch control signal to the sixth switch S6 and the seventh switch S7 of at least one current source circuit. The first switch control signal is used to control the number of the first current source and the second current source connected to the circuit. The first switch control signal is used to control the sixth switch S6 to be disconnected and the seventh switch S7 to be disconnected, or to control the sixth switch S6 to be closed and the seventh switch S7 to be closed. Among them, when the sixth switch S6 is disconnected and the seventh switch S7 is disconnected, the first current source I1 and the second current source I2 of the current source circuit will not be connected to the circuit; or, when the sixth switch S6 is closed and the seventh switch S7 is closed, the first current source I1 and the second current source I2 of the current source circuit are connected to the circuit.

[0099] like Figure 8 As shown, the signal transmission end outputs a transmission signal TXD to the fifth switch S5 and the eighth switch S8 of at least one current source circuit, and the transmission signal TXD is used to control the first current source I1 to work or the second current source I2 to work, so as to adjust the direction of the control current. The transmission signal TXD is used to control the fifth switch S5 to close so that the first current source I1 is electrically connected to the control end of the driving tube M0, and to control the eighth switch S8 to open so that the second current source I2 is not electrically connected to the control end of the driving tube M0. At this time, the first current source I1 works and the second current source I2 does not work; or, the transmission signal TXD is used to control the fifth switch S5 to open so that the first current source I1 is not electrically connected to the control end of the driving tube M0, and to control the eighth switch S8 to close so that the second current source I2 is electrically connected to the control end of the driving tube M0. At this time, the first current source I1 does not work and the second current source I2 works.

[0100] like Figure 8As shown, for example, when the first switch control signal controls the sixth switch S6 and the seventh switch S7 of at least one current source circuit to be closed and when TXD=1, the fifth switch S5 is closed and the eighth switch S8 is opened, the first current source I1 of at least one current source circuit is electrically connected to the control end of the driving tube M0, and the control current output to the control end of the driving tube M0 is the current of the first current source I1. At this time, the control current direction is output by the constant current circuit 2. For another example, when the first switch control signal controls the sixth switch S6 and the seventh switch S7 of at least one current source circuit to be closed and when TXD=1, the fifth switch S5 is opened and the eighth switch S8 is closed, the second current source I2 of at least one current source circuit is electrically connected to the control end of the driving tube M0, and the control current output to the control end of the driving tube M0 is the current of the second current source I2. At this time, the control current direction is to flow into the constant current circuit 2. Thus, the number of current source circuits connected to the control end of the driving tube M0 is changed to change the magnitude of the control current of the control end of the driving tube M0; and the first current source I1 or the second current source I2 is controlled to work by sending a signal TXD to change the direction of the control current.

[0101] In the embodiment of the present application, if the digital signal is longer than the expected time length, it indicates that the pulse time is large and the LIN bus slope is small. At this time, the number of the first current source I1 or the second current source I2 connected to the circuit and working should be increased to increase the control current flowing into the control end of the driver tube M0. By increasing the control current, the pulse time is reduced, so as to achieve the purpose of increasing the LIN bus slope to the expected slope. If the digital signal is shorter than the expected time length, it indicates that the pulse time is small and the LIN bus slope is large. At this time, the number of the first current source I1 connected to the circuit and working should be reduced to reduce the control current flowing into the control end of the driver tube M0. By reducing the control current, the pulse time is increased, so as to achieve the purpose of reducing the LIN bus slope to the expected slope.

[0102] like Figure 8As shown, if the logic module 14 compares the digital signal and finds that the time length is the same as the expected time length, it indicates that it meets expectations and there is no need to change the number of the first current source I1 and the second current source I2 connected to the circuit. Therefore, the logic module 14 outputs a second switch control signal to the sixth switch S6 and the seventh switch S7 of at least one current source circuit. The second switch control signal is used to control the disconnection of the sixth switch S6 and the disconnection of the seventh switch S7, or to control the closing of the sixth switch S6 and the closing of the seventh switch S7. At the same time, the signal sending end outputs TXD to the fifth switch S5 and the eighth switch S8 of at least one current source circuit. The TXD is used to control the disconnection of the fifth switch S5 and the closing of the eighth switch S8, or to control the closing of the fifth switch S6 and the disconnection of the eighth switch S8, so as to control the first current source I1 or the second current source I2 of at least one current source circuit to be electrically connected to the control end of the driving tube M0. Thus, the second switch control signal is used to keep the number of the first current source I1 and the second current source I2 connected to the circuit unchanged, so that the magnitude of the control current at the control end of the driving tube M0 remains unchanged; and the first current source I1 is kept working or the second current source I2 is kept working by sending the signal TXD, so that the direction of the control current remains unchanged.

[0103] like Figure 8 As shown, the control end of the driving tube M0 can also be electrically connected to a plurality of second capacitors C gs , each second capacitor C gs A ninth switch S9 is also provided between the control end of the driving tube M0 and the control end of the ninth switch S9. The control end of the ninth switch S9 is electrically connected to the output end of the detection circuit. The detection circuit is used to control the second capacitor C gs Specifically, the control end of the ninth switch S9 is electrically connected to the output end of the logic module 14 of the detection circuit ( Figure 8 The logic module 14 is used to output a first switch control signal or a second switch control signal to the ninth switch S9. The ninth switch S9 can be controlled by the first switch control signal or the second switch control signal. For example, the first switch control signal controls the ninth switch S9 to be closed, and at this time, the second capacitor C connected to the ninth switch S9 gs or the first switch control signal controls the ninth switch S9 to be disconnected, at which time the second capacitor C electrically connected to the ninth switch S9 is gs The control end of the driving tube M0 is not electrically connected. For another example, the second switch control signal controls the ninth switch S9 to be closed. At this time, the second capacitor C connected to the ninth switch S9 gs or the second switch control signal controls the ninth switch S9 to be disconnected, at which time the second capacitor C electrically connected to the ninth switch S9 is disconnected. gsThe control end of the driving tube M0 is not electrically connected. In the embodiment of the present application, the opening or closing of the ninth switch S9 is controlled to control the second capacitor C gs The number of control terminals connected to the driving tube M0 is used to control the second capacitor C gs The number of connected circuits. If the second capacitor C connected to the circuit gs When the number of increases, the voltage change rate of the control end of the driving tube M0 decreases, resulting in a decrease in the slope of the LIN bus; if the second capacitor C connected to the circuit gs When the number of becomes smaller, the voltage change rate of the control end of the driving tube M0 increases, thereby causing the slope of the LIN bus to also increase.

[0104] In the technical solution provided in the embodiment of the present application, the slope feedback control circuit includes a driving circuit, a detection circuit, a constant current circuit and a LIN bus. The driving circuit includes a driving tube and a first capacitor. The first input end of the detection circuit is electrically connected to the control end of the driving tube. The detection circuit generates a switch control signal according to the difference between the detected LIN bus slope and the preset slope. The constant current circuit outputs a control current to the control end of the driving tube, adjusts the magnitude of the control current according to the switch control signal, and adjusts the direction of the control current according to the sending signal output by the sending signal end. In the embodiment of the present application, the detection circuit does not need to detect the voltage of the LIN bus, but detects the control end voltage of the driving tube through the detection circuit, and then derives the LIN bus slope and generates a switch control signal according to the difference between the LIN bus slope and the preset slope. The constant current circuit adjusts the magnitude of the control current output to the driving tube according to the switch control signal and adjusts the direction of the control current according to the sending signal output by the sending signal end, thereby avoiding the problem that the voltage of the LIN bus detected by the detection circuit is high, or there may be a clutter signal that interferes with the detection circuit, thereby improving the reliability of signal detection.

[0105] In an embodiment of the present application, the detection circuit may include an inverter, an XOR gate, a time-to-digital converter TDC and a logic module, or the detection circuit may include an inverter, an XOR gate, a first switch, a pull-down resistor, a TDC and a logic module. The structure of the detection circuit is simple, thereby reducing the area consumption of the detection circuit.

[0106] Fig. 9The schematic diagram of the structure of a microprocessor chip provided in the embodiment of the present application, the microprocessor chip may be, for example, an MCU (Microcontroller Unit, MCU, micro control unit), a DAP (Digital Signal Processor, DSP, digital signal processor), an MPU (Microprocessor Unit, MPU, microprocessor), a CPU (Central Processing Unit, CPU, micro central processing unit), etc., which can process digital signals, analog signals, or perform signal control functions, instruction processing and calculation functions, and other micro central control chips, system-on-chip chips. Fig. 9 As shown, the microprocessor chip includes a slope feedback control circuit. The slope feedback control circuit can adopt the slope feedback control circuit in the above embodiment. For a detailed description of the slope feedback control circuit, please refer to Figures 1 to 8 The embodiments shown will not be described in detail here.

[0107] In the embodiment of the present application, the detection circuit does not need to detect the voltage of the LIN bus, but detects the control terminal voltage of the driving tube through the detection circuit, and then obtains the slope of the LIN bus and generates a switch control signal according to the difference between the slope of the LIN bus and the preset slope. The constant current circuit adjusts the magnitude of the control current output to the driving tube according to the switch control signal and adjusts the direction of the control current according to the sending signal output from the sending signal end, thereby avoiding the problem that the driving voltage of the LIN bus detected by the detection circuit is high, or there may be a clutter signal that interferes with the detection circuit, thereby improving the reliability of signal detection. In the embodiment of the present application, the detection circuit may include an inverter, an XOR gate, a time-to-digital converter TDC and a logic module, or the detection circuit may include an inverter, an XOR gate, a first switch, a pull-down resistor, a time-to-digital converter TDC and a logic module. The structure of the detection circuit is simple, thereby reducing the area consumption of the detection circuit.

[0108] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A slope feedback control circuit, characterized in that: The slope feedback control circuit comprises: a driving circuit, a detection circuit, a constant current circuit, and a LIN bus, wherein the driving circuit comprises a driving tube and a first capacitor; The first input end of the detection circuit is electrically connected to the control end of the driving tube, the second input end of the detection circuit is electrically connected to the signal sending end, and the output end of the detection circuit is electrically connected to the first input end of the constant current circuit; The second input end of the constant current circuit is electrically connected to the signal sending end, and the output end of the constant current circuit is electrically connected to the control end of the driving tube; The first end of the first capacitor is electrically connected to the control end of the driving tube, the second end of the first capacitor is electrically connected to the first end of the driving tube, and the second end of the driving tube is electrically connected to the first voltage end; The LIN bus is electrically connected to the second end of the first capacitor and the first end of the driving tube; The detection circuit is used to detect the LIN bus slope, generate a switch control signal according to the difference between the LIN bus slope and a preset slope, and output the switch control signal to the constant current circuit; The signal sending terminal is used to control the change direction of the LIN bus voltage; The constant current circuit is used to output a control current to the control end of the driving tube, adjust the magnitude of the control current according to the switch control signal, and adjust the direction of the control current according to the sending signal output by the sending signal end.

2. The slope feedback control circuit according to claim 1, characterized in that: The slope feedback control circuit further includes: a load, wherein the load includes a load capacitor and a load resistor; The first end of the load resistor is electrically connected to the second voltage end, the second end of the load resistor is electrically connected to the first end of the load capacitor, and the second end of the load capacitor is electrically connected to the first voltage end; The LIN bus is also electrically connected to the second end of the load resistor and the first end of the load capacitor.

3. The slope feedback control circuit according to claim 1, characterized in that: The slope feedback control circuit further includes: a second capacitor; A first end of the second capacitor is electrically connected to the control end of the driving tube, and a second end of the second capacitor is electrically connected to the first voltage end; The second capacitor is used to adjust the voltage of the control end of the driving tube according to the magnitude of the control current output by the constant current circuit and the direction of the control current.

4. The slope feedback control circuit according to claim 1, characterized in that: The detection circuit comprises: an inverter, an XOR gate, a time-to-digital converter TDC and a logic module; The input end of the inverter is electrically connected to the control end of the driving tube, the output end of the inverter is electrically connected to the first input end of the XOR gate, and the second input end of the XOR gate is electrically connected to the signal sending end; An output terminal of the XOR gate is electrically connected to the time-to-digital converter TDC, and the time-to-digital converter TDC is electrically connected to the logic module.

5. The slope feedback control circuit according to claim 4, characterized in that: The detection circuit also includes: a first switch and a pull-down resistor; The common end of the first switch is electrically connected to the first input end of the XOR gate, the first branch end of the first switch is electrically connected to the pull-down resistor, and the second branch end of the first switch is electrically connected to the output end of the inverter; The control end of the first switch is electrically connected to the signal sending end, and the signal sending end is used to control the first switch to electrically connect the first input end of the XOR gate to the pull-down resistor, or to electrically connect the first input end of the XOR gate to the output end of the inverter.

6. The slope feedback control circuit according to claim 1, characterized in that: The constant current circuit comprises: a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a fifth switch tube, a second switch, a third switch, a plurality of first resistors, and a fourth switch corresponding to each of the first resistors, wherein the first switch tube, the second switch tube and the fourth switch tube form a first current mirror, the third switch tube and the fifth switch tube form a second current mirror, the second switch tube is electrically connected to the second current mirror, and the second switch tube provides current for the second current mirror; A plurality of the first resistors are connected in series, and each of the fourth switches is connected in parallel with a corresponding first resistor; The control end of the first switch tube is electrically connected to the control end of the second switch tube and the second end of the first switch tube, the first end of the first switch tube is electrically connected to the third voltage end, the second end of the first switch tube is electrically connected to the first ends of a plurality of first resistors connected in series, and the second ends of the plurality of first resistors connected in series are electrically connected to the first voltage end; The control end of the second switch tube is electrically connected to the control end of the fourth switch tube, the first end of the second switch tube is electrically connected to the third voltage end, and the second end of the second switch tube is electrically connected to the first end of the third switch tube; The control end of the third switch tube is electrically connected to the control end of the fifth switch tube and the first end of the third switch tube, and the second end of the third switch tube is electrically connected to the first voltage end; The first end of the fourth switch tube is electrically connected to the third voltage end, and the second end of the fourth switch tube is electrically connected to the first end of the second switch; The second end of the second switch is electrically connected to the first end of the third switch, the second end of the third switch is electrically connected to the first end of the fifth switch tube, and the second end of the fifth switch tube is electrically connected to the first voltage end; The second end of the second switch and the first end of the third switch are also electrically connected to the control end of the driving tube; The control end of the fourth switch is electrically connected to the output end of the detection circuit, and is used to control the number of first resistors connected to the series circuit to control the current size of the constant current circuit; The control end of the second switch and the control end of the third switch are electrically connected to the signal sending end, and are used to control the current direction of the constant current circuit.

7. The slope feedback control circuit according to claim 1, characterized in that: The constant current circuit comprises: a plurality of current source circuits, each of which comprises a first current source, a second current source, a fifth switch, a sixth switch, a seventh switch and an eighth switch; A first end of the fifth switch is electrically connected to a third voltage end, a second end of the fifth switch is electrically connected to a first end of the first current source, a second end of the first current source is electrically connected to a first end of the sixth switch, a second end of the sixth switch is electrically connected to a first end of the seventh switch, a second end of the seventh switch is electrically connected to a first end of the second current source, a second end of the second current source is electrically connected to a first end of the eighth switch, and a second end of the eighth switch is electrically connected to the first voltage end; The control end of the sixth switch and the control end of the seventh switch are electrically connected to the output end of the detection circuit, and the detection circuit is used to control the number of the first current source and the second current source connected to the circuit to adjust the magnitude of the control current; The control end of the fifth switch and the control end of the eighth switch are electrically connected to the signal sending end, and the signal sending end is used to control the operation of the first current source or the second current source to adjust the direction of the control current.

8. The slope feedback control circuit according to claim 3, characterized in that: A ninth switch is provided between each of the second capacitors and the control end of the driving tube, and the control end of the ninth switch is electrically connected to the output end of the detection circuit; The detection circuit is used for the number of the second capacitor access circuits.

9. A microprocessor chip, characterized in that: include: The slope feedback control circuit according to any one of claims 1 to 8.