WO2014075361A1 - Voltage detection apparatus and method - Google Patents
Voltage detection apparatus and method Download PDFInfo
- Publication number
- WO2014075361A1 WO2014075361A1 PCT/CN2012/085726 CN2012085726W WO2014075361A1 WO 2014075361 A1 WO2014075361 A1 WO 2014075361A1 CN 2012085726 W CN2012085726 W CN 2012085726W WO 2014075361 A1 WO2014075361 A1 WO 2014075361A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- voltage
- dividing resistor
- value
- voltage dividing
- detecting device
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/0084—Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring voltage only
Definitions
- the present invention relates to voltage detection, and more particularly to an apparatus and method for voltage detection. BACKGROUND OF THE INVENTION With regard to voltage detection, it is conventional to use a device as shown in FIG.
- Terminal 1 including terminal 1 , terminal 2, voltage dividing resistor R101, voltage dividing resistor R102, detection device integrated in MCU (microcontroller) (for example, selecting AD sampling module as the detecting device), detecting device has detecting terminal 3.
- Terminal 1 and terminal 2 It can be connected to both ends of the voltage source VDD to be tested, and the voltage source VDD to be tested supplies power to the detecting device.
- the terminal 1 is integrated into the voltage source VDD and the terminal 2 is grounded.
- the voltage dividing resistor R101 and the voltage dividing resistor R102 are The detection terminal 3 of the detecting device is connected in series between the terminal 1 and the terminal 2 to connect the voltage dividing resistor R101 and the divided piezoelectric
- the connection node 4 of R102 detects the voltage division value at the connection node 4.
- the condition of the conventional detection method is approximated according to the voltage division value of the detection device at the connection node 4, the resistance value of the voltage dividing resistor R101 and the voltage dividing resistor R102.
- the voltage data of the voltage source VDD can be realized by the following calculation formula:
- VDD is the voltage value of the voltage source to be tested
- 3 ⁇ 4 ⁇ is the resistance value of the voltage dividing resistor R101
- 2 is the resistance value of the voltage dividing resistor R101
- ⁇ ⁇ is the voltage dividing value on the connection node 4 when the voltage source VDD to be tested is working.
- the calculation process of the above calculation formula can be implemented by the MCU.
- the inventors have found that the conventional voltage detection method has at least the following two problems: 1.
- the resistance value of the voltage dividing resistor R101 and the voltage dividing resistor R102 needs to be set to a small value, so that the above detection result is more accurate, and the partial pressure is When the resistance is set to a large value, the accuracy is very low. 2.
- Cide Patent Application Publication No. CN1379301 discloses a voltage detecting circuit on November 13, 2002, which mainly includes the following: a voltage divider including a pair of resistors connected in series; a comparator having a connection to the divided voltage A positive input terminal in the middle of the device, a negative input terminal connected to the reference voltage circuit, and an input terminal connected to an external terminal that controls the comparator to be turned on and off; a buffer circuit connected to the output terminal of the comparator.
- the problem solved is how to reduce the current consumption in the voltage detecting circuit and improve the response speed of the comparator in the voltage detecting circuit.
- SUMMARY OF THE INVENTION The technical problem solved by the application of the present invention is how to achieve arbitrary selection of the resistance of the voltage dividing resistor while ensuring the accuracy of the voltage detection.
- the present invention provides a voltage detecting device including a first voltage dividing resistor connected between a first terminal and a second terminal, and a series connection between the first terminal and the second terminal, respectively, to the two ends of the voltage source to be tested.
- a second voltage dividing resistor and a detecting device for obtaining a voltage dividing value at a connection node of the first voltage dividing resistor and the second voltage dividing resistor
- the voltage detecting device further comprising: a reference voltage source, when the voltage source to be tested is suspended, The first terminal is configured to supply power to the detecting device by using the first terminal, and the first computing unit is configured to: when the reference voltage source is operated, the first voltage dividing value, the first voltage dividing resistor, and the second voltage dividing resistor obtained by the detecting device Obtaining an internal resistance value of the detecting device; and a second operation unit, configured to: when the voltage source to be tested operates, the second partial pressure value obtained by the detecting device, the internal resistance value, and the first voltage dividing resistor and the second component The resistance of the voltage resistor is obtained as the voltage value of the voltage source to be tested.
- a sum of resistances of the first voltage dividing resistor and the second voltage dividing resistor is greater than an internal resistance value of the detecting
- the second operation unit is configured to implement the following calculation formula:
- VDD U, X -
- VDD is the voltage value of the voltage source to be tested
- A is the resistance value of the first voltage dividing resistor
- R 2 is the resistance value of the second voltage dividing resistor
- R in is the internal resistance value of the detecting device
- U 2 is the second partial pressure value.
- the resistance values of the first voltage dividing resistor and the second voltage dividing resistor may be previously written into the first arithmetic unit and the second computing unit.
- the first operation unit and the second operation unit are implemented by an MCU chip.
- the detecting device is also integrated on the MCU chip.
- the present invention further provides a voltage detecting method for obtaining a voltage value of a voltage source to be tested, and a first voltage dividing resistor and a second voltage dividing resistor are disposed between two ends of the voltage source to be tested.
- the voltage detecting method includes: suspending the voltage source to be tested; providing a reference voltage according to the first voltage dividing resistor and the first The resistance value of the bipartite resistor and the first voltage division value obtained by the detecting device at this time, the internal resistance value of the detecting device is obtained; the voltage source to be tested is restored to work according to the internal resistance value, the first voltage dividing resistor and the first The resistance of the voltage divider resistor and the second voltage divider value obtained by the detecting device at this time obtain the voltage value of the voltage source to be tested.
- the beneficial effects of the above technical solution include at least: obtaining an internal resistance value R in of the detecting device by first providing a reference voltage to the detecting device (provided by the reference voltage source in the device); and then according to the internal resistance value R in , the first partial voltage
- the resistance value of the resistor and the second voltage dividing resistor and the voltage dividing value obtained by the detecting device at the connection node obtain the real-time voltage value of the voltage source to be tested, thereby improving the accuracy of the voltage detection.
- the first voltage dividing resistor and the second voltage dividing resistor of any resistance range can be applied, and the device for detecting low power demand can be adapted and has a wide application range.
- FIG. 1 is a schematic structural view of a voltage detecting device in the prior art
- FIG. 2 is a schematic structural diagram of a voltage detecting device according to an embodiment of the present invention.
- FIG. 3 is a schematic flow chart of a voltage detecting method according to an embodiment of the present invention.
- the conventional voltage detection method adopts the voltage detecting device shown in FIG. 1 , because the voltage division of the connection node 4 obtained by the detecting device is equivalent to the voltage on the voltage dividing resistor R102, and then Through the calculation formula:
- the instantaneous voltage data of the voltage to be tested VDD is obtained.
- VDD is the voltage value of the voltage source VDD to be tested in Figure 1
- R 1 is the resistance value of the voltage dividing resistor R101
- 2 is the resistance value of the voltage dividing resistor R102
- 1 ⁇ 4 is the detecting device from the voltage source VDD when operating
- the partial pressure value at the connection node 4 indicated by the formula 1 means that the terminal 1 is connected in series with
- V, VDDx-
- Equation 2 (R im + R, but the voltage value of Equation 2 is actually an equivalent partial pressure value instead of the actual partial pressure value:
- the detection terminal 3 of the detecting device acquires the partial pressure of the connection node 4 Equation 2 does not consider the internal resistance value at the port of the detection device detection terminal 3: the partial voltage value at the actual connection node 4 is v 2 , which is: xR.
- V, VDDx-
- the conventional voltage detection method needs to make ⁇ » R 101 + R 102 when selecting the resistance of the voltage dividing resistor, so that the voltage dividing value V 2 at the actual connection node 4 (considering the internal resistance of the detecting device) Value) Equivalent to ignoring the voltage value across the second voltage dividing resistor when detecting the internal resistance of the device, directly calculating the VDD through the resistance conversion of the first voltage dividing resistor and the second voltage dividing resistor (ie, the process of Equation 1).
- this method has low resistance value of the voltage dividing resistor and high power consumption of the circuit; for different types and types of detecting devices, R in is often non-constant value, voltage detection The voltage measured by the device has a large difference from the true value, and the voltage detection accuracy is low. It is considered that the voltage dividing value on the node 4 connected by the voltage dividing resistor R101 and the voltage dividing resistor R102 obtained by the detecting device is equivalent to the voltage value across the voltage dividing resistor R102 when the internal resistance value of the detecting device is ignored, resulting in the voltage dividing resistor. The value range is limited and cannot meet the technical problems of voltage detection involved in the low-power devices, such as the background art.
- a voltage detecting device as shown in FIG. 2 is for detecting an instantaneous voltage of a voltage source VDD to be tested.
- the voltage source VDD to be tested supplies power to the detecting device, wherein the detecting device is integrated in an MCU chip, which is the MCU (1) in the figure.
- Port 3 of the MCU ( 1 ) is the AD port that detects the device detection terminal.
- the detection device can be an AD sampling module.
- the second terminal 2 includes a first voltage dividing resistor R201 and a first terminal connected to the voltage source VDD to be tested, respectively, a first terminal 1, a second terminal 2, and a series connection between the first terminal 1 and the second terminal 2;
- the voltage dividing resistor R202, the detecting terminal 3 of the detecting device is connected to the connecting node 4 of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 to obtain a voltage dividing value.
- the first terminal 1 is connected to the voltage source VDD to be tested, and the second terminal is connected to the ground GND; one end of the first voltage dividing resistor R201 is connected to the voltage source VDD to be tested, and the other terminal is connected to the second voltage dividing resistor R202; One end of the voltage resistor R202 is respectively connected to the first voltage dividing resistor R201 and the detecting terminal 3 of the detecting device, and the other end is connected to the ground GND; the first voltage dividing resistor R201 is connected to the end of the voltage source VDD to be tested, which is the first terminal 1,
- the ground terminal of the second voltage dividing resistor R202 is the second terminal 2.
- the sum of the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 may be selected to be greater than the internal resistance value Rin of the detecting device. Since the approximate range of the internal resistance value Rin of the detecting device is generally estimable, the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 are also estimable, and can be selected within a known range, and The structure of the voltage detecting device is set. Select a large value divider resistor full The detection requirements of low power circuits are sufficient.
- the second further includes: a reference voltage source (not specifically labeled in the figure, which may be set in the first operation unit F1, or may be separately set; its function is independent), and the voltage source VDD to be tested is suspended.
- the reference voltage source supplies power to the detecting device through the first terminal 1;
- the first computing unit F1 is configured to: when the reference voltage source operates, according to the first voltage dividing value acquired by the detecting device, the first voltage dividing resistor R201 and the second The resistance value of the voltage dividing resistor R202 is obtained by the internal resistance value Rin of the detecting device; the internal resistance value Rin is the equivalent input internal resistance at the detecting device detecting terminal 3; the first voltage dividing value is the detecting device when the reference voltage source is operated The relative potential on the connection node 4 detected on the terminal 3 is detected.
- the first operation unit F1 is used to implement the following calculation formula:
- the second operation unit F2 is configured to: when the voltage source to be tested is operated, obtain the second partial pressure value, the internal resistance value Rin, and the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 obtained by the detecting device, The voltage value of the voltage source to be tested.
- the following calculation formula is implemented in the second operation unit F2:
- VDD U, x- R + R; '
- the second computing unit F2 may include the following two units, namely a ratio output unit and a multiplier.
- Ratio output unit used for the internal resistance value Rin obtained by the first operation unit F1, the first partial piezoelectric
- the resistance values of the resistor R201 and the second voltage dividing resistor R202 are obtained as a ratio of the voltage value of the reference voltage source to the first voltage dividing value; the ratio is the same as the ratio of the voltage value of the voltage source to be tested and the second voltage dividing value.
- the above ratio output unit can be specifically implemented by the following calculation formula: Where k is the ratio of the voltage value of the reference voltage source to the first voltage dividing value; the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the inside of the detecting device Resistance value.
- the multiplier is configured to multiply and output the second divided value detected by the detecting device and the ratio output by the second arithmetic unit F2 when the voltage source VDD to be tested is operated.
- the second divided voltage value is a relative potential on the connection node 4 when the voltage source VDD to be tested is operating.
- the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 can be written into the first computing unit F1 and the second computing unit F2 in advance, and the first computing unit F1 and the second
- the arithmetic unit F2 is implemented by an MCU chip (the first arithmetic unit F1 and the second arithmetic unit F2 are integrated on the MCU (2) chip in FIG. 2).
- the detecting device, the first computing unit F1, and the second computing unit F2 may be integrated on the same chip.
- a voltage detecting method as shown in FIG. 3 for obtaining a voltage value of a voltage source to be tested can be realized by using a voltage detecting device as shown in FIG. 2.
- a first voltage dividing resistor, a second voltage dividing resistor, and a detecting device for obtaining a voltage dividing value on the connection node of the first voltage dividing resistor and the second voltage dividing resistor are disposed between the two ends of the voltage source to be tested, including:
- S1 suspending the voltage source to be tested
- S2 providing a reference voltage and obtaining the inside of the detecting device according to the resistance values of the first voltage dividing resistor and the second voltage dividing resistor and the first partial pressure value obtained by the detecting device at this time Resistance value; can be achieved by the following calculation formula:
- R in is the internal resistance value of the detecting device; is the resistance value of the first voltage dividing resistor; ⁇ is the second point The resistance of the voltage resistor; ⁇ is the first voltage division value; VCC is the reference voltage.
- the reference voltage can be provided by a reference voltage source. If the voltage detecting device shown in FIG. 2 is used for voltage detection, when the reference voltage source is operated, the internal resistance value Rin of the detecting device can be calculated according to the first partial voltage value on the connecting node 4 obtained by the detecting device detecting terminal 3; After the internal resistance value Rin is obtained by using the first operation unit F1 in FIG. 2, the internal resistance value Rin can be written into the first operation unit F1 for recording (the value is a constant value), and the internal resistance value can be directly output without recording. Rin to the second operation unit F2, the internal resistance value is written into the first operation unit F1, so that the user can extract and display the internal resistance value at any time;
- VDD U, x- R + R; '
- step S3 may further include the following two steps in another embodiment:
- the ratio of the reference voltage source in S301 to the first partial pressure value can be realized by the following calculation formula:
- S302 Resume the operation of the voltage source to be tested, and compare the second partial pressure value obtained by the detecting device at the connection node (connecting node 4) with the ratio obtained in S301 (the ratio of the voltage value of the reference voltage source to the first partial pressure value) Multiply and output; the result of the output is the detection of the instantaneous voltage detection value of the voltage source VDD to be tested.
- Step S2 and S301 ⁇ S302 firstly provide the detection device with the input internal resistance value Rin of the detection terminal port of the reference voltage acquisition detecting device; and further, based on the internal resistance value of the detecting device and the resistance value of the first voltage dividing resistor and the second voltage dividing resistor Converting the ratio of the reference voltage reference source to the voltage dividing value on the connection node 4, since the ratio of the voltage value of the voltage source to be tested to the voltage dividing value on the connection node 4 is a constant value, it is only necessary to record the ratio.
- the partial pressure value on the connection node 4 is directly detected, and the partial pressure value is multiplied by the ratio to obtain accurate voltage detection data.
- the resistance of the voltage dividing resistor in order to realize the low power consumption measurement of the detecting circuit, can be set to be large, 4 R 1 + R 2 > R m ;
- the resistance of the voltage resistor is not limited to this range.
- the voltage detection method of the present application does not impose any limitation on the resistance range of the voltage divider resistor, and the accurate result of the voltage detection can be achieved.
- the present invention has been disclosed in the preferred embodiments as described above, but it is not intended to limit the invention, and the present invention may be utilized by the method and technical contents disclosed above without departing from the spirit and scope of the invention.
- the technical solutions make possible changes and modifications, and therefore, the scope of protection of the technical solutions of the present invention is not deviated from the present invention.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
A voltage detection apparatus and method. The apparatus comprises: a first terminal (1) and a second terminal (2) which are connected to two ends of a voltage source to be tested (VDD) respectively, a first divider resistor (R201) and a second divider resistor (R202) which are connected in series between the first terminal (1) and the second terminal (2), a detection device (MCU (1)), a reference voltage source, a first arithmetic unit (F1) and a second arithmetic unit (F2). The method includes: enabling the voltage source to be tested (VDD) to suspend working; providing a reference voltage, and according to the resistance values of the first divider resistor (R201) and the second divider resistor (R202) and a first partial voltage value acquired by the detection device (MCU (1)) at this moment, obtaining the internal resistance value of the detection device (MCU (1)); and enabling the voltage source to be tested (VDD) to resume working, and according to the internal resistance value, the resistance values of the first divider resistor (R201) and the second divider resistor (R202) and a second partial voltage value acquired by the detection device (MCU (1)) at this moment, obtaining the voltage value of the voltage source to be tested (VDD).
Description
电压检测装置及方法 本申请要求于 2012 年 11 月 14 日提交中国专利局、 申请号为 201210457394.4、 发明名称为"电压检测装置及方法,,的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及电压检测, 特别涉及一种用于电压检测的装置及方法。 背景技术 关于电压检测, 传统的做法是使用如图 1所示的一种装置, 包括端子 1、 端子 2、 分压电阻 R101、 分压电阻 R102、 集成于 MCU (微控制器)的检测器 件(例如选择 AD采样模块作为所述检测器件), 检测器件具有检测端子 3。 端子 1 以及端子 2可以与待测电压源 VDD的两端相连, 待测电压源 VDD对 检测器件供电。 从图 1可知, 端子 1并入电压源 VDD、 端子 2则接地。 分压 电阻 R101与分压电阻 R102则串接在端子 1和端子 2之间检测器件的检测端 子 3接入分压电阻 R101与分压电阻 R102的连接节点 4,检测连接节点 4处的 分压值。传统检测方法条件根据检测器件在连接节点 4获取的分压值、分压电 阻 R101与分压电阻 R102的阻值, 经近似计算得到电压源 VDD的电压数据; 具体可用以下计算式实现: 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to voltage detection, and more particularly to an apparatus and method for voltage detection. BACKGROUND OF THE INVENTION With regard to voltage detection, it is conventional to use a device as shown in FIG. 1 including terminal 1 , terminal 2, voltage dividing resistor R101, voltage dividing resistor R102, detection device integrated in MCU (microcontroller) (for example, selecting AD sampling module as the detecting device), detecting device has detecting terminal 3. Terminal 1 and terminal 2 It can be connected to both ends of the voltage source VDD to be tested, and the voltage source VDD to be tested supplies power to the detecting device. As can be seen from Figure 1, the terminal 1 is integrated into the voltage source VDD and the terminal 2 is grounded. The voltage dividing resistor R101 and the voltage dividing resistor R102 are The detection terminal 3 of the detecting device is connected in series between the terminal 1 and the terminal 2 to connect the voltage dividing resistor R101 and the divided piezoelectric The connection node 4 of R102 detects the voltage division value at the connection node 4. The condition of the conventional detection method is approximated according to the voltage division value of the detection device at the connection node 4, the resistance value of the voltage dividing resistor R101 and the voltage dividing resistor R102. The voltage data of the voltage source VDD; can be realized by the following calculation formula:
VDD ^ x 101 102 VDD ^ x 101 102
八 102 其中, VDD为待测电压源的电压值; ¾π为分压电阻 R101的阻值; 。 2为 分压电阻 R101的阻值; νι为待测电压源 VDD工作时连接节点 4上的分压值。 上述计算式的运算过程可由 MCU实现。 发明人发现, 传统电压检测的方法至少有以下两个问题: 一、 需要设置分压电阻 R101与分压电阻 R102的阻值为一较小值, 才可 使上述检测结果较为精确, 对于分压电阻设置较大的情况, 精确度很低; 二、 由于分压电阻 R101与分压电阻 R102的阻值较小, 检测过程中消耗 的电源功率较大, 一般仅适用于对低功耗没有特殊要求的情况, 应用受限。
公开号为 CN1379301的中国专利申请于 2002年 11月 13日公开了一种电 压检测电路,主要包括以下内容: 包括具有串联的成对电阻的分压器; 比较器, 具有连接至所述分压器中间的正输入端、连接至参考电压电路的负输入端、 以 及与控制所述比较器接通和断开的外部端子相连的输入端;连接到所述比较器 的输出端的緩沖电路。其解决的问题是如何在电压检测电路中电流消耗被设置 减小,提高电压检测电路中比较器响应速度的问题。 没有提供解决上述问题的 技术方案。 发明内容 本发明申请所解决的技术问题是:如何在保证电压检测精确度的情况下实 现分压电阻阻值的任意选取。 为解决上述技术问题, 本发明提供一种电压检测装置, 包括分别与待测电 压源两端相连第一端子、第二端子、 串联在第一端子与第二端子之间的第一分 压电阻和第二分压电阻以及获取第一分压电阻和第二分压电阻的连接节点上 分压值的检测器件, 该电压检测装置还包括: 基准电压源,在待测电压源暂停工作时,通过所述第一端子对检测器件供 电; 第一运算单元, 用于当基准电压源工作时, 根据检测器件获取的第一分压 值、 第一分压电阻和第二分压电阻的阻值, 得到检测器件的内阻值; 第二运算单元, 用于当待测电压源工作时,根据检测器件获取的第二分压 值、所述内阻值及第一分压电阻和第二分压电阻的阻值,得到待测电压源的电 压值。 可选的,所述第一分压电阻及第二分压电阻的阻值之和大于检测器件的内 阻值。 可选的, 所述第一运算单元用于实现如下计算式: 八102 where VDD is the voltage value of the voltage source to be tested; 3⁄4π is the resistance value of the voltage dividing resistor R101; 2 is the resistance value of the voltage dividing resistor R101; ν ι is the voltage dividing value on the connection node 4 when the voltage source VDD to be tested is working. The calculation process of the above calculation formula can be implemented by the MCU. The inventors have found that the conventional voltage detection method has at least the following two problems: 1. The resistance value of the voltage dividing resistor R101 and the voltage dividing resistor R102 needs to be set to a small value, so that the above detection result is more accurate, and the partial pressure is When the resistance is set to a large value, the accuracy is very low. 2. Since the resistance of the voltage dividing resistor R101 and the voltage dividing resistor R102 is small, the power consumption consumed during the detection process is large, and generally only applicable to low power consumption. In the case of the request, the application is limited. Chinese Patent Application Publication No. CN1379301 discloses a voltage detecting circuit on November 13, 2002, which mainly includes the following: a voltage divider including a pair of resistors connected in series; a comparator having a connection to the divided voltage A positive input terminal in the middle of the device, a negative input terminal connected to the reference voltage circuit, and an input terminal connected to an external terminal that controls the comparator to be turned on and off; a buffer circuit connected to the output terminal of the comparator. The problem solved is how to reduce the current consumption in the voltage detecting circuit and improve the response speed of the comparator in the voltage detecting circuit. There is no technical solution to solve the above problems. SUMMARY OF THE INVENTION The technical problem solved by the application of the present invention is how to achieve arbitrary selection of the resistance of the voltage dividing resistor while ensuring the accuracy of the voltage detection. In order to solve the above technical problem, the present invention provides a voltage detecting device including a first voltage dividing resistor connected between a first terminal and a second terminal, and a series connection between the first terminal and the second terminal, respectively, to the two ends of the voltage source to be tested. And a second voltage dividing resistor and a detecting device for obtaining a voltage dividing value at a connection node of the first voltage dividing resistor and the second voltage dividing resistor, the voltage detecting device further comprising: a reference voltage source, when the voltage source to be tested is suspended, The first terminal is configured to supply power to the detecting device by using the first terminal, and the first computing unit is configured to: when the reference voltage source is operated, the first voltage dividing value, the first voltage dividing resistor, and the second voltage dividing resistor obtained by the detecting device Obtaining an internal resistance value of the detecting device; and a second operation unit, configured to: when the voltage source to be tested operates, the second partial pressure value obtained by the detecting device, the internal resistance value, and the first voltage dividing resistor and the second component The resistance of the voltage resistor is obtained as the voltage value of the voltage source to be tested. Optionally, a sum of resistances of the first voltage dividing resistor and the second voltage dividing resistor is greater than an internal resistance value of the detecting device. Optionally, the first operation unit is configured to implement the following calculation formula:
R _ R. R. U, R _ RR U,
in ~ VCC x R2 - R, x U, - R2 x U, 其中, Rin为检测器件的内阻值; 为第一分压电阻的阻值; ^为第二分 压电阻的阻值; ^为所述第一分压值; VCC为所述基准电压源的电压值。
可选的, 所述第二运算单元用于实现如下计算式: i n ~ VCC x R 2 - R, x U, - R 2 x U, where R in is the internal resistance of the detecting device; is the resistance of the first voltage dividing resistor; ^ is the resistance of the second voltage dividing resistor a value; ^ is the first divided voltage value; VCC is a voltage value of the reference voltage source. Optionally, the second operation unit is configured to implement the following calculation formula:
R7 X R. R 7 X R.
R, ——≡~ R, ——≡~
R, + R. R, + R.
VDD = U, X - VDD = U, X -
R2 + Rin 其中, VDD为待测电压源的电压值; A为第一分压电阻的阻值; R2为第 二分压电阻的阻值; Rin为检测器件的内阻值; U2为所述第二分压值。 可选的,所述第一分压电阻和第二分压电阻的阻值可预先写入所述的第一 运算单元及第二运算单元。 可选的, 第一运算单元及第二运算单元由 MCU芯片实现。 可选的, 所述的检测器件也集成于所述 MCU芯片上。 为解决上述技术问题, 本发明还提供一种电压检测方法, 用于得到待测电 压源的电压值,待测电压源的两端之间设有第一分压电阻、第二分压电阻以及 获取第一分压电阻和第二分压电阻的连接节点上分压值的检测器件,该电压检 测方法包括: 使待测电压源暂停工作; 提供一基准电压并根据第一分压电阻和第二分压电阻的阻值以及此时检 测器件获取的第一分压值, 得到检测器件的内阻值; 使待测电压源恢复工作并根据所述内阻值、第一分压电阻和第二分压电阻 的阻值以及此时检测器件获取的第二分压值, 得到待测电压源的电压值。 上述技术方案的有益效果至少包括: 通过先对检测器件提供一基准电压 (装置中由基准电压源提供 ), 获取检 测器件的内阻值 Rin; 再根据内阻值 Rin、 第一分压电阻和第二分压电阻的阻值 以及检测器件在连接节点获取的分压值得到待测电压源实时电压值,提高了电 压检测的精确性。 R 2 + R in where VDD is the voltage value of the voltage source to be tested; A is the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the internal resistance value of the detecting device; U 2 is the second partial pressure value. Optionally, the resistance values of the first voltage dividing resistor and the second voltage dividing resistor may be previously written into the first arithmetic unit and the second computing unit. Optionally, the first operation unit and the second operation unit are implemented by an MCU chip. Optionally, the detecting device is also integrated on the MCU chip. In order to solve the above technical problem, the present invention further provides a voltage detecting method for obtaining a voltage value of a voltage source to be tested, and a first voltage dividing resistor and a second voltage dividing resistor are disposed between two ends of the voltage source to be tested. Obtaining a detection device for dividing the voltage on the connection node of the first voltage dividing resistor and the second voltage dividing resistor, the voltage detecting method includes: suspending the voltage source to be tested; providing a reference voltage according to the first voltage dividing resistor and the first The resistance value of the bipartite resistor and the first voltage division value obtained by the detecting device at this time, the internal resistance value of the detecting device is obtained; the voltage source to be tested is restored to work according to the internal resistance value, the first voltage dividing resistor and the first The resistance of the voltage divider resistor and the second voltage divider value obtained by the detecting device at this time obtain the voltage value of the voltage source to be tested. The beneficial effects of the above technical solution include at least: obtaining an internal resistance value R in of the detecting device by first providing a reference voltage to the detecting device (provided by the reference voltage source in the device); and then according to the internal resistance value R in , the first partial voltage The resistance value of the resistor and the second voltage dividing resistor and the voltage dividing value obtained by the detecting device at the connection node obtain the real-time voltage value of the voltage source to be tested, thereby improving the accuracy of the voltage detection.
对任何阻值范围的第一分压电阻及第二分压电阻均可适用,对于检测低功 率需求的器件也能艮好适应, 应用范围广。 特别地, 优选大阻值分压电阻可实
现电压的低功耗测量, The first voltage dividing resistor and the second voltage dividing resistor of any resistance range can be applied, and the device for detecting low power demand can be adapted and has a wide application range. In particular, it is preferable to have a large resistance voltage dividing resistor Low-power measurement of current voltage,
图 1为现有技术中一种电压检测装置的结构示意图; 1 is a schematic structural view of a voltage detecting device in the prior art;
图 2为本发明实施例一种电压检测装置的结构示意图; 2 is a schematic structural diagram of a voltage detecting device according to an embodiment of the present invention;
图 3为本发明实施例一种电压检测方法的流程示意图。 FIG. 3 is a schematic flow chart of a voltage detecting method according to an embodiment of the present invention.
具体实施方式 detailed description
从本申请的背景技术可知,传统电压检测的方式, 即采用如图 1所示的电 压检测装置, 由于将检测器件获取的连接节点 4的分压等效于分压电阻 R102 上的电压, 再通过计算式: It can be seen from the background art of the present application that the conventional voltage detection method adopts the voltage detecting device shown in FIG. 1 , because the voltage division of the connection node 4 obtained by the detecting device is equivalent to the voltage on the voltage dividing resistor R102, and then Through the calculation formula:
得到待测电压 VDD的即时电压数据。 其中, VDD为图 1中待测电压源 VDD的电压值, R1(n为分压电阻 R101的 阻值, 。2为分压电阻 R102的阻值, ¼为电压源 VDD工作时检测器件从连接 节点 4获取的分压值。 但是, 经发明人分析: 公式①所表明连接节点 4处的分压值 ¼是指串联于 端子 1与 The instantaneous voltage data of the voltage to be tested VDD is obtained. Where VDD is the voltage value of the voltage source VDD to be tested in Figure 1, R 1 (n is the resistance value of the voltage dividing resistor R101, 2 is the resistance value of the voltage dividing resistor R102, 1⁄4 is the detecting device from the voltage source VDD when operating The partial pressure value obtained by the connection node 4. However, according to the inventor's analysis: The partial pressure value at the connection node 4 indicated by the formula 1 means that the terminal 1 is connected in series with
电压: 设该电压值为 有: Voltage: Set the voltage value to have:
V, = VDDx-V, = VDDx-
(Ri m + R、, 但式②的电压值 实际为一等效分压值而非实际分压值: 在检测该电压 时, 表示的是检测器件的检测端子 3获取连接节点 4的分压, 式②并未考虑 检测器件检测端子 3端口处的内阻值:设实际连接节点 4处的分压值为 v2,有: xR. (R im + R, but the voltage value of Equation 2 is actually an equivalent partial pressure value instead of the actual partial pressure value: When detecting this voltage, it means that the detection terminal 3 of the detecting device acquires the partial pressure of the connection node 4 Equation 2 does not consider the internal resistance value at the port of the detection device detection terminal 3: the partial voltage value at the actual connection node 4 is v 2 , which is: xR.
+ R. + R.
V, = VDDx- V, = VDDx-
R、 xR;, R, xR ; ,
R + R;,
比较式②及③可知,传统电压检测方式需要在选择分压电阻阻值时, 必须 使^ » R101 + R102 ,从而使实际连接节点 4处的分压值 V2 (考虑检测器件内阻值 ) 等效于忽略检测器件内阻值时第二分压电阻两端的电压值,直接通过第一分压 电阻与第二分压电阻的阻值变换算出 VDD (即式①过程)。 上述算法虽然能够 达到快速检测的目的, 但这种方法因分压电阻的阻值较小, 电路的功耗高; 对 于不同类型、 型号的检测器件, Rin又往往为非恒定值, 电压检测装置测得的 电压与真实值的差别较大, 电压检测精确度低。 考虑到, 人为使检测器件获取的分压电阻 R101与分压电阻 R102连接节 点 4上的分压值等效于忽略检测器件内阻值时分压电阻 R102两端的电压值, 才导致分压电阻取值范围受限且无法满足低功耗器件等如背景技术中涉及的 电压检测之技术问题, 因此本实施例将检测器件的内阻计算在内, 以此为理论 基础提供了一种电压检测装置及电压检测方法。 如图 2所示的一种电压检测装置, 其目的是为了检测待测电压源 VDD的 即时电压。 待测电压源 VDD 对检测器件进行供电, 其中检测器件集成于一 MCU芯片中, 该 MCU芯片即图中的 MCU ( 1 )。 MCU ( 1 ) 的端口 3即为检 测器件检测端子的 AD端口。 检测器件可以为一 AD采样模块。 图 2中的电压检测装置包括分别与待测电压源 VDD两端相连第一端子 1、 第二端子 2以及串联在第一端子 1与第二端子 2之间的第一分压电阻 R201和 第二分压电阻 R202,检测器件的检测端子 3接入第一分压电阻 R201和第二分 压电阻 R202的连接节点 4获取分压值。 具体地, 第一端子 1接入待测电压源 VDD, 第二端子接地 GND; 第一分 压电阻 R201的一端接入待测电压源 VDD、 另一端接第二分压电阻 R202; 第 二分压电阻 R202的一端分别与第一分压电阻 R201和检测器件的检测端子 3 相连, 另一端则接地 GND; 第一分压电阻 R201接入待测电压源 VDD的一端 即为第一端子 1 , 第二分压电阻 R202的接地端即为第二端子 2。 在本实施例 中, 第一分压电阻 R201及第二分压电阻 R202的阻值之和可选择为大于检测 器件内阻值 Rin。 由于检测器件内阻值 Rin的大致范围一般是可估计的, 因此, 第一分压电阻 R201及第二分压电阻 R202的阻值也是可估计, 能够在已知的 范围内进行选择,确定及设置电压检测装置的结构。选择大阻值的分压电阻满
足了低功耗电路的检测要求。 图 2中的电压检测装置还包括: 基准电压源(图中未特别标注, 可设于第 一运算单元 F1内, 也可单独设置; 其功能是独立的), 在待测电压源 VDD暂 停工作时, 基准电压源通过第一端子 1对检测器件供电; 第一运算单元 F1 , 用于当基准电压源工作时, 根据检测器件获取的第一 分压值、 第一分压电阻 R201和第二分压电阻 R202的阻值, 得到检测器件的 内阻值 Rin; 内阻值 Rin是检测器件检测端子 3处的等效输入内阻; 上述第一 分压值为基准电压源工作时检测器件从检测端子 3上检测到的连接节点 4上的 相对电位。 第一运算单元 F1用于实现如下计算式: R + R;, Comparing Equations 2 and 3, the conventional voltage detection method needs to make ^ » R 101 + R 102 when selecting the resistance of the voltage dividing resistor, so that the voltage dividing value V 2 at the actual connection node 4 (considering the internal resistance of the detecting device) Value) Equivalent to ignoring the voltage value across the second voltage dividing resistor when detecting the internal resistance of the device, directly calculating the VDD through the resistance conversion of the first voltage dividing resistor and the second voltage dividing resistor (ie, the process of Equation 1). Although the above algorithm can achieve the purpose of fast detection, this method has low resistance value of the voltage dividing resistor and high power consumption of the circuit; for different types and types of detecting devices, R in is often non-constant value, voltage detection The voltage measured by the device has a large difference from the true value, and the voltage detection accuracy is low. It is considered that the voltage dividing value on the node 4 connected by the voltage dividing resistor R101 and the voltage dividing resistor R102 obtained by the detecting device is equivalent to the voltage value across the voltage dividing resistor R102 when the internal resistance value of the detecting device is ignored, resulting in the voltage dividing resistor. The value range is limited and cannot meet the technical problems of voltage detection involved in the low-power devices, such as the background art. Therefore, the present embodiment provides a voltage detection based on the internal resistance of the detecting device. Device and voltage detection method. A voltage detecting device as shown in FIG. 2 is for detecting an instantaneous voltage of a voltage source VDD to be tested. The voltage source VDD to be tested supplies power to the detecting device, wherein the detecting device is integrated in an MCU chip, which is the MCU (1) in the figure. Port 3 of the MCU ( 1 ) is the AD port that detects the device detection terminal. The detection device can be an AD sampling module. The voltage detecting device of FIG. 2 includes a first voltage dividing resistor R201 and a first terminal connected to the voltage source VDD to be tested, respectively, a first terminal 1, a second terminal 2, and a series connection between the first terminal 1 and the second terminal 2; The voltage dividing resistor R202, the detecting terminal 3 of the detecting device is connected to the connecting node 4 of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 to obtain a voltage dividing value. Specifically, the first terminal 1 is connected to the voltage source VDD to be tested, and the second terminal is connected to the ground GND; one end of the first voltage dividing resistor R201 is connected to the voltage source VDD to be tested, and the other terminal is connected to the second voltage dividing resistor R202; One end of the voltage resistor R202 is respectively connected to the first voltage dividing resistor R201 and the detecting terminal 3 of the detecting device, and the other end is connected to the ground GND; the first voltage dividing resistor R201 is connected to the end of the voltage source VDD to be tested, which is the first terminal 1, The ground terminal of the second voltage dividing resistor R202 is the second terminal 2. In this embodiment, the sum of the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 may be selected to be greater than the internal resistance value Rin of the detecting device. Since the approximate range of the internal resistance value Rin of the detecting device is generally estimable, the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 are also estimable, and can be selected within a known range, and The structure of the voltage detecting device is set. Select a large value divider resistor full The detection requirements of low power circuits are sufficient. The voltage detecting device in FIG. 2 further includes: a reference voltage source (not specifically labeled in the figure, which may be set in the first operation unit F1, or may be separately set; its function is independent), and the voltage source VDD to be tested is suspended. The reference voltage source supplies power to the detecting device through the first terminal 1; the first computing unit F1 is configured to: when the reference voltage source operates, according to the first voltage dividing value acquired by the detecting device, the first voltage dividing resistor R201 and the second The resistance value of the voltage dividing resistor R202 is obtained by the internal resistance value Rin of the detecting device; the internal resistance value Rin is the equivalent input internal resistance at the detecting device detecting terminal 3; the first voltage dividing value is the detecting device when the reference voltage source is operated The relative potential on the connection node 4 detected on the terminal 3 is detected. The first operation unit F1 is used to implement the following calculation formula:
R、 x R, χ [/, R, x R, χ [/,
VCC x R, - R, x [/, - R x U, 其中, Rin为检测器件的内阻值; 为第一分压电阻 R201的阻值; R2为第 二分压电阻 R202的阻值; 为第一分压值; VCC为基准电压源的电压值。 第二运算单元 F2, 用于当待测电压源工作时, 根据检测器件获取的第二 分压值、 内阻值 Rin及第一分压电阻 R201和第二分压电阻 R202的阻值, 得 到待测电压源的电压值。 第二运算单元 F2内实现如下计算式: VCC x R, - R, x [/, - R x U, where R in is the internal resistance of the sensing device; is the resistance of the first voltage dividing resistor R201; R 2 is the resistance of the second voltage dividing resistor R202 Value; is the first voltage divider value; VCC is the voltage value of the reference voltage source. The second operation unit F2 is configured to: when the voltage source to be tested is operated, obtain the second partial pressure value, the internal resistance value Rin, and the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 obtained by the detecting device, The voltage value of the voltage source to be tested. The following calculation formula is implemented in the second operation unit F2:
R、 + R R' R , + RR '
VDD = U,x- R + R;' VDD = U, x- R + R; '
其中, VDD为待测电压源的电压值; 为第一分压电阻 R201的阻值; R2 为第二分压电阻 R202的阻值; Rin为检测器件的内阻值; U2为所述第二分压值。 在一个实施例中, 如图 2所示, 第二运算单元 F2内可以包括如下两个单 元, 即比值输出单元及乘法器。 比值输出单元, 用于将第一运算单元 F1得到的内阻值 Rin、 第一分压电
阻 R201和第二分压电阻 R202的阻值得到基准电压源的电压值与第一分压值 的比值; 该比值与待测电压源的电压值与第二分压值的比值相同。 上述比值输出单元具体可用如下计算式实现:
其中, k为所述基准电压源的电压值与第一分压值的比值; 为第一分压 电阻的阻值; R2为第二分压电阻的阻值; Rin为检测器件的内阻值。 乘法器, 用于当待测电压源 VDD工作时, 将检测器件检测得到的第二分 压值与第二运算单元 F2输出的比值相乘并输出。 上述第二分压值为在待测电 压源 VDD工作时连接节点 4上的相对电位。 为筒化器件结构, 可将第一分压电阻 R201和第二分压电阻 R202的阻值 预先写入第一运算单元 F1及第二运算单元 F2内、 并使第一运算单元 F1及第 二运算单元 F2由 MCU芯片实现(图 2中第一运算单元 F1及第二运算单元 F2集成于 MCU ( 2 )芯片上)。 在其他实施例里, 也可使检测器件、 第一运算 单元 F1及第二运算单元 F2集成于同一芯片上。 如图 3所示的一种电压检测方法, 用于得到待测电压源的电压值, 可以使 用如图 2所示的电压检测装置实现。 待测电压源的两端间设有第一分压电阻、 第二分压电阻以及获取第一分压电阻和第二分压电阻的连接节点上分压值的 检测器件, 包括: Where VDD is the voltage value of the voltage source to be tested; is the resistance value of the first voltage dividing resistor R201; R 2 is the resistance value of the second voltage dividing resistor R202; R in is the internal resistance value of the detecting device; U 2 is the The second partial pressure value is described. In one embodiment, as shown in FIG. 2, the second computing unit F2 may include the following two units, namely a ratio output unit and a multiplier. Ratio output unit, used for the internal resistance value Rin obtained by the first operation unit F1, the first partial piezoelectric The resistance values of the resistor R201 and the second voltage dividing resistor R202 are obtained as a ratio of the voltage value of the reference voltage source to the first voltage dividing value; the ratio is the same as the ratio of the voltage value of the voltage source to be tested and the second voltage dividing value. The above ratio output unit can be specifically implemented by the following calculation formula: Where k is the ratio of the voltage value of the reference voltage source to the first voltage dividing value; the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the inside of the detecting device Resistance value. The multiplier is configured to multiply and output the second divided value detected by the detecting device and the ratio output by the second arithmetic unit F2 when the voltage source VDD to be tested is operated. The second divided voltage value is a relative potential on the connection node 4 when the voltage source VDD to be tested is operating. For the device structure, the resistance values of the first voltage dividing resistor R201 and the second voltage dividing resistor R202 can be written into the first computing unit F1 and the second computing unit F2 in advance, and the first computing unit F1 and the second The arithmetic unit F2 is implemented by an MCU chip (the first arithmetic unit F1 and the second arithmetic unit F2 are integrated on the MCU (2) chip in FIG. 2). In other embodiments, the detecting device, the first computing unit F1, and the second computing unit F2 may be integrated on the same chip. A voltage detecting method as shown in FIG. 3 for obtaining a voltage value of a voltage source to be tested can be realized by using a voltage detecting device as shown in FIG. 2. A first voltage dividing resistor, a second voltage dividing resistor, and a detecting device for obtaining a voltage dividing value on the connection node of the first voltage dividing resistor and the second voltage dividing resistor are disposed between the two ends of the voltage source to be tested, including:
S1: 使待测电压源暂停工作; S2: 提供一基准电压并根据第一分压电阻和 第二分压电阻的阻值以及此时检测器件获取的第一分压值,得到检测器件的内 阻值; 具体可用如下计算式实现: S1: suspending the voltage source to be tested; S2: providing a reference voltage and obtaining the inside of the detecting device according to the resistance values of the first voltage dividing resistor and the second voltage dividing resistor and the first partial pressure value obtained by the detecting device at this time Resistance value; can be achieved by the following calculation formula:
其中, Rin为检测器件的内阻值; 为第一分压电阻的阻值; ^为第二分
压电阻的阻值; ^为所述第一分压值; VCC为所述基准电压。 基准电压可由一基准电压源提供。若使用如图 2所示电压检测装置作电压 检测时, 当基准电压源工作时, 可根据检测器件检测端子 3获取的连接节点 4 上的第一分压值计算检测器件的内阻值 Rin; 在使用图 2 中第一运算单元 F1 得到内阻值 Rin后, 可将内阻值 Rin写入第一运算单元 F1进行记录(该值为 一恒定值 )也可不经记录直接输出该内阻值 Rin至第二运算单元 F2, 内阻值 写入第一运算单元 F1便于用户随时提取显示该内阻值; Wherein, R in is the internal resistance value of the detecting device; is the resistance value of the first voltage dividing resistor; ^ is the second point The resistance of the voltage resistor; ^ is the first voltage division value; VCC is the reference voltage. The reference voltage can be provided by a reference voltage source. If the voltage detecting device shown in FIG. 2 is used for voltage detection, when the reference voltage source is operated, the internal resistance value Rin of the detecting device can be calculated according to the first partial voltage value on the connecting node 4 obtained by the detecting device detecting terminal 3; After the internal resistance value Rin is obtained by using the first operation unit F1 in FIG. 2, the internal resistance value Rin can be written into the first operation unit F1 for recording (the value is a constant value), and the internal resistance value can be directly output without recording. Rin to the second operation unit F2, the internal resistance value is written into the first operation unit F1, so that the user can extract and display the internal resistance value at any time;
S3:使待测电压源恢复工作并根据所述内阻值、第一分压电阻和第二分压 电阻的阻值以及此时检测器件获取的第二分压值, 得到待测电压源的电压值; 具体可用如下计算式实现: S3: returning the voltage source to be tested and obtaining the voltage source to be tested according to the internal resistance value, the resistance values of the first voltage dividing resistor and the second voltage dividing resistor, and the second partial pressure value obtained by the detecting device at this time. The voltage value can be realized by the following calculation formula:
R、 + R, +
VDD = U,x- R + R;' VDD = U, x- R + R; '
其中, VDD为待测电压源的电压值; ¾为第一分压电阻的阻值; R2为第 二分压电阻的阻值; Rin为检测器件的内阻值; U2为所述第二分压值。 对应于图 2所示的装置, 步骤 S3在另一实施例中还可以包括以下两个步 骤: Where VDD is the voltage value of the voltage source to be tested; 3⁄4 is the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the internal resistance value of the detecting device; U 2 is the The second partial pressure value. Corresponding to the device shown in FIG. 2, step S3 may further include the following two steps in another embodiment:
S301: 将得到的检测器件之内阻值、第一分压电阻和第二分压电阻的阻值 进行阻值变换得到基准电压源的电压值与第一分压值的比值;在使用第二运算 单元 F2的比值输出单元得到该比值后, 可将比值写入比值输出单元; 当待测 电压源 VDD恢复工作后, 则比值输出单元可直接输出该比值至乘法器进行检 测电压的计算, 也可不经写入直接输出至乘法器, 由乘法器进行记录。 S301: performing resistance conversion on the resistance values of the obtained detecting device, the first voltage dividing resistor and the second voltage dividing resistor to obtain a ratio of the voltage value of the reference voltage source to the first partial pressure value; After the ratio output unit of the operation unit F2 obtains the ratio, the ratio can be written into the ratio output unit; when the voltage source VDD to be tested resumes operation, the ratio output unit can directly output the ratio to the multiplier for calculation of the detected voltage. It can be directly output to the multiplier without writing, and recorded by the multiplier.
S301中的基准电压源与第一分压值的比值可用如下计算式实现:
The ratio of the reference voltage source in S301 to the first partial pressure value can be realized by the following calculation formula:
R +
其中, k为所述基准电压源的电压值与第一电压值的比值; 为第一分压 电阻的阻值; R2为第二分压电阻的阻值; Rin为检测器件的内阻值。 R + Where k is the ratio of the voltage value of the reference voltage source to the first voltage value; the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the internal resistance of the detecting device value.
S302: 恢复待测电压源工作, 将检测器件在连接节点(连接节点 4 )获取 的第二分压值与 S301中得到的比值(基准电压源的电压值与第一分压值的比 值)相乘并输出; 输出的结果即为检测待测电压源 VDD的即时电压检测值, 具体计算式为: VDD = U2 x k。 步骤 S2及 S301~S302首先向检测器件提供基准电压获取检测器件检测端 子端口的输入内阻值 Rin; 再基于检测器件的内阻值及第一分压电阻及第二分 压电阻的阻值变换算得到基准电压基准电压源与连接节点 4上分压值的比值, 由于对于待测电压源电压值与连接节点 4 上的分压值之比值是一恒定值, 因 此, 只需记录该比值, 在实际作检测时直接检测连接节点 4上的分压值, 再将 分压值与该比值相乘, 可得到精确的电压检测数据。 不仅如此,在本实施例电压检测方法的较佳实施例中, 为了实现检测电路 的低功耗测量, 可设置分压电阻的阻值较大, 4 R1 + R2 > Rm ; 但分压电阻的阻 值不限于此范围,本申请的电压检测方法对于分压电阻的阻值范围不作任何限 制, 即可达到电压检测的精准结果。 本发明虽然已以较佳实施例公开如上,但其并不是用来限定本发明,任何 本领域技术人员在不脱离本发明的精神和范围内,都可以利用上述揭示的方法 和技术内容对本发明技术方案做出可能的变动和修改, 因此, 凡是未脱离本发 改、 等同变化及修饰, 均属于本发明技术方案的保护范围。
S302: Resume the operation of the voltage source to be tested, and compare the second partial pressure value obtained by the detecting device at the connection node (connecting node 4) with the ratio obtained in S301 (the ratio of the voltage value of the reference voltage source to the first partial pressure value) Multiply and output; the result of the output is the detection of the instantaneous voltage detection value of the voltage source VDD to be tested. The specific calculation formula is: VDD = U 2 xk. Step S2 and S301~S302 firstly provide the detection device with the input internal resistance value Rin of the detection terminal port of the reference voltage acquisition detecting device; and further, based on the internal resistance value of the detecting device and the resistance value of the first voltage dividing resistor and the second voltage dividing resistor Converting the ratio of the reference voltage reference source to the voltage dividing value on the connection node 4, since the ratio of the voltage value of the voltage source to be tested to the voltage dividing value on the connection node 4 is a constant value, it is only necessary to record the ratio. When the actual detection is performed, the partial pressure value on the connection node 4 is directly detected, and the partial pressure value is multiplied by the ratio to obtain accurate voltage detection data. Moreover, in the preferred embodiment of the voltage detecting method of the embodiment, in order to realize the low power consumption measurement of the detecting circuit, the resistance of the voltage dividing resistor can be set to be large, 4 R 1 + R 2 > R m ; The resistance of the voltage resistor is not limited to this range. The voltage detection method of the present application does not impose any limitation on the resistance range of the voltage divider resistor, and the accurate result of the voltage detection can be achieved. The present invention has been disclosed in the preferred embodiments as described above, but it is not intended to limit the invention, and the present invention may be utilized by the method and technical contents disclosed above without departing from the spirit and scope of the invention. The technical solutions make possible changes and modifications, and therefore, the scope of protection of the technical solutions of the present invention is not deviated from the present invention.
Claims
1、 一种电压检测装置, 包括分别与待测电压源两端相连第一端子、 第二 端子、串联在第一端子与第二端子之间的第一分压电阻和第二分压电阻以及获 取第一分压电阻和第二分压电阻的连接节点上分压值的检测器件, 其特征在 于, 还包括: 基准电压源,在待测电压源暂停工作时,通过所述第一端子对检测器件供 电; 第一运算单元, 用于当基准电压源工作时, 根据检测器件获取的第一分压 值、 第一分压电阻和第二分压电阻的阻值, 得到检测器件的内阻值; 第二运算单元, 用于当待测电压源工作时,根据检测器件获取的第二分压 值、所述内阻值及第一分压电阻和第二分压电阻的阻值,得到待测电压源的电 压值。 A voltage detecting device comprising: a first voltage dividing resistor and a second voltage dividing resistor connected to a first terminal, a second terminal, and a series connection between the first terminal and the second terminal, respectively, and a voltage source to be tested; a detecting device for obtaining a voltage dividing value on a connection node of the first voltage dividing resistor and the second voltage dividing resistor, further comprising: a reference voltage source, when the voltage source to be tested is suspended, passing the first terminal pair The first operating unit is configured to obtain the internal resistance of the detecting device according to the first partial voltage value, the first voltage dividing resistor and the second voltage dividing resistor obtained by the detecting device when the reference voltage source is operated. a second operation unit, configured to: when the voltage source to be tested operates, according to the second partial pressure value obtained by the detecting device, the internal resistance value, and the resistance values of the first voltage dividing resistor and the second voltage dividing resistor, The voltage value of the voltage source to be tested.
2、 如权利要求 1所述的电压检测装置, 其特征在于, 所述第一分压电阻 及第二分压电阻的阻值之和大于检测器件的内阻值。 2. The voltage detecting device according to claim 1, wherein a sum of resistances of the first voltage dividing resistor and the second voltage dividing resistor is greater than an internal resistance value of the detecting device.
3、 如权利要求 1所述的电压检测装置, 其特征在于, 所述第一运算单元 用于实现如下计算式: 3. The voltage detecting device according to claim 1, wherein the first arithmetic unit is configured to implement the following calculation formula:
R, X R, χ [/, R, X R, χ [/,
FL = FL =
VCC x R, - R, x [/, - R x U, 其中, Rin为检测器件的内阻值; 为第一分压电阻的阻值; ^为第二分 压电阻的阻值; 为所述第一分压值; VCC为所述基准电压源的电压值。 VCC x R, - R, x [/, - R x U, where R in is the internal resistance of the sensing device; is the resistance of the first voltage dividing resistor; ^ is the resistance of the second voltage dividing resistor; The first voltage dividing value; VCC is a voltage value of the reference voltage source.
4、 如权利要求 1所述的电压检测装置, 其特征在于, 所述第二运算单元 用于实现如下计算式: 4. The voltage detecting device according to claim 1, wherein the second arithmetic unit is configured to implement the following calculation formula:
VDD = U,x- R + R VDD = U, x- R + R
其中, VDD为待测电压源的电压值; 为第一分压电阻的阻值; R2为第 二分压电阻的阻值; R,.„为检测器件的内阻值; U2为所述第二分压值。
Where VDD is the voltage value of the voltage source to be tested; the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R,. „ is the internal resistance value of the detecting device; U 2 is the The second partial pressure value is described.
5、 如权利要求 1~4任一项所述的电压检测装置, 其特征在于, 所述第一 分压电阻和第二分压电阻的阻值预先写入所述的第一运算单元及第二运算单 元。 The voltage detecting device according to any one of claims 1 to 4, wherein the resistance values of the first voltage dividing resistor and the second voltage dividing resistor are written in advance to the first arithmetic unit and the first Two arithmetic units.
6、 如权利要求 1~4任一项所述的电压检测装置, 其特征在于, 第一运算 单元及第二运算单元由 MCU芯片实现。 The voltage detecting device according to any one of claims 1 to 4, wherein the first arithmetic unit and the second arithmetic unit are implemented by an MCU chip.
7、 如权利要求 6所述的电压检测装置, 其特征在于, 所述的检测器件也 集成于所述 MCU芯片上。 7. The voltage detecting device according to claim 6, wherein said detecting device is also integrated on said MCU chip.
8、 一种电压检测方法, 用于得到待测电压源的电压值, 待测电压源的两 端之间设有第一分压电阻、第二分压电阻以及获取第一分压电阻和第二分压电 阻的连接节点上分压值的检测器件, 其特征在于, 包括: 使待测电压源暂停工作; 提供一基准电压并根据第一分压电阻和第二分压电阻的阻值以及此时检 测器件获取的第一分压值, 得到检测器件的内阻值; 使待测电压源恢复工作并根据所述内阻值、第一分压电阻和第二分压电阻 的阻值以及此时检测器件获取的第二分压值, 得到待测电压源的电压值。 8. A voltage detecting method for obtaining a voltage value of a voltage source to be tested, wherein a first voltage dividing resistor, a second voltage dividing resistor, and a first voltage dividing resistor are obtained between two ends of the voltage source to be tested The device for detecting the voltage division value at the connection node of the two-dividing resistor, comprising: suspending the voltage source to be tested; providing a reference voltage according to the resistance values of the first voltage dividing resistor and the second voltage dividing resistor; At this time, the first partial pressure value obtained by the detecting device is obtained, and the internal resistance value of the detecting device is obtained; the voltage source to be tested is restored to work and according to the internal resistance value, the resistance values of the first voltage dividing resistor and the second voltage dividing resistor, and At this time, the second partial pressure value obtained by the device is detected, and the voltage value of the voltage source to be tested is obtained.
9、 如权利要求 8所述的电压检测方法, 其特征在于, 所述第一分压电阻 及第二分压电阻的阻值之和大于检测器件的内阻值。 The voltage detecting method according to claim 8, wherein a sum of resistances of the first voltage dividing resistor and the second voltage dividing resistor is greater than an internal resistance value of the detecting device.
10、 如权利要求 8所述的电压检测方法, 其特征在于, 所述提供一基准电 压并根据第一分压电阻和第二分压电阻的阻值以及此时检测器件获取的第一 分压值得到检测器件的内阻值用如下计算式实现: in YCC x R^ R. x U, - R2 x U, 其中, Rin为检测器件的内阻值; 为第一分压电阻的阻值; ^为第二分 压电阻的阻值; 为所述第一分压值; VCC为所述基准电压。 The voltage detecting method according to claim 8, wherein the providing a reference voltage and the first partial pressure obtained by the detecting device according to the resistance values of the first voltage dividing resistor and the second voltage dividing resistor The value of the internal resistance of the detection device is realized by the following calculation formula: i n YCC x R^ R. x U, - R 2 x U, where R in is the internal resistance of the detecting device; Resistance value; ^ is the resistance value of the second voltage dividing resistor; is the first voltage dividing value; VCC is the reference voltage.
11、 如权利要求 8所述的电压检测方法, 其特征在于, 所述使待测电压源 恢复工作并根据所述内阻值、第一分压电阻和第二分压电阻的阻值以及此时检
测器件获取的第二分压值得到待测电压源的电压值用如下计算式实现: The voltage detecting method according to claim 8, wherein the voltage source to be tested is restored to work and according to the internal resistance value, the resistance values of the first voltage dividing resistor and the second voltage dividing resistor, and the like Time check The second partial pressure value obtained by the measuring device obtains the voltage value of the voltage source to be tested by using the following calculation formula:
VDD = U,x- R + R"VDD = U, x- R + R "
其中, VDD为待测电压源的电压值; A为第一分压电阻的阻值; R2为第 二分压电阻的阻值; Rin为检测器件的内阻值; U2为所述第二分压值。
Where VDD is the voltage value of the voltage source to be tested; A is the resistance value of the first voltage dividing resistor; R 2 is the resistance value of the second voltage dividing resistor; R in is the internal resistance value of the detecting device; U 2 is the The second partial pressure value.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210457394.4A CN102944717B (en) | 2012-11-14 | 2012-11-14 | Voltage check device and method |
CN201210457394.4 | 2012-11-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014075361A1 true WO2014075361A1 (en) | 2014-05-22 |
Family
ID=47727677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/085726 WO2014075361A1 (en) | 2012-11-14 | 2012-12-03 | Voltage detection apparatus and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102944717B (en) |
WO (1) | WO2014075361A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104698263A (en) * | 2013-12-09 | 2015-06-10 | 惠州市吉瑞科技有限公司 | System and method for detecting power supply voltages and power supply system |
CN112213544A (en) * | 2019-07-09 | 2021-01-12 | 深圳市文鼎创数据科技有限公司 | Voltage detection circuit and voltage detection method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0733959A1 (en) * | 1995-03-24 | 1996-09-25 | Co.Ri.M.Me. Consorzio Per La Ricerca Sulla Microelettronica Nel Mezzogiorno | Circuit for generating a reference voltage and detecting an undervoltage of a supply voltage and corresponding method |
JP2000131348A (en) * | 1998-10-28 | 2000-05-12 | New Japan Radio Co Ltd | Digital measuring device |
CN1379301A (en) * | 2001-03-30 | 2002-11-13 | 精工电子有限公司 | Voltage detecting circuit |
CN2697658Y (en) * | 2004-04-22 | 2005-05-04 | 陕西科技大学 | High-precision interval type voltage meter |
CN1624486A (en) * | 2003-12-02 | 2005-06-08 | 精工电子有限公司 | Voltage detecting circuit |
CN1641364A (en) * | 2004-01-02 | 2005-07-20 | 彭伟明 | Method for precisely measuring circuit parameter and special measuring device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10354534A1 (en) * | 2003-11-12 | 2005-07-14 | Atmel Germany Gmbh | Circuit arrangement for voltage detection |
JP4507918B2 (en) * | 2005-03-01 | 2010-07-21 | 富士電機システムズ株式会社 | Single power supply voltage measurement circuit |
DE102006044008A1 (en) * | 2006-09-19 | 2008-03-27 | Conti Temic Microelectronic Gmbh | Voltage testing arrangement, has resistors together forming voltage divider for measuring input of microcontroller, and NPN transistor with base connected with output through divider, where control output of microcontroller is switched off |
JP2012117929A (en) * | 2010-12-01 | 2012-06-21 | Mitsubishi Electric Corp | Voltage detection device |
WO2012114278A2 (en) * | 2011-02-22 | 2012-08-30 | Sendyne Corp. | High precision algorithmically assisted voltage divider with fault detection |
-
2012
- 2012-11-14 CN CN201210457394.4A patent/CN102944717B/en active Active
- 2012-12-03 WO PCT/CN2012/085726 patent/WO2014075361A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0733959A1 (en) * | 1995-03-24 | 1996-09-25 | Co.Ri.M.Me. Consorzio Per La Ricerca Sulla Microelettronica Nel Mezzogiorno | Circuit for generating a reference voltage and detecting an undervoltage of a supply voltage and corresponding method |
JP2000131348A (en) * | 1998-10-28 | 2000-05-12 | New Japan Radio Co Ltd | Digital measuring device |
CN1379301A (en) * | 2001-03-30 | 2002-11-13 | 精工电子有限公司 | Voltage detecting circuit |
CN1624486A (en) * | 2003-12-02 | 2005-06-08 | 精工电子有限公司 | Voltage detecting circuit |
CN1641364A (en) * | 2004-01-02 | 2005-07-20 | 彭伟明 | Method for precisely measuring circuit parameter and special measuring device |
CN2697658Y (en) * | 2004-04-22 | 2005-05-04 | 陕西科技大学 | High-precision interval type voltage meter |
Also Published As
Publication number | Publication date |
---|---|
CN102944717B (en) | 2015-09-16 |
CN102944717A (en) | 2013-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI512566B (en) | Touch control detecting apparatus and method thereof | |
GB2484245B (en) | A wide dynamic range electrometer with a fast response | |
CN101806825B (en) | Method and system for measuring effective value of electric parameter of electric motor powered up by frequency converter | |
CN104965009A (en) | Hydrogen concentration detector | |
CN103576016A (en) | USB interface detection system and method | |
CN102288817B (en) | A kind of charging pile consumption detection system and detection method based on virtual load calibrating | |
CN102081143A (en) | Method and system for estimating battery electric quantity | |
CN204575774U (en) | There is the programmable electronic load of direct current resistance measuring ability | |
WO2014075361A1 (en) | Voltage detection apparatus and method | |
TW201128495A (en) | Object sensing apparatus, touch sensing system and touch sensing method | |
CN109974931A (en) | An anti-backflow precision electronic vacuum gauge | |
CN203350247U (en) | Multipoint soil moisture sensor | |
TW201118402A (en) | Method and system for estimating battery percentage | |
CN205785249U (en) | The system of resistance sensor measured by bridge circuit | |
JP2008014774A5 (en) | ||
WO2016188496A1 (en) | Touchscreen terminal and weight measurement method thereof | |
CN204188299U (en) | Multichannel IGBT inner NTC high temperature real-time detection circuit | |
CN208026855U (en) | An electronic transformer calibrator traceability device signal source | |
CN104406641B (en) | An ultrasonic flowmeter peak detection method and compensation system | |
CN206378535U (en) | A kind of detection platform of small resistor resistance | |
WO2024040626A1 (en) | Temperature measurement method and apparatus based on synchronous detection | |
CN111854806B (en) | Capacitive-to-digital converter with extended measurement range and associated method | |
CN102944726A (en) | Device for separating resistive current from leakage current | |
CN202975119U (en) | Resistive-current separating apparatus for leakage current | |
CN108775934B (en) | Indirect Measurement Method of Digital Gas Flow Based on AMDF Algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12888384 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12888384 Country of ref document: EP Kind code of ref document: A1 |