A voltage compensation method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202311108407.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-08-30
AI Technical Summary
[0005]本申请实施例的目的是提供一种电压补偿方法、装置、电子设备及存储介质,能够解决相关技术中失调电压补偿效果不佳的问题
[0040]在本申请实施例中,提供一种电压补偿方法,包括:基于所述第一环境温度确定所述运算放大器的第一温度,基于第一温度确定运算放大器的第一失调电压,基于第一失调电压对运算放大器的输出电压进行补偿,得到目标输出电压,可以根据运算放大器的结温对运算放大器自身产生的失调电压进行补偿,能够在运放处于不同温度的情况下采用不同的失调电压进行补偿,有助于提高电压补偿的效果,提升了运算放大器输出电压的准确性。
Smart Images

Figure CN117176086B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic science and technology, and specifically relates to a voltage compensation method, device, electronic device and storage medium. Background Technology
[0002] Operational amplifiers, as key components for processing analog signal gain, are frequently used in front-end and back-end circuits. However, operational amplifiers often suffer from offset voltage drift. Offset voltage, also known as input offset voltage, changes when independent variables such as temperature, time duration, and supply voltage change. The ratio of the input offset voltage to the change in independent variables is called offset voltage drift.
[0003] In related technologies, a mirrored current subtraction circuit can be used to compensate for positive and negative offset voltages separately. In this scheme, a current subtraction circuit is first constructed using PMOS and NMOS transistors to acquire the offset voltage of the operational amplifier in the analog circuit. Then, based on this offset voltage, an available subtraction circuit is automatically determined, and finally, the output voltage is compensated using the subtraction circuit.
[0004] However, this method can only compensate for offset voltage in low-voltage bandgap reference circuits and cannot compensate for offset voltage in operational amplifiers in other scenarios, resulting in poor compensation performance. Summary of the Invention
[0005] The purpose of this application is to provide a voltage compensation method, apparatus, electronic device, and storage medium that can solve the problem of poor offset voltage compensation effect in related technologies.
[0006] In a first aspect, embodiments of this application provide a voltage compensation method, the method comprising: Obtain the first ambient temperature of the operational amplifier; The first temperature of the operational amplifier is determined based on the first ambient temperature. The first offset voltage of the operational amplifier is determined based on the first temperature. The output voltage of the operational amplifier is compensated based on the first offset voltage to obtain the target output voltage.
[0007] Optionally, determining the first temperature of the operational amplifier based on the first ambient temperature includes: The second temperature of the operational amplifier is determined based on the first ambient temperature. The second temperature is corrected to obtain the first temperature.
[0008] Optionally, determining the second temperature of the operational amplifier based on the first ambient temperature includes: Determine the first power of the operational amplifier; The operational amplifier is determined based on the first power to achieve a first temperature rise relative to the first ambient temperature. The second temperature of the operational amplifier is determined based on the first ambient temperature and the first temperature rise.
[0009] Optionally, determining the first temperature rise of the operational amplifier relative to the first ambient temperature based on the first power includes: Obtain a first correspondence between the rise temperature of the operational amplifier and the operating power of the operational amplifier; The first rising temperature is determined based on the first correspondence and the first power.
[0010] Optionally, determining the first temperature of the operational amplifier based on the first ambient temperature includes: Determine the first drift voltage of the power supply of the circuit containing the operational amplifier; When the first drift voltage is less than or equal to the first threshold, the first temperature of the operational amplifier is determined.
[0011] Optionally, the step of correcting the second temperature to obtain the first temperature includes: Determine a second correspondence between the junction temperature and time of the operational amplifier; Based on the second correspondence, the first error of the second temperature is determined; The second temperature is corrected based on the first error to obtain the first temperature.
[0012] Optionally, correcting the second temperature based on the first error to obtain the first temperature includes: Obtain the acquisition timestamp and temperature acquisition delay of the second temperature; The first temperature corresponding to the acquisition timestamp is determined based on the temperature acquisition delay and the first error.
[0013] Optionally, determining the first offset voltage of the operational amplifier based on the first temperature includes: A first temperature drift coefficient of the operational amplifier is determined based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature; The first offset voltage is determined based on the first temperature and the first temperature drift coefficient.
[0014] Optionally, determining the first temperature drift coefficient of the operational amplifier based on the first temperature includes: Obtain the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature; The first temperature drift coefficient is determined based on the first temperature and the third correspondence.
[0015] Optionally, the step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: When the operational amplifier is in voltage follower mode, the difference between the output voltage and the first offset voltage is calculated to obtain the target output voltage; When the operational amplifier is in voltage amplification mode, the voltage gain of the operational amplifier is obtained, and the output voltage is compensated based on the voltage gain and the first offset voltage to obtain the target output voltage.
[0016] Optionally, the step of compensating the output voltage based on the voltage gain and the first offset voltage to obtain the target output voltage includes: The voltage gain of the operational amplifier is determined based on the voltage gain. The compensation value of the output voltage is determined based on the voltage amplification factor and the first offset voltage; The output voltage is compensated based on the compensation value to obtain the target output voltage.
[0017] Optionally, the step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: Determine the second offset voltage of the operational amplifier; The output voltage is compensated based on the first offset voltage and the second offset voltage to obtain the target output voltage.
[0018] Optionally, determining the second offset voltage of the operational amplifier includes: Determine the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier; The second offset voltage of the operational amplifier is determined based on the time drift coefficient and the first operating duration.
[0019] Optionally, the step of compensating the output voltage based on the first offset voltage and the second offset voltage to obtain the target output voltage includes: The first cumulative value of the second offset voltage is determined based on the first operating duration and the time drift coefficient; If the first accumulated value is greater than or equal to the second threshold, the output voltage is compensated based on the first accumulated value and the first offset voltage to obtain the target output voltage.
[0020] Optionally, the method further includes: If the first operating duration is greater than or equal to the third threshold, the operational amplifier is calibrated, and the second offset voltage and the first operating duration are set to zero.
[0021] Optionally, the step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: Determine the second drift voltage of the power supply of the circuit containing the operational amplifier; The output voltage is compensated based on the second drift voltage and the first offset voltage to obtain the target output voltage.
[0022] Secondly, embodiments of this application provide a voltage compensation device, the device comprising: The acquisition module is used to acquire the first ambient temperature of the operational amplifier; The first determining module is used to determine the first temperature of the operational amplifier based on the first ambient temperature. The second determining module is used to determine the first offset voltage of the operational amplifier based on the first temperature; The compensation module is used to compensate the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage.
[0023] Optionally, the first determining module includes: A first determining submodule is used to determine a second temperature of the operational amplifier based on the first ambient temperature. The correction submodule is used to correct the second temperature to obtain the first temperature.
[0024] Optionally, the first determining submodule includes: The first determining unit is used to determine the first power of the operational amplifier; The second determining unit is used to determine the first rise temperature of the operational amplifier relative to the first ambient temperature based on the first power. The third determining unit is used to determine the second temperature of the operational amplifier based on the first ambient temperature and the first rising temperature.
[0025] Optionally, the second determining unit includes: The first acquisition subunit is used to acquire a first correspondence between the rise temperature of the operational amplifier and the operating power of the operational amplifier; The first determining subunit is used to determine the first rising temperature based on the first correspondence and the first power.
[0026] Optionally, the first determining module includes: The second determining submodule is used to determine the first drift voltage of the power supply of the circuit where the operational amplifier is located; The third determining submodule determines the first temperature of the operational amplifier when the first drift voltage is less than or equal to the first threshold.
[0027] Optionally, the correction submodule includes: The fourth determining unit is used to determine the second correspondence between the junction temperature and time of the operational amplifier; The fifth determining unit is used to determine the first error of the second temperature based on the second correspondence. The correction unit is used to correct the second temperature based on the first error to obtain the first temperature.
[0028] Optionally, the correction unit includes: The second acquisition subunit is used to acquire the acquisition timestamp and temperature acquisition delay of the second temperature; The second determining subunit is used to determine the first temperature corresponding to the acquisition timestamp based on the temperature acquisition delay and the first error.
[0029] Optionally, the second determining module includes: The fourth determining submodule is used to determine the first temperature drift coefficient of the operational amplifier based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature; The fifth determining submodule is used to determine the first offset voltage based on the first temperature and the first temperature drift coefficient.
[0030] Optionally, the fourth determining submodule includes: The acquisition unit is used to acquire the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature; The sixth determining unit is used to determine the first temperature drift coefficient based on the first temperature and the third correspondence.
[0031] Optionally, the compensation module includes: The calculation submodule is used to calculate the difference between the output voltage and the first offset voltage when the operational amplifier is in voltage follower mode, so as to obtain the target output voltage; The first compensation submodule is used to obtain the voltage gain of the operational amplifier and compensate the output voltage based on the voltage gain and the first offset voltage when the operational amplifier is in voltage amplification operation state, so as to obtain the target output voltage.
[0032] Optionally, the compensation module includes: The sixth determining submodule is used to determine the voltage amplification factor of the operational amplifier based on the voltage gain; The seventh determining submodule is used to determine the compensation value of the output voltage based on the voltage amplification factor and the first offset voltage; The second compensation submodule is used to compensate the output voltage based on the compensation value to obtain the target output voltage.
[0033] Optionally, the compensation module includes: The eighth determining submodule is used to determine the second offset voltage of the operational amplifier; The third compensation submodule is used to compensate the output voltage based on the first offset voltage and the second offset voltage to obtain the target output voltage.
[0034] Optionally, the eighth determining submodule includes: The seventh determining unit is used to determine the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier; The eighth determining unit is used to determine the second offset voltage of the operational amplifier based on the time drift coefficient and the first operating duration.
[0035] Optionally, the third compensation submodule includes: The ninth determining unit is used to determine the first cumulative value of the second offset voltage based on the first operating duration and the time drift coefficient; The compensation unit is used to compensate the output voltage based on the first accumulated value and the first offset voltage when the first accumulated value is greater than or equal to the second threshold, so as to obtain the target output voltage.
[0036] Optionally, the device further includes: The calibration module is used to calibrate the operational amplifier when the first operating duration is greater than or equal to a third threshold, and to set the second offset voltage and the first operating duration to zero.
[0037] Optionally, the compensation module includes: The ninth determining submodule is used to determine the second drift voltage of the power supply of the circuit where the operational amplifier is located; The fourth compensation submodule is used to compensate the output voltage based on the second drift voltage and the first offset voltage to obtain the target output voltage.
[0038] Thirdly, embodiments of this application provide an electronic device including the voltage compensation device described above, for implementing the voltage compensation method as described in any of the above claims.
[0039] Fourthly, embodiments of this application provide a storage medium storing a program or instructions, which, when executed by a processor, implement the voltage compensation method described in any of the above claims.
[0040] In this application embodiment, a voltage compensation method is provided, comprising: determining a first temperature of the operational amplifier based on the first ambient temperature, determining a first offset voltage of the operational amplifier based on the first temperature, and compensating the output voltage of the operational amplifier based on the first offset voltage to obtain a target output voltage. The method can compensate for the offset voltage generated by the operational amplifier itself according to the junction temperature of the operational amplifier, and can use different offset voltages for compensation when the operational amplifier is at different temperatures, which helps to improve the voltage compensation effect and improve the accuracy of the operational amplifier output voltage. Attached Figure Description
[0041] Figure 1 This is a flowchart illustrating the steps of a voltage compensation method provided in an embodiment of this application; Figure 2 This is an example diagram of a temperature acquisition circuit provided in an embodiment of this application; Figure 3 This is an example diagram of the offset voltage provided in the embodiments of this application; Figure 4 This is a flowchart of another voltage compensation method provided in an embodiment of this application; Figure 5 This is a logic block diagram of a voltage compensation device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0042] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0043] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0044] The voltage compensation method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0045] Reference Figure 1 , Figure 1 This paper illustrates a flowchart of a voltage compensation method provided in an embodiment of this application. The method may specifically include the following steps: Step 101: Obtain the first ambient temperature of the operational amplifier.
[0046] In the embodiments of this application, the operational amplifier can be an electronic integrated circuit containing multi-stage amplification circuits. The operational amplifier can include two input terminals and one output terminal. Internally, the operational amplifier mainly consists of three parts: a differential input stage, a voltage amplification stage, and an output stage. The differential input stage can be a differential amplifier circuit composed of two transistors, featuring high input resistance and zero-point drift suppression capability; the voltage amplification stage performs voltage amplification and is generally composed of a common-emitter amplifier circuit; the output stage is connected to the load and features strong load-carrying capacity and low output resistance. As a key device for processing analog signal gain, the operational amplifier is often used in the front-end and back-end circuits of analog-to-digital converters (ADCs) and digital-to-analog converters (DACs). For any practical operational amplifier, there will be an offset voltage deviation problem. Among these, the temperature offset voltage caused by the operational amplifier's own temperature occupies a major position in the overall output offset voltage of the operational amplifier. For a given operational amplifier, the correspondence between its temperature offset voltage and temperature is fixed; however, this correspondence is generally different for different operational amplifiers.
[0047] In the embodiments of this application, since operational amplifiers are usually packaged structures, it is difficult to directly obtain the junction temperature inside the operational amplifier. In addition, since operational amplifiers are usually soldered on PCB boards, it is also difficult to measure the surface temperature of the operational amplifier. Therefore, the first ambient temperature of the operational amplifier can be obtained.
[0048] For example, the process of acquiring and determining the first temperature can be based on a temperature acquisition circuit equipped with an LM96163 chip. Figure 2 As shown, Figure 2This is an example diagram of a temperature acquisition circuit provided in an embodiment of this application. The principle of using a transistor for temperature acquisition is that when the external temperature of the transistor changes, the bias of holes and electrons within the PN junction increases. Due to the drift of minority carriers in the P and N segments, the electromotive force between the PN junction changes. If the PN junction is turned on externally, a weak current will be generated in the external circuit. The magnitude of this weak current is directly related to the temperature of the PN junction. Therefore, this characteristic of the transistor can be used to indirectly acquire the ambient temperature of the operational amplifier's environment. In the diagram, a PNP transistor can be used for temperature acquisition. Pin 3 of the LM96163 can be connected to the emitter of the PNP transistor, and pin 4 can be connected to the base of the PNP transistor. The LM96163 can monitor the weak current of the transistor and convert it into temperature information, storing it in the register inside the LM96163. Pins 7, 9, and 10 of the LM96163 can send temperature information to the control center via the SMbus bus. Pin 5 of the LM96163 can output a pulse width modulation (PWM) signal, which can be used to control the speed of fan 401 on the far right of the circuit diagram. The desired effect is that the higher the initial ambient temperature, the higher the speed of fan 401, and the lower the initial ambient temperature, the lower the speed of fan 401, thus stabilizing the temperature of the PNP transistor.
[0049] Step 102: Determine the first temperature of the operational amplifier based on the first ambient temperature.
[0050] In the embodiments of this application, when the operational amplifier is working, the transistor located inside the operational amplifier will be turned on and generate heat. The temperature of the operational amplifier itself will affect the ambient temperature around the operational amplifier chip. Therefore, the first temperature of the operational amplifier can be determined based on the first ambient temperature. The first temperature can be the junction temperature of the operational amplifier, i.e., the internal temperature of the operational amplifier, the surface temperature of the operational amplifier, or a temperature after correction of the junction temperature of the operational amplifier.
[0051] Step 103: Determine the first offset voltage of the operational amplifier based on the first temperature.
[0052] In the embodiments of this application, offset voltage, also known as input offset voltage, refers to the difference in DC voltage applied to the two input terminals in order to obtain a constant zero-voltage output in a differential amplifier or differential-input operational amplifier. Due to the materials and manufacturing processes of the operational amplifier itself, offset voltage is inevitably generated during operation, and the magnitude of the offset voltage can be determined by the junction temperature and operating duration of the operational amplifier.
[0053] For example, such as Figure 3 As shown, Figure 3 This is an example diagram of the offset voltage provided in the embodiments of this application. Any practical operational amplifier can be considered as having a voltage source of magnitude Vos connected in series inside the positive terminal of the input. In the diagram, the circuit diagram on the left shows a controllable voltage source of magnitude Vos connected to the positive terminal of the operational amplifier input, with a direction opposite to the offset voltage. Then, the other end of the controllable voltage source and the negative terminal of the operational amplifier input are grounded, so that the output voltage Uo can be equal to 0. The circuit diagram on the right shows the operational amplifier input positive terminal grounded and the input negative terminal connected to the output terminal to form a voltage follower. At this time, the output voltage Uo can be equal to the offset voltage Vos. Since the voltage follower has an inverting effect, the direction of the output voltage can be opposite to the direction of the input voltage.
[0054] In the embodiments of this application, for a given operational amplifier, different temperatures can correspond to different offset voltages. This correspondence can be measured in a laboratory environment and is an inherent property of the operational amplifier itself. Therefore, after determining the first temperature of the operational amplifier based on the first ambient temperature, the first offset voltage of the operational amplifier can be determined according to the correspondence between temperature and offset voltage and the first temperature.
[0055] Step 104: Compensate the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage.
[0056] In the embodiments of this application, after determining the first offset voltage, voltage compensation can be performed on the output terminal of the operational amplifier within the circuit containing the operational amplifier to obtain the target output voltage. For circuits using a Field Programmable Gate Array (FPGA) as the control center, the FPGA can issue offset voltage compensation; for circuits using other processors as the control center, a controllable voltage source can be integrated into the circuit, and the processor can adjust the voltage value provided by the controllable voltage source to compensate the output voltage. The target output voltage can be the voltage that the circuit containing the operational amplifier wants to obtain. After compensation, the target output voltage can be the same as or close to the output voltage of the ideal operational amplifier.
[0057] In the embodiments of this application, by obtaining the first ambient temperature of the operational amplifier, determining the first temperature of the operational amplifier based on the first ambient temperature, determining the first offset voltage of the operational amplifier based on the first temperature, and compensating the output voltage of the operational amplifier based on the first offset voltage, a target output voltage is obtained. The temperature of the operational amplifier can be determined by the ambient temperature of the operational amplifier, and the offset voltage generated by the operational amplifier can be determined based on the temperature of the operational amplifier. Furthermore, the corresponding offset voltage can be used for compensation when the operational amplifier is at different temperatures, which helps to improve the voltage compensation effect and enhance the accuracy of the operational amplifier output voltage.
[0058] like Figure 4 As shown, Figure 4 Another voltage compensation method provided in this application embodiment may include: Step 201: Obtain the first ambient temperature of the operational amplifier.
[0059] In the embodiments of this application, the first ambient temperature can be obtained through a temperature acquisition circuit also mounted on the PCB board, or through a temperature sensor or a thermistor and its peripheral circuitry. When using a thermistor, the thermistor circuit can be freely designed according to requirements. This application does not limit the method of obtaining the first ambient temperature. Other implementation details of this step can be found in the embodiment of step 101, and will not be repeated here.
[0060] Step 202: Determine the first temperature of the operational amplifier based on the first ambient temperature.
[0061] In the embodiments of this application, the content of the embodiments of this step can be referred to the content of the embodiments of step 101, and will not be repeated here.
[0062] Optionally, step 202 may include the following sub-steps: Sub-step 2021: Determine the second temperature of the operational amplifier based on the first ambient temperature.
[0063] In embodiments of this application, the second temperature can be the junction temperature of the operational amplifier, which can be determined by the first ambient temperature of the environment in which the operational amplifier is located. The internal temperature of the operational amplifier can be obtained based on the temperature propagation characteristics of the operational amplifier's packaging material and the temperature propagation characteristics in the air.
[0064] Optionally, sub-step 2021 may include the following sub-steps: Sub-step A211: Determine the first power of the operational amplifier.
[0065] In the embodiments of this application, the first power can be the operating power of the operational amplifier. In practical use, the operational amplifier can be powered by an external regulated DC power supply. Because the operational amplifier has a high impedance, its internal current is often small. In the embodiments of this application, the current at the two input terminals of the operational amplifier can be collected using a weak current acquisition device, and then the first power of the operational amplifier can be determined using the current at the two input terminals and the voltage of the external regulated DC power supply.
[0066] Sub-step A212: Determine the first rise temperature of the operational amplifier relative to the first ambient temperature based on the first power.
[0067] In the embodiments of this application, the rise in junction temperature of the operational amplifier relative to ambient temperature is positively correlated with the operating power of the operational amplifier. Therefore, the first rise in temperature of the operational amplifier relative to the first ambient temperature can be determined based on the first power.
[0068] Furthermore, sub-step A212 may include the following sub-steps: Sub-step B1: Obtain the first correspondence between the rise temperature of the operational amplifier and the operating power of the operational amplifier.
[0069] In the embodiments of this application, the temperature rise can represent the increase in junction temperature of the operational amplifier compared to the ambient temperature. Furthermore, the magnitude of the temperature rise can be directly related to the operating power of the operational amplifier. After the operational amplifier is packaged, a first correspondence between the temperature rise and the operating power can be obtained in a laboratory environment. In actual use cases of the operational amplifier, this first correspondence can be obtained by consulting the corresponding datasheet. The first correspondence can be a mapping or a functional relationship.
[0070] Sub-step B2: Determine the first rising temperature based on the first correspondence and the first power.
[0071] In embodiments of this application, after obtaining the first correspondence, the first rise temperature of the operational amplifier can be determined based on the first power of the operational amplifier and the first correspondence. The first rise temperature can represent the increase in junction temperature of the operational amplifier compared to the first ambient temperature.
[0072] In the embodiments of this application, by obtaining a first correspondence between the operational amplifier's rising temperature and its operating power, and determining the first rising temperature based on the first correspondence and the first power, the junction temperature inside the operational amplifier can be obtained, thus improving the accuracy of the second temperature.
[0073] Sub-step A213: Determine the second temperature of the operational amplifier based on the first ambient temperature and the first temperature rise.
[0074] In the embodiments of this application, after obtaining the first ambient temperature of the environment where the operational amplifier is located and the first rise temperature of the operational amplifier, the sum of the first ambient temperature and the first rise temperature can be calculated to obtain the second temperature of the operational amplifier, that is, the junction temperature of the operational amplifier.
[0075] For example, if the first ambient temperature is 60 degrees Celsius and the first temperature rise is 20 degrees Celsius, then the second temperature can be 80 degrees Celsius, that is, the second temperature can be the sum of the first ambient temperature and the first temperature rise.
[0076] In the embodiments of this application, by determining the first power of the operational amplifier, determining the first temperature rise of the operational amplifier relative to the first ambient temperature based on the first power, and determining the second temperature of the operational amplifier based on the first ambient temperature and the first temperature rise, the junction temperature inside the operational amplifier can be obtained according to the operating power of the operational amplifier and its own temperature characteristics, thereby improving the accuracy and reliability of the usable temperature of the operational amplifier.
[0077] Sub-step 2022: Correct the second temperature to obtain the first temperature.
[0078] In the embodiments of this application, since the second temperature is obtained after a series of transformations of the first ambient temperature, and since the first ambient temperature is obtained through data acquisition, it inevitably contains some errors. Therefore, if the first ambient temperature has errors, the second temperature will also have some errors. Thus, error correction can be performed on the second temperature to obtain the first temperature of the operational amplifier.
[0079] Optionally, sub-step 2022 may include the following sub-steps: Sub-step A221: Determine the second correspondence between the junction temperature and time of the operational amplifier.
[0080] In the embodiments of this application, the junction temperature of the operational amplifier is typically not a constant value, but a variable that can change over time. When the circuit containing the operational amplifier is in a stable operating state, a graph showing the relationship between the junction temperature and time can be plotted, thereby determining a second correspondence between the junction temperature and time.
[0081] Using the above example, if a temperature acquisition circuit based on LM96163 is used, the first ambient temperature will be in a dynamic equilibrium state. Correspondingly, the second temperature of the operational amplifier will also be in a dynamic equilibrium state. At this time, the change law of this dynamic equilibrium can be obtained, that is, the correspondence between the second temperature and time.
[0082] Sub-step A222: Based on the second correspondence, determine the first error of the second temperature.
[0083] In the embodiments of this application, after obtaining the second correspondence between the junction temperature and time of the amplifier, a first error of the second temperature can be determined based on this correspondence. As described in the foregoing embodiments, the second temperature is the collected junction temperature of the operational amplifier. Therefore, the collection timestamp corresponding to the second temperature can be recorded and compared with the second correspondence to determine the first error.
[0084] Sub-step A223: Correct the second temperature based on the first error to obtain the first temperature.
[0085] In the embodiments of this application, after determining the first error, the second temperature can be corrected based on the first error, that is, the difference between the first error and the second temperature is calculated to obtain the first temperature. The first temperature is the temperature value after correcting the second temperature.
[0086] In an embodiment of this application, another implementation method can be used. When collecting the first ambient temperature, it can be based on a certain frequency. Typically, the collection frequency can be relatively high. Thus, after obtaining the second temperature, unreasonable second temperatures can be filtered out using digital filtering based on a second correspondence. Digital filtering can employ digital filters, such as Infinite Impulse Response (IIR) digital filters. After filtering, the arithmetic mean of the temperatures adjacent to the filtered data can be used to replace the filtered second temperature value. This method can also correct the second temperature.
[0087] Optionally, sub-step A223 may include the following sub-steps: Sub-step B3: Obtain the acquisition timestamp and temperature acquisition delay of the second temperature.
[0088] In the embodiments of this application, the circuit containing the operational amplifier can be equipped with a clock chip. When the first ambient temperature of the environment where the operational amplifier is located is obtained, a timestamp can be added to the first ambient temperature through the clock chip. Similarly, the second temperature obtained from the first ambient temperature can also have the same timestamp as the original first ambient temperature. In addition, since electronic measurement has a lag, the temperature acquisition delay of the second temperature can be obtained, which is the temperature acquisition delay of the first ambient temperature.
[0089] Following the example above, in a temperature acquisition circuit based on LM96163, the output delay of LM96163 compared to the inputs at pins 3 and 4 can be obtained, and the transmission delay of the SMbus bus can be determined. Then, by adding the output delay and the bus transmission delay, the temperature acquisition delay can be obtained.
[0090] Sub-step B4: Determine the first temperature corresponding to the acquisition timestamp based on the temperature acquisition delay and the first error.
[0091] In the embodiments of this application, after obtaining the acquisition timestamp and temperature acquisition delay of the second temperature, the true temperature value corresponding to the acquisition timestamp can be determined based on the second correspondence, thereby eliminating the lag in temperature acquisition; then, the true temperature value can be corrected based on the first error, thereby determining the first temperature of the operational amplifier corresponding to the acquisition timestamp.
[0092] In the embodiments of this application, by obtaining the acquisition timestamp of the second temperature and the temperature acquisition delay, and determining the first temperature corresponding to the acquisition timestamp based on the temperature acquisition delay and the first error, the second temperature can be corrected from the perspectives of acquisition delay and acquisition error, thereby further improving the accuracy and reliability of the first temperature.
[0093] In the embodiments of this application, by determining a second correspondence between the junction temperature and time of the operational amplifier, a first error of the second temperature is determined based on the second correspondence, and the second temperature is corrected based on the first error to obtain the first temperature. The second temperature can be corrected according to the temperature characteristics of the operational amplifier itself to obtain the first temperature, thereby improving the accuracy and reliability of the first temperature data.
[0094] In the embodiments of this application, by obtaining the first ambient temperature of the operational amplifier, determining the second temperature of the operational amplifier based on the first ambient temperature, and correcting the second temperature, the first temperature is obtained. The second temperature inside the operational amplifier can be indirectly obtained by obtaining the first ambient temperature of the environment in which the operational amplifier is located and then corrected, thereby obtaining the first temperature, which improves the accuracy of the first temperature of the operational amplifier.
[0095] Sub-step 2023: Determine the first drift voltage of the power supply of the circuit containing the operational amplifier.
[0096] In the embodiments of this application, the power supply for the operational amplifier is typically a DC regulated power supply. Due to limitations in manufacturing processes and technology, DC regulated power supplies cannot generate electricity independently; that is, they cannot produce stable DC power on their own. Typically, a DC regulated power supply converts household or industrial AC power into DC power to supply power to various components. Similarly, due to limitations in manufacturing processes and technology, DC regulated power supplies can experience voltage drift; that is, the DC voltage provided by the power supply can oscillate, i.e., voltage drift. Therefore, the first drift voltage of the power supply in the circuit containing the operational amplifier can be detected and determined. This detection and determination can be performed using an oscilloscope or a manually written voltage acquisition program.
[0097] Sub-step 2024: If the first drift voltage is less than or equal to the first threshold, determine the first temperature of the operational amplifier.
[0098] In the embodiments of this application, after determining the first drift voltage of the power supply, it can be determined whether the first drift voltage meets the power supply standard, that is, the relationship between the first drift voltage and a manually set first threshold is determined. If the first drift voltage is less than or equal to the first threshold, the power supply can be considered to meet the power supply standard, and at this time, the first temperature of the operational amplifier can be determined based on the first ambient temperature.
[0099] In the embodiments of this application, by determining the first drift voltage of the power supply of the circuit where the operational amplifier is located, and if the first drift voltage is less than or equal to a first threshold, the first temperature of the operational amplifier is determined based on the first ambient temperature. This allows it to determine whether the power supply of the operational amplifier meets the usage standards, and if it does, the first temperature is determined, thereby improving the usability of the first temperature.
[0100] Step 203: Determine the first temperature drift coefficient of the operational amplifier based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature.
[0101] In embodiments of this application, temperature drift is an inherent property of the operational amplifier, and the temperature drift coefficient can be the ratio of the input offset voltage of the operational amplifier to the junction temperature of the operational amplifier. In embodiments of this application, after determining the first temperature of the operational amplifier, the first temperature drift coefficient of the operational amplifier can be determined based on the temperature drift characteristics of the operational amplifier and the temperature value of the first temperature, based on the first ambient temperature.
[0102] Optionally, step 203 may include the following sub-steps: Sub-step 2031: Obtain the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature.
[0103] In the embodiments of this application, the temperature drift coefficient of the operational amplifier typically changes with the junction temperature of the operational amplifier; that is, the temperature drift coefficient of the operational amplifier can be a variable value and can be directly related to the junction temperature of the operational amplifier. After the operational amplifier is packaged, the correspondence between the temperature drift coefficient and temperature can be determined in a laboratory environment. In actual use scenarios of the operational amplifier, this correspondence can be obtained by consulting the operational amplifier's datasheet. In the embodiments of this application, a third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature can be obtained by consulting the datasheet, or the third correspondence can be determined in a laboratory; this application does not limit this approach.
[0104] Sub-step 2032: Determine the first temperature drift coefficient based on the first temperature and the third correspondence.
[0105] In the embodiments of this application, after determining the first temperature of the operational amplifier based on the first ambient temperature, the first temperature drift coefficient corresponding to the first temperature can be determined based on the third correspondence between the first temperature, the temperature drift coefficient, and the junction temperature.
[0106] In the embodiments of this application, by obtaining the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature, and determining the first temperature drift coefficient based on the first temperature and the third correspondence, the first temperature drift coefficient corresponding to the first temperature can be determined according to the temperature drift characteristics of the operational amplifier, thereby improving the reliability of the first temperature drift coefficient.
[0107] Step 204: Determine the first offset voltage based on the first temperature and the first temperature drift coefficient.
[0108] In the embodiments of this application, after determining the first temperature drift coefficient, the first offset voltage of the operational amplifier can be determined based on the first temperature and the first temperature drift coefficient. Specifically, the temperature value of the first temperature and the first temperature drift coefficient can be multiplied to obtain the voltage value of the first offset voltage.
[0109] In the embodiments of this application, a first temperature drift coefficient of the operational amplifier is determined based on a first temperature. The first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature. The first offset voltage is determined based on the first temperature and the first temperature drift coefficient. The first offset voltage of the operational amplifier can be determined based on the temperature drift characteristics of the operational amplifier and the first temperature, thereby improving the availability of the first offset voltage.
[0110] Step 205: Compensate the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage.
[0111] In the embodiments of this application, the content of the embodiments of this step can be referred to the content of the embodiments of step 103, and will not be repeated here.
[0112] Optionally, step 205 may include the following sub-steps: Sub-step 2051: When the operational amplifier is in voltage follower mode, calculate the difference between the output voltage and the first offset voltage to obtain the target output voltage.
[0113] In the embodiments of this application, the voltage follower operation state of the operational amplifier, as described in the relevant implementation content of step 101, can be an operational amplifier operating state formed by directly connecting the negative terminal of the input terminal and the output terminal of the operational amplifier through a wire. In the voltage follower operation state, the voltage gain of the operational amplifier can be shielded and thus disabled. Therefore, after determining the first offset voltage, the difference between the output voltage and the first offset voltage can be calculated to obtain the target output voltage. The direction of the voltage can be considered during the calculation, and any voltage direction can be set as the reference direction.
[0114] For example, in voltage follower mode, if the first offset voltage is 0.3V and the output voltage is -3V, then the target output voltage is -3.3V; if the first offset voltage is 0.3V and the output voltage is 3V, then the target output voltage is 2.7V.
[0115] Sub-step 2052: When the operational amplifier is in voltage amplification mode, the voltage gain of the operational amplifier is obtained, and the output voltage is compensated based on the voltage gain and the first offset voltage to obtain the target output voltage.
[0116] In the embodiments of this application, when the operational amplifier is in voltage amplification mode, both input pins of its input terminal have voltage input. At this time, the voltage gain of the operational amplifier can play a role. Therefore, the voltage gain of the operational amplifier can be obtained, and then the output voltage can be compensated based on the voltage gain and the first offset voltage to obtain the target output voltage.
[0117] Optionally, sub-step 2052 may include the following sub-steps: Sub-step A521: Determine the voltage amplification factor of the operational amplifier based on the voltage gain.
[0118] In the embodiments of this application, there is a certain conversion relationship between voltage gain and the voltage amplification factor of the operational amplifier. Therefore, after obtaining the voltage gain of the operational amplifier, the voltage amplification factor of the operational amplifier can be obtained through this conversion relationship. Alternatively, the voltage gain and voltage amplification factor of the operational amplifier can also be obtained directly from the operational amplifier's datasheet.
[0119] Sub-step A522: Determine the compensation value of the output voltage based on the voltage amplification factor and the first offset voltage.
[0120] In the embodiments of this application, when the operational amplifier is in voltage amplification mode, the effect of the first offset voltage on the output terminal is affected by the voltage amplification factor. Therefore, the compensation value of the output voltage can be determined based on the voltage amplification factor and the first offset voltage. Specifically, the compensation value of the output voltage can be obtained by multiplying the voltage amplification factor and the voltage value of the first offset voltage.
[0121] Sub-step A523: Compensate the output voltage based on the compensation value to obtain the target output voltage.
[0122] In the embodiments of this application, after determining the compensation value of the output voltage, the output voltage can be compensated based on the compensation value to obtain the target output voltage. Specifically, the difference between the compensation value and the output voltage can be calculated to obtain the target output voltage. Similarly, the directions of the compensation value and the output voltage can be considered, and either the compensation value or the output voltage direction can be determined as the reference direction.
[0123] In the embodiments of this application, the voltage amplification factor of the operational amplifier is determined based on the voltage gain, the compensation value of the output voltage is determined based on the voltage amplification factor and the first offset voltage, and the output voltage is compensated based on the compensation value to obtain the target output voltage. This allows for more reasonable compensation of the output voltage when the operational amplifier is in voltage amplification mode, further improving the accuracy and reliability of the target output voltage.
[0124] In the embodiments of this application, the target output voltage is obtained by calculating the difference between the output voltage and the first offset voltage when the operational amplifier is in voltage follower mode. When the operational amplifier is in voltage amplification mode, the voltage gain of the operational amplifier is obtained and the output voltage is compensated based on the voltage gain and the first offset voltage to obtain the target output voltage. The output voltage of the operational amplifier can be specifically compensated for different operating states of the operational amplifier, thereby improving the accuracy of the target output voltage.
[0125] Sub-step 2053: Determine the second offset voltage of the operational amplifier.
[0126] In embodiments of this application, as the operating time of the operational amplifier increases, the operational amplifier can also generate a second offset voltage based on the operating time. Therefore, the second offset voltage of the operational amplifier can be determined.
[0127] Optionally, sub-step 2053 may include the following sub-steps: Sub-step A531: Determine the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier.
[0128] In the embodiments of this application, the time drift coefficient can represent the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier. In the embodiments of this application, since the second offset voltage is generated and varies based on the operating duration of the operational amplifier, the first operating duration of the operational amplifier can be determined by the clock chip in the circuit containing the operational amplifier. The time drift characteristic of the operational amplifier is an inherent property of the operational amplifier; therefore, the time drift coefficient of the operational amplifier can be measured in a laboratory environment. In practical applications of the operational amplifier, the time drift coefficient can be obtained by consulting the operational amplifier's datasheet.
[0129] Sub-step A532: Determine the second offset voltage of the operational amplifier based on the time drift coefficient and the first operating duration.
[0130] In the embodiments of this application, the time drift coefficient of the operational amplifier can typically be a constant value. Therefore, the second offset voltage of the operational amplifier can be determined based on the time drift coefficient and the first operating duration. That is, the first operating duration and the time drift coefficient can be multiplied to obtain the second offset voltage of the operational amplifier.
[0131] In the embodiments of this application, by determining the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier, and the second offset voltage of the operational amplifier is determined based on the time drift coefficient and the first operating duration, the offset voltage of the operational amplifier can be obtained from the time dimension, ensuring the availability of the second offset voltage.
[0132] Sub-step 2054: Compensate the output voltage based on the first offset voltage and the second offset voltage to obtain the target output voltage.
[0133] In the embodiments of this application, after determining the second offset voltage, the output voltage can be compensated based on the first and second offset voltages to obtain the target output voltage. Similar to the aforementioned embodiments, the output voltage can also be compensated specifically according to the operational amplifier's operating state.
[0134] Optionally, sub-step 2054 may include the following sub-steps: Sub-step A541: Determine the first cumulative value of the second offset voltage based on the first operating duration and the time drift coefficient.
[0135] In the embodiments of this application, the second offset voltage is typically within a very small range. Therefore, in practical applications of operational amplifiers, the first cumulative value of the second offset voltage can be determined based on the first operating duration and time drift coefficient of the operational amplifier. The first cumulative value can be one of the values of the second offset voltage.
[0136] Sub-step A542: If the first accumulated value is greater than or equal to the second threshold, the output voltage is compensated based on the first accumulated value and the first offset voltage to obtain the target output voltage.
[0137] In the embodiments of this application, when the first accumulated value is greater than or equal to the second threshold, it can be considered that the influence of the second offset voltage on the output voltage is already non-negligible. At this time, the output voltage can be compensated based on the first accumulated value and the first offset voltage, thereby obtaining the target output voltage.
[0138] In the embodiments of this application, the first cumulative value of the second offset voltage is determined based on the first operating time and the time drift coefficient. When the first cumulative value is greater than or equal to the second threshold, the output voltage is compensated based on the first cumulative value and the first offset voltage to obtain the target output voltage. This can avoid unnecessary compensation of the output voltage when the second offset voltage is low, save the computing resources of the control center, and improve the performance of the circuit where the operational amplifier is located.
[0139] In the embodiments of this application, by determining the second offset voltage of the operational amplifier, and compensating the output voltage based on the first offset voltage and the second offset voltage, the target output voltage is obtained. The output voltage can be compensated from both the time and temperature dimensions, thereby improving the accuracy and reliability of the target output voltage.
[0140] Sub-step 2055: If the first operating duration is greater than or equal to the third threshold, the operational amplifier is calibrated, and the second offset voltage and the first operating duration are set to zero.
[0141] In the embodiments of this application, when the operating time of the operational amplifier is greater than or equal to the third threshold, it can be considered that the accumulated second offset voltage is already in a large value range. Therefore, when the operating time of the operational amplifier is greater than or equal to the third threshold, the operational amplifier can be calibrated. After calibration, the second offset voltage and the operating time of the operational amplifier are set to zero.
[0142] In the embodiments of this application, by calibrating the operational amplifier when the operating time is greater than or equal to the third threshold and setting the second offset voltage and the first operating time to zero, the operational amplifier can be calibrated in a timely manner, avoiding serious consequences that may be caused by excessive output voltage deviation, and improving the stability of the circuit where the operational amplifier is located.
[0143] Sub-step 2056: Determine the second drift voltage of the power supply of the circuit containing the operational amplifier.
[0144] In the embodiments of this application, a second drift voltage of the power supply to the circuit containing the operational amplifier can be determined. Related implementation details can be found in the embodiment of sub-step 2023, and will not be repeated here.
[0145] Sub-step 2057: The output voltage is compensated based on the second drift voltage and the first offset voltage to obtain the target output voltage.
[0146] In the embodiments of this application, after determining the second drift voltage of the power supply to the circuit containing the operational amplifier, the output voltage can be compensated based on the second drift voltage and the first offset voltage to obtain the target output voltage. Due to the characteristics of the power supply itself, the direction of the second drift voltage is not easily determined; therefore, the absolute value of the second drift voltage can be used for compensation. Similar to the aforementioned embodiments, the directions of the first offset voltage and the output voltage can be considered, and either the first offset voltage or the output voltage direction can be determined as the reference direction.
[0147] In the embodiments of this application, by determining the second drift voltage of the power supply of the circuit where the operational amplifier is located, and compensating the output voltage based on the second drift voltage and the first offset voltage, the target output voltage is obtained. The output voltage can be compensated according to the drift voltage generated by the power supply and the first offset voltage, thereby improving the accuracy and reliability of the target output voltage.
[0148] like Figure 5 As shown, Figure 5 This application provides a logic block diagram of a voltage compensation device 500, which may include: The acquisition module 501 is used to acquire the first ambient temperature of the operational amplifier; The first determining module 502 is used to determine the first temperature of the operational amplifier based on the first ambient temperature. The second determining module 503 is used to determine the first offset voltage of the operational amplifier based on the first temperature; The compensation module 504 is used to compensate the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage.
[0149] Optionally, the first determining module 502 includes: A first determining submodule is used to determine a second temperature of the operational amplifier based on the first ambient temperature. The correction submodule is used to correct the second temperature to obtain the first temperature.
[0150] Optionally, the first determining submodule includes: The first determining unit is used to determine the first power of the operational amplifier; The second determining unit is used to determine the first rise temperature of the operational amplifier relative to the first ambient temperature based on the first power. The third determining unit is used to determine the second temperature of the operational amplifier based on the first ambient temperature and the first rising temperature.
[0151] Optionally, the third determining unit includes: The first acquisition subunit is used to acquire a first correspondence between the rise temperature of the operational amplifier and the operating power of the operational amplifier; The first determining subunit is used to determine the first rising temperature based on the first correspondence and the first power.
[0152] Optionally, the first determining module 502 includes: The second determining submodule is used to determine the first drift voltage of the power supply of the circuit where the operational amplifier is located; The third determining submodule determines the first temperature of the operational amplifier when the first drift voltage is less than or equal to the first threshold.
[0153] Optionally, the correction submodule includes: The fourth determining unit is used to determine the second correspondence between the junction temperature and time of the operational amplifier; The fifth determining unit is used to determine the first error of the second temperature based on the second correspondence. The correction unit is used to correct the second temperature based on the first error to obtain the first temperature.
[0154] Optionally, the correction unit includes: The second acquisition subunit is used to acquire the acquisition timestamp and temperature acquisition delay of the second temperature; The second determining subunit is used to determine the first temperature corresponding to the acquisition timestamp based on the temperature acquisition delay and the first error.
[0155] Optionally, the second determining module 503 includes: The fourth determining submodule is used to determine the first temperature drift coefficient of the operational amplifier based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature; The fifth determining submodule is used to determine the first offset voltage based on the first temperature and the first temperature drift coefficient.
[0156] Optionally, the fourth determining submodule includes: The acquisition unit is used to acquire the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature; The sixth determining unit is used to determine the first temperature drift coefficient based on the first temperature and the third correspondence.
[0157] Optionally, the compensation module 504 includes: The calculation submodule is used to calculate the difference between the output voltage and the first offset voltage when the operational amplifier is in voltage follower mode, so as to obtain the target output voltage; The first compensation submodule is used to obtain the voltage gain of the operational amplifier and compensate the output voltage based on the voltage gain and the first offset voltage when the operational amplifier is in voltage amplification operation state, so as to obtain the target output voltage.
[0158] Optionally, the compensation module 504 includes: The sixth determining submodule is used to determine the voltage amplification factor of the operational amplifier based on the voltage gain; The seventh determining submodule is used to determine the compensation value of the output voltage based on the voltage amplification factor and the first offset voltage; The second compensation submodule is used to compensate the output voltage based on the compensation value to obtain the target output voltage.
[0159] Optionally, the compensation module 504 includes: The eighth determining submodule is used to determine the second offset voltage of the operational amplifier; The third compensation submodule is used to compensate the output voltage based on the first offset voltage and the second offset voltage to obtain the target output voltage.
[0160] Optionally, the eighth determining submodule includes: The seventh determining unit is used to determine the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier; The eighth determining unit is used to determine the second offset voltage of the operational amplifier based on the time drift coefficient and the first operating duration.
[0161] Optionally, the third compensation submodule includes: The ninth determining unit is used to determine the first cumulative value of the second offset voltage based on the first operating duration and the time drift coefficient; The compensation unit is used to compensate the output voltage based on the first accumulated value and the first offset voltage when the first accumulated value is greater than or equal to the second threshold, so as to obtain the target output voltage.
[0162] Optionally, the device 500 further includes: The calibration module is used to calibrate the operational amplifier when the first operating duration is greater than or equal to a third threshold, and to set the second offset voltage and the first operating duration to zero.
[0163] Optionally, the compensation module 504 includes: The ninth determining submodule is used to determine the second drift voltage of the power supply of the circuit where the operational amplifier is located; The fourth compensation submodule is used to compensate the output voltage based on the second drift voltage and the first offset voltage to obtain the target output voltage.
[0164] In summary, the voltage compensation device provided in this application includes: an acquisition module for acquiring a first ambient temperature of an operational amplifier; a first determination module for determining a first temperature of the operational amplifier based on the first ambient temperature; a second determination module for determining a first offset voltage of the operational amplifier based on the first temperature; and a compensation module for compensating the output voltage of the operational amplifier based on the first offset voltage to obtain a target output voltage. The temperature of the operational amplifier can be determined by its ambient temperature, and thus the offset voltage generated by the operational amplifier can be determined based on its temperature. Furthermore, the device can use corresponding offset voltages for compensation when the operational amplifier is at different temperatures, which helps improve the voltage compensation effect and enhances the accuracy of the operational amplifier's output voltage.
[0165] The voltage compensation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a GPU BOX, mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0166] The voltage compensation device in this application embodiment can be a device with an operating system. This operating system can be Android, Linux, Windows, or other possible operating systems; this application embodiment does not specifically limit it.
[0167] The voltage compensation device provided in this application embodiment can achieve... Figure 1 , Figure 2 as well as Figure 4 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0168] Optional, such as Figure 6 As shown, this application embodiment also provides an electronic device M00, including a processor M01 and a memory M02. The memory M02 stores a program or instructions that can run on the processor M01. When the program or instructions are executed by the processor M01, they implement the various steps of the voltage compensation method embodiment described above and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0169] In embodiments of this application, the memory M02 can be used to store software programs and various data. The memory M02 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory M02 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory M02 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0170] The processor M01 may include one or more processing units; optionally, the processor M01 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor M01.
[0171] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the voltage compensation method embodiments described above and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0172] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0173] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described voltage compensation method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0174] It should be understood that the chip involved in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0175] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the voltage compensation method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0176] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0177] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0178] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A voltage compensation method, characterized in that, The method includes: Obtain the first ambient temperature of the operational amplifier; The first temperature of the operational amplifier is determined based on the first ambient temperature. The first offset voltage of the operational amplifier is determined based on the first temperature; The output voltage of the operational amplifier is compensated based on the first offset voltage to obtain the target output voltage; Determining the first temperature of the operational amplifier based on the first ambient temperature includes: determining a second temperature of the operational amplifier based on the first ambient temperature; and correcting the second temperature to obtain the first temperature. Determining the second temperature of the operational amplifier based on the first ambient temperature includes: determining the first power of the operational amplifier; determining the first temperature rise of the operational amplifier relative to the first ambient temperature based on the first power; and determining the second temperature of the operational amplifier based on the first ambient temperature and the first temperature rise. Determining the first offset voltage of the operational amplifier based on the first temperature includes: determining a first temperature drift coefficient of the operational amplifier based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature; and determining the first offset voltage based on the first temperature and the first temperature drift coefficient.
2. The method according to claim 1, characterized in that, Determining the first temperature rise of the operational amplifier relative to the first ambient temperature based on the first power includes: Obtain a first correspondence between the rise temperature of the operational amplifier and the operating power of the operational amplifier; The first rising temperature is determined based on the first correspondence and the first power.
3. The method according to claim 1, characterized in that, Determining the first temperature of the operational amplifier based on the first ambient temperature includes: Determine the first drift voltage of the power supply of the circuit containing the operational amplifier; When the first drift voltage is less than or equal to the first threshold, the first temperature of the operational amplifier is determined.
4. The method according to claim 1, characterized in that, The step of correcting the second temperature to obtain the first temperature includes: Determine a second correspondence between the junction temperature and time of the operational amplifier; Based on the second correspondence, the first error of the second temperature is determined; The second temperature is corrected based on the first error to obtain the first temperature.
5. The method according to claim 4, characterized in that, The step of correcting the second temperature based on the first error to obtain the first temperature includes: Obtain the acquisition timestamp and temperature acquisition delay of the second temperature; The first temperature corresponding to the acquisition timestamp is determined based on the temperature acquisition delay and the first error.
6. The method according to claim 1, characterized in that, Determining the first temperature drift coefficient of the operational amplifier based on the first temperature includes: Obtain the third correspondence between the temperature drift coefficient of the operational amplifier and the first temperature; The first temperature drift coefficient is determined based on the first temperature and the third correspondence.
7. The method according to claim 1, characterized in that, The step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: When the operational amplifier is in voltage follower mode, the difference between the output voltage and the first offset voltage is calculated to obtain the target output voltage; When the operational amplifier is in voltage amplification mode, the voltage gain of the operational amplifier is obtained, and the output voltage is compensated based on the voltage gain and the first offset voltage to obtain the target output voltage.
8. The method according to claim 7, characterized in that, The step of compensating the output voltage based on the voltage gain and the first offset voltage to obtain the target output voltage includes: The voltage gain of the operational amplifier is determined based on the voltage gain. The compensation value of the output voltage is determined based on the voltage amplification factor and the first offset voltage; The output voltage is compensated based on the compensation value to obtain the target output voltage.
9. The method according to claim 1, characterized in that, The step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: Determine the second offset voltage of the operational amplifier; The output voltage is compensated based on the first offset voltage and the second offset voltage to obtain the target output voltage.
10. The method according to claim 9, characterized in that, Determining the second offset voltage of the operational amplifier includes: Determine the first operating duration of the operational amplifier and the time drift coefficient of the operational amplifier; the time drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the operating duration of the operational amplifier; The second offset voltage of the operational amplifier is determined based on the time drift coefficient and the first operating duration.
11. The method according to claim 10, characterized in that, The step of compensating the output voltage based on the first offset voltage and the second offset voltage to obtain the target output voltage includes: The first cumulative value of the second offset voltage is determined based on the first operating duration and the time drift coefficient; If the first accumulated value is greater than or equal to the second threshold, the output voltage is compensated based on the first accumulated value and the first offset voltage to obtain the target output voltage.
12. The method according to claim 10, characterized in that, The method further includes: If the first operating duration is greater than or equal to the third threshold, the operational amplifier is calibrated, and the second offset voltage and the first operating duration are set to zero.
13. The method according to claim 1, characterized in that, The step of compensating the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage includes: Determine the second drift voltage of the power supply of the circuit containing the operational amplifier; The output voltage is compensated based on the second drift voltage and the first offset voltage to obtain the target output voltage.
14. A voltage compensation device, characterized in that, The device includes: The acquisition module acquires the first ambient temperature of the operational amplifier; The first determining module is used to determine the first temperature of the operational amplifier based on the first ambient temperature. The second determining module is used to determine the first offset voltage of the operational amplifier based on the first temperature; The compensation module is used to compensate the output voltage of the operational amplifier based on the first offset voltage to obtain the target output voltage; Determining the first temperature of the operational amplifier based on the first ambient temperature includes: determining a second temperature of the operational amplifier based on the first ambient temperature; and correcting the second temperature to obtain the first temperature. Determining the second temperature of the operational amplifier based on the first ambient temperature includes: determining the first power of the operational amplifier; determining the first temperature rise of the operational amplifier relative to the first ambient temperature based on the first power; and determining the second temperature of the operational amplifier based on the first ambient temperature and the first temperature rise. Determining the first offset voltage of the operational amplifier based on the first temperature includes: determining a first temperature drift coefficient of the operational amplifier based on the first temperature; the first temperature drift coefficient represents the ratio of the input offset voltage of the operational amplifier to the first temperature; and determining the first offset voltage based on the first temperature and the first temperature drift coefficient.
15. An electronic device, characterized in that, Includes the voltage compensation device as described in claim 14, used to implement the voltage compensation method as described in any one of claims 1 to 13.
16. A storage medium, characterized in that, The storage medium stores a program or instructions, which, when executed by a processor, implement the voltage compensation method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Low-noise preamplifier and noise optimization method
CN106603018A
AD converter error calibration method and device, controller and servo driver
CN113422606A