[go: up one dir, main page]

CN116743172B - Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method - Google Patents

Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method Download PDF

Info

Publication number
CN116743172B
CN116743172B CN202310803001.9A CN202310803001A CN116743172B CN 116743172 B CN116743172 B CN 116743172B CN 202310803001 A CN202310803001 A CN 202310803001A CN 116743172 B CN116743172 B CN 116743172B
Authority
CN
China
Prior art keywords
voltage
bias
sampling
analog
digital converter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310803001.9A
Other languages
Chinese (zh)
Other versions
CN116743172A (en
Inventor
申明伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hexin Technology Co ltd
Beijing Hexin Digital Technology Co ltd
Original Assignee
Hexin Technology Co ltd
Beijing Hexin Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hexin Technology Co ltd, Beijing Hexin Digital Technology Co ltd filed Critical Hexin Technology Co ltd
Priority to CN202310803001.9A priority Critical patent/CN116743172B/en
Publication of CN116743172A publication Critical patent/CN116743172A/en
Application granted granted Critical
Publication of CN116743172B publication Critical patent/CN116743172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention discloses an analog-to-digital converter sampling bias circuit and an analog-to-digital converter sampling method, wherein the circuit comprises a voltage bias module, a floating voltage generation module and a sampling control module which are sequentially connected in a ring shape; the voltage bias module is used for biasing the voltage to be sampled to generate bias voltage and sending bias signals corresponding to the bias voltage to the sampling control module; the floating voltage generation module is used for generating a floating voltage based on the voltage to be sampled and the bias voltage so that the voltage value of the floating voltage is within the sampling range of the analog-to-digital converter; the sampling control module is used for obtaining the sampling voltage obtained after the analog-to-digital converter collects the floating voltage, and obtaining the voltage value of the voltage to be sampled based on the bias signal and the sampling voltage. According to the invention, the basic voltage in the voltage to be sampled is removed by setting the bias voltage, and only the variation range is sampled, so that the sampling precision and resolution of the analog-digital converter are greatly improved.

Description

模数转换器采样偏置电路以及模数转换器采样方法Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method

技术领域Technical field

本发明涉及模数转换器采集技术领域,尤其涉及一种模数转换器采样偏置电路以及模数转换器采样方法。The present invention relates to the technical field of analog-to-digital converter acquisition, and in particular to an analog-to-digital converter sampling bias circuit and an analog-to-digital converter sampling method.

背景技术Background technique

传统服务器系统内的基板管理器芯片(Baseboard Management Controller,BMC)芯片内通常均会设置数模转换器(Analog-to-Digital Converter,ADC)管脚,以用于采集电压信号。服务器通常会利用数模转换器管脚去监控主板内部的供电情况,如P12V、P5V、P3.3V等电源轨的电压。这些电源轨在正常工作时允许有10%的误差范围,为了保证系统正常工作和后期调试方便,需对其电源轨等的正常工作电压进行监控和记录。The Baseboard Management Controller (BMC) chip in a traditional server system usually has an Analog-to-Digital Converter (ADC) pin in it for collecting voltage signals. Servers usually use digital-to-analog converter pins to monitor the power supply inside the motherboard, such as the voltage of power rails such as P12V, P5V, and P3.3V. These power rails are allowed to have an error range of 10% during normal operation. In order to ensure the normal operation of the system and facilitate later debugging, the normal operating voltage of the power rails, etc., needs to be monitored and recorded.

通常数模转换器的采样范围较小(一般是0V~3.3V),对于变化范围在数模转换器采样范围的信号,数模转换器可以直接进行采样,但当需要采样变化的信号超过数模转换器常规采样范围时,需要通过电阻分压的方式对待采集电压进行等比例缩小,以至符合数模转换器采样变化范围。例如当需要采样一个12V的工作电压时,需要通过电阻将其等比例分压至3.3V左右。Generally, the sampling range of the digital-to-analog converter is small (usually 0V ~ 3.3V). For signals whose variation range is within the sampling range of the digital-to-analog converter, the digital-to-analog converter can directly sample. However, when the signal that needs to be sampled and changed exceeds the digital-to-analog converter sampling range, When the analog-to-analog converter has a normal sampling range, the voltage to be collected needs to be proportionally reduced by resistor voltage division, so as to comply with the sampling variation range of the digital-to-analog converter. For example, when a 12V working voltage needs to be sampled, it needs to be divided into equal proportions to about 3.3V through resistors.

现有电阻分压方式进行电压采样时的电压变化范围较小,但基础电压比较高,数模转换器在采样时往往不能充分利用数模转换器可采样的量程,使得数模转换器在采样时存在精度较低的问题。The voltage variation range of the existing resistor dividing method for voltage sampling is small, but the basic voltage is relatively high. The digital-to-analog converter often cannot make full use of the sampling range of the digital-to-analog converter when sampling, causing the digital-to-analog converter to fail in sampling. There is a problem of low accuracy.

发明内容Contents of the invention

本发明所要解决的技术问题是现有数模转换器的高压采集方式存在电压变化范围较小,采样时无法充分利用数模转换器可采样量程,使得数模转换器在采样时存在精度较低的问题。The technical problem to be solved by the present invention is that the high-voltage acquisition method of the existing digital-to-analog converter has a small voltage variation range, and the sampling range of the digital-to-analog converter cannot be fully utilized during sampling, so that the digital-to-analog converter has low accuracy during sampling. The problem.

为了解决上述技术问题,本发明提供了一种模数转换器采样偏置电路,其特征在于,包括环形依次连接的电压偏置模块、浮动电压生成模块和采样控制模块;In order to solve the above technical problems, the present invention provides an analog-to-digital converter sampling bias circuit, which is characterized in that it includes a voltage bias module, a floating voltage generation module and a sampling control module connected in sequence in a ring;

所述电压偏置模块,用于对待采样电压进行偏置生成偏置电压,并向所述采样控制模块发送与所述偏置电压对应的偏置信号;The voltage bias module is used to bias the voltage to be sampled to generate a bias voltage, and send a bias signal corresponding to the bias voltage to the sampling control module;

所述浮动电压生成模块,用于基于所述待采样电压和所述偏置电压生成浮动电压,以使得所述浮动电压压值在模数转换器采样范围内;The floating voltage generation module is configured to generate a floating voltage based on the voltage to be sampled and the bias voltage, so that the floating voltage value is within the sampling range of the analog-to-digital converter;

所述采样控制模块,用于获取所述模数转换器采集所述浮动电压后得到的采样电压,并基于所述偏置信号和所述采样电压获取所述待采样电压的压值。本发明模数转换器采样偏置电路,通过设置偏置电压形式除去待采样电压中的基本电压,只对浮动电压进行采样,大幅度的提升了模数转换器的采样精度和分辨率。The sampling control module is used to obtain the sampling voltage obtained after the analog-to-digital converter collects the floating voltage, and obtain the voltage value of the voltage to be sampled based on the bias signal and the sampling voltage. The analog-to-digital converter sampling bias circuit of the present invention removes the basic voltage in the voltage to be sampled by setting the bias voltage and only samples the floating voltage, which greatly improves the sampling accuracy and resolution of the analog-to-digital converter.

优选地,所述电压偏置模块包括连接的偏置触发单元和电压偏置单元;Preferably, the voltage bias module includes a connected bias trigger unit and a voltage bias unit;

所述偏置触发单元,用于基于位于不同阈值范围内的所述待采样电压,为所述电压偏置单元提供不同的偏置参量;The bias triggering unit is configured to provide different bias parameters for the voltage bias unit based on the voltage to be sampled within different threshold ranges;

所述电压偏置单元,用于基于不同的偏置参量生成不同压值的偏置电压。通过偏置触发单元实现将待采样电压进行分级操作,使得属于不同阈值范围内的待采样电压对应不同的偏置参量。通过电压偏置单元实现基于不同偏置参量提供不同的偏置电压,进而实现为不同阈值范围内的待采样电压提供不同的偏置电压的目的。The voltage bias unit is used to generate bias voltages of different voltage values based on different bias parameters. The bias triggering unit implements a hierarchical operation on the voltage to be sampled, so that the voltage to be sampled within different threshold ranges corresponds to different bias parameters. The voltage bias unit is used to provide different bias voltages based on different bias parameters, thereby achieving the purpose of providing different bias voltages for voltages to be sampled in different threshold ranges.

优选地,所述偏置触发单元包括基础电阻以及并联于所述基础电阻两端的至少一组偏置组件;Preferably, the bias triggering unit includes a base resistor and at least one set of bias components connected in parallel to both ends of the base resistor;

所述偏置组件包括串联连接的偏置电阻和偏置控制开关,以及与所述偏置控制开关连接的触发开关,所述触发开关用于基于所述待采样电压控制所述偏置控制开关的开启与闭合;所述偏置控制开关用于控制是否将所述偏置电阻并联于所述基础电阻两端;The bias component includes a bias resistor and a bias control switch connected in series, and a trigger switch connected to the bias control switch. The trigger switch is used to control the bias control switch based on the voltage to be sampled. opening and closing; the bias control switch is used to control whether to connect the bias resistor in parallel to both ends of the basic resistor;

其中,不同偏置组件中的触发开关具有不同的触发压值。通过上述电子元件及连接关系的设计,实现了对待采样电压进行多级不同阈值范围的控制。Among them, the trigger switches in different bias components have different trigger voltage values. Through the design of the above-mentioned electronic components and connection relationships, multi-level control of different threshold ranges of the voltage to be sampled is achieved.

优选地,所述触发开关为稳压二极管,所述偏置控制开关为NMOS管。稳压二极管可确保电压的稳定性,NMOS管起到准确地电压控制开关作用。Preferably, the trigger switch is a Zener diode, and the bias control switch is an NMOS transistor. The Zener diode can ensure the stability of the voltage, and the NMOS tube plays the role of accurate voltage control switching.

优选地,所述电压偏置单元包括三端可调并联稳压器、并联于所述三端可调并联稳压器阴极与参考端之间的第一电阻,以及与所述三端可调并联稳压器阴极连接的第二电阻,所述基础电阻并联于所述三端可调并联稳压器阳极与参考端之间,所述待采样电压通过所述第二电阻输入所述三端可调并联稳压器阴极。电压偏置单元通过上述简单的电路结构即实现了电压偏置功能,节约了成本。Preferably, the voltage bias unit includes a three-terminal adjustable shunt regulator, a first resistor connected in parallel between the cathode and the reference terminal of the three-terminal adjustable shunt regulator, and a resistor connected to the three-terminal adjustable shunt regulator. A second resistor connected to the cathode of the shunt regulator. The basic resistor is connected in parallel between the anode and the reference terminal of the three-terminal adjustable shunt regulator. The voltage to be sampled is input to the three terminals through the second resistor. Adjustable shunt regulator cathode. The voltage bias unit realizes the voltage bias function through the above-mentioned simple circuit structure, saving costs.

优选地,所述浮动电压生成模块包括差分放大电路,所述差分放大电路正相输入端输入所述待采样电压,所述差分运算放大电路反相输入端输入所述偏置电压,所述差分放大电路输出端输出浮动电压。浮动电压生成模块实现对浮动电压和偏置电压的放大,实现将浮动电压控制在一定范围内,进而满足模数转换器的采样要求。Preferably, the floating voltage generation module includes a differential amplifier circuit, the non-inverting input terminal of the differential amplifier circuit inputs the voltage to be sampled, the inverting input terminal of the differential operational amplifier circuit inputs the bias voltage, and the differential amplifier circuit inputs the bias voltage to the inverting input terminal. The output terminal of the amplifier circuit outputs a floating voltage. The floating voltage generation module amplifies the floating voltage and bias voltage, and controls the floating voltage within a certain range to meet the sampling requirements of the analog-to-digital converter.

优选地,所述差分放大电路的正相放大系数和反相放大系数等同。上述放大系数的设置实现了浮动电压和偏置电压等比例放大的效果。Preferably, the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are equal. The above setting of the amplification coefficient achieves the effect of proportional amplification of the floating voltage and the bias voltage.

优选地,当所述差分放大电路的正相放大系数和反相放大系数均为1时,所述待采样电压的压值为所述偏置电压和所述采样电压之和。上述放大系数的设置实现了浮动电压和偏置电压等比例放大效果,且更加便于计算待采样电压的压值。为了解决上述技术问题,本发明还提供了一种基于所述模数转换器采样偏置电路的模数转换器采样方法,包括:Preferably, when the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are both 1, the voltage value of the voltage to be sampled is the sum of the bias voltage and the sampling voltage. The above setting of the amplification coefficient achieves the proportional amplification effect of the floating voltage and the bias voltage, and makes it easier to calculate the voltage value of the voltage to be sampled. In order to solve the above technical problems, the present invention also provides an analog-to-digital converter sampling method based on the analog-to-digital converter sampling bias circuit, including:

将待采样电压输入模数转换器采样偏置电路中;Input the voltage to be sampled into the analog-to-digital converter sampling bias circuit;

模数转换器对所述模数转换器采样偏置电路中的浮动电压生成模块输出的浮动电压进行采集,获取采样电压,并将所述采样电压输入所述模数转换器采样偏置电路中的采样控制模块;The analog-to-digital converter collects the floating voltage output by the floating voltage generation module in the analog-to-digital converter sampling bias circuit, obtains the sampling voltage, and inputs the sampling voltage into the analog-to-digital converter sampling bias circuit. Sampling control module;

所述采样控制模块输出所述待采样电压的压值。The sampling control module outputs the voltage value of the voltage to be sampled.

优选地,当所述模数转换器采样偏置电路的浮动电压生成模块中的运算放大电路,其正相放大系数和反相放大系数均为1时,所述待采样电压的压值为模数转换器采样偏置电路的电压偏置模块生成的偏置电压与所述采样电压之和。本发明模数转换器采样方法,通过设置偏置电压形式除去待采样电压中的基本电压,只对浮动电压进行采样,大幅度的提升了模数转换器的采样精度和分辨率。Preferably, when the operational amplifier circuit in the floating voltage generation module of the analog-to-digital converter sampling bias circuit has both a positive-phase amplification coefficient and an inverse-phase amplification coefficient of 1, the voltage value of the voltage to be sampled is The sum of the bias voltage generated by the voltage bias module of the digital converter sampling bias circuit and the sampling voltage. The analog-to-digital converter sampling method of the present invention removes the basic voltage in the voltage to be sampled by setting a bias voltage and only samples the floating voltage, which greatly improves the sampling accuracy and resolution of the analog-to-digital converter.

与现有技术相比,上述方案中的一个或多个实施例可以具有如下优点或有益效果:Compared with the existing technology, one or more embodiments of the above solutions may have the following advantages or beneficial effects:

应用本发明实施例提供的模数转换器采样偏置电路,通过电压偏置模块获取与待采样电压对应的偏置电压,通过浮动电压生成模块将待采样电压限制在模数转换器采样范围内,使得模数转换器仅采集到浮动电压压值,基于浮动电压压值与偏置电压即可获取待采样电压的压值,解决现有模数转换器对采样范围之外的电压进行采集时存在的电压变化范围小,精度较低的问题,扩大模数转换器的采样覆盖率。进一步即通过设置偏置电压形式除去待采样电压中的基本电压,只对变化范围进行采样,大幅度的提升了模数转换器的采样精度和分辨率。除此外,本方案具有多个偏置电压可调、输出范围放大等优点。The analog-to-digital converter sampling bias circuit provided by the embodiment of the present invention is used to obtain the bias voltage corresponding to the voltage to be sampled through the voltage bias module, and the floating voltage generation module limits the voltage to be sampled within the sampling range of the analog-to-digital converter. , so that the analog-to-digital converter only collects the floating voltage value, and the voltage value to be sampled can be obtained based on the floating voltage value and the bias voltage, which solves the problem when the existing analog-to-digital converter collects voltages outside the sampling range. The existing problems of small voltage variation range and low accuracy need to expand the sampling coverage of the analog-to-digital converter. Furthermore, the basic voltage in the voltage to be sampled is removed by setting the bias voltage, and only the variation range is sampled, which greatly improves the sampling accuracy and resolution of the analog-to-digital converter. In addition, this solution has the advantages of multiple adjustable bias voltages and output range amplification.

本发明的其它特征和优点将在随后的说明书中阐述,并且部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and obtained by the structure particularly pointed out in the written description, claims and appended drawings.

附图说明Description of the drawings

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例共同用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the present invention and do not constitute a limitation of the present invention. In the attached picture:

图1示出了本发明实施例一模数转换器采样偏置电路的结构示意图;Figure 1 shows a schematic structural diagram of an analog-to-digital converter sampling bias circuit according to an embodiment of the present invention;

图2示出了本发明实施例一中电压偏置模块和浮动电压生成模块的电路图;Figure 2 shows the circuit diagram of the voltage bias module and the floating voltage generation module in Embodiment 1 of the present invention;

图3示出了本发明实施例二模数转换器采样方法的流程示意图。FIG. 3 shows a schematic flow chart of the analog-to-digital converter sampling method in Embodiment 2 of the present invention.

具体实施方式Detailed ways

以下将结合附图及实施例来详细说明本发明的实施方式,借此对本发明如何应用技术手段来解决技术问题,并达成技术效果的实现过程能充分理解并据以实施。需要说明的是,只要不构成冲突,本发明中的各个实施例以及各实施例中的各个特征可以相互结合,所形成的技术方案均在本发明的保护范围之内。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples, so that the implementation process of how to apply technical means to solve technical problems and achieve technical effects of the present invention can be fully understood and implemented accordingly. It should be noted that as long as there is no conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other, and the resulting technical solutions are within the protection scope of the present invention.

在模数转换器设计过程中,主要考虑的是模数转换器的采样范围和模数转换器采样精度。模数转换器采样范围是模数转换器管脚允许输入电压的变化的范围,一般是0V~3.3V;其中模数转换器的采样精度通常为10位(2^10)采样精度或者12位(2^12)采样精度,根据采样精度可以计算模数转换器的分辨率:分辨率=采样范围/采样精度。In the design process of the analog-to-digital converter, the main considerations are the sampling range of the analog-to-digital converter and the sampling accuracy of the analog-to-digital converter. The sampling range of the analog-to-digital converter is the range within which the input voltage of the analog-to-digital converter pin is allowed to change, generally 0V to 3.3V; the sampling accuracy of the analog-to-digital converter is usually 10-bit (2^10) sampling accuracy or 12-bit (2^12) Sampling accuracy. According to the sampling accuracy, the resolution of the analog-to-digital converter can be calculated: resolution = sampling range/sampling accuracy.

在模数转换器采样范围在0V~3.3V情况下,当采用电阻分压方式测量12V工作电压时,根据电阻分压公式可将输入电压12V分压至3V,分压系数为4。分压前的变化范围为10.8V~13.2V,分压后的变化范围为2.7V~3.3V。其只利用到采样范围的18%,并没有完全发挥模数转换器的全部性能。When the analog-to-digital converter sampling range is between 0V and 3.3V, when the resistor dividing method is used to measure the 12V working voltage, the input voltage 12V can be divided to 3V according to the resistor dividing formula, and the voltage dividing factor is 4. The changing range before voltage division is 10.8V~13.2V, and the changing range after voltage division is 2.7V~3.3V. It only utilizes 18% of the sampling range and does not fully utilize the full performance of the analog-to-digital converter.

实施例一Embodiment 1

为解决现有技术中存在的技术问题,本发明实施例提供了一种模数转换器采样偏置电路。In order to solve the technical problems existing in the prior art, embodiments of the present invention provide an analog-to-digital converter sampling bias circuit.

图1示出了本发明实施例一模数转换器采样偏置电路的结构示意图;参考图1所示,本发明实施例模数转换器采样偏置电路包括依次连接的电压偏置模块、浮动电压生成模块和采样控制模块,采样控制模块还与电压偏置模块连接,三个模块形成环形连接结构。Figure 1 shows a schematic structural diagram of an analog-to-digital converter sampling bias circuit according to an embodiment of the present invention; with reference to Figure 1, the analog-to-digital converter sampling bias circuit according to the embodiment of the present invention includes voltage bias modules, floating The voltage generation module and the sampling control module are also connected to the voltage bias module, and the three modules form a ring connection structure.

本发明实施例模数转换器采样偏置电路主要用于协助模数转换器,实现对超出模数转换器采样范围的高电压值进行采集。本实施中将模数转化器待进行采样的电压作为待采样电压。The analog-to-digital converter sampling bias circuit in the embodiment of the present invention is mainly used to assist the analog-to-digital converter to collect high voltage values that exceed the sampling range of the analog-to-digital converter. In this implementation, the voltage to be sampled by the analog-to-digital converter is used as the voltage to be sampled.

其中电压偏置模块主要用于对待采样电压进行偏置,以生成与其对应的偏置电压;在获取偏置电压的同时,还生成与偏置电压压值对应的偏置信号,并将偏置信号发送给采样控制模块。The voltage bias module is mainly used to bias the voltage to be sampled to generate a corresponding bias voltage; while obtaining the bias voltage, it also generates a bias signal corresponding to the bias voltage value, and The signal is sent to the sampling control module.

进一步地,电压偏置模块包括相连的偏置触发单元和电压偏置单元。Further, the voltage bias module includes a connected bias trigger unit and a voltage bias unit.

其中偏置触发单元用于基于位于不同阈值范围内的待采样电压,为电压偏置单元提供不同的偏置参量。即当待采样电压压值属于不同阈值范围内时,则会触发不同的参量控制开关,进而为电压偏置单元提供不同量值的偏置参量。The bias trigger unit is used to provide different bias parameters for the voltage bias unit based on the voltage to be sampled within different threshold ranges. That is, when the voltage values to be sampled fall within different threshold ranges, different parameter control switches will be triggered, thereby providing bias parameters of different values to the voltage bias unit.

图2示出了本发明实施例一中电压偏置模块和浮动电压生成模块的电路图;参考图2所示,偏置触发单元具体可包括基础电阻和多组偏置组件,多组偏置组件均并联于基础电阻两端。每组偏置组件除元件型号存在差异外,其内部结构均相同。Figure 2 shows a circuit diagram of the voltage bias module and the floating voltage generation module in Embodiment 1 of the present invention; with reference to Figure 2, the bias trigger unit may specifically include a basic resistor and multiple sets of bias components. The multiple sets of bias components are connected in parallel to both ends of the basic resistor. Except for differences in component models, each set of bias components has the same internal structure.

每组偏置组件均包括偏置电阻、偏置控制开关和触发开关;其中偏置电阻和偏置控制开关串联连接,偏置控制开关用于控制是否将偏置电阻并联于基础电阻两端,而触发开关则用于基于待采样电压控制偏置控制开关的开启与闭合。因此可知偏置组件主要是将待采样电压作为触发条件,通过控制是否将偏置电阻并联于基础电阻两端,实现对电压偏置模块中整体阻值的改变,进而实现多种偏置参量数值的提供。Each set of bias components includes a bias resistor, a bias control switch and a trigger switch; the bias resistor and the bias control switch are connected in series, and the bias control switch is used to control whether the bias resistor is connected in parallel to both ends of the basic resistor. The trigger switch is used to control the opening and closing of the bias control switch based on the voltage to be sampled. Therefore, it can be seen that the bias component mainly uses the voltage to be sampled as a trigger condition. By controlling whether the bias resistor is connected in parallel to both ends of the basic resistor, it can change the overall resistance value in the voltage bias module, thereby achieving various bias parameter values. provided.

为了实现对不同阈值范围内待采样电压的偏置,本实施例中设置不同偏置组件中的触发开关具有不同的触发压值。且不同阈值范围也可基于实际情况进行设置。In order to bias the voltage to be sampled in different threshold ranges, in this embodiment, the trigger switches in different bias components are set to have different trigger voltage values. And different threshold ranges can also be set based on actual conditions.

参考图2所示,触发开关可设置为稳压二极管,偏置控制开关可设置为NMOS管。此时,NMOS管的门极(Gate)与稳压二极管正极相连,NMOS管的漏极(DRAIN)与偏置电阻连接,NMOS管的源极(SOURCE)接地;稳压二极管负极与待采样电压连接;且为了确保NMOS管的启动,以及保护稳压二极管不被击穿,稳压二极管的正极与接地端之间还连接有保护电阻。Referring to Figure 2, the trigger switch can be set to a Zener diode, and the bias control switch can be set to an NMOS tube. At this time, the gate of the NMOS tube (Gate) is connected to the anode of the Zener diode, the drain (DRAIN) of the NMOS tube is connected to the bias resistor, and the source (SOURCE) of the NMOS tube is connected to ground; the cathode of the Zener diode is connected to the voltage to be sampled. connection; and in order to ensure the startup of the NMOS tube and protect the Zener diode from breakdown, a protection resistor is also connected between the anode of the Zener diode and the ground terminal.

为了实现位于不同阈值范围内的待采样电压能够触发启动不同的偏置组件,需设置本实施例不同偏置组件中的稳压二极管具有不同的触发压值。例如可将多个偏置组件中的稳压二极管的导通电压依次设置为3.3V、6.6V、9.9V、13.2V、16.5V和19.8V;进而实现了当待采样电压在3.3V至6.6V范围内,仅有一个偏置组件中的偏置电压能并联于基础电阻两端;当待采样电压在6.6V至9.9V范围内,则有两个偏置组件中的偏置电压能并联于基础电阻两端,整体降低了阻值;依次类推,即可实现针对位于不同阈值范围内的待采样电压自动调整提供不同的偏置参量。In order to realize that the voltages to be sampled within different threshold ranges can trigger different bias components, it is necessary to set the Zener diodes in different bias components in this embodiment to have different trigger voltage values. For example, the conduction voltages of the Zener diodes in multiple bias components can be set to 3.3V, 6.6V, 9.9V, 13.2V, 16.5V and 19.8V in sequence; thus, when the voltage to be sampled is between 3.3V and 6.6V Within the V range, the bias voltage in only one bias component can be connected in parallel to both ends of the basic resistor; when the voltage to be sampled is in the range of 6.6V to 9.9V, the bias voltages in two bias components can be connected in parallel. At both ends of the basic resistor, the overall resistance is reduced; and by analogy, it is possible to automatically adjust and provide different bias parameters for the voltage to be sampled within different threshold ranges.

电压偏置单元则主要用于基于偏置触发单元提供的不同偏置参量,生成不同压值的偏置电压。参考图2所示,电压偏置单元包括三端可调并联稳压器、第一电阻和第二电阻;其中第一电阻并联于三端可调并联稳压器阴极与参考端之间,偏置触发单元中的基础电阻并联于三端可调并联稳压器阳极与参考端之间,待采样电压则通过第二电阻输入三端可调并联稳压器的阴极。The voltage bias unit is mainly used to generate bias voltages of different voltages based on different bias parameters provided by the bias trigger unit. Referring to Figure 2, the voltage bias unit includes a three-terminal adjustable shunt regulator, a first resistor and a second resistor; the first resistor is connected in parallel between the cathode and the reference end of the three-terminal adjustable shunt regulator, and the bias The basic resistor in the trigger unit is connected in parallel between the anode and the reference terminal of the three-terminal adjustable shunt regulator, and the voltage to be sampled is input to the cathode of the three-terminal adjustable shunt regulator through the second resistor.

三端可调并联稳压器通过第一电阻、基础电阻与并联于其两端的偏置电阻形成的整体阻值,将输出电压设置为介于Vref(约为2.5V)和36V之间的任意值。此时偏置电压计算方式为:偏置电压=(1+第一电阻/基础电阻与并联于其两端的偏置电阻形成的整体阻值)*Vref。The three-terminal adjustable shunt regulator sets the output voltage to any value between Vref (approximately 2.5V) and 36V through the overall resistance formed by the first resistor, the base resistor and the bias resistor connected in parallel at both ends. value. At this time, the bias voltage is calculated as follows: bias voltage = (1+the overall resistance formed by the first resistor/the basic resistor and the bias resistor connected in parallel at both ends)*Vref.

为保证输出精度,本实施例所使用的第一电阻、基础电阻和偏置电阻均可选择精准的0.1%,且温漂比较小的电阻。第二电阻为限流电阻,作用为确保此器件所提供的所需基准拉电流(IREF)在开启期间保持在合适的运行区域内,基准拉电流可能会高达4μA,因此建议第二电阻采用阻值足够小的电阻,以减小基准拉电流通过VIN造成的误差。In order to ensure the output accuracy, the first resistor, the basic resistor and the bias resistor used in this embodiment can all be selected to be accurate to 0.1% and have a small temperature drift ratio. The second resistor is a current-limiting resistor, which is used to ensure that the required reference source current (IREF) provided by this device remains within the appropriate operating area during turn-on. The reference source current may be as high as 4μA, so it is recommended that the second resistor be a resistor. The value of the resistor is small enough to reduce the error caused by the reference pulling current through VIN.

浮动电压生成模块主要用于基于待采样电压和偏置电压生成浮动电压,生成的浮动电压压值需在模数转换器采样范围内,以满足模数转换器的采样要求。其工作原理是利用运算放大器构建一个减法运算电路,通过对待采样电压和偏置电压进行差分放大,实现将待采样电压中变化的范围提取出来,并将其放大到模数转换器采样范围内,以实现模数转换器仅对浮动电压进行测量即可获取超过其采样范围电压的压值。The floating voltage generation module is mainly used to generate a floating voltage based on the voltage to be sampled and the bias voltage. The generated floating voltage value needs to be within the sampling range of the analog-to-digital converter to meet the sampling requirements of the analog-to-digital converter. Its working principle is to use an operational amplifier to build a subtraction circuit. By differentially amplifying the voltage to be sampled and the bias voltage, the range of changes in the voltage to be sampled is extracted and amplified into the sampling range of the analog-to-digital converter. In order to realize that the analog-to-digital converter only measures the floating voltage to obtain the voltage value exceeding its sampling range voltage.

参考图2所示,浮动电压生成模块具体包括运算放大器U1A以及周围配置的电阻电容,运算放大器U1A以及周围配置的电阻电容构成差分放大电路(即减法运算电路)。其中差分放大电路的正相输入端输入待采样电压,差分放大电路的反相输入端输入偏置电压,差分放大电路输出端输出的即为浮动电压。进一步地,运算放大器U1A的周围配置电阻包括电阻R1、电阻R4、电阻R5和电阻R7,电阻R1、电阻R4、电阻R5和电阻R7均为反馈电阻,用于限制对应的放大系数。此时浮动电压的计算方式为:浮动电压=-(R7/R5)*偏置电压+(R1/R4)*待采样电压。在实际应用中为了达到较高的输出精度和较低的误差,上述反馈电阻均选择精度高0.1%和温漂低的电阻器。运算放大器U1A的周围配置的电容包括电容C1和电容C2,电容C1和电容C2均为去耦电容。Referring to Figure 2, the floating voltage generation module specifically includes an operational amplifier U1A and surrounding resistors and capacitors. The operational amplifier U1A and the surrounding resistors and capacitors form a differential amplification circuit (ie, a subtraction circuit). The non-inverting input terminal of the differential amplifier circuit inputs the voltage to be sampled, the inverting input terminal of the differential amplifier circuit inputs the bias voltage, and the output terminal of the differential amplifier circuit outputs a floating voltage. Further, the resistors configured around the operational amplifier U1A include resistors R1, R4, R5 and R7. The resistors R1, R4, R5 and R7 are all feedback resistors for limiting the corresponding amplification coefficient. At this time, the floating voltage is calculated as: floating voltage = -(R7/R5)*bias voltage+(R1/R4)*voltage to be sampled. In order to achieve higher output accuracy and lower error in practical applications, the above-mentioned feedback resistors are all selected with resistors with a high accuracy of 0.1% and low temperature drift. The capacitors configured around the operational amplifier U1A include capacitor C1 and capacitor C2. Both capacitor C1 and capacitor C2 are decoupling capacitors.

进一步为保证待采样电压和偏置电压之间为等比例差分,需设置差分放大电路的正相放大系数和反相放大系数等同。再进一步地,当差分放大电路的正相放大系数和反相放大系数均为1时,此时差分运算放大器输出的浮动电压的压值即为待采样电压和偏置电压之差。Furthermore, in order to ensure that the difference between the voltage to be sampled and the bias voltage is proportional, it is necessary to set the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit to be equal. Furthermore, when the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are both 1, the value of the floating voltage output by the differential operational amplifier at this time is the difference between the voltage to be sampled and the bias voltage.

采样控制模块在获取偏置电压对应的偏置信号后,还需获取模数转换器采集浮动电压后得到的采样电压。而后基于偏置信号获取对应的偏置电压,并基于偏置信号、采样电压、运算差分放大电路的放大倍数等计算获取待采样电压的压值。当差分放大电路的正相放大系数和反相放大系数均为1时,待采样电压的压值即为模数转换器采样偏置电路的电压偏置模块生成的偏置电压与采样电压之和。而假设差分放大电路的正相放大系数和反相放大系数均为1/2时,待采样电压的压值即为模数转换器采样偏置电路的电压偏置模块生成的偏置电压的两倍与采样电压的两倍之和,其中两倍的概念是放大系数1/2的倒数。After obtaining the bias signal corresponding to the bias voltage, the sampling control module also needs to obtain the sampling voltage obtained after the analog-to-digital converter collects the floating voltage. Then, the corresponding bias voltage is obtained based on the bias signal, and the voltage value of the voltage to be sampled is calculated and obtained based on the bias signal, the sampling voltage, the amplification factor of the differential amplifier circuit, etc. When the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are both 1, the voltage value of the voltage to be sampled is the sum of the bias voltage and the sampling voltage generated by the voltage bias module of the analog-to-digital converter sampling bias circuit. . Assuming that the forward amplification coefficient and the inverting amplification coefficient of the differential amplifier circuit are both 1/2, the voltage value of the voltage to be sampled is two times the bias voltage generated by the voltage bias module of the analog-to-digital converter sampling bias circuit. The sum of times and twice the sampling voltage, where the concept of twice is the reciprocal of the amplification factor 1/2.

且当差分放大电路的电路结构不为上述结构时,当差分放大电路正相输入的待采样电压与反向输入的偏置电压因差分放大电路结构或外部电路结构等原因导致两者不成比例缩减或扩大;此时可通过设置差分放大电路具有不同的正相放大系数和反相放大系数,使得差分放大电路在进行减法操作时待进行相减的正向电压与待采样电压之间成比例存在,且待进行相减的反相电压相较于偏置电压成比例存在,且两者比例相同;这样可以保证获取的浮动电压为差值电压的成比例缩放,差值电压即为待采样电压与偏置电压做差获取的电压,此时仍可基于待采样电压、偏置电压以及差分放大电路的放大倍数获取浮动电压。And when the circuit structure of the differential amplifier circuit is not the above structure, when the positive-phase input voltage of the differential amplifier circuit to be sampled and the reverse-input bias voltage are disproportionately reduced due to the differential amplifier circuit structure or external circuit structure, etc. Or expand; at this time, the differential amplifier circuit can be set to have different positive-phase amplification coefficients and inverse-phase amplification coefficients, so that the forward voltage to be subtracted and the voltage to be sampled are proportional to the differential amplifier circuit during the subtraction operation. , and the inverted voltage to be subtracted exists in proportion to the bias voltage, and the two ratios are the same; this ensures that the floating voltage obtained is a proportional scaling of the difference voltage, and the difference voltage is the voltage to be sampled The voltage obtained by differing from the bias voltage can still obtain the floating voltage based on the voltage to be sampled, the bias voltage and the amplification factor of the differential amplifier circuit.

为对本发明实施例模数转换器采样偏置电路进行更清楚的说明,以图2所示的电路图为具体例子对电压偏置模块和浮动电压生成模块工作方式进行说明。In order to explain the analog-to-digital converter sampling bias circuit more clearly according to the embodiment of the present invention, the circuit diagram shown in FIG. 2 is used as a specific example to illustrate the working methods of the voltage bias module and the floating voltage generation module.

其中,模数转换器采样偏置电路包括环形依次连接的电压偏置模块、浮动电压生成模块和采样控制模块。电压偏置模块包括连接的偏置触发单元和电压偏置单元。偏置触发单元包括基础电阻R8以及并联于基础电阻两端的6组偏置组件,每组偏置组件均包括串联连接的偏置电阻和偏置控制开关,以及与偏置控制开关连接的触发开关,触发开关为稳压二极管,偏置控制开关为NMOS管。电压偏置单元包括三端可调并联稳压器D1、并联于三端可调并联稳压器D1的阴极与参考端之间的第一电阻R6,以及与三端可调并联稳压器D1的阴极连接的第二电阻R2,基础电阻R8并联于三端可调并联稳压器阳极与参考端之间,待采样电压通过第二电阻R2输入三端可调并联稳压器D1的阴极。Among them, the analog-to-digital converter sampling bias circuit includes a voltage bias module, a floating voltage generation module and a sampling control module connected in a ring. The voltage bias module includes a connected bias trigger unit and a voltage bias unit. The bias trigger unit includes a basic resistor R8 and six groups of bias components connected in parallel to both ends of the basic resistor. Each group of bias components includes a bias resistor and a bias control switch connected in series, and a trigger switch connected to the bias control switch. , the trigger switch is a Zener diode, and the bias control switch is an NMOS tube. The voltage bias unit includes a three-terminal adjustable shunt regulator D1, a first resistor R6 connected in parallel between the cathode and the reference terminal of the three-terminal adjustable shunt regulator D1, and the three-terminal adjustable shunt regulator D1 The cathode of the second resistor R2 is connected, and the basic resistor R8 is connected in parallel between the anode and the reference terminal of the three-terminal adjustable shunt regulator. The voltage to be sampled is input to the cathode of the three-terminal adjustable shunt regulator D1 through the second resistor R2.

浮动电压生成模块包括差分放大电路U1A及其周围配置电阻R1、电阻R4、电阻R5和电阻R7等。其中电阻R4连接于差分放大电路U1A正相输入端,电阻R1连接于差分放大电路U1A正相输入端与接地端之间,电容C1并联于电阻R1两端;电阻R5连接于差分放大电路U1A反相输入端,电阻R7连接于差分放大电路U1A正相输入端与输出端之间;差分放大电路U1A的输出端还连接有电阻R3。在实际应用中为了达到较高的输出精度和较低的误差,电阻R1、电阻R4、电阻R5、电阻R7和电阻R3均应选择精度高0.1%和温漂低的电阻器。The floating voltage generation module includes a differential amplifier circuit U1A and its surrounding configurations of resistors R1, R4, R5 and R7. The resistor R4 is connected to the positive input terminal of the differential amplifier circuit U1A, the resistor R1 is connected between the positive input terminal of the differential amplifier circuit U1A and the ground terminal, the capacitor C1 is connected in parallel to both ends of the resistor R1, and the resistor R5 is connected to the reverse input terminal of the differential amplifier circuit U1A. Phase input terminal, resistor R7 is connected between the positive phase input terminal and the output terminal of the differential amplifier circuit U1A; the output terminal of the differential amplifier circuit U1A is also connected to a resistor R3. In order to achieve higher output accuracy and lower error in practical applications, resistors R1, R4, R5, R7 and R3 should all be selected with high accuracy of 0.1% and low temperature drift.

假设浮动电压为U浮,偏置电压为U3,待采样电压为Vcc,此时有如下关系式:Assume that the floating voltage is Ufloat, the bias voltage is U3, and the voltage to be sampled is Vcc. At this time, there is the following relationship:

U浮=-(R7/R5)*Vcc+(R1/R4)*U3;当R7=R5且R1=R4时,以上公式可以简化为:Ufloat=-(R7/R5)*Vcc+(R1/R4)*U3; when R7=R5 and R1=R4, the above formula can be simplified to:

U浮=Vcc–U3Ufloat=Vcc–U3

即浮动电压即为待采样电压与偏置电压之差。That is, the floating voltage is the difference between the voltage to be sampled and the bias voltage.

该电路方案中电压偏置模块的偏置触发单元内包括6组偏置组件,且6组偏置组件的触发电压分别依次为3.3V、6.6V、9.9V、13.2V、16.5V和19.8V。The bias trigger unit of the voltage bias module in this circuit scheme includes 6 sets of bias components, and the trigger voltages of the 6 sets of bias components are 3.3V, 6.6V, 9.9V, 13.2V, 16.5V and 19.8V respectively. .

基于待采样电压的压值自动调整偏置电压过程如下:The process of automatically adjusting the bias voltage based on the voltage value of the voltage to be sampled is as follows:

当待采样电压超过3.3V且低于6.6V时:稳压二极管D7导通,NMOS管Q6的门极管脚电平由0变高电平,NMOS管Q6导通,偏置电阻R14和基础电阻R8并联后与第一电阻R6构成分压,此时三端可调并联稳压器D1为主的稳压电路提供3.3V的偏置电压;于此同时OFFSET_3V3偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 3.3V and is lower than 6.6V: Zener diode D7 turns on, the gate pin level of NMOS tube Q6 changes from 0 to high level, NMOS tube Q6 turns on, bias resistor R14 and basic Resistor R8 is connected in parallel to form a voltage divider with the first resistor R6. At this time, the three-terminal adjustable parallel regulator D1 provides a bias voltage of 3.3V for the voltage stabilizing circuit; at the same time, the OFFSET_3V3 bias signal changes from the default 0 It is a high level for the sampling control module to read and judge.

当待采样电压超过6.6V且低于9.9V时:稳压二极管D6和D7导通,NMOS管Q5和Q6的门极管脚电平由0变高电平,NMOS管Q5和Q6导通,偏置电阻R14、偏置电阻R13和基础电阻R8并联后与第一电阻R6构成分压,此时三端可调并联稳压器D1为主的稳压电路提供6.6V的偏置电压;于此同时OFFSET_6.6V偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 6.6V and is lower than 9.9V: Zener diodes D6 and D7 are turned on, the gate pin levels of NMOS tubes Q5 and Q6 change from 0 to high level, and NMOS tubes Q5 and Q6 are turned on. The bias resistor R14, the bias resistor R13 and the basic resistor R8 are connected in parallel to form a voltage divider with the first resistor R6. At this time, the three-terminal adjustable shunt regulator D1 provides a bias voltage of 6.6V for the voltage stabilizing circuit; At the same time, the OFFSET_6.6V bias signal changes from the default 0 to high level for the sampling control module to read and judge.

当待采样电压超过9.9V且低于13.2V时:稳压管D5、D6、D7导通,NMOS管Q6、Q5、Q4的门极管脚电平由0变高电平,NMOS管Q6、Q5、Q4导通,R8与R14、R13、R12并联后与R6构成分压,此时D1为主的稳压电路提供9.9V的偏置电压;于此同时OFFSET_9V9偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 9.9V and is lower than 13.2V: the voltage regulator tubes D5, D6, and D7 are turned on, and the gate pin levels of the NMOS tubes Q6, Q5, and Q4 change from 0 to high level, and the NMOS tubes Q6, Q5 and Q4 are turned on, and R8 is connected in parallel with R14, R13, and R12 to form a voltage divider with R6. At this time, the voltage stabilizing circuit dominated by D1 provides a bias voltage of 9.9V; at the same time, the OFFSET_9V9 bias signal changes from the default 0 It is a high level for the sampling control module to read and judge.

当待采样电压超过13.2V且低于16.5V时:稳压二极管D4、D5、D6和D7导通,NMOS管Q3、Q4、Q5和Q6的门极管脚电平由0变高电平,NMOS管Q3、Q4、Q5和Q6导通,偏置电阻R14、偏置电阻R13、偏置电阻R12、偏置电阻R11和基础电阻R8并联后与第一电阻R6构成分压,此时三端可调并联稳压器D1为主的稳压电路提供13.2V的偏置电压;于此同时OFFSET_13.2V偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 13.2V and is lower than 16.5V: Zener diodes D4, D5, D6 and D7 are turned on, and the gate pin levels of NMOS tubes Q3, Q4, Q5 and Q6 change from 0 to high level. NMOS tubes Q3, Q4, Q5 and Q6 are turned on, and the bias resistor R14, bias resistor R13, bias resistor R12, bias resistor R11 and basic resistor R8 are connected in parallel with the first resistor R6 to form a voltage divider. At this time, the three terminals The adjustable shunt regulator D1 provides a bias voltage of 13.2V for the main voltage stabilizing circuit; at the same time, the OFFSET_13.2V bias signal changes from the default 0 to a high level for the sampling control module to read and judge.

当待采样电压超过16.5V时且低于19.8V时:稳压二极管D3、D4、D5、D6和D7导通,NMOS管Q2、Q3、Q4、Q5和Q6的门极管脚电平由0变高电平,NMOS管Q2、Q3、Q4、Q5和Q6导通,偏置电阻R14、偏置电阻R13、偏置电阻R12、偏置电阻R11、偏置电阻R10和基础电阻R8并联后与第一电阻R6构成分压,此时三端可调并联稳压器D1为主的稳压电路提供16.5V的偏置电压;于此同时OFFSET_16.5V偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 16.5V and is lower than 19.8V: Zener diodes D3, D4, D5, D6 and D7 are turned on, and the gate pin levels of NMOS tubes Q2, Q3, Q4, Q5 and Q6 change from 0 becomes high level, NMOS tubes Q2, Q3, Q4, Q5 and Q6 are turned on, bias resistor R14, bias resistor R13, bias resistor R12, bias resistor R11, bias resistor R10 and basic resistor R8 are connected in parallel with The first resistor R6 forms a voltage divider. At this time, the three-terminal adjustable parallel regulator D1 provides a bias voltage of 16.5V for the voltage stabilizing circuit. At the same time, the OFFSET_16.5V bias signal changes from the default 0 to a high voltage. Flat, for the sampling control module to read and judge.

当待采样电压超过19.8V时且低于23.1V时:稳压二极管D2、D3、D4、D5、D6和D7导通,NMOS管Q1、Q2、Q3、Q4、Q5和Q6的门极管脚电平由0变高电平,NMOS管Q1、Q2、Q3、Q4、Q5和Q6导通,偏置电阻R14、偏置电阻R13、偏置电阻R12、偏置电阻R11、偏置电阻R10、偏置电阻R9和基础电阻R8并联后与第一电阻R6构成分压,此时三端可调并联稳压器D1为主的稳压电路提供19.8V的偏置电压;于此同时OFFSET_19.8V偏置信号由默认的0变为高电平,供采样控制模块读取判断。When the voltage to be sampled exceeds 19.8V and is lower than 23.1V: Zener diodes D2, D3, D4, D5, D6 and D7 are turned on, and the gate pins of NMOS tubes Q1, Q2, Q3, Q4, Q5 and Q6 The level changes from 0 to high level, NMOS tubes Q1, Q2, Q3, Q4, Q5 and Q6 are turned on, bias resistor R14, bias resistor R13, bias resistor R12, bias resistor R11, bias resistor R10, The bias resistor R9 and the basic resistor R8 are connected in parallel to form a voltage divider with the first resistor R6. At this time, the three-terminal adjustable shunt regulator D1 provides a bias voltage of 19.8V for the main voltage stabilizing circuit; at the same time, OFFSET_19.8V The bias signal changes from the default 0 to high level for the sampling control module to read and judge.

在测量电压时,电压分为两个部分:偏置电压和模数转换器采集浮动电压后得到的采样电压,当差分放大电路的正相放大系数和反相放大系数均为1,且若采样电压为U0,偏置电压为U3,待采样电压为Vcc时,When measuring voltage, the voltage is divided into two parts: the bias voltage and the sampling voltage obtained after the analog-to-digital converter collects the floating voltage. When the forward amplification coefficient and the inverting amplification coefficient of the differential amplifier circuit are both 1, and if the sampling The voltage is U0, the bias voltage is U3, and when the voltage to be sampled is Vcc,

实际的待采样电压Vcc应表示为:The actual voltage to be sampled Vcc should be expressed as:

Vcc=U3+U0Vcc=U3+U0

偏压电压由采样控制模块的GPIO通过判断对应的OFFSET信号来获取,对应表格如下:The bias voltage is obtained by judging the corresponding OFFSET signal through the GPIO of the sampling control module. The corresponding table is as follows:

表偏置电压、偏置电压指示与VCC对应的关系Table: Corresponding relationship between bias voltage, bias voltage indication and VCC

其中,L表示低电压,H表示高电压。Among them, L represents low voltage and H represents high voltage.

本方案最高可以提供3.3V、6.6V、9.9V、13.2V、16.5V和19.8V共6个档位的偏置电压,可以测量VCC<23.1V以内的电压。需要说明的是,还可基于实际情况设置其他档位的偏置电压,在此不对其进行过多赘述。上述过程中采样控制模块获取的最终偏置信号,以代表最高偏执电压的偏置信号为准。This solution can provide up to 6 bias voltage levels of 3.3V, 6.6V, 9.9V, 13.2V, 16.5V and 19.8V, and can measure voltages within VCC<23.1V. It should be noted that the bias voltage of other gears can also be set based on actual conditions, which will not be described too much here. The final bias signal obtained by the sampling control module in the above process shall be based on the bias signal representing the highest bias voltage.

在另一例子中,由于电源轨在正常工作时允许有10%的误差范围,因此12V的待采样电压的变化范围即为12V-10%~12V+10%(10.8V~13.2V)。为了提高采样精度,本发明实施例模数转换器采样偏置电路中的电压偏置模块可设置提供10V的偏置电压,此时浮动电压的变化范围为0.8V~3.2V;此时占比为73%,相对于采用现有电阻分压方式进行采样的电压变化范围占比提升4倍。此时模数转换器只需要采样浮动电压部分,其分辨率为3mV;最后通过对偏置电压和浮动电压求和(两类差分放大系数均为1)即可获取待采样电压的真实电压值。在实际应用中,需要采样的电压与采样范围差值越大,分辨率提升效果越明显。In another example, since the power rail allows a 10% error range during normal operation, the variation range of the 12V voltage to be sampled is 12V-10% ~ 12V + 10% (10.8V ~ 13.2V). In order to improve the sampling accuracy, the voltage bias module in the analog-to-digital converter sampling bias circuit according to the embodiment of the present invention can be set to provide a bias voltage of 10V. At this time, the floating voltage ranges from 0.8V to 3.2V; at this time, the proportion is 73%, which is a 4-fold increase in the voltage variation range compared to the existing resistor voltage dividing method for sampling. At this time, the analog-to-digital converter only needs to sample the floating voltage part, and its resolution is 3mV; finally, the true voltage value of the voltage to be sampled can be obtained by summing the bias voltage and floating voltage (both types of differential amplification coefficients are 1) . In practical applications, the greater the difference between the voltage that needs to be sampled and the sampling range, the more obvious the resolution improvement effect will be.

本发明实施例提供的模数转换器采样偏置电路,通过电压偏置模块获取与待采样电压对应的偏置电压,通过浮动电压生成模块将待采样电压限制在模数转换器采样范围内,使得模数转换器仅采集到浮动电压压值,基于浮动电压压值与偏置电压即可获取待采样电压的压值,解决现有模数转换器对采样范围之外的电压进行采集时存在的电压变化范围小,精度较低的问题,扩大模数转换器的采样覆盖率。进一步即通过设置偏置电压形式除去待采样电压中的基本电压,只对变化范围进行采样,大幅度的提升了模数转换器的采样精度和分辨率。除此外,本方案具有多个偏置电压可调、输出范围放大等优点。The analog-to-digital converter sampling bias circuit provided by the embodiment of the present invention obtains the bias voltage corresponding to the voltage to be sampled through the voltage bias module, and limits the voltage to be sampled within the sampling range of the analog-to-digital converter through the floating voltage generation module. The analog-to-digital converter only collects the floating voltage value, and the voltage value of the voltage to be sampled can be obtained based on the floating voltage value and the bias voltage, which solves the problem when the existing analog-to-digital converter collects voltages outside the sampling range. The voltage variation range is small and the accuracy is low, and the sampling coverage of the analog-to-digital converter is expanded. Furthermore, the basic voltage in the voltage to be sampled is removed by setting the bias voltage, and only the variation range is sampled, which greatly improves the sampling accuracy and resolution of the analog-to-digital converter. In addition, this solution has the advantages of multiple adjustable bias voltages and output range amplification.

实施例二Embodiment 2

为解决现有技术中存在的技术问题,本发明实施例提供了一种模数转换器采样方法。In order to solve the technical problems existing in the prior art, embodiments of the present invention provide an analog-to-digital converter sampling method.

本发明实施例模数转换器采样方法是在采用了实施例一所述模数转换器采样偏置电路的基础上实施例的。图3示出了本发明实施例二模数转换器采样方法的流程示意图,参考图3所示,本发明实施例模数转换器采样方法包括如下步骤。The analog-to-digital converter sampling method in the embodiment of the present invention is implemented based on the analog-to-digital converter sampling bias circuit described in the first embodiment. FIG. 3 shows a schematic flow chart of the analog-to-digital converter sampling method according to the second embodiment of the present invention. Referring to FIG. 3 , the analog-to-digital converter sampling method according to the embodiment of the present invention includes the following steps.

步骤S201,将待采样电压输入模数转换器采样偏置电路中。Step S201: Input the voltage to be sampled into the analog-to-digital converter sampling bias circuit.

具体地,将模数转换器与模数转换器采样偏置电路连接,并将待采样电压输入模数转换器和模数转换器采样偏置电路中。模数转换器采样偏置电路的电压偏置模块基于待采样电压自动触发生成对应的偏置电压,模数转换器采样偏置电路的浮动电压生成模块基于待采样电压和偏置电压生成浮动电压。Specifically, the analog-to-digital converter is connected to the analog-to-digital converter sampling bias circuit, and the voltage to be sampled is input into the analog-to-digital converter and the analog-to-digital converter sampling bias circuit. The voltage bias module of the analog-to-digital converter sampling bias circuit is automatically triggered to generate the corresponding bias voltage based on the voltage to be sampled. The floating voltage generation module of the analog-to-digital converter sampling bias circuit generates a floating voltage based on the voltage to be sampled and the bias voltage. .

步骤S202,模数转换器对模数转换器采样偏置电路中的浮动电压生成模块输出的浮动电压进行采集,获取采样电压,并将采样电压输入模数转换器采样偏置电路中的采样控制模块。Step S202, the analog-to-digital converter collects the floating voltage output by the floating voltage generation module in the analog-to-digital converter sampling bias circuit, obtains the sampling voltage, and inputs the sampling voltage into the sampling control in the analog-to-digital converter sampling bias circuit. module.

具体地,模数转换器对测量浮动电压生成模块输出的浮动电压进行采集,获取采样电压,并将采样电压传输至模数转换器采样偏置电路的采样控制模块。Specifically, the analog-to-digital converter collects the floating voltage output by the measurement floating voltage generation module, obtains the sampling voltage, and transmits the sampling voltage to the sampling control module of the sampling bias circuit of the analog-to-digital converter.

步骤S203,采样控制模块输出待采样电压的压值。Step S203, the sampling control module outputs the voltage value of the voltage to be sampled.

具体地,采样控制模块基于获取的偏置信号和浮动电压,生成待采样电压的压值。其中当模数转换器采样偏置电路的浮动电压生成模块中的差分放大电路,其正相放大系数和反相放大系数均为1时,待采样电压的压值为模数转换器采样偏置电路的电压偏置模块生成的偏置电压与采样电压之和。Specifically, the sampling control module generates the voltage value of the voltage to be sampled based on the obtained bias signal and floating voltage. When the differential amplifier circuit in the floating voltage generation module of the analog-to-digital converter sampling bias circuit has both a positive-phase amplification coefficient and an inverse-phase amplification coefficient of 1, the voltage value of the voltage to be sampled is the analog-to-digital converter sampling bias The sum of the bias voltage generated by the circuit's voltage bias module and the sampled voltage.

本发明实施例提供的模数转换器采样方法,通过采用的模数转换器采样偏置电路,将待采样电压划分为偏置电压和浮动电压两部分,同时限定浮动电压在模数转换器采样范围之内,解决了现有模数转换器对采样范围之外的电压进行采集时存在的电压变化范围小,精度较低的问题,扩大模数转换器的采样覆盖率,大幅度的提升了模数转换器的采样精度和分辨率。The analog-to-digital converter sampling method provided by the embodiment of the present invention uses the analog-to-digital converter sampling bias circuit to divide the voltage to be sampled into two parts: the bias voltage and the floating voltage, and at the same time limits the floating voltage to be sampled by the analog-to-digital converter. Within the range, it solves the problems of small voltage variation range and low accuracy when the existing analog-to-digital converter collects voltages outside the sampling range, expands the sampling coverage of the analog-to-digital converter, and greatly improves Sampling accuracy and resolution of the analog-to-digital converter.

虽然本发明所公开的实施方式如上,但所述的内容只是为了便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所公开的精神和范围的前提下,可以在实施的形式上及细节上作任何的修改与变化,但本发明的保护范围,仍须以所附的权利要求书所界定的范围为准。Although the disclosed embodiments of the present invention are as above, the described contents are only used to facilitate understanding of the present invention and are not intended to limit the present invention. Any person skilled in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope of the disclosure of the present invention. However, the protection scope of the present invention remains The scope defined by the appended claims shall prevail.

Claims (9)

1.一种模数转换器采样偏置电路,其特征在于,包括环形依次连接的电压偏置模块、浮动电压生成模块和采样控制模块;1. An analog-to-digital converter sampling bias circuit, characterized in that it includes a voltage bias module, a floating voltage generation module and a sampling control module connected in sequence in a ring; 所述电压偏置模块,用于对待采样电压进行偏置生成偏置电压,并向所述采样控制模块发送与所述偏置电压对应的偏置信号;The voltage bias module is used to bias the voltage to be sampled to generate a bias voltage, and send a bias signal corresponding to the bias voltage to the sampling control module; 所述浮动电压生成模块,用于基于所述待采样电压和所述偏置电压生成浮动电压,以使得所述浮动电压压值在模数转换器采样范围内;The floating voltage generation module is configured to generate a floating voltage based on the voltage to be sampled and the bias voltage, so that the floating voltage value is within the sampling range of the analog-to-digital converter; 所述采样控制模块,用于获取所述模数转换器采集所述浮动电压后得到的采样电压,并基于所述偏置信号和所述采样电压获取所述待采样电压的压值;The sampling control module is used to obtain the sampling voltage obtained after the analog-to-digital converter collects the floating voltage, and obtain the voltage value of the voltage to be sampled based on the bias signal and the sampling voltage; 其中,所述电压偏置模块包括连接的偏置触发单元和电压偏置单元;Wherein, the voltage bias module includes a connected bias trigger unit and a voltage bias unit; 所述偏置触发单元,用于基于位于不同阈值范围内的所述待采样电压,为所述电压偏置单元提供不同的偏置参量;The bias triggering unit is configured to provide different bias parameters for the voltage bias unit based on the voltage to be sampled within different threshold ranges; 所述电压偏置单元,用于基于不同的偏置参量生成不同压值的偏置电压。The voltage bias unit is used to generate bias voltages of different voltage values based on different bias parameters. 2.根据权利要求1所述的偏置电路,其特征在于,所述偏置触发单元包括基础电阻以及并联于所述基础电阻两端的至少一组偏置组件;2. The bias circuit according to claim 1, wherein the bias triggering unit includes a basic resistor and at least one set of bias components connected in parallel to both ends of the basic resistor; 所述偏置组件包括串联连接的偏置电阻和偏置控制开关,以及与所述偏置控制开关连接的触发开关,所述触发开关用于基于所述待采样电压控制所述偏置控制开关的开启与闭合;所述偏置控制开关用于控制是否将所述偏置电阻并联于所述基础电阻两端;The bias component includes a bias resistor and a bias control switch connected in series, and a trigger switch connected to the bias control switch. The trigger switch is used to control the bias control switch based on the voltage to be sampled. opening and closing; the bias control switch is used to control whether to connect the bias resistor in parallel to both ends of the basic resistor; 其中,不同偏置组件中的触发开关具有不同的触发压值。Among them, the trigger switches in different bias components have different trigger voltage values. 3.根据权利要求2所述的偏置电路,其特征在于,所述触发开关为稳压二极管,所述偏置控制开关为NMOS管。3. The bias circuit according to claim 2, wherein the trigger switch is a Zener diode, and the bias control switch is an NMOS tube. 4.根据权利要求2所述的偏置电路,其特征在于,所述电压偏置单元包括三端可调并联稳压器、并联于所述三端可调并联稳压器阴极与参考端之间的第一电阻,以及与所述三端可调并联稳压器阴极连接的第二电阻,所述基础电阻并联于所述三端可调并联稳压器阳极与参考端之间,所述待采样电压通过所述第二电阻输入所述三端可调并联稳压器阴极。4. The bias circuit according to claim 2, wherein the voltage bias unit includes a three-terminal adjustable shunt regulator, connected in parallel between the cathode and the reference terminal of the three-terminal adjustable shunt regulator. The first resistor between the three-terminal adjustable shunt regulator, and the second resistor connected to the cathode of the three-terminal adjustable shunt regulator, the basic resistor is connected in parallel between the anode and the reference terminal of the three-terminal adjustable shunt regulator, the The voltage to be sampled is input to the cathode of the three-terminal adjustable shunt regulator through the second resistor. 5.根据权利要求1所述的偏置电路,其特征在于,所述浮动电压生成模块包括差分放大电路,所述差分放大电路的正相输入端输入所述待采样电压,所述差分放大电路的反相输入端输入所述偏置电压,所述差分放大电路的输出端输出浮动电压。5. The bias circuit according to claim 1, characterized in that the floating voltage generation module includes a differential amplifier circuit, a positive input terminal of the differential amplifier circuit inputs the voltage to be sampled, and the differential amplifier circuit The inverting input terminal of the differential amplifier circuit inputs the bias voltage, and the output terminal of the differential amplifier circuit outputs a floating voltage. 6.根据权利要求5所述的偏置电路,其特征在于,所述差分放大电路的正相放大系数和反相放大系数等同。6. The bias circuit according to claim 5, wherein the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are the same. 7.根据权利要求5所述的偏置电路,其特征在于,当所述差分放大电路的正相放大系数和反相放大系数均为1时,所述待采样电压的压值为所述偏置电压和所述采样电压之和。7. The bias circuit according to claim 5, characterized in that when the positive-phase amplification coefficient and the inverse-phase amplification coefficient of the differential amplifier circuit are both 1, the voltage value of the voltage to be sampled is the voltage value of the bias circuit. The sum of the set voltage and the sampled voltage. 8.一种基于权利要求1-7任意一项所述模数转换器采样偏置电路的模数转换器采样方法,其特征在于,包括:8. An analog-to-digital converter sampling method based on the analog-to-digital converter sampling bias circuit of any one of claims 1 to 7, characterized in that it includes: 将待采样电压输入模数转换器采样偏置电路中;Input the voltage to be sampled into the analog-to-digital converter sampling bias circuit; 模数转换器对所述模数转换器采样偏置电路中的浮动电压生成模块输出的浮动电压进行采集,获取采样电压,并将所述采样电压输入所述模数转换器采样偏置电路中的采样控制模块;The analog-to-digital converter collects the floating voltage output by the floating voltage generation module in the analog-to-digital converter sampling bias circuit, obtains the sampling voltage, and inputs the sampling voltage into the analog-to-digital converter sampling bias circuit. Sampling control module; 所述采样控制模块输出所述待采样电压的压值。The sampling control module outputs the voltage value of the voltage to be sampled. 9.根据权利要求8所述的采样方法,其特征在于,当所述模数转换器采样偏置电路的浮动电压生成模块中的差分放大电路,其正相放大系数和反相放大系数均为1时,所述待采样电压的压值为模数转换器采样偏置电路的电压偏置模块生成的偏置电压与所述采样电压之和。9. The sampling method according to claim 8, characterized in that when the differential amplifier circuit in the floating voltage generation module of the analog-to-digital converter samples the bias circuit, its positive-phase amplification coefficient and inverse-phase amplification coefficient are both 1, the voltage value of the voltage to be sampled is the sum of the bias voltage generated by the voltage bias module of the analog-to-digital converter sampling bias circuit and the sampled voltage.
CN202310803001.9A 2023-06-30 2023-06-30 Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method Active CN116743172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310803001.9A CN116743172B (en) 2023-06-30 2023-06-30 Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310803001.9A CN116743172B (en) 2023-06-30 2023-06-30 Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method

Publications (2)

Publication Number Publication Date
CN116743172A CN116743172A (en) 2023-09-12
CN116743172B true CN116743172B (en) 2024-01-26

Family

ID=87916771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310803001.9A Active CN116743172B (en) 2023-06-30 2023-06-30 Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method

Country Status (1)

Country Link
CN (1) CN116743172B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104641561A (en) * 2012-09-07 2015-05-20 亚德诺半导体集团 Analog to digital converter including a pre-charge circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104641561A (en) * 2012-09-07 2015-05-20 亚德诺半导体集团 Analog to digital converter including a pre-charge circuit

Also Published As

Publication number Publication date
CN116743172A (en) 2023-09-12

Similar Documents

Publication Publication Date Title
CN103513689B (en) A kind of low-power reference source circuit
CN101013331A (en) CMOS reference voltage source with adjustable output voltage
CN103488229B (en) A kind of automatic trimming circuit for band-gap reference
CN108762367B (en) Mixed adjustment type temperature compensation band gap reference circuit
CN110907807B (en) Chip circuit power consumption measuring circuit and method and chip
CN102291021B (en) PFM (Pulse Frequency Modulation) constant-current control circuit applied in AC-DC (alternating current-to-direct current) converters
CN116743172B (en) Analog-to-digital converter sampling bias circuit and analog-to-digital converter sampling method
CN102122186B (en) High-power negative pressure numerical control constant current module
CN204833031U (en) A compensating circuit for adjusting charging device&#39;s output voltage
CN109617410B (en) Novel floating voltage detection circuit
CN218386807U (en) Passageway overvoltage crowbar suitable for thermal resistance gathers
CN103558893A (en) LDO (Low Dropout Regulator) circuit with super low power consumption and high performance
CN117155300A (en) A low-noise DC amplifier module with static and dynamic error adjustment
CN102035181B (en) Overcurrent and overvoltage protection circuit in switch power supply
CN112445266B (en) Adjusting circuit and adjusting method for charging cut-off current
CN106841964B (en) High-precision programmable voltage soft-start circuit
CN116470741A (en) An Overcurrent Protection Circuit Based on Valley Current Detection
CN213069107U (en) Current acquisition circuit and power battery based on single current sensor
CN115378434A (en) A voltage-pulse width conversion circuit for temperature sensor and temperature sensor
CN203965060U (en) A kind of temperature sensor circuit based on reference source
CN114938129A (en) Ramp compensation circuit of high linearity of self-adaptation
WO2009155744A1 (en) Signal converting circuit and isolation amplifier
CN108037790B (en) A platinum resistance signal acquisition and debugging circuit based on dual constant current sources
CN116834974B (en) A magnetic torquer driving and telemetry acquisition circuit for spacecraft
CN207123777U (en) The 1mA current source modules for carrying overcurrent protection based on operational amplifier

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20250725

Granted publication date: 20240126

PP01 Preservation of patent right