CN1632707A - Battery feeding type memory electricity quantity measuring system and method - Google Patents
Battery feeding type memory electricity quantity measuring system and method Download PDFInfo
- Publication number
- CN1632707A CN1632707A CN 200310117659 CN200310117659A CN1632707A CN 1632707 A CN1632707 A CN 1632707A CN 200310117659 CN200310117659 CN 200310117659 CN 200310117659 A CN200310117659 A CN 200310117659A CN 1632707 A CN1632707 A CN 1632707A
- Authority
- CN
- China
- Prior art keywords
- battery
- time
- time span
- consume
- nonvolatile memory
- 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.)
- Granted
Links
Images
Landscapes
- Secondary Cells (AREA)
- Tests Of Electric Status Of Batteries (AREA)
Abstract
This invention provides a system and method of battery memory electricity measurement, which can be connected with computer BBSRAM (Battery-Backed Static Random Access Memory) and is used to measure the battery electricity of the BBSRAM and reminds the user to renew the battery. The system comprises one non-losing memory, one real-time clock, one central processor and one alarming device. The non-losing memory, real-time clock and alarming device are connected with the central processor.
Description
[technical field]
The present invention relates to a kind of system and method for measuring battery electric quantity, particularly relate to a kind of system and method for measuring battery-operated type storer electric weight by the consume time span of counting cell.
[background technology]
(Random Access Memory is to be only second to central processing unit (Center Process Unit, one of most important parts CPU) in the computing machine RAM) to random access storage device.Relation between them, just thinking is the same with the relation of memory in people's brain, is inseparable.CPU institute's data to be processed and instruction must be placed on earlier to be waited among the RAM, and CPU also temporarily is placed on the intermediate data that major part is being handled among the RAM.The also important parameter that is provided with of storage computation machine system among the RAM simultaneously.But RAM is a volatile memory, and after the computer system outage, the data among the RAM will be lost.Therefore, occurred adding BBSRAM (the Battery-Backed Static RandomAccess Memory) nonvolatile memory that backup battery prevents loss of data for RAM.This storer has static random-access memory (Static Random Access Memory) and built-in small-sized battery to constitute.When computer system had electricity, the employed electric power of BBSRAM was from computer system, and when computer system there was not electricity, BBSRAM then can write down data originally by the built-in electric power that battery provided of dependence itself.
The electric weight of battery is limited, therefore in time knows the consume situation of internal cell when using BBSRAM, has become to guarantee the key of BBSRAM operate as normal.At present a lot of for the measuring method of battery electric quantity, but wherein major part all will be measured the parameters such as electric current, voltage, temperature of battery by pick-up unit or testing circuit, thus measure the dump energy of battery.For example China national Department of Intellectual Property is in No. 1063769 patent of bulletin on August 19th, 1992, this patent name is " battery charge monitor of personal computer ", one of this patent utilization is electrically connected to the processor reception of a plurality of signal generating circuits and handles electric current, voltage, the temperature characteristic parameter of self-test device, shows to determine the electric weight of remaining power then by predetermined discharge.Described discharge table depends on electric current, voltage, the temperature of battery.And for example Wise property office in Taiwan is in No. 091111808 patent of bulletin on September 21st, 2003, this patent name is " portable electronic devices is in the informing device and the method for battery electric quantity deficiency ", this patent utilization one special-purpose integrated circuit is differentiated the height of cell voltage position standard, relatively the voltage level of battery and is guarded against voltage level then, informs the user by a light emitting diode when the voltage level of this battery is lower than this warning voltage level.No. 106379 patented technology need be used testing circuits such as current detection circuit, voltage detecting circuit, temperature sensing circuit in above-mentioned China national Department of Intellectual Property, and No. 091111808 patented technology need be used special circuit, logic lock crystal in above-mentioned Taiwan Wise property office.Above-mentioned two patents are more complicated in design, and cost is also than higher.
So need provide a kind of simply, the system and method for battery electric quantity on the metering computer BBSRAM storer cheaply.
[summary of the invention]
Fundamental purpose of the present invention is to provide a kind of battery-operated type storer power measurement system and method, but battery consume time span, remaining battery time span on its computing computer BBSRAM (Battery-Backed Static RandomAccess Memory) storer, and compare remaining battery time span and the predetermined time span of changing of battery, when changing time span less than battery is predetermined, the remaining battery time span changes battery by alarm prompting user.Wherein the predetermined time span of changing of battery is changed the time span of battery for the prompting user of user's setting, when the remaining battery time span just reminds the user to change battery during less than the time span of this setting.
For achieving the above object, the invention provides a kind of battery-operated type storer power measurement system, this system comprises: a nonvolatile memory, a real-time clock, a central processing unit and an alarm.Non-volatile memory access can be flash memory (Flash Memory) or is the erasable programmable read only memory (Erasable and Programmable Read-OnlyMemory, EPROM) or be to remove programmable read only storage (Electrically ErasableProgrammable Read-Only Memory by electricity, EEPROM), be used for storage system time point, the predetermined up time length of battery, predetermined time span and the battery consume time span changed of battery.Wherein the predetermined up time length of battery is that battery is saturated to length discharge time that electric weight exhausts from electric weight.Real-time clock is used to indicate current system time point.Central processing unit is used for according to once the system time point of outage, the predetermined up time length of battery, previous battery consume new consume time span and the remaining battery time span of current system time point counting cell on time span and the real-time clock before the nonvolatile memory.Alarm is used for piping when the remaining battery time span is changed time span less than battery is predetermined, reminds the user to change battery.
The present invention also provides a kind of battery-operated type storer quantity measuring method, and this method includes following steps: (a) start; (b) counting cell consume time span; (c) counting cell length excess time; (d) judge that whether the remaining battery time span is less than the predetermined time span of changing of battery; (e) if the remaining battery time span less than the predetermined time span of changing of battery, starts alarm, remind the user to change battery; (f) if the remaining battery time span not less than the predetermined time span of changing of battery, is preserved current system time point to nonvolatile memory; (g) judge whether computer system cuts off the power supply, do not return step f, if the computer system outage finishes if computer system is cut off the power supply.
Wherein step (b) counting cell consume time span is further comprising the steps of: (b1) central processing unit reads the system time point and previous battery consume time span that is stored in the preceding once outage on the nonvolatile memory; (b2) central processing unit reads the current system time point on the real-time clock; (b3) central processing unit is according to formula " battery consume time span=previous battery consume time span+current system time point-preceding once system time point of outage " counting cell consume time span; (b4) central processing unit consumes time span with battery and is saved on the nonvolatile memory.
Wherein step (c) counting cell length excess time is further comprising the steps of: (c1) central processing unit reads the predetermined up time length of the battery that is stored on the nonvolatile memory; (c2) central processing unit is according to formula " the predetermined up time length of length=battery excess time of battery-battery consume time span " counting cell length excess time.
By battery-operated type storer power measurement system provided by the invention and method, can calculate the consume time span of battery on the BBSRAM storer automatically, in time remind the user to change battery, avoid on the BBSRAM storer battery electric quantity to exhaust and make the BBSRAM storer lose its function.
[description of drawings]
Fig. 1 is the hardware structure figure of battery-operated type storer power measurement system of the present invention.
Fig. 2 is a battery-operated type storer quantity measuring method process flow diagram of the present invention.
Fig. 3 is the operation process chart of the counting cell consume time span of battery-operated type storer quantity measuring method of the present invention.
Fig. 4 is the operation process chart of counting cell length excess time of battery-operated type storer quantity measuring method of the present invention.
[embodiment]
As shown in Figure 1, be the hardware structure figure of battery-operated type storer power measurement system of the present invention.This battery-operated type storer power measurement system comprises a nonvolatile memory 11, one real-time clock 12, one central processing units, 10, one alarms 13 and many single data buses 14.Wherein nonvolatile memory 11 is used to store data, and these data comprise system time point, the predetermined up time length of battery, predetermined time span and the battery consume time span changed of battery.Wherein the predetermined up time length of battery is that battery is saturated to length discharge time that electric weight exhausts from electric weight, battery is predetermined to be changed time span and changes the time span of battery for the prompting user of user's setting, when the remaining battery time span just reminds the user to change battery during less than the time span of this setting.This nonvolatile memory 11 can be flash memory (FlashMemory) or is the erasable programmable read only memory (Erasable and ProgrammableRead-Only Memory, EPROM) or be can electricity remove programmable read only storage (Electrically Erasable Programmable Read-Only Memory, EEPROM).This real-time clock 12 is used to indicate current system time point.This central processing unit 10 is used for according to once the system time point of outage, the predetermined up time length of battery, previous battery consume new consume time span and the remaining battery time span of current system time point counting cell on time span and the real-time clock 12 before the nonvolatile memory 11.This alarm 13 is used for reminding the user to change battery send tweeting sound when the remaining battery time span is changed time span less than battery is predetermined.
As shown in Figure 2, be battery-operated type storer quantity measuring method process flow diagram of the present invention.At first this process flow diagram originates in start (step S20).Central processing unit 10 consumes time span, and this battery consume time span is saved in (step S21) on the nonvolatile memory 11 according to formula " battery consume time span=previous battery consume time span+current system time point-preceding once system time point of outage " counting cell.This central processing unit 10 is according to formula " remaining battery time span=battery is scheduled to up time length-battery consume time span " counting cell length excess time (step S22) then.Central processing unit 10 judges that whether the remaining battery time span is less than the predetermined time span (step S23) of changing of battery.If the remaining battery time span is less than the predetermined time span of changing of battery, central processing unit 10 starts alarm 13, reminds the user to change battery (step S24).If less than the predetermined time span of changing of battery, the current system time that central processing unit 10 is preserved on the real-time clock 12 is not put (step S25) on the nonvolatile memory 11 to the remaining battery time span.Whether central processing unit 10 real-time judge computer systems cut off the power supply, and do not return step S25 (step S26) if computer system is cut off the power supply.If the computer system outage then finishes.
As shown in Figure 3, be the operation process chart of the counting cell consume time span of battery-operated type storer quantity measuring method of the present invention.At first central processing unit 10 reads the system time point and previous battery consume time span (step S210) that is stored in the preceding once outage on the nonvolatile memory 11 by data bus 14.Then central processing unit 10 reads current system time point (step S211) on the real-time clock 12 by data bus 14.Central processing unit 10 consumes time span, and this battery consume time span is saved in (step S212) on the nonvolatile memory 11 according to formula " battery consume time span=previous battery consume time span+current system time point-preceding once system time point of outage " counting cell then.The current system time that last central processing unit 10 is preserved real-time clock 12 is put (step S213) on the nonvolatile memory 11.
As shown in Figure 4, be the operation process chart of counting cell length excess time of battery-operated type storer quantity measuring method of the present invention.Central processing unit 10 reads the predetermined up time length (step S220) of the battery that is stored on the nonvolatile memory 11 by data bus 14.Central processing unit 10 is according to formula " remaining battery time span=battery is scheduled to up time length-battery consume time span " counting cell length excess time (step S221).
Claims (10)
1. a battery-operated type storer power measurement system, it can be connected on the computing machine BBSRAM (Battery-Backed Static Random Access Memory), is used to measure the battery electric quantity in the BBSRAM, in time reminds the user to change battery, it is characterized in that, comprising:
One nonvolatile memory is used to store data, and these data comprise system time point, the predetermined up time length of battery, predetermined time span and the battery consume time span changed of battery;
One real-time clock is used to indicate current system time point;
One central processing unit is used for according to once the system time point of outage, battery are scheduled to up time length before the nonvolatile memory, previous battery consumes current system time point counting cell consume time span and remaining battery time span on time span and the real-time clock; And
One alarm is used for piping when above-mentioned remaining battery time span is changed time span less than battery is predetermined.
2. battery-operated type storer power measurement system as claimed in claim 1 is characterized in that, wherein nonvolatile memory, real-time clock, alarm link to each other with central processing unit by a data bus.
3. battery-operated type storer power measurement system as claimed in claim 1 is characterized in that, wherein nonvolatile memory can be flash memory (Flash Memory).
4. battery-operated type storer power measurement system as claimed in claim 1 is characterized in that, wherein nonvolatile memory can for the erasable programmable read only memory (Erasableand Programmable Read-Only Memory, EPROM).
5. battery-operated type storer power measurement system as claimed in claim 1, it is characterized in that, wherein nonvolatile memory can for can electricity remove programmable read only storage (Electrically Erasable Programmable Read-Only Memory, EEPROM).
6. battery-operated type storer power measurement system as claimed in claim 1, it is characterized in that wherein central processing unit is according to formula " battery consume time span=previous battery consume time span+current system time point-preceding once system time point of outage " counting cell consume time span.
7. battery-operated type storer power measurement system as claimed in claim 1, it is characterized in that wherein central processing unit is according to formula " remaining battery time span=battery is scheduled to up time length-battery consume time span " counting cell length excess time.
8. a battery-operated type storer quantity measuring method is characterized in that, includes following steps:
Provide a nonvolatile memory, storage system time point, the predetermined up time length of battery, predetermined time span and the battery consume time span changed of battery;
Provide a real-time clock to indicate current system time point;
One alarm is provided;
Current system time point counting cell consume time span on the system time point that once cuts off the power supply before in the above-mentioned nonvolatile memory of foundation, previous battery consume time span and the real-time clock;
According to predetermined up time length of battery in the above-mentioned nonvolatile memory and battery consume time span counting cell length excess time;
Judge that whether the remaining battery time span is less than the predetermined time span of changing of battery;
Be scheduled to change time span when the remaining battery time span less than battery, start alarm;
Be not scheduled to change time span less than battery when the remaining battery time span, the current system time of preserving on the real-time clock is put on the nonvolatile memory; And
Judge whether computer system cuts off the power supply, if not outage of computer system, the current system time of preserving on the real-time clock is put on the nonvolatile memory.
9. battery-operated type storer quantity measuring method as claimed in claim 8 is characterized in that, wherein said counting cell consume time span may further comprise the steps:
Read the system time point and previous battery consume time span that are stored in the preceding once outage on the nonvolatile memory;
Read the current system time point on the real-time clock;
Be saved on the nonvolatile memory according to formula " battery consume time span=previous battery consume time span+current system time point-preceding once system time point of outage " counting cell consume time span and with this battery consume time span; And
The current system time of preserving on the real-time clock is put on the nonvolatile memory.
10. battery-operated type storer quantity measuring method as claimed in claim 8 is characterized in that, wherein said counting cell length excess time may further comprise the steps:
Read the predetermined up time length of the battery that is stored on the nonvolatile memory; And
According to formula " remaining battery time span=battery is scheduled to up time length-battery consume time span " counting cell length excess time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101176597A CN100345076C (en) | 2003-12-24 | 2003-12-24 | Battery feeding type memory electricity quantity measuring system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101176597A CN100345076C (en) | 2003-12-24 | 2003-12-24 | Battery feeding type memory electricity quantity measuring system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1632707A true CN1632707A (en) | 2005-06-29 |
CN100345076C CN100345076C (en) | 2007-10-24 |
Family
ID=34843667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2003101176597A Expired - Fee Related CN100345076C (en) | 2003-12-24 | 2003-12-24 | Battery feeding type memory electricity quantity measuring system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100345076C (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101995554A (en) * | 2010-11-03 | 2011-03-30 | 无敌科技(西安)有限公司 | Electronic device with power state evaluation function and power evaluation method thereof |
CN106293796A (en) * | 2015-06-10 | 2017-01-04 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN111123797A (en) * | 2019-12-31 | 2020-05-08 | 天地(常州)自动化股份有限公司 | Power management system and method for coal mine monitoring system |
CN111540399A (en) * | 2019-02-01 | 2020-08-14 | 爱思开海力士有限公司 | Memory system and operating method thereof |
CN112388674A (en) * | 2020-10-13 | 2021-02-23 | 中铭谷智能机器人(广东)有限公司 | Industrial robot battery clock method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6115676A (en) * | 1996-04-09 | 2000-09-05 | General Electric Company | Methods and apparatus for performing load profile and load control |
US5822600A (en) * | 1996-07-19 | 1998-10-13 | Compaq Computer Corporation | Dynamic hibernation time in a computer system |
-
2003
- 2003-12-24 CN CNB2003101176597A patent/CN100345076C/en not_active Expired - Fee Related
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101995554A (en) * | 2010-11-03 | 2011-03-30 | 无敌科技(西安)有限公司 | Electronic device with power state evaluation function and power evaluation method thereof |
CN101995554B (en) * | 2010-11-03 | 2014-04-23 | 无敌科技(西安)有限公司 | Electronic device with power state evaluation function and power evaluation method thereof |
CN106293796A (en) * | 2015-06-10 | 2017-01-04 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN106293796B (en) * | 2015-06-10 | 2019-11-26 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN111540399A (en) * | 2019-02-01 | 2020-08-14 | 爱思开海力士有限公司 | Memory system and operating method thereof |
CN111123797A (en) * | 2019-12-31 | 2020-05-08 | 天地(常州)自动化股份有限公司 | Power management system and method for coal mine monitoring system |
CN112388674A (en) * | 2020-10-13 | 2021-02-23 | 中铭谷智能机器人(广东)有限公司 | Industrial robot battery clock method |
Also Published As
Publication number | Publication date |
---|---|
CN100345076C (en) | 2007-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5714870A (en) | Method for measuring suspend-time power consumption in a battery-powered electronic device | |
CN103064799A (en) | Electronic system and method and apparatus for saving data thereof | |
US20150091550A1 (en) | Energy monitor for a power source | |
WO2023029753A1 (en) | Device power supply method and apparatus, terminal device and storage medium | |
CN100345076C (en) | Battery feeding type memory electricity quantity measuring system and method | |
CN114236461B (en) | Electric quantity calibration method, electronic equipment and storage medium | |
CN111361448A (en) | Self-discharge detection method and device of battery, battery controller and storage medium | |
US20120253714A1 (en) | Battery voltage measurement | |
CN101131606A (en) | Palm PC standby time guarantee method | |
US6967890B2 (en) | Battery power measuring system and method for a battery-backed SRAM | |
US20090174370A1 (en) | Power source sensing and battery charging | |
CN113437375A (en) | Quick charging method and device, electronic equipment and storage medium | |
WO2021145923A1 (en) | Model-based capacity and resistance correction for rechargeable battery fuel gauging | |
CN111836347A (en) | Electric quantity display method, device and equipment and readable storage medium | |
CN116861133A (en) | Calculation method and device for static average current of low-voltage lithium battery | |
CN115728665A (en) | Power failure detection circuit, method and system | |
US7877631B2 (en) | Detection of system battery errors | |
CN114355208A (en) | Battery fault determination method and device, electronic equipment and storage medium | |
CN113741674A (en) | Power consumption control method, system, terminal and storage medium for notebook computer | |
CN103455127A (en) | Power supply monitoring device, electronic device and power supply monitoring method thereof | |
KR20210148803A (en) | Smart battery device | |
CN112749304A (en) | Method for limiting calculation force of mining machine, mining machine and storage medium | |
US20210143662A1 (en) | Charging voltage reduction of batteries | |
CN112540223A (en) | Intelligent ammeter and electricity taking method and device thereof | |
CN116620101A (en) | Battery detection method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071024 Termination date: 20141224 |
|
EXPY | Termination of patent right or utility model |