[go: up one dir, main page]

CN103823104B - The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered - Google Patents

The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered Download PDF

Info

Publication number
CN103823104B
CN103823104B CN201410060935.9A CN201410060935A CN103823104B CN 103823104 B CN103823104 B CN 103823104B CN 201410060935 A CN201410060935 A CN 201410060935A CN 103823104 B CN103823104 B CN 103823104B
Authority
CN
China
Prior art keywords
voltage
circuit
buffer
output
resistor
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
CN201410060935.9A
Other languages
Chinese (zh)
Other versions
CN103823104A (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.)
China Academy of Aerospace Electronics Technology Co Ltd
Original Assignee
China Academy of Aerospace Electronics 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 China Academy of Aerospace Electronics Technology Co Ltd filed Critical China Academy of Aerospace Electronics Technology Co Ltd
Priority to CN201410060935.9A priority Critical patent/CN103823104B/en
Publication of CN103823104A publication Critical patent/CN103823104A/en
Application granted granted Critical
Publication of CN103823104B publication Critical patent/CN103823104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Direct Current Feeding And Distribution (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

本发明涉及一种单电源供电的自动量程正负电压测量电路,该电路包括电压转换网络、缓冲器和单片机。外部输入的正负电压信号先经过电压转换网络,电压转换网络对输入信号进行分压并将正负电压映射到正电压区间内;经过电压转换网络的调整,输入信号被调整至后级缓冲器的输入范围所能允许的最大值,从而尽可能多的保持了信号的完整性。电压信号经过缓冲器缓冲后输出给后级电路,同时由单片机检测后反馈给电压转换网络,以便调整电压转换网络的输出电压,使其尽可能的满足缓冲器的最大输入电压。该检测电路能够在单电源供电的条件下实现对正负电压的检测,具有量程大、精度高的特点。

The invention relates to an automatic range positive and negative voltage measurement circuit powered by a single power supply. The circuit includes a voltage conversion network, a buffer and a single-chip microcomputer. The positive and negative voltage signals input from the outside first pass through the voltage conversion network, which divides the input signal and maps the positive and negative voltages to the positive voltage range; after the adjustment of the voltage conversion network, the input signal is adjusted to the post-stage buffer The maximum value allowed by the input range, thus maintaining the signal integrity as much as possible. The voltage signal is buffered by the buffer and then output to the subsequent stage circuit. At the same time, it is detected by the microcontroller and fed back to the voltage conversion network to adjust the output voltage of the voltage conversion network to meet the maximum input voltage of the buffer as much as possible. The detection circuit can realize the detection of positive and negative voltages under the condition of single power supply, and has the characteristics of large measuring range and high precision.

Description

一种单电源供电的自动量程正负电压测量电路A single power supply automatic range positive and negative voltage measurement circuit

技术领域technical field

本发明属于电子技术与信号检测技术领域,具体地,涉及一种单电源供电的自动量程正负电压测量电路。The invention belongs to the technical field of electronic technology and signal detection, and in particular relates to an automatic range positive and negative voltage measurement circuit powered by a single power supply.

背景技术Background technique

由于信号处理电路中的电源电压越来越低,电路可处理的电压范围也越来越小。而现实世界的电压信号范围却要大很多,并且信号中还会有各种各样的误差和噪声,电路的输入信号不一定总是能保持在电路的处理范围内。若要满足输入信号的变化范围,则后续电路的性能要求就会提高,电路的复杂程度和功耗都会增加,相应的,印制电路板的复杂程度和面积也会随之增加。As the power supply voltage in the signal processing circuit is getting lower and lower, the voltage range that the circuit can handle is also getting smaller and smaller. However, the voltage signal range in the real world is much larger, and there will be various errors and noises in the signal. The input signal of the circuit may not always be kept within the processing range of the circuit. To satisfy the variation range of the input signal, the performance requirements of the subsequent circuit will increase, the complexity of the circuit and the power consumption will increase, and correspondingly, the complexity and area of the printed circuit board will also increase.

在实际应用中,电路的输入信号Vin的范围首先会受到后级电路输入范围的限制。特别是当后级电路为单电源供电时,若输入信号Vin为负电压,则电路必然无法正常工作。并且由于各种误差和干扰的存在,输入信号Vin的实际值和理论值也会存在一定偏差,当输入信号Vin超出后级电路的输入范围时,后级电路也无法正常工作,甚至会毁坏。因此,后级电路有必要适应并监测输入信号Vin的变化,以避免对电路自身造成破坏。要适应输入信号Vin的变化范围,一方面可以估计输入信号Vin的最大变化范围,将后级电路的输入范围扩大到可以满足输入信号Vin的变化要求;另一方面可以将输入信号Vin分压,从而减小电路输入信号的范围。但是,提高后级电路的输入范围会使得电路变得更加复杂。特别是在输入信号Vin为负电压的情况下,后级电路必须也采用双电源供电,这将会大大增加电路的复杂性。并且输入范围的提升必定伴随着电源电压的提升,电路的功耗会增加。若采用固定分压比的电阻分压电路将输入信号Vin分压,那么当输入信号Vin较小时会导致后级电路的输入信号过小,输入信号中的许多信息将被淹没,电路精度下降。In practical applications, the range of the input signal V in of the circuit is first limited by the input range of the subsequent circuit. Especially when the subsequent stage circuit is powered by a single power supply, if the input signal V in is a negative voltage, the circuit must not work normally. And due to the existence of various errors and interferences, there will be a certain deviation between the actual value and the theoretical value of the input signal V in . When the input signal V in exceeds the input range of the subsequent stage circuit, the latter stage circuit will not work normally, and may even destruction. Therefore, it is necessary for the post-stage circuit to adapt to and monitor the change of the input signal V in to avoid damage to the circuit itself. To adapt to the variation range of the input signal V in , on the one hand, the maximum variation range of the input signal V in can be estimated, and the input range of the subsequent stage circuit can be expanded to meet the variation requirements of the input signal V in ; on the other hand, the input signal V In divides the voltage, thereby reducing the range of the circuit input signal. However, increasing the input range of the post-stage circuit will make the circuit more complicated. Especially when the input signal V in is a negative voltage, the downstream circuit must also be powered by dual power supplies, which will greatly increase the complexity of the circuit. And the improvement of the input range must be accompanied by the increase of the power supply voltage, and the power consumption of the circuit will increase. If a resistor divider circuit with a fixed divider ratio is used to divide the input signal V in , then when the input signal V in is small, the input signal of the subsequent stage circuit will be too small, and a lot of information in the input signal will be submerged. decline.

发明内容Contents of the invention

本发明要解决的技术问题是,针对现有技术中的不足,提供一种单电源供电的自动量程正负电压测量电路,以实现在单电源供电的条件下可以对正负电压进行检测。The technical problem to be solved by the present invention is to provide an automatic range positive and negative voltage measurement circuit powered by a single power supply to detect the positive and negative voltages under the condition of single power supply.

本发明解决上述技术问题采用的技术方案包括:The technical solutions adopted by the present invention to solve the above technical problems include:

一种单电源供电的自动量程正负电压测量电路,包括:电压转换网络、缓冲器、以及单片机,其中,电压转换网络的输出端与缓冲器的输入端连接,缓冲器的输出端连接单片机的输入端,单片机输出控制信号给电压转换网络的控制端;外部输入的正负电压信号经电压转换网络调整至正电压范围;缓冲器对电压转换网络输出的信号做一级缓冲后输出本电压测量电路的输出信号,分别给后级电路和单片机;单片机对接收自缓冲器的输出信号进行逻辑判断,然后输出控制信号给电压转换网络,对电压转换网络的输出进行调整,使得电压转换网络的输出电压尽量接近缓冲器所能允许的最大值。An automatic range positive and negative voltage measurement circuit powered by a single power supply, comprising: a voltage conversion network, a buffer, and a single-chip microcomputer, wherein the output end of the voltage conversion network is connected to the input end of the buffer, and the output end of the buffer is connected to the single-chip microcomputer At the input end, the single-chip microcomputer outputs the control signal to the control end of the voltage conversion network; the positive and negative voltage signals input externally are adjusted to the positive voltage range through the voltage conversion network; the buffer performs a primary buffer on the signal output by the voltage conversion network and then outputs the voltage measurement The output signal of the circuit is sent to the subsequent circuit and the single-chip microcomputer respectively; the single-chip microcomputer performs logic judgment on the output signal received from the buffer, and then outputs the control signal to the voltage conversion network to adjust the output of the voltage conversion network so that the output of the voltage conversion network Voltage as close as possible to the maximum value the buffer will allow.

优选地,电压转换网络包括分压电路、多路选择器、以及高精度电阻,其中,分压电路对外部的输入电压进行分压,其包括彼此串联连接的多个高精度匹配电阻,由这些高精度匹配电阻组成的串联电路的一端接收外部输入的正负电压信号,另一端接地;并且相邻两个串联电阻之间引出一个输出端,作为分压电路的输出端;多路选择器的各个输入端相应地连接分压电路的输出端,其控制端接收来自单片机的控制信号,并且多路选择器的输出端连接缓冲器的输入端;多路选择器根据单片机的控制信号选择合适的分压比,由此确定连通分压电路的哪个输出端;电阻连接在多路选择器的输出端与单电源供电的自动量程正负电压测量电路的电源之间,与分压电路和多路选择器一起将外部输入的正负电压信号调整至合适的正电压范围。Preferably, the voltage conversion network includes a voltage divider circuit, a multiplexer, and a high-precision resistor, wherein the voltage divider circuit divides the external input voltage, and it includes a plurality of high-precision matching resistors connected in series with each other. One end of the series circuit composed of high-precision matching resistors receives the positive and negative voltage signals input from the outside, and the other end is grounded; and an output end is drawn between two adjacent series resistors as the output end of the voltage divider circuit; the multiplexer Each input terminal is correspondingly connected to the output terminal of the voltage divider circuit, and its control terminal receives the control signal from the single-chip microcomputer, and the output terminal of the multiplexer is connected to the input terminal of the buffer; the multiplexer selects the appropriate Voltage division ratio, which determines which output terminal of the voltage division circuit is connected; the resistance is connected between the output terminal of the multiplexer and the power supply of the automatic range positive and negative voltage measurement circuit powered by a single power supply, and the voltage division circuit and the multi-channel The selector together adjusts the externally input positive and negative voltage signals to a suitable positive voltage range.

优选地,缓冲器包括匹配晶体管、第一电阻、第二电阻、第三电阻、第四电阻、第五电阻、第一电容、第二电容、电流源、以及运算放大器,其中,第一电阻和第一电容并联连接组成第一并联RC电路,第一并联RC电路的一端连接匹配晶体管的一个基极,第一并联RC电路的另一端作为缓冲器的输入端;第二电阻和第二电容并联连接组成第二并联RC电路,第二并联RC电路的一端连接匹配晶体管的另一个基极;匹配晶体管的两个集电极分别与运算放大器的两个输入端连接,匹配晶体管的两个发射极共同连接电流源,而电流源的另一端接地;第四电阻和第五电阻的一端分别连接至匹配晶体管的两个集电极,第四电阻和第五电阻的另一端共同连接第三电阻的一端,第三电阻的另一端连接至单电源供电的自动量程正负电压测量电路的电源;运算放大器的输出端作为缓冲器的输出端;并且第二并联RC电路的另一端连接至运算放大器的输出端,作为缓冲器的负反馈。Preferably, the buffer includes a matching transistor, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor, a second capacitor, a current source, and an operational amplifier, wherein the first resistor and The first capacitor is connected in parallel to form the first parallel RC circuit, one end of the first parallel RC circuit is connected to a base of the matching transistor, and the other end of the first parallel RC circuit is used as the input end of the buffer; the second resistor and the second capacitor are connected in parallel Connect to form a second parallel RC circuit, one end of the second parallel RC circuit is connected to the other base of the matching transistor; the two collectors of the matching transistor are respectively connected to the two input terminals of the operational amplifier, and the two emitters of the matching transistor are common The current source is connected, and the other end of the current source is grounded; one end of the fourth resistor and the fifth resistor are respectively connected to the two collectors of the matching transistor, and the other end of the fourth resistor and the fifth resistor are jointly connected to one end of the third resistor, The other end of the third resistor is connected to the power supply of the automatic range positive and negative voltage measurement circuit powered by a single power supply; the output end of the operational amplifier is used as the output end of the buffer; and the other end of the second parallel RC circuit is connected to the output end of the operational amplifier , as the negative feedback of the buffer.

优选地,单片机采用集成电路芯片,其具有自带的ADC模块,单片机的ADC模块的输入端口接收来自缓冲器的输出信号,对该输出信号进行AD转换并进行逻辑分析,然后输出控制信号给电压转换网络,对电压转换网络的输出进行调整,使得电压转换网络的输出电压尽量接近缓冲器所能允许的最大值。Preferably, the single-chip microcomputer adopts an integrated circuit chip, which has its own ADC module, and the input port of the ADC module of the single-chip microcomputer receives the output signal from the buffer, carries out AD conversion and logical analysis on the output signal, and then outputs the control signal to the voltage The conversion network adjusts the output of the voltage conversion network so that the output voltage of the voltage conversion network is as close as possible to the maximum value allowed by the buffer.

根据本发明的单电源供电的自动量程正负电压测量电路具有以下有益的技术效果:The automatic range positive and negative voltage measurement circuit powered by a single power supply according to the present invention has the following beneficial technical effects:

1、根据本发明的电压转换网络使得输入电压的范围得以扩展,不再局限于正电压范围,并且不再局限于后级缓冲器的输入范围,充分利用单片机3内部的逻辑功能实现了量程的自动控制和转换。另外,由于在运算放大器U3的输入端增加了匹配晶体管U2,使得缓冲器的输入电阻增大,电路的精度得以提高。若后级电路需要对该电路的输出信号做进一步处理,也可将单片机与后级的信号处理电路合并。这样电路的复杂程度基本没变化,同时还能在输入信号的变化范围较大时保持电路的精度。1. According to the voltage conversion network of the present invention, the range of the input voltage can be expanded, and is no longer limited to the positive voltage range, and is no longer limited to the input range of the post-stage buffer, and fully utilizes the logic function inside the single-chip microcomputer 3 to realize the range. Automatic control and conversion. In addition, since the matching transistor U2 is added at the input end of the operational amplifier U3, the input resistance of the buffer is increased, and the precision of the circuit is improved. If the subsequent stage circuit needs to further process the output signal of the circuit, the single chip microcomputer can also be combined with the signal processing circuit of the latter stage. In this way, the complexity of the circuit basically does not change, and at the same time, the accuracy of the circuit can be maintained when the input signal varies in a large range.

2、因为此电压测量电路前端的电阻网络都是分散元器件,因而在不规则形状的印制电路板上使用时安装比较灵活,更能充分利用有限的空间。电路中用到的集成电路模块都很小,不会占用太多的面积。另外,此电压测量电路选用的都是常用元器件,易于获取,成本低廉。2. Because the resistance network at the front end of the voltage measurement circuit is all scattered components, it is more flexible to install when used on an irregularly shaped printed circuit board, and can make full use of the limited space. The integrated circuit modules used in the circuit are very small and do not take up too much area. In addition, the voltage measurement circuit uses commonly used components, which are easy to obtain and low in cost.

附图说明Description of drawings

图1是根据本发明的单电源供电的自动量程正负电压测量电路的框图;Fig. 1 is the block diagram of the automatic range positive and negative voltage measurement circuit of single power supply according to the present invention;

图2是根据本发明的单电源供电的自动量程正负电压测量电路的电路原理图;Fig. 2 is the circuit schematic diagram of the automatic range positive and negative voltage measuring circuit of single power supply according to the present invention;

图3是根据本发明的单电源供电的自动量程正负电压测量电路中的电压转换网络的等效电路图。Fig. 3 is an equivalent circuit diagram of the voltage conversion network in the automatic range positive and negative voltage measurement circuit powered by a single power supply according to the present invention.

具体实施方式detailed description

下面将结合附图和具体实施例对根据本发明的单电源供电的自动量程正负电压测量电路做详细的说明。The automatic range positive and negative voltage measurement circuit powered by a single power supply according to the present invention will be described in detail below with reference to the drawings and specific embodiments.

如图1所示,根据本发明的单电源供电的自动量程正负电压测量电路包括电压转换网络1、缓冲器2、以及单片机3。其中,电压转换网络1的输出端与缓冲器2的输入端连接,缓冲器2的输出端连接单片机3的输入端,单片机3输出控制信号给电压转换网络1的控制端。As shown in FIG. 1 , the automatic range positive and negative voltage measurement circuit powered by a single power supply according to the present invention includes a voltage conversion network 1 , a buffer 2 , and a single-chip microcomputer 3 . Wherein, the output end of the voltage conversion network 1 is connected to the input end of the buffer 2 , the output end of the buffer 2 is connected to the input end of the single-chip microcomputer 3 , and the single-chip microcomputer 3 outputs a control signal to the control end of the voltage conversion network 1 .

外部输入的正负电压信号Vin经电压转换网络1调整至正电压范围。缓冲器2对电压转换网络1输出的信号做一级缓冲后输出输出信号Vout分别给后级电路和单片机3。单片机对来自缓冲器2的输出信号Vout进行逻辑判断,然后输出控制信号给电压转换网络1,对电压转换网络1的输出进行调整,使得电压转换网络1的输出电压尽量接近缓冲器2所能允许的最大值。其中,缓冲器2所能允许的最大值,由其电源电压VCC决定。The externally input positive and negative voltage signal V in is adjusted to a positive voltage range through the voltage conversion network 1 . The buffer 2 performs primary buffering on the signal output by the voltage conversion network 1 and then outputs the output signal V out to the subsequent circuit and the single chip microcomputer 3 respectively. The single-chip microcomputer makes a logical judgment on the output signal V out from the buffer 2, and then outputs a control signal to the voltage conversion network 1 to adjust the output of the voltage conversion network 1 so that the output voltage of the voltage conversion network 1 is as close as possible to the buffer 2. The maximum value allowed. Wherein, the maximum value allowed by the buffer 2 is determined by its power supply voltage VCC.

图2示出了本发明的单电源供电的自动量程正负电压测量电路的电路工作原理,如图2所示,电压转换网络包括分压电路、多路选择器U1、以及高精度电阻R0。其中,分压电路对外部的输入电压进行分压,其包括彼此串联连接的多个高精度匹配电阻,由这些高精度匹配电阻组成的串联电路的一端接收外部输入的正负电压信号Vin,另一端接地;并且相邻两个串联电阻之间引出一个输出端,作为分压电路的输出端。多路选择器的各个输入端相应地连接分压电路的输出端,其控制端接收来自单片机3的控制信号,并且多路选择器的输出端连接缓冲器2的输入端。多路选择器根据单片机3的控制信号选择合适的分压比,由此确定连通分压电路的哪个输出端。电阻R0连接在多路选择器的输出端与单电源供电的自动量程正负电压测量电路的电源VCC之间,与分压电路和多路选择器一起将外部输入的正负电压信号Vin调整至正电压范围。在这里需说明的是,分压电路所包括的高精度匹配电阻的数量根据电路的实际精度需求而定。并且多路选择器U1输入端的的数量至少要与分压电路的输出端的数量相等。Fig. 2 shows the circuit working principle of the automatic range positive and negative voltage measurement circuit powered by a single power supply of the present invention. As shown in Fig. 2, the voltage conversion network includes a voltage divider circuit, a multiplexer U1, and a high-precision resistor R0. Wherein, the voltage divider circuit divides the external input voltage, which includes a plurality of high-precision matching resistors connected in series with each other, and one end of the series circuit composed of these high-precision matching resistors receives externally input positive and negative voltage signals V in , The other end is grounded; and an output end is drawn between two adjacent series resistors as the output end of the voltage divider circuit. Each input end of the multiplexer is correspondingly connected to the output end of the voltage divider circuit, and its control end receives the control signal from the single-chip microcomputer 3 , and the output end of the multiplexer is connected to the input end of the buffer 2 . The multiplexer selects an appropriate voltage division ratio according to the control signal of the single-chip microcomputer 3, thereby determining which output terminal of the voltage division circuit is connected. Resistor R0 is connected between the output terminal of the multiplexer and the power supply VCC of the automatic range positive and negative voltage measurement circuit powered by a single power supply, and adjusts the externally input positive and negative voltage signal V in together with the voltage divider circuit and the multiplexer to the positive voltage range. It should be noted here that the number of high-precision matching resistors included in the voltage divider circuit is determined according to the actual precision requirements of the circuit. And the number of input terminals of the multiplexer U1 must be at least equal to the number of output terminals of the voltage divider circuit.

缓冲器2包括匹配晶体管U2、第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4、第五电阻R5、第一电容C1、第二电容C2、电流源ISS、以及运算放大器U3。The buffer 2 includes a matching transistor U2, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a first capacitor C1, a second capacitor C2, a current source I SS , and an operation Amplifier U3.

其中,第一电阻R1和第一电容C1并联连接组成第一并联RC电路,第一并联RC电路的一端连接匹配晶体管U2的一个基极,第一并联RC电路的另一端作为缓冲器的输入端;第二电阻R2和第二电容C2并联连接组成第二并联RC电路,第二并联RC电路的一端连接匹配晶体管U2的另一个基极。Wherein, the first resistor R1 and the first capacitor C1 are connected in parallel to form a first parallel RC circuit, one end of the first parallel RC circuit is connected to a base of the matching transistor U2, and the other end of the first parallel RC circuit is used as the input end of the buffer ; The second resistor R2 and the second capacitor C2 are connected in parallel to form a second parallel RC circuit, and one end of the second parallel RC circuit is connected to the other base of the matching transistor U2.

匹配晶体管U2的两个集电极分别与运算放大器U3的两个输入端连接,匹配晶体管U2的两个发射极共同连接电流源ISS,电流源ISS的另一端接地。The two collectors of the matching transistor U2 are respectively connected to the two input terminals of the operational amplifier U3, the two emitters of the matching transistor U2 are connected to the current source I SS , and the other end of the current source I SS is grounded.

第四电阻R4和第五电阻R5的一端分别连接匹配晶体管U2的两个集电极,第四电阻R4和第五电阻R5的另一端共同连接第三电阻R3的一端,第三电阻R3的另一端连接至单电源供电的自动量程正负电压测量电路的电源VCC。One end of the fourth resistor R4 and the fifth resistor R5 are respectively connected to the two collectors of the matching transistor U2, the other end of the fourth resistor R4 and the fifth resistor R5 are jointly connected to one end of the third resistor R3, and the other end of the third resistor R3 Connect to the power supply VCC of the auto-ranging positive and negative voltage measurement circuit powered by a single power supply.

运算放大器U3的输出端作为缓冲器2的输出端。并且,第二并联RC电路的另一端连接至运算放大器U3的输出端,作为缓冲器2的负反馈。The output terminal of the operational amplifier U3 serves as the output terminal of the buffer 2 . Moreover, the other end of the second parallel RC circuit is connected to the output end of the operational amplifier U3 as the negative feedback of the buffer 2 .

其中,匹配晶体管U2、运算放大器U3、以及电流源是本领域技术人员根据本说明书的描述以及电路的实际需求能够容易地从现有技术中选择的,在此,不做详细描述。Among them, the matching transistor U2, the operational amplifier U3, and the current source can be easily selected from the prior art by those skilled in the art according to the description of this specification and the actual needs of the circuit, and will not be described in detail here.

单片机3采用集成电路芯片,其具有自带的ADC模块,单片机3的ADC模块的输入端口接收缓冲器2的输出信号Vout,对该输出信号Vout进行AD转换并进行逻辑分析,输出控制信号给电压转换网络1,对电压转换网络1的输出进行调整,使得电压转换网络1的输出电压尽量接近缓冲器2所能允许的最大值。The single-chip microcomputer 3 adopts an integrated circuit chip, and it has its own ADC module. The input port of the ADC module of the single-chip microcomputer 3 receives the output signal V out of the buffer 2, carries out AD conversion and logical analysis on the output signal V out , and outputs the control signal For the voltage conversion network 1 , the output of the voltage conversion network 1 is adjusted so that the output voltage of the voltage conversion network 1 is as close as possible to the maximum value allowed by the buffer 2 .

本测量电路在应用时,要先在单片机中烧写程序,包括设定分压电路分压比的初始值,对电路输出信号进行逻辑判断的算法,以及合适的分压比应该满足的条件。外部的输入信号Vin经过电压转换网络后,经由缓冲器2做一级缓冲后输出本电压测量电路输出信号Vout。其中,第一并联RC电路用于对电压转换网络的输出信号进行滤波,匹配晶体管U2用于提高缓冲器2的输入电阻。输出电压Vout在输出给后级电路的同时,一方面经第二并联RC电路滤波后返回匹配晶体管U2的另一个基极做缓冲器的负反馈;另一方面输出给单片机3做本电压检测电路的负反馈。由单片机对输出信号Vout进行逻辑判断。通过事先烧入单片机的程序确定当前的分压比是否合适,偏大还是偏小,然后输出合适的控制信号给多路选择器,调整分压比。如果经过调整后,新的输出信号经过单片机的判断依然不是最佳的分压比,则单片机再次输出新的控制信号给多路选择器,再次调整分压比。如此循环,直到输出信号满足程序中事先设置好的条件。而这个条件保证了电压转换电路1始终都能有一个和输入信号相匹配,并满足缓冲器的输入范围的最佳分压比。When the measurement circuit is applied, the program must be programmed in the microcontroller first, including setting the initial value of the voltage division ratio of the voltage division circuit, the algorithm for logically judging the output signal of the circuit, and the conditions that the appropriate voltage division ratio should meet. After the external input signal V in passes through the voltage conversion network, the output signal V out of the voltage measurement circuit is output after being buffered by the buffer 2 at the first level. Wherein, the first parallel RC circuit is used to filter the output signal of the voltage conversion network, and the matching transistor U2 is used to increase the input resistance of the buffer 2 . While the output voltage V out is output to the subsequent stage circuit, on the one hand, after being filtered by the second parallel RC circuit, it returns to the other base of the matching transistor U2 as the negative feedback of the buffer; on the other hand, it is output to the single chip microcomputer 3 for local voltage detection Negative feedback of the circuit. The output signal V out is judged logically by the single chip microcomputer. Determine whether the current voltage division ratio is appropriate, whether it is too large or too small, through the program burned into the microcontroller in advance, and then output an appropriate control signal to the multiplexer to adjust the voltage division ratio. If after adjustment, the new output signal is still not the best voltage division ratio after the judgment of the single-chip microcomputer, then the single-chip microcomputer outputs a new control signal to the multiplexer again, and adjusts the voltage division ratio again. This loops until the output signal meets the pre-set conditions in the program. This condition ensures that the voltage conversion circuit 1 always has an optimal voltage division ratio that matches the input signal and satisfies the input range of the buffer.

图2中的电压转换网络可以等效成图3所示的电路。其中,R0a和R0b是图2中的分压电路R01-R0N在确定了分压比以后的等效分压电路,Rm是多路选择器U1的等效导通阻抗,根据叠加定理,该电压转换网络的电压传递关系如下:The voltage conversion network in Figure 2 can be equivalent to the circuit shown in Figure 3 . Among them, R 0a and R 0b are the equivalent voltage dividing circuits of the voltage dividing circuit R01-R0N in Figure 2 after the voltage dividing ratio is determined, and R m is the equivalent on-resistance of the multiplexer U1, according to the superposition theorem , the voltage transfer relationship of the voltage conversion network is as follows:

VV 00 == RR 00 bb // // (( RR 00 ++ RR mm )) RR 00 aa ++ RR 00 bb // // (( RR 00 ++ RR mm )) VV inin ++ RR 00 aa // // RR 00 bb ++ RR mm RR 00 ++ RR mm ++ RR 00 aa // // RR 00 bb VV CCCC -- -- -- (( 11 ))

式中,V0表示电压转换网络的输出,Vin表示电压转换网络的输入,VCC表示单电源供电的自动量程正负电压测量电路的电源。In the formula, V 0 represents the output of the voltage conversion network, V in represents the input of the voltage conversion network, and V CC represents the power supply of the automatic range positive and negative voltage measurement circuit powered by a single power supply.

根据上述关系式,输入的正负电压可以转换为正电压,从而使得后面的单电源供电的电路有能力处理变化范围达到负电压的信号。According to the above relationship, the input positive and negative voltages can be converted into positive voltages, so that the subsequent single-power supply circuits are capable of processing signals whose variation range reaches negative voltages.

在根据本发明的测量电路中,第一电阻R1、第二电阻R2、第三电阻R3、第四电阻R4、第五电阻R5、第一电容C1以及第二电容C2的电阻值和电容值要满足以下要求:In the measuring circuit according to the present invention, the resistance and capacitance values of the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, the first capacitor C1 and the second capacitor C2 should be Meet the following requirements:

C1=C2,R1=R2,R3=R4=R5。C1=C2, R1=R2, R3=R4=R5.

其中,第三电阻R3、第四电阻R4、第五电阻R5最好采用匹配电阻。Wherein, the third resistor R3, the fourth resistor R4, and the fifth resistor R5 are preferably matched resistors.

第一电阻R1和第二电阻R2的电阻值以及第一电容C1和第二电容C2的电容值根据实际的滤波要求确定。The resistance values of the first resistor R1 and the second resistor R2 and the capacitance values of the first capacitor C1 and the second capacitor C2 are determined according to actual filtering requirements.

电阻R0、电阻R01-R0N的电阻值要根据输入信号的大致范围和公式(1)的要求来确定。另一方面,N的大小要根据电路的精度要求来确定。此外,要采用高精度匹配电阻以提高精度。The resistance values of resistor R0 and resistor R01-R0N should be determined according to the approximate range of the input signal and the requirements of formula (1). On the other hand, the size of N should be determined according to the accuracy requirements of the circuit. In addition, high-precision matching resistors should be used to improve accuracy.

电路制作要点:Circuit making points:

要求所选电子元器件性能完好,第一电容C1和第二电容C2、第一电阻R1、第二电阻R2、第四电阻R4、第五电阻R5尽量靠近匹配晶体管U2安装。按照附图2中元器件的连接关系进行可靠连接,电路即可正常输出。It is required that the performance of the selected electronic components is intact, and the first capacitor C1 and the second capacitor C2, the first resistor R1, the second resistor R2, the fourth resistor R4, and the fifth resistor R5 are installed as close as possible to the matching transistor U2. According to the connection relationship of the components in Figure 2, the reliable connection is made, and the circuit can output normally.

本领域技术人员能够理解的是,本说明书中未详细说明的内容,是本领域技术人员根据本说明书的描述、并结合现有技术能够容易地实现的,因此不做详述。Those skilled in the art can understand that the content that is not specified in this specification can be easily realized by those skilled in the art according to the description of this specification and in combination with the existing technology, and thus will not be described in detail.

以上所述仅为本发明的优选实施例,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention are all Should be covered within the protection scope of the present invention.

Claims (3)

1.一种单电源供电的自动量程正负电压测量电路,其特征在于,包括:电压转换网络(1)、缓冲器(2)、以及单片机(3),其中,1. an automatic range positive and negative voltage measuring circuit of a single power supply, is characterized in that, comprises: voltage conversion network (1), buffer (2) and single-chip microcomputer (3), wherein, 所述电压转换网络(1)的输出端与所述缓冲器(2)的输入端连接,所述缓冲器(2)的输出端连接所述单片机(3)的输入端,所述单片机(3)输出控制信号给所述电压转换网络(1)的控制端;The output end of the voltage conversion network (1) is connected to the input end of the buffer (2), the output end of the buffer (2) is connected to the input end of the single-chip microcomputer (3), and the single-chip microcomputer (3) ) outputting a control signal to the control terminal of the voltage conversion network (1); 外部输入的正负电压信号(Vin)经所述电压转换网络(1)调整至正电压范围;缓冲器(2)对所述电压转换网络(1)输出的信号做一级缓冲后输出输出信号(Vout),分别给后级电路和所述单片机(3);所述单片机(3)对接收自所述缓冲器(2)的输出信号(Vout)进行逻辑判断,然后输出控制信号给所述电压转换网络(1),对所述电压转换网络(1)的输出进行调整,使得所述电压转换网络(1)的输出电压尽量接近所述缓冲器(2)所能允许的最大值;The externally input positive and negative voltage signals (V in ) are adjusted to a positive voltage range through the voltage conversion network (1); the buffer (2) performs primary buffering on the signal output by the voltage conversion network (1) and then outputs The signal (V out ) is given to the rear stage circuit and the single-chip microcomputer (3) respectively; the single-chip microcomputer (3) carries out logical judgment on the output signal (V out ) received from the buffer (2), and then outputs the control signal For the voltage conversion network (1), adjust the output of the voltage conversion network (1), so that the output voltage of the voltage conversion network (1) is as close as possible to the maximum allowable by the buffer (2) value; 所述电压转换网络(1)包括分压电路、多路选择器(U1)、以及高精度电阻(R0),其中,The voltage conversion network (1) includes a voltage divider circuit, a multiplexer (U1), and a high-precision resistor (R0), wherein, 所述分压电路对外部的输入电压进行分压,其包括彼此串联连接的多个高精度匹配电阻,由这些高精度匹配电阻组成的串联电路的一端接收外部输入的正负电压信号(Vin),另一端接地;并且相邻两个串联电阻之间引出一个输出端,作为所述分压电路的输出端;The voltage divider circuit divides the external input voltage, which includes a plurality of high-precision matching resistors connected in series with each other, and one end of the series circuit composed of these high-precision matching resistors receives externally input positive and negative voltage signals (V in ), the other end is grounded; and an output terminal is drawn between two adjacent series resistors as the output terminal of the voltage divider circuit; 所述多路选择器(U1)的各个输入端相应地连接所述分压电路的输出端,其控制端接收来自所述单片机(3)的控制信号,并且所述多路选择器的输出端连接所述缓冲器(2)的输入端;所述多路选择器(U1)根据所述单片机(3)的控制信号选择合适的分压比,由此确定连通所述分压电路的哪个输出端;Each input end of the multiplexer (U1) is connected to the output end of the voltage divider circuit accordingly, and its control end receives the control signal from the single-chip microcomputer (3), and the output end of the multiplexer Connect the input end of the buffer (2); the multiplexer (U1) selects an appropriate voltage division ratio according to the control signal of the single-chip microcomputer (3), thereby determining which output of the voltage division circuit is connected end; 所述高精度电阻(R0)连接在所述多路选择器的输出端与单电源供电的自动量程正负电压测量电路的电源(VCC)之间,与所述分压电路和多路选择器一起将外部输入的正负电压信号(Vin)调整至合适的正电压范围。The high-precision resistance (R0) is connected between the output terminal of the multiplexer and the power supply (VCC) of the automatic range positive and negative voltage measurement circuit powered by a single power supply, and the voltage divider circuit and the multiplexer Adjust the externally input positive and negative voltage signals (V in ) to an appropriate positive voltage range together. 2.根据权利要求1所述的单电源供电的自动量程正负电压测量电路,其特征在于,所述缓冲器(2)包括匹配晶体管(U2)、第一电阻(R1)、第二电阻(R2)、第三电阻(R3)、第四电阻(R4)、第五电阻(R5)、第一电容(C1)、第二电容(C2)、电流源(ISS)、以及运算放大器(U3),其中,2. The automatic range positive and negative voltage measuring circuit of single power supply according to claim 1, is characterized in that, described buffer (2) comprises matching transistor (U2), first resistance (R1), second resistance ( R2), third resistor (R3), fourth resistor (R4), fifth resistor (R5), first capacitor (C1), second capacitor (C2), current source (I SS ), and operational amplifier (U3 ),in, 所述第一电阻(R1)和第一电容(C1)并联连接组成第一并联RC电路,第一并联RC电路的一端连接所述匹配晶体管(U2)的一个基极,第一并联RC电路的另一端作为所述缓冲器(2)的输入端;所述第二电阻(R2)和第二电容(C2)并联连接组成第二并联RC电路,第二并联RC电路的一端连接所述匹配晶体管(U2)的另一个基极;The first resistor (R1) and the first capacitor (C1) are connected in parallel to form a first parallel RC circuit, one end of the first parallel RC circuit is connected to a base of the matching transistor (U2), and the first parallel RC circuit The other end is used as the input end of the buffer (2); the second resistor (R2) and the second capacitor (C2) are connected in parallel to form a second parallel RC circuit, and one end of the second parallel RC circuit is connected to the matching transistor Another base of (U2); 所述匹配晶体管(U2)的两个集电极分别与所述运算放大器(U3)的两个输入端连接,所述匹配晶体管(U2)的两个发射极共同连接所述电流源(ISS),而所述电流源(ISS)的另一端接地;The two collectors of the matching transistor (U2) are respectively connected to the two input terminals of the operational amplifier (U3), and the two emitters of the matching transistor (U2) are commonly connected to the current source (I SS ) , while the other end of the current source (I SS ) is grounded; 所述第四电阻(R4)和第五电阻(R5)的一端分别连接至所述匹配晶体管(U2)的两个集电极,所述第四电阻(R4)和第五电阻(R5)的另一端共同连接所述第三电阻(R3)的一端,所述第三电阻(R3)的另一端连接至单电源供电的自动量程正负电压测量电路的电源(VCC);One end of the fourth resistor (R4) and the fifth resistor (R5) are respectively connected to the two collectors of the matching transistor (U2), and the other end of the fourth resistor (R4) and the fifth resistor (R5) One end is commonly connected to one end of the third resistor (R3), and the other end of the third resistor (R3) is connected to the power supply (VCC) of the automatic range positive and negative voltage measurement circuit powered by a single power supply; 所述运算放大器(U3)的输出端作为所述缓冲器(2)的输出端;并且第二并联RC电路的另一端连接至所述运算放大器(U3)的输出端,作为所述缓冲器的负反馈。The output terminal of the operational amplifier (U3) is used as the output terminal of the buffer (2); and the other end of the second parallel RC circuit is connected to the output terminal of the operational amplifier (U3) as the output terminal of the buffer Negative feedback. 3.根据权利要求1所述的单电源供电的自动量程正负电压测量电路,其特征在于:所述单片机(3)采用集成电路芯片,其具有自带的ADC模块,所述单片机(3)的ADC模块的输入端口接收来自所述缓冲器(2)的输出信号(Vout),对该输出信号(Vout)进行AD转换并进行逻辑分析,然后输出控制信号给所述电压转换网络(1),对所述电压转换网络(1)的输出进行调整,使得所述电压转换网络(1)的输出电压尽量接近缓冲器(2)所能允许的最大值。3. the automatic range positive and negative voltage measurement circuit of single power supply according to claim 1, it is characterized in that: described single-chip microcomputer (3) adopts integrated circuit chip, and it has ADC module of carrying, described single-chip microcomputer (3) The input port of the ADC module receives the output signal (V out ) from the buffer (2), performs AD conversion and logic analysis on the output signal (V out ), and then outputs a control signal to the voltage conversion network ( 1) Adjusting the output of the voltage conversion network (1), so that the output voltage of the voltage conversion network (1) is as close as possible to the maximum value allowed by the buffer (2).
CN201410060935.9A 2014-02-24 2014-02-24 The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered Active CN103823104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410060935.9A CN103823104B (en) 2014-02-24 2014-02-24 The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410060935.9A CN103823104B (en) 2014-02-24 2014-02-24 The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered

