CN103424698A - Electric quantity detection device and electric quantity detection device - Google Patents

Electric quantity detection device and electric quantity detection device Download PDF

Info

Publication number
CN103424698A
CN103424698A CN2012101554867A CN201210155486A CN103424698A CN 103424698 A CN103424698 A CN 103424698A CN 2012101554867 A CN2012101554867 A CN 2012101554867A CN 201210155486 A CN201210155486 A CN 201210155486A CN 103424698 A CN103424698 A CN 103424698A
Authority
CN
China
Prior art keywords
resistance
battery
embedded controller
electric
analog
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.)
Pending
Application number
CN2012101554867A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2012101554867A priority Critical patent/CN103424698A/en
Publication of CN103424698A publication Critical patent/CN103424698A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Secondary Cells (AREA)

Abstract

The invention discloses an electric quantity detection device which is used for detecting whether a battery on a main board is correctly installed or not and detecting the remaining electric quantity of the battery. The electric quantity detection device comprises an embedded controller, a first resistor and a second resistor. The embedded controller comprises at least one analog-digital conversion pin, and the analog-digital conversion pin of the embedded controller is electrically connected with the voltage output end of the battery through the first resistor and connected with the ground through the second resistor. A voltage value of the connection node between the first resistor and the second resistor are collected by the analog-digital conversion pin of the embedded controller, and the embedded controller calculates the remaining electric quantity of the battery according to the voltage value of the connection node between the first resistor and the second resistor and judges whether the battery is correctly installed or not. The invention further discloses an electricity quantity detection method.

Description

Electric-quantity monitoring device and method
Technical field
The present invention relates to a kind of arrangement for detecting and method, but refer to especially whether battery on a kind of rapid detection mainboard is correctly installed and electric-quantity monitoring device and the method for the dump energy of battery.
Background technology
Factory is in the process of production and assembly computer main board, and meeting is because human negligence causes RTC(Real-Time Clock, real-time clock usually) correctly installation of battery.In the situation that computer main board external direct current power supply, the temporal information and the CMOS(Complementary Metal Oxide Semiconductor that in the RTC chip, store, complementary metal oxide semiconductor (CMOS)) the interior data message stored of chip can't abnormal.Only have after external direct current power supply is removed and again connect, whether correctly then computer main board being powered on start could confirm the installation of RTC battery.Manually remove after external direct current power supply and again connect again and the power on process of start of computer main board can be expended to a large amount of manpowers and time, and find after computer main board that the RTC battery correctly do not install to need to be dismantled and reinstall, easily cause the damage of computer main board.
If in addition in the situation that computer main board does not access external direct current power supply, if on computer main board, the electric weight of RTC battery exhausts, also may cause the temporal information and the interior data message stored of CMOS chip that store in the RTC chip of computer main board to lose.Usually the user can't learn in advance RTC battery electric quantity deficiency and in advance the RTC battery be changed.
Summary of the invention
In view of above content, but be necessary to provide battery on a kind of rapid detection mainboard whether correctly to install and electric-quantity monitoring device and the method for the dump energy of battery.
A kind of electric-quantity monitoring device, in order to whether battery on mainboard is correctly installed and the dump energy of battery is detected, described electric-quantity monitoring device comprises an embedded controller, one first resistance and one second resistance, described embedded controller comprises at least one analog to digital conversion pin, the analog to digital conversion pin of described embedded controller is electrically connected the voltage output end of a battery via described the first resistance, the analog to digital conversion pin of described embedded controller is via described the second resistance eutral grounding, the analog to digital conversion pin pin of described embedded controller gathers the magnitude of voltage of the connected node between described the first resistance and the second resistance, described embedded controller calculates the dump energy of battery and judges whether battery is correctly installed according to the magnitude of voltage of the connected node between the first resistance and the second resistance.
A kind of electric-quantity monitoring method, the method comprises the steps:
Gather the magnitude of voltage of the connected node between one first resistance and one second resistance by the analog to digital conversion pin of an embedded controller, store a load voltage value and a final voltage value in described embedded controller;
Described embedded controller goes out the dump energy of battery according to the computing the resistor value of the magnitude of voltage of the connected node between the first resistance and the second resistance and described the first resistance and the second resistance;
Described embedded controller judges according to the dump energy of the battery calculated whether battery is correctly installed; If the dump energy of the battery calculated is lower than described final voltage value, described embedded controller judgement battery is not correctly installed and need be reinstalled by a display interface prompting battery;
If the dump energy of the battery calculated is higher than described final voltage value lower than load voltage value, described embedded controller judgement battery is correctly installed and the dump energy of the battery that calculates is presented on described display interface.
Compared to prior art, above-mentioned electric-quantity monitoring device and method gather the magnitude of voltage of the connected node between described the first resistance and the second resistance by the analog to digital conversion pin pin of described embedded controller, described embedded controller calculates the dump energy of battery and judges whether battery is correctly installed according to the magnitude of voltage of the connected node between the first resistance and the second resistance.
The accompanying drawing explanation
Fig. 1 is the circuit diagram of electric-quantity monitoring device better embodiment of the present invention.
Fig. 2 is the process flow diagram of electric-quantity monitoring device better embodiment of the present invention.
The main element symbol description
Embedded controller 100
The analog to digital conversion pin 101
Integrated South Bridge chip 200
Display interface 300
Battery 400
Schottky diode D
The first resistance R1
The second resistance R2
The 3rd resistance R3
Electric capacity C
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
Refer to Fig. 1, one better embodiment of electric-quantity monitoring device of the present invention, in order to whether battery on computer main board is correctly installed and the dump energy of battery is detected, comprises that an embedded controller 100, one first resistance R 1, one second resistance R 2, one the 3rd resistance R 3, a capacitor C, a schottky diode D, an integrated South Bridge chip 200 and are electrically connected the display interface 300 of described embedded controller 100.
Described embedded controller 100 comprises at least one analog to digital conversion pin 101.The analog to digital conversion pin 101 of described embedded controller 100 is in turn via described the first resistance R 1, the 3rd resistance R 3 and capacitor C ground connection.Connected node between described the 3rd resistance R 3 and capacitor C is electrically connected the voltage output end 301 of a battery 400.The analog to digital conversion pin 101 of described embedded controller 100 is via described the second resistance R 2 ground connection.The analog to digital conversion pin 101 of described embedded controller 100 gathers the magnitude of voltage of the connected node between described the first resistance R 1 and the second resistance R 2.Described embedded controller 100 calculates the dump energy of battery 400 and judges whether battery 400 is correctly installed according to the magnitude of voltage of the connected node between the first resistance R 1 and the second resistance R 2.Interior storage one load voltage value of described embedded controller 100 and a final voltage value.Wherein, described load voltage value is 3.0V, and described final voltage value is 2.0V.
Described schottky diode D comprises a first anode, a second anode and a negative electrode.The analog to digital conversion pin 101 of described embedded controller 100 is electrically connected the first anode of described schottky diode D via the first resistance R 1.The second anode of described schottky diode D receives a direct current voltage.The negative electrode of described schottky diode D is electrically connected described integrated South Bridge chip 200.Wherein, described DC voltage is+3.3V.When the computer main board external direct current power supply, the DC voltage of described+3.3V is given described integrated South Bridge chip 200 power supplies via the second anode of schottky diode D, now described integrated South Bridge chip 200 electric weight on consuming cells 400 not; When computer main board does not access direct supply, described battery 400 is given described integrated South Bridge chip 200 power supplies via the second anode of the 3rd resistance R 3 and schottky diode D.
Whether refer to Fig. 2, correctly install and the process flow diagram of the method for detecting of the dump energy of battery for adopting battery on above-mentioned electric-quantity monitoring device detecting computer main board, a better embodiment of described electric-quantity monitoring method comprises the steps:
S201: the analog to digital conversion pin 101 of described embedded controller 100 gathers the magnitude of voltage of the connected node between described the first resistance R 1 and the second resistance R 2;
S202: described embedded controller 100 goes out the dump energy of battery 400 according to the computing the resistor value of the magnitude of voltage of the connected node between the first resistance R 1 and the second resistance R 2 and described the first resistance R 1, the second resistance R 2 and the 3rd resistance R 3;
S203: described embedded controller 100 judges according to the dump energy of the battery 400 calculated whether battery is correctly installed; If the dump energy of the battery calculated 400 is lower than described final voltage value, described embedded controller 100 judgement batteries 400 are incorrect to be installed and need reinstall by described display interface 300 prompting batteries 400;
S204: if the dump energy of the battery calculated 400 higher than described final voltage value lower than load voltage value, described embedded controller 100 judgement batteries 400 are correctly installed and the dump energy of the battery 400 that calculates are presented on described display interface 300.
Wherein, the magnitude of voltage of the connected node between described the first resistance R 1 and the second resistance R 2 is the current value of second resistance R 2 of flowing through divided by the resistance of described the second resistance R 2, the resistance sum that the current value of second resistance R 2 of flowing through is multiplied by described the first resistance R 1, the second resistance R 2 and the 3rd resistance R 3 is the dump energy of described battery 400.
Electric-quantity monitoring device of the present invention and method gather the magnitude of voltage of the connected node between described the first resistance R 1 and the second resistance R 2 by analog to digital conversion pin 101 pins of described embedded controller 100.Described embedded controller 100 calculates the dump energy of battery 400 and judges whether battery 400 is correctly installed according to the magnitude of voltage of the connected node between the first resistance R 1 and the second resistance R 2.

