Temperature compensation circuits and chips, electronic equipment
By designing a combined temperature compensation circuit, using a selection circuit, a current mirror circuit and a conversion circuit, the problem of mismatch between the maximum compensation amount and the variable slope in the existing technology is solved, and more accurate temperature compensation and TFT driving are achieved.
Patent Information
- Application Number
- CN202410931526.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-12
AI Technical Summary
There is a problem in the existing temperature compensation circuit that the maximum compensation amount does not match the variable slope, resulting in inaccurate TFT driving at low temperatures.
A temperature compensation circuit is designed. Through the combination of selection circuit, current mirror circuit, conversion circuit and clamping circuit, the comparison and conversion of the sampling voltage and the preset voltage are realized, and a matching driving voltage is output to ensure that the maximum compensation amount is consistent with the available voltage. Variable slope matching.
It achieves the matching between the maximum compensation amount and the variable slope, improves the accuracy and reliability of temperature compensation, and ensures TFT driving accuracy at different temperatures.
Smart Images

Figure CN118466678B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic circuits, and in particular, relates to a temperature compensation circuit and chip, and electronic equipment. Background Art
[0002] With the rapid development of science and technology, the requirements for the control accuracy of electronic equipment are getting higher and higher, and temperature compensation circuits are widely used.
[0003] For example, the backlight driver of automotive electronics is one of them. The automotive backlight chip provides gate voltage to the thin film transistor (TFT) being driven. The threshold voltage of TFT is inversely proportional to the temperature. In order to achieve reasonable driving of TFT under low temperature conditions, additional temperature compensation is required, so a suitable temperature compensation circuit is required. The overall chip framework diagram is shown in the figure below. Figure 1 As shown. Temperature compensation circuits often provide fixed minimum and maximum temperatures, and set compensation for different gears. Different gear compensation is mainly reflected in the difference in the slope between the compensation amount corresponding to the lowest temperature and the compensation amount corresponding to the highest temperature. Take the temperature sampling circuit with a negative temperature coefficient as an example, as shown Figure 2 As shown, the compensation amount corresponding to the fixed maximum temperature set by the current temperature compensation circuit will not match the variable slope.
[0004] Therefore, the related temperature compensation circuit has the defect that the maximum compensation amount does not match the variable slope. Summary of the invention
[0005] The purpose of the present application is to provide a temperature compensation circuit, a chip, and an electronic device, aiming to solve the problem that a maximum compensation amount and a variable slope of a related temperature compensation circuit do not match each other.
[0006] The embodiment of the present application provides a temperature compensation circuit, which is connected to a temperature sampling circuit for detecting temperature to output a sampled voltage, and the temperature compensation circuit includes:
[0007] A first selection circuit is connected to the temperature sampling circuit and is configured to access a maximum preset voltage and output a smaller voltage between the sampling voltage and the maximum preset voltage as a first voltage;
[0008] a current mirror circuit, connected to the first selection circuit, configured to follow the first voltage and mirror the first current to output a second current;
[0009] A first conversion circuit, connected to the current mirror circuit, configured to convert a voltage difference between the first voltage and a minimum preset voltage that follows into the first current;
[0010] The second conversion circuit is connected to the current mirror circuit and is configured to convert the second current into a first driving voltage according to a reference voltage.
[0011] In one embodiment, it also includes:
[0012] The clamping circuit is connected to the second conversion circuit and is configured to clamp the first driving voltage.
[0013] In one embodiment, it also includes:
[0014] A first follower circuit, connected to the first conversion circuit, configured to follow the minimum preset voltage;
[0015] The first conversion circuit is specifically configured to convert a voltage difference between the first voltage and the following minimum preset voltage into the first current.
[0016] In one embodiment, it also includes:
[0017] A second follower circuit, connected to the second conversion circuit, configured to follow the reference voltage;
[0018] The second conversion circuit is specifically configured to convert the second current into a first driving voltage according to a following reference voltage.
[0019] In one embodiment, the first selection circuit comprises:
[0020] A comparison module, configured to compare the sampled voltage with the maximum preset voltage, and output a comparison signal according to a comparison result;
[0021] The first selection module is connected to the comparison module and the current mirror circuit, and is configured to select the sampling voltage or the maximum preset voltage as the first voltage output according to the comparison signal.
[0022] In one embodiment, the current mirror circuit includes a first operational amplifier, a first PMOS transistor, n field effect transistors and n switch transistors;
[0023] The negative phase input terminal of the first operational amplifier is used as the first voltage input terminal of the current mirror circuit and is connected to the first selection circuit to access the first voltage;
[0024] The output end of the first operational amplifier is connected to the gate of the first PMOS tube and the gates of the n field effect tubes.
[0025] The non-inverting input terminal of the first operational amplifier and the drain of the first PMOS tube are connected and together constitute the first voltage output terminal of the current mirror circuit, which is connected to the first conversion circuit to output the first voltage that follows; the non-inverting input terminal of the first operational amplifier and the drain of the first PMOS tube are connected and also together constitute the first current input terminal of the current mirror circuit, which is connected to the first conversion circuit to access the first current;
[0026] The drains of the n field effect tubes are connected to the input ends of the n switch tubes in a one-to-one correspondence;
[0027] The output ends of the n switching tubes are connected to and together constitute a second current output end of the current mirror circuit, and are connected to the second conversion circuit to output the second current;
[0028] The sources of the n field effect transistors are commonly connected to the first power supply.
[0029] An embodiment of the present application further provides a chip, which includes the above-mentioned temperature compensation circuit.
[0030] In one embodiment, it also includes:
[0031] A first digital circuit configured to output a maximum drive signal according to a first configuration signal and a reference signal; wherein the first configuration signal is associated with a maximum value of a first drive voltage;
[0032] a digital-to-analog conversion circuit connected to the first digital circuit and configured to convert the maximum drive signal into a maximum drive voltage and convert the reference signal into a reference voltage; the maximum drive voltage is equal to the maximum value of the first drive voltage;
[0033] The second selection circuit is connected to the temperature compensation circuit and the digital-to-analog conversion circuit, and is configured to select and output the maximum driving voltage or the first driving voltage according to a comparison signal; wherein the comparison signal is obtained by comparing the sampling voltage with the maximum preset voltage.
[0034] In one of the embodiments, the first conversion circuit is specifically configured to convert the voltage difference between the first voltage and the minimum preset voltage into the first current based on the second configuration signal;
[0035] The chip further comprises:
[0036] The second digital circuit is connected to the temperature compensation circuit and is configured to output the second configuration signal according to the first configuration signal.
[0037] In one embodiment, it also includes:
[0038] The third selection circuit is connected to the second selection circuit, configured to access the reference voltage and the maximum driving voltage, and select the reference voltage, the maximum driving voltage or the first driving voltage as the second driving voltage output according to the selection signal.
[0039] In one embodiment, the third selection circuit includes:
[0040] A second selection module, connected to the second selection circuit, configured to select and output the maximum driving voltage or the first driving voltage according to a first selection signal;
[0041] The third selection module is connected to the second selection module and is configured to select a reference voltage, the maximum driving voltage or the first driving voltage according to a second selection signal to output the second driving voltage.
[0042] In one embodiment, it also includes:
[0043] The boost circuit is connected to the third selection circuit and is configured to boost the second driving voltage to output a target driving voltage.
[0044] An embodiment of the present application also provides an electronic device, which includes the above-mentioned chip.
[0045] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: since the first selection circuit selects the smaller voltage between the sampling voltage and the maximum preset voltage as the first voltage output, the current mirror circuit follows the first voltage, the first conversion circuit converts the voltage difference between the first voltage and the minimum preset voltage after following into the first current, the current mirror circuit mirrors the first current to output a second current, and the second conversion circuit converts the second current into a first driving voltage according to a reference voltage. Therefore, when the rising slope between the compensation amount corresponding to the lowest temperature and the compensation amount corresponding to the highest temperature changes (that is, when the mirror multiple of the current mirror circuit changes), the maximum compensation amount is obtained by converting the maximum preset voltage according to the current mirror circuit. The maximum compensation amount is no longer a fixed value, but is associated with the mirror multiple, thereby achieving matching between the maximum compensation amount and the variable slope. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical invention in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A structural schematic diagram of a related temperature compensation circuit;
[0048] Figure 2 A schematic diagram of the relationship between the output drive signal and the temperature of the relevant temperature compensation circuit;
[0049] Figure 3 A schematic diagram of a temperature compensation circuit provided in one embodiment of the present application;
[0050] Figure 4 Another structural schematic diagram of a temperature compensation circuit provided in an embodiment of the present application;
[0051] Figure 5 Another structural schematic diagram of a temperature compensation circuit provided in one embodiment of the present application;
[0052] Figure 6 Another structural schematic diagram of a temperature compensation circuit provided in an embodiment of the present application;
[0053] Figure 7 Another structural schematic diagram of a temperature compensation circuit provided in an embodiment of the present application;
[0054] Figure 8 A partial exemplary circuit schematic diagram of a temperature compensation circuit provided in one embodiment of the present application;
[0055] Fig. 9 A schematic diagram of a partial structure of a chip provided in one embodiment of the present application;
[0056] Fig.10 Another partial structural schematic diagram of a chip provided in an embodiment of the present application;
[0057] Fig.11 Another partial structural schematic diagram of a chip provided in an embodiment of the present application;
[0058] Fig.12 Another partial structural schematic diagram of a chip provided in an embodiment of the present application;
[0059] Fig.13 A schematic diagram of the relationship between the second driving signal output by the chip and the temperature provided in one embodiment of the present application;
[0060] Fig.14 Another partial structural schematic diagram of a chip provided in one embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0063] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0064] In addition, the terms "first" and "second" 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" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0065] Figure 3 The schematic diagram of the structure of the temperature compensation circuit provided by the preferred embodiment of the present application is shown. For the convenience of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:
[0066] The temperature compensation circuit is used to detect the temperature to output a sampling voltage V NTCR The temperature compensation circuit is connected to a temperature sampling circuit (not shown in the figure), and includes a first selection circuit 11, a current mirror circuit 12, a first conversion circuit 13 and a second conversion circuit 14.
[0067] The first selection circuit 11 is connected to the temperature sampling circuit and is configured to be connected to the maximum preset voltage V NTC2 , the sampling voltage V NTCR and the maximum preset voltage V NTC2 The smaller voltage is output as the first voltage.
[0068] The current mirror circuit 12 is connected to the first selection circuit 11 and is configured to follow the first voltage and mirror the first current to output a second current.
[0069] The first conversion circuit 13 is connected to the current mirror circuit 12 and is configured to convert the voltage difference between the following first voltage and the minimum preset voltage into a first current.
[0070] The second conversion circuit 14 is connected to the current mirror circuit 12 and is configured to NT The second current is converted into a first driving voltage V NTC_REF .
[0071] It should be noted that the temperature sampling circuit may have a positive temperature coefficient or a negative temperature coefficient. The temperature sampling circuit may be a thermistor.
[0072] When the temperature sampling circuit has a positive temperature coefficient, the maximum preset voltage V NTC2 The minimum preset voltage is associated with the maximum temperature of the temperature compensation, and the minimum preset voltage is associated with the minimum temperature of the temperature compensation.
[0073] When the temperature sampling circuit has a negative temperature coefficient, the maximum preset voltage V NTC2 The minimum preset voltage is associated with the lowest temperature of the temperature compensation, and the minimum preset voltage is associated with the highest temperature of the temperature compensation.
[0074] like Figure 4 As shown, the temperature compensation circuit further includes a clamping circuit 15 .
[0075] The clamp circuit 15 is connected to the second conversion circuit 14 and is configured to NTC_REF Clamping is performed.
[0076] By applying the first driving voltage V NTC_REF clamping, reducing the first drive voltage V NTC_REF The possibility of breakdown of the subsequent circuit due to excessive voltage increases the reliability and safety of the temperature compensation circuit.
[0077] like Figure 5 As shown, the temperature compensation circuit further includes a first follower circuit 16 .
[0078] The first follower circuit 16 is connected to the first conversion circuit 13 and is configured to provide a minimum preset voltage V NTC1 Follow along.
[0079] The first conversion circuit 13 is specifically configured to convert the first voltage and the following minimum preset voltage V NTC1 The voltage difference is converted into a first current.
[0080] Since the branch through which the first current flows has a large leakage current, by setting the first follower circuit 16, the first current is no longer connected to the power ground through the power supply of the minimum preset voltage, thereby protecting the power supply of the minimum preset voltage and improving the reliability and safety of the temperature compensation circuit.
[0081] like Figure 6 As shown, the temperature compensation circuit further includes a second follower circuit 17 .
[0082] The second follower circuit 17 is connected to the second conversion circuit 14 and is configured to NT Follow along.
[0083] The second conversion circuit 14 is specifically configured to follow the reference voltage V NT The second current is converted into a first driving voltage V NTC_REF .
[0084] Since the branch through which the second current flows has a large leakage current, the second follower circuit 17 is provided so that the second current no longer flows through the reference voltage V NT The power supply is connected to the power ground, thereby protecting the reference voltage V NT The power supply improves the reliability and safety of the temperature compensation circuit.
[0085] like Figure 7 As shown, the first selection circuit 11 includes a comparison module 111 and a first selection module 112 .
[0086] The comparison module 111 is configured to compare the sampled voltage with the maximum preset voltage V NTC2 A comparison is performed, and a comparison signal Vcp is output according to the comparison result.
[0087] The first selection module 112 is connected to the comparison module 111 and the current mirror circuit 12 and is configured to select the sampling voltage or the maximum preset voltage V according to the comparison signal Vcp. NTC2 As the first voltage output.
[0088] Through the above-mentioned comparison module 111 and the first selection module 112, the selection of the output sampling voltage and the maximum preset voltage V NTC2 The voltage is relatively small and the circuit is simple and reliable.
[0089] Figure 8 A partial exemplary circuit structure of a temperature compensation circuit provided by an embodiment of the present invention is shown. For the sake of convenience, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0090] The current mirror circuit 12 includes a first operational amplifier U1 , a first PMOS transistor P1 , n field effect transistors Mi and n switch transistors Qi.
[0091] The inverting input terminal of the first operational amplifier U1 serves as the first voltage input terminal of the current mirror circuit 12 and is connected to the first selection circuit 11 to access the first voltage.
[0092] The output end of the first operational amplifier U1 is connected to the gate of the first PMOS transistor P1 and the gates of the n field effect transistors Mi.
[0093] The non-inverting input terminal of the first operational amplifier U1 and the drain of the first PMOS tube P1 are connected and together constitute the first voltage output terminal of the current mirror circuit 12, which is connected to the first conversion circuit 13 to output the following first voltage; the non-inverting input terminal of the first operational amplifier U1 and the drain of the first PMOS tube P1 are connected and also together constitute the first current input terminal of the current mirror circuit 12, which is connected to the first conversion circuit 13 to access the first current.
[0094] The drains of the n field effect transistors Mi and the input ends of the n switch tubes Qi are connected one by one.
[0095] The output ends of the n switch tubes Qi are connected to and together constitute a second current output end of the current mirror circuit 12 , and are connected to the second conversion circuit 14 to output a second current.
[0096] The sources of the n field effect transistors Mi are commonly connected to the first power source VAA.
[0097] It should be noted that the control terminals of the n switch tubes Qi serve as the switch control signal input terminals of the current mirror circuit 12 to receive the switch control signal.
[0098] The number of the conducting switch tubes Qi is controlled by the switch control signal, thereby adjusting the magnitude of the mirror current of the current mirror circuit 12, thereby improving the flexibility of the temperature compensation circuit.
[0099] The current mirror circuit 12 realizes current mirroring and voltage following at the same time, and the circuit is simple and reliable.
[0100] The first follower circuit 16 includes a second operational amplifier U2, a first current source I1 and a second PMOS transistor P2;
[0101] The inverting input terminal of the second operational amplifier U2 serves as the minimum preset voltage input terminal of the first follower circuit 16 to receive the minimum preset voltage V NTC1 .
[0102] The non-inverting input terminal of the second operational amplifier U2 is connected to the drain of the second PMOS transistor P2 and the positive electrode of the first current source I1 and together constitutes the minimum preset voltage output terminal of the first follower circuit 16, and is connected to the first conversion circuit 13 to output the minimum preset voltage V after following. NTC1 .
[0103] The source of the second PMOS transistor P2 is connected to the first power source VAA, and the cathode of the first current source I1 is connected to the power ground.
[0104] The second follower circuit 17 includes a third operational amplifier U3, a second current source I2 and a third PMOS transistor P3;
[0105] The inverting input terminal of the third operational amplifier U3 is used as the reference voltage input terminal of the second follower circuit 17 to receive the reference voltage V NT ;
[0106] The non-inverting input terminal of the third operational amplifier U3 is connected to the drain of the third PMOS transistor P3 and the positive electrode of the second current source I2 and together constitutes the reference voltage VNT output terminal of the second follower circuit 17, and is connected to the second conversion circuit 14 to output the reference voltage V NT ;
[0107] The source of the third PMOS transistor P3 is connected to the first power source VAA, and the negative electrode of the second current source I2 is connected to the power ground.
[0108] The comparison module 111 includes a comparator U4;
[0109] The inverting input terminal of the comparator U4 is used as the maximum preset voltage VNTC2 input terminal of the comparison module 111 to receive the maximum preset voltage V NTC2 .
[0110] The positive input terminal of the comparator U4 is used as the sampling voltage input terminal of the comparison module 111 to receive the sampling voltage V NTCR .
[0111] The output terminal of the comparator U4 is used as the comparison signal Vcp output terminal of the comparison module 111 and is connected to the first selection module 112 to output the comparison signal Vcp.
[0112] The first conversion module includes a first adjustable resistor R1.
[0113] The first end of the first adjustable resistor R1 serves as the first voltage input end of the first conversion module and the first current output end of the first conversion module, and is connected to the current mirror circuit 12 to receive the first voltage and output the first current.
[0114] The second end of the first adjustable resistor R1 serves as the minimum preset voltage input end of the first conversion module to access the minimum preset voltage.
[0115] The adjustment end of the first adjustable resistor R1 serves as the second configuration signal input end of the first conversion module to access the second configuration signal R1_SELECT.
[0116] The second conversion module includes a second adjustable resistor R2.
[0117] The first end of the second adjustable resistor R2 is connected to the current mirror circuit 12 as the first driving voltage output end of the second conversion module and the second current input end of the second conversion module to output the first driving voltage V NTC_REF And connect the second current.
[0118] The second end of the second adjustable resistor R2 serves as the reference voltage V of the first conversion module. NT Input terminal, to access the reference voltage V NT .
[0119] The adjustment end of the second adjustable resistor R2 serves as the third configuration signal input end of the first conversion module to receive the third configuration signal.
[0120] It should be noted that the third configuration signal is used to adjust the resistance of the second adjustable resistor R2.
[0121] The following is a combination of working principles Figure 8 As shown for further explanation:
[0122] The inverting input of comparator U4 is connected to the maximum preset voltage V NTC2 , the positive input terminal of comparator U4 is connected to the sampling voltage V NTCR ; When the sampling voltage is greater than or equal to the maximum preset voltage V NTC2 In the case of , the output terminal of the comparator U4 outputs a high level comparison signal Vcp; when the sampling voltage V NTCR Less than the maximum preset voltage V NTC2 In the case of , the output terminal of the comparator U4 outputs a low level comparison signal Vcp; the first selection module 112 is connected to the maximum preset voltage V NTC2 , sampling voltage V NTCR and the comparison signal Vcp, and the maximum preset voltage V NTC2 As the first voltage output, the sampling voltage V NTCR As the first voltage output.
[0123] The positive input terminal of the first operational amplifier U1 and the inverting input terminal of the first operational amplifier U1 are virtually shorted, so the first voltage is output to the first end of the first adjustable resistor R1 after following; the positive input terminal of the second operational amplifier U2 and the inverting input terminal of the second operational amplifier U2 are virtually shorted, so the minimum preset voltage V NTC1 After following, it is output to the second end of the first adjustable resistor R1; thus, the first adjustable resistor R1 outputs the first current to the drain of the first PMOS tube P1 according to the voltage difference between the first voltage and the minimum preset voltage, and the current mirror circuit 12 performs a preset multiple mirroring on the first current to output the second current from the drain of the n field effect tubes Mi, and the second current is output to the first end of the second adjustable resistor R2 through the n switch tubes Qi; the positive input terminal of the third operational amplifier U3 and the inverting input terminal of the third operational amplifier U3 are virtually shorted, so the reference voltage V NT After following, it is output to the second end of the second adjustable resistor R2; thereby outputting the first driving voltage V at the first end of the second adjustable resistor R2 NTC_REF .
[0124] It can be understood that, assuming that the preset multiple of the current mirror circuit 12 is K, the first driving voltage V NTC_REF There are two cases:
[0125] In the first case, the sampling voltage is greater than or equal to the maximum preset voltage V NTC2 , at this time the first driving voltage V NTC_REF for
[0126] V NTC_REF =[(V NTC2 -V NTC1 ) / R1]*K*R2+V NT
[0127] In the second case, the sampling voltage is greater than or equal to the maximum preset voltage VNTC2. At this time, the first driving voltage V NTC_REF for
[0128] V NTC_REF = [(V NTCR -V NTC1 ) / R1]*K*R2+V NT
[0129] Among them, V NTC_REF is the first driving voltage, V NTCR is the sampling voltage, V NTC2 is the maximum preset voltage, V NTC2 is the minimum preset voltage, V NT is the reference voltage.
[0130] An embodiment of the present invention further provides a chip, wherein the amplifier includes the above-mentioned temperature compensation circuit.
[0131] like Fig. 9 As shown, the chip further includes a first digital circuit 01 , a digital-to-analog conversion circuit 02 and a second selection circuit 03 .
[0132] The first digital circuit 01 is configured to generate a first configuration signal GAIN SELECT <k:0>and the reference signal V NT <m:0>Output maximum drive signal V NTCMAX <m:0>; Among them, the first configuration signal GAIN SELECT <k:0>With the first driving voltage V NTC_REF In one embodiment, the first digital circuit 01 can be programmed by VERILOG A language.
[0133] In a specific implementation, the first configuration signal GAIN SELECT <k:0>The corresponding binary value is used as the first identifier, and the corresponding relationship between the first identifier and the compensation voltage is stored. The compensation voltage is [(V NTC2 -V NTC1 ) / R1]*K*R2 and the boost multiple (wherein the first drive voltage V NTC_REF The product of the boosted output to the load) is then divided by the compensation voltage by the step length of each bit to get the number of steps. Finally, the reference signal V NT <m:0>The corresponding binary value and the number of steps are added to obtain the maximum drive signal V NTCMAX <m:0>The corresponding binary value.
[0134] For example, the reference signal VNT <m:0>The corresponding binary value is 000000, the first configuration signal GAIN SELECT <k:0>The corresponding binary value (first identifier) is 010, the compensation voltage corresponding to 010 is 2V, the step length corresponding to each bit is 0.5V, and the number of steps corresponding to 010 is 4 steps (100), so the maximum drive signal V NTCMAX <m:0>The corresponding binary value is 000100.
[0135] The digital-to-analog conversion circuit 02 is connected to the first digital circuit 01 and is configured to convert the maximum driving signal V NTCMAX <m:0>Converted to maximum drive voltage V NTCMAX , and the reference signal V NT <m:0>Converted to reference voltage V NT ; Among them, the maximum driving voltage V NTCMAX is equal to the maximum value of the first driving voltage VNTC_REF.
[0136] The second selection circuit 03 is connected to the temperature compensation circuit and the digital-to-analog conversion circuit 02 and is configured to select the maximum output driving voltage V according to the comparison signal Vcp. NTCMAX Or the first driving voltage V NTC_REF Wherein, the comparison signal Vcp is composed of the sampling voltage and the maximum preset voltage V NTC2 Obtained by comparison.
[0137] The maximum driving voltage V is output by the first digital circuit 01 NTCMAX The corresponding maximum driving signal V NTCMAX <m:0>, so that the maximum driving voltage V NTCMAX Closer to the first driving voltage V NTC_REF The maximum theoretical value of the first driving voltage V NTC_REF The maximum value deviation is calculated and the maximum driving voltage V is outputted through the second selection circuit 03. NTCMAX Or the first driving voltage V NTC_REF , improving the accuracy of the final output drive voltage. At the same time, if the maximum drive voltage V NTCMAX and reference voltage V NT By extracting two independent signals from different digital-to-analog conversion circuits, the final output signal will have a certain mismatch because the two signals are unrelated. The digital-to-analog conversion circuit 02 converts the first driving voltage V NTCMAX and reference voltage V NT Together, even if the first driving voltage V NTCMAX and reference voltage V NT With changes in the same direction, the final curve and the maximum compensation value will still coincide.
[0138] like Fig.10 As shown, the first conversion circuit 13 is specifically configured to convert the voltage difference between the first voltage and the minimum preset voltage into a first current based on the second configuration signal R1_SELECT; the chip also includes a second digital circuit 04.
[0139] The second digital circuit 04 is connected to the temperature compensation circuit and is configured to generate a temperature compensation signal according to the first configuration signal GAIN SELECT <k:0>The second configuration signal R1_SELECT is output.
[0140] The first configuration signal GAIN SELECT <k:0>The corresponding binary value is used as the first identifier, and the corresponding relationship between the first identifier and the compensation voltage is stored. The compensation voltage is [(V NTC2 -V NTC1 ) / R1]*K*R2 and the boost multiple (wherein the first drive voltage V NTC_REF The product of the boosted output to the load) can be configured with a variety of maximum preset voltages V NTC2 and multiple minimum preset voltages V NTC1 , so that according to the first configuration signal GAIN SELECT <k:0>Output a second configuration signal R1_SELECT, wherein the binary value of the second configuration signal R1_SELECT is associated with the resistance value of the first adjustable resistor R1, and makes the resistance value of the first adjustable resistor R1 and (V NTC2 -V NTC1 ), so the compensation voltage is a constant value.
[0141] like Fig.11 As shown, the above chip also includes a third selection circuit 05.
[0142] The third selection circuit 05 is connected to the second selection circuit 03 and is configured to access the reference voltage V NT and the maximum drive voltage V NTCMAX , and selects the reference voltage V according to the selection signal NT , Maximum driving voltage V NTCMAX Or the first driving voltage V NTC_REF As the second driving voltage V NTC Output.
[0143] The third selection circuit 05 can select and output multiple types of driving voltages, thereby enriching the functions of the product.
[0144] like Fig.12 As shown, the third selection circuit 05 includes a second selection module 051 and a third selection module 052 .
[0145] The second selection module 051 is connected to the second selection circuit 03 and is configured to select the maximum output driving voltage V according to the first selection signal. NTCMAX Or the first driving voltage V NTC_REF ;
[0146] The third selection module 052 is connected to the second selection module 051 and is configured to select a reference voltage V according to the second selection signal NT , Maximum driving voltage V NTCMAX Or the first driving voltage V NTC_REF As the second driving voltage V NTC Output.
[0147] The second selection module 051 can output the maximum driving voltage V through the external output selection NTCMAX The third selection module 052 can select the output reference voltage V through the external output NT , enriching the functions of the product.
[0148] It is worth emphasizing that the second driving voltage V NTC The relationship with temperature is Fig.13 As shown, it can be understood that Fig.13 The maximum compensation temperature Tmax and the maximum preset voltage V NTC2 Correspondingly, the minimum compensation temperature Tmin and the minimum preset voltage V NTC1 Corresponding. Among them, Fig.13 Take the temperature sampling circuit with negative temperature coefficient as an example.
[0149] like Fig.13 As shown, the above chip also includes a boost circuit 06.
[0150] The boost circuit 06 is connected to the third selection circuit 05 and is configured to boost the second driving voltage V NTC The voltage is boosted to output a target driving voltage Vdriv.
[0151] The boost multiple of the boost circuit 06 can be configured, thereby expanding the application range of the chip.
[0152] An embodiment of the present invention further provides an electronic device, which includes the above-mentioned chip.
[0153] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0154] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A temperature compensation circuit, characterized in that: Connected to a temperature sampling circuit for detecting temperature to output a sampling voltage, the temperature compensation circuit comprises: A first selection circuit is connected to the temperature sampling circuit and is configured to access a maximum preset voltage and output a smaller voltage between the sampling voltage and the maximum preset voltage as a first voltage; a current mirror circuit, connected to the first selection circuit, configured to follow the first voltage and mirror the first current to output a second current; A first conversion circuit, connected to the current mirror circuit, configured to convert a voltage difference between the first voltage and a minimum preset voltage that follows into the first current; a second conversion circuit, connected to the current mirror circuit, configured to convert the second current into a first driving voltage according to a reference voltage; The first selection circuit comprises: A comparison module, configured to compare the sampled voltage with the maximum preset voltage, and output a comparison signal according to a comparison result; A first selection module, connected to the comparison module and the current mirror circuit, configured to select the sampled voltage or the maximum preset voltage as a first voltage output according to the comparison signal; The current mirror circuit includes a first operational amplifier, a first PMOS tube, n field effect tubes and n switch tubes; The negative phase input terminal of the first operational amplifier is used as the first voltage input terminal of the current mirror circuit and is connected to the first selection circuit to access the first voltage; The output end of the first operational amplifier is connected to the gate of the first PMOS tube and the gates of the n field effect tubes. The non-inverting input terminal of the first operational amplifier and the drain of the first PMOS tube are connected and together constitute the first voltage output terminal of the current mirror circuit, which is connected to the first conversion circuit to output the first voltage that follows; the non-inverting input terminal of the first operational amplifier and the drain of the first PMOS tube are connected and also together constitute the first current input terminal of the current mirror circuit, which is connected to the first conversion circuit to access the first current; The drains of the n field effect tubes are connected to the input ends of the n switch tubes in a one-to-one correspondence; The output ends of the n switching tubes are connected to and together constitute a second current output end of the current mirror circuit, and are connected to the second conversion circuit to output the second current; The sources of the n field effect tubes and the source of the first PMOS tube are connected to a first power source.
2. The temperature compensation circuit according to claim 1, characterized in that: Also includes: The clamping circuit is connected to the second conversion circuit and is configured to clamp the first driving voltage.
3. The temperature compensation circuit according to claim 1, characterized in that: Also includes: A first follower circuit, connected to the first conversion circuit, configured to follow the minimum preset voltage; The first conversion circuit is specifically configured to convert a voltage difference between the first voltage and the following minimum preset voltage into the first current.
4. The temperature compensation circuit according to claim 1, characterized in that: Also includes: A second follower circuit, connected to the second conversion circuit, configured to follow the reference voltage; The second conversion circuit is specifically configured to convert the second current into a first driving voltage according to a following reference voltage.
5. A chip, characterized in that: The chip comprises the temperature compensation circuit as claimed in any one of claims 1 to 4.
6. The chip according to claim 5, characterized in that: Also includes: A first digital circuit configured to output a maximum drive signal according to a first configuration signal and a reference signal; wherein the first configuration signal is associated with a maximum value of a first drive voltage; a digital-to-analog conversion circuit connected to the first digital circuit and configured to convert the maximum driving signal into a maximum driving voltage and convert the reference signal into a reference voltage; the maximum driving voltage is equal to the maximum value of the first driving voltage; The second selection circuit is connected to the temperature compensation circuit and the digital-to-analog conversion circuit, and is configured to select and output the maximum driving voltage or the first driving voltage according to a comparison signal; wherein the comparison signal is obtained by comparing the sampling voltage with the maximum preset voltage.
7. The chip according to claim 6, characterized in that: The first conversion circuit is specifically configured to convert the voltage difference between the first voltage and the minimum preset voltage into the first current based on the second configuration signal; The chip further comprises: The second digital circuit is connected to the temperature compensation circuit and is configured to output the second configuration signal according to the first configuration signal.
8. The chip according to claim 6, characterized in that: Also includes: The third selection circuit is connected to the second selection circuit, configured to access the reference voltage and the maximum driving voltage, and select the reference voltage, the maximum driving voltage or the first driving voltage as the second driving voltage output according to the selection signal.
9. The chip according to claim 8, characterized in that The third selection circuit comprises: A second selection module, connected to the second selection circuit, configured to select and output the maximum driving voltage or the first driving voltage according to a first selection signal; The third selection module is connected to the second selection module and is configured to select a reference voltage, the maximum driving voltage or the first driving voltage according to a second selection signal to output the second driving voltage.
10. The chip according to claim 8, characterized in that Also includes: The boost circuit is connected to the third selection circuit and is configured to boost the second driving voltage to output a target driving voltage.
11. An electronic device, characterized in that: The electronic device comprises the chip according to any one of claims 5 to 10.