Publications (2)

Publication Number Publication Date
CN103823104A CN103823104A (en) 2014-05-28
CN103823104B true CN103823104B (en) 2016-08-31

Family

ID=50758261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410060935.9A Active CN103823104B (en) 2014-02-24 2014-02-24 The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered

Country Status (1)

Country Link
CN (1) CN103823104B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106324331B (en) * 2015-06-30 2019-03-12 大唐半导体设计有限公司 A kind of isolated power supply front voltage method of sampling and device
CN106771488B (en) * 2016-12-22 2019-10-15 珠海赛纳打印科技股份有限公司 Negative high voltage abnormal detection circuit, device, control circuit and imaging device
CN108267630A (en) * 2018-04-25 2018-07-10 常州同惠电子股份有限公司 For the sample circuit of high-voltage front end
CN110221240B (en) * 2019-06-28 2025-03-07 深圳市锐能微科技有限公司 Voltage divider circuit parameter detection circuit and electric energy metering chip
CN111505480A (en) * 2020-03-31 2020-08-07 惠州市德赛西威汽车电子股份有限公司 Negative voltage detection circuit based on operational amplifier
CN112730970B (en) * 2020-12-18 2023-07-18 扬州大学 An isolated high-precision wide-range voltage measurement system and measurement method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101545955A (en) * 2008-03-27 2009-09-30 株式会社日立制作所 Assembled battery total voltage detection circuit
CN102089665A (en) * 2008-07-10 2011-06-08 西门子工业公司 Single-supply single-ended high voltage peak detector
CN202583316U (en) * 2012-06-01 2012-12-05 惠州市亿能电子有限公司 Circuit for collecting positive and negative current by single power supply

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002258953A (en) * 2001-02-27 2002-09-13 Keyence Corp Power unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101545955A (en) * 2008-03-27 2009-09-30 株式会社日立制作所 Assembled battery total voltage detection circuit
CN102089665A (en) * 2008-07-10 2011-06-08 西门子工业公司 Single-supply single-ended high voltage peak detector
CN202583316U (en) * 2012-06-01 2012-12-05 惠州市亿能电子有限公司 Circuit for collecting positive and negative current by single power supply

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种正负输入电压ASIC的输入保护电路设计;于宗光 等;《半导体技术》;20000630;第25卷(第3期);第57-59页 *
线性光耦HCNR201在正负电压测量上的应用;张涛 等;《微计算机信息》;20071231;第23卷(第2-2期);第297-298页 *