Claims (9)

1. an electric-quantity monitoring device, in order to whether battery on mainboard is correctly installed and the dump energy of battery is detected, described electric-quantity monitoring device comprises an embedded controller, one first resistance and one second resistance, it is characterized in that: described embedded controller comprises at least one analog to digital conversion pin, the analog to digital conversion pin of described embedded controller is electrically connected the voltage output end of a battery via described the first resistance, the analog to digital conversion pin of described embedded controller is via described the second resistance eutral grounding, the analog to digital conversion pin pin of described embedded controller gathers the magnitude of voltage of the connected node between described the first resistance and the second resistance, described embedded controller calculates the dump energy of battery and judges whether battery is correctly installed according to the magnitude of voltage of the connected node between the first resistance and the second resistance.
2. electric-quantity monitoring device as claimed in claim 1, it is characterized in that: described electric-quantity monitoring device also comprises a schottky diode and an integrated South Bridge chip, described schottky diode comprises a first anode, a second anode and a negative electrode, the analog to digital conversion pin of described embedded controller is electrically connected the first anode of described schottky diode via the first resistance, the second anode of described schottky diode receives a direct current voltage, and the negative electrode of described schottky diode is electrically connected described integrated South Bridge chip.
3. electric-quantity monitoring device as claimed in claim 2, it is characterized in that: described electric-quantity monitoring device also comprises one the 3rd resistance and an electric capacity, the analog to digital conversion pin of described embedded controller is in turn via described the first resistance, the 3rd resistance and capacity earth, and the connected node between described the 3rd resistance and electric capacity is electrically connected the voltage output end of described battery.
4. electric-quantity monitoring device as claimed in claim 3, it is characterized in that: described electric-quantity monitoring device also comprises the display interface of the described embedded controller of an electric connection, described display interface shows that the dump energy of battery also points out battery whether correctly to install.
5. electric-quantity monitoring device as claimed in claim 4 is characterized in that: described DC voltage is+3.3V.
6. an electric-quantity monitoring method, the method comprises the steps:
Gather the magnitude of voltage of the connected node between one first resistance and one second resistance by the analog to digital conversion pin of an embedded controller, store a load voltage value and a final voltage value in described embedded controller;
Described embedded controller goes out the dump energy of battery according to the computing the resistor value of the magnitude of voltage of the connected node between the first resistance and the second resistance and described the first resistance and the second resistance;
Described embedded controller judges according to the dump energy of the battery calculated whether battery is correctly installed; If the dump energy of the battery calculated is lower than described final voltage value, described embedded controller judgement battery is not correctly installed and need be reinstalled by a display interface prompting battery;
If the dump energy of the battery calculated is higher than described final voltage value lower than load voltage value, described embedded controller judgement battery is correctly installed and the dump energy of the battery that calculates is presented on described display interface.
7. electric-quantity monitoring method as claimed in claim 6, it is characterized in that: the analog to digital conversion pin of described embedded controller is electrically connected the voltage output end of a battery via described the first resistance, the analog to digital conversion pin of described embedded controller is via described the second resistance eutral grounding.
8. electric-quantity monitoring method as claimed in claim 7, it is characterized in that: the analog to digital conversion pin of described embedded controller is electrically connected the first anode of a schottky diode via the first resistance, the second anode of described schottky diode receives a direct current voltage, and the negative electrode of described schottky diode is electrically connected an integrated South Bridge chip.
9. electric-quantity monitoring method as claimed in claim 8 is characterized in that: the size of described DC voltage is+3.3V.
CN2012101554867A 2012-05-18 2012-05-18 Electric quantity detection device and electric quantity detection device Pending CN103424698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101554867A CN103424698A (en) 2012-05-18 2012-05-18 Electric quantity detection device and electric quantity detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101554867A CN103424698A (en) 2012-05-18 2012-05-18 Electric quantity detection device and electric quantity detection device

Publications (1)

Publication Number Publication Date
CN103424698A true CN103424698A (en) 2013-12-04

Family

ID=49649729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101554867A Pending CN103424698A (en) 2012-05-18 2012-05-18 Electric quantity detection device and electric quantity detection device

Country Status (1)

Country Link
CN (1) CN103424698A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109188064A (en) * 2018-09-26 2019-01-11 郑州云海信息技术有限公司 A kind of electric voltage observation circuit and voltage monitor
CN109444752A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of RTC cell voltage test method, device and server
CN111418569A (en) * 2020-05-11 2020-07-17 电子科技大学中山学院 Electric mosquito swatter with induction type child lock

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109188064A (en) * 2018-09-26 2019-01-11 郑州云海信息技术有限公司 A kind of electric voltage observation circuit and voltage monitor
CN109444752A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of RTC cell voltage test method, device and server
CN111418569A (en) * 2020-05-11 2020-07-17 电子科技大学中山学院 Electric mosquito swatter with induction type child lock

Similar Documents

Publication Publication Date Title
US20130311120A1 (en) Battery voltage detection method and apparatus
CN202512170U (en) Intelligent ammeter communication module circuit structure having power-off protection function
CN108123509B (en) Charging control method and related device thereof
CN105337374A (en) Method for prolonging power supply time
JP2017520225A (en) Power switching device and method for dual power electronic device
CN202663092U (en) Circuit protecting battery against overcharge
CN103424698A (en) Electric quantity detection device and electric quantity detection device
EP4123867A1 (en) Smart battery device, and electronic device thereof
CN103746679A (en) Power-failure memorization method of power-failure memorization circuit and power-failure memorization circuit
CN103683266B (en) Rechargeable battery protection circuit
CN202405762U (en) Protection circuit
CN102403741A (en) Battery leakage protection circuit
CN103151909A (en) Power supply circuit
CN203933099U (en) A kind of portable power source device
CN103490453A (en) Double-battery charging and discharging circuit
CN104124735B (en) Charging voltage stabilizing circuit
CN207265730U (en) A kind of electric energy meter with super capacitor
CN101769954A (en) Voltage detecting circuit for multiple serial batteries
CN201311448Y (en) No-load voltage detection circuit for solar cell panel
CN204495890U (en) Clock power feed circuit
CN217215996U (en) Over-discharge protection and activation circuit and device of battery and electronic equipment
CN221202201U (en) Protection circuit for preventing battery equipment from overdischarging
CN207588436U (en) A kind of reserve battery under-voltage protection and charge-discharge circuit
CN108173424A (en) A kind of portable device supply power soft switch system
CN212366914U (en) Power-down protection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204