Also Published As

Publication number Publication date
CN103823104A (en) 2014-05-28

Similar Documents

Publication Publication Date Title
CN103823104B (en) The automatic range generating positive and negative voltage measuring circuit that a kind of single supply is powered
CN103366657B (en) Flicker regulates system
CN105242190B (en) Current detection circuit
WO2017113550A1 (en) Operational amplifier, driver interface, measuring and control device, driver circuit and driver
CN204330870U (en) A kind of on-off model testing circuit
CN105842539B (en) Resistance measuring system based on FPGA-TDC and method
CN106680602A (en) Hall-sensor-based electrostatic field tester
CN104022747A (en) Self-adaptive measurement method of data based on multistage amplification circuit
CN102346464A (en) 0-20mA or 4-20mA direct current analog quantity output device
CN203894320U (en) Voltage measuring device
US10545564B2 (en) Discharge circuit integrated in chip of slave device to follow bus rectifier bridge
CN210865578U (en) Power consumption detection circuit of display panel
CN114323196A (en) A measurement circuit and method of aviation fuel sensor based on window waveform interception
CN109061281B (en) Common-mode voltage conversion circuit and chip system
CN102621367A (en) Pre-amplification circuit for MOA (metal oxide arrester) resistive current detecting system
CN208026855U (en) A kind of electronic transducer calibration instrument is traced to the source device signal source
CN203642941U (en) Multipath sensing single-channel constant current measuring device
CN203673056U (en) Electronic calibration device for current shunt
CN208028864U (en) A Multilevel Input Logic Judgment Circuit
CN205193056U (en) Water quality testing circuit based on three -terminal voltage regulator tube steady voltage design
CN207231660U (en) Temperature measuring circuit
CN201141908Y (en) Bias voltage generation device
CN104914295A (en) AD voltage conditioning circuit
CN105116022A (en) Water quality detection circuit designed on basis of single supply quadri-operational amplifier
CN206096403U (en) Storage battery detection device based on DSP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant