CN1121641C - Method for automatic backup of CMOS RAM and masterboard system - Google Patents

Method for automatic backup of CMOS RAM and masterboard system Download PDF

Info

Publication number
CN1121641C
CN1121641C CN 99123162 CN99123162A CN1121641C CN 1121641 C CN1121641 C CN 1121641C CN 99123162 CN99123162 CN 99123162 CN 99123162 A CN99123162 A CN 99123162A CN 1121641 C CN1121641 C CN 1121641C
Authority
CN
China
Prior art keywords
computer system
cmos
power supply
battery
cmos ram
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.)
Expired - Lifetime
Application number
CN 99123162
Other languages
Chinese (zh)
Other versions
CN1294335A (en
Inventor
张乃舜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CN 99123162 priority Critical patent/CN1121641C/en
Publication of CN1294335A publication Critical patent/CN1294335A/en
Application granted granted Critical
Publication of CN1121641C publication Critical patent/CN1121641C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention relates to a method which can automatically backup CMOSRAM and a main board system. When a computer system is in a shutdown state, a detector is used for detecting whether battery voltage is below a normal working value. If the voltage of a CMOS battery is below the normal working value, a main controller is used for controlling a power supplier to start a power supply and enable the computer system to automatically start, and CMOSRAM storage data is stored in a storage device of the computer system. Then, a main control circuit is used for controlling the power supplier to shut down and enable the computer system to automatically shut down. When the computer system is powered on next time, the main controller is used for storing the CMOSRAM storage data stored by the storage device back to the CMOSRAM and prompting a user to replace the CMOS battery.

Description

But the method for automatic backup of CMOS RAM and mainboard system
Technical field
The invention relates to a kind of computer system, but and, prevent that the data of CMOS RAM from losing because of the CMOS battery power is not enough particularly relevant for method and the mainboard system of a kind of automatic backup of CMOS (complement metal oxide semiconductor) RAM (random access memory).
Background technology
General so-called CMOS RAM stores device data, Basic Input or Output System (BIOS) (basic input ouput system, BIOS) data that produced, system boot setting and the real-time clock (real time clock) etc. of computer system haply.The memory capacity of CMOS RAM is designed to 128-256 hyte (bytes) approximately now.
At present the power supply of CMOS RAM is supplied with and is the CMOS battery at two: one in the computer system, and another is working power that power supply unit provided.The CMOS battery is generally not rechargeable type, so for example use lithium battery as the CMOS battery because of U.S.'s statutory regulations for the environmental protection purposes.And the CMOS battery provides CMOS RAM power supply when computer system is in off-mode, so can open the CMOS RAM working power of necessity is provided when power supply unit is closed, and keeps the data correctness in the CMOS RAM.When computer system was in open state, the CMOS battery did not just provide power supply, and this moment, the operating power of CMOS RAM was provided by power supply unit.
Please refer to Fig. 1, it illustrates the power supply supply synoptic diagram of traditional cmos RAM.When computer system boot-strap, power supply unit can output supply voltage Vcc ' and because power source voltage Vcc greater than the voltage of CMOS battery VBAT, so be by power supply unit supply CMOS RAM 100 working powers.But, when computer system was shut down, power supply unit was closed not output supply voltage Vcc, therefore provided CMOS RAM 100 working powers by CMOS battery VBAT.
Yet because be non-rechargeabel as the lithium battery of CMOS battery, so its electric energy might exhaust.But the CMOS battery is that to keep CMOS RAM data integrity indispensable, if the CMOS battery power exhausts or voltage is not when reaching job requirement, data stored among the CMOS RAM is lost, and causes the great inconvenience of user.For example, whenever change CMOS battery after, the user just must reset the computer system data one time, even some user's data is lost at this point.
Moreover the trend of computer technology not only can be put into the BIOS data for increasing the storage volume of CMOS RAM now, more may deposit operating system (operation system in, OS) basic setting data, therefore, CMOS RAM data being kept do not lose becomes problem of the present invention.
Summary of the invention
In view of this, but fundamental purpose of the present invention provides method and the mainboard system of a kind of automatic backup of CMOS RAM, makes CMOS RAM can not guarantee the data integrity of CMOS RAM because of the CMOS battery power exhausts or the undertension lost data.
According to above-mentioned purpose of the present invention, but the method for a kind of automatic backup of CMOS RAM of proposition is applicable to a computer system.It during this this computer system off-mode the storage data of keeping CMOS RAM with a CMOS battery.Method of the present invention comprises: when computer system was in off-mode, examining then, whether the voltage of CMOS battery was lower than the operate as normal value; If the voltage of CMOS battery is lower than the operate as normal value, computer system Auto Power On then, and the storage data of CMOS RAM is stored in a storage device of computer system; Afterwards, computer system is shut down automatically; Next time, the storage data of the CMOS RAM that storage device is stored were deposited back CMOS RAM during computer system boot-strap, and the prompting user changes the CMOS battery.
According to above-mentioned purpose of the present invention, but the mainboard system of a kind of automatic backup of CMOS RAM is proposed, be applicable to a computer system, this computer system comprises this mainboard system, a CMOS battery at least, a power supply unit and the storage facilities of a main power supply with pre-stand-by power source can be provided; It is characterized in that this mainboard system comprises: a CMOS RAM, in order to store the related data of this computer system; When being in shutdown with open state with this main power supply respectively at this computer system, supplies by this CMOS battery this CMOSRAM power supply; One detecting device is a working power with this pre-stand-by power source, and whether the voltage that detects this CMOS battery is lower than the operate as normal value; And a main control circuit, be working power with this main power supply with pre-stand-by power source, receive respectively this detecting device the testing result signal, control the data transfer of this CMOS RAM and this storage device and control this power supply unit and start and close.
For above-mentioned and other purposes of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and conjunction with figs. are described in detail below:
Description of drawings:
Fig. 1 illustrates the power supply supply synoptic diagram of traditional cmos RAM;
But Fig. 2 illustrates mainboard system and its relevant apparatus of a kind of automatic backup of CMOS RAM of a preferred embodiment of the present invention; And
But the method step of a kind of automatic backup of CMOS RAM of Fig. 3 interpretation preferred embodiment of the present invention.
Embodiment
The typical case is the PC of core or the power supply control of workstation computer with the microprocessor, be to utilize pure mechanical open circuit/closed circuit contact-making switch device in early days, control the primary power that the power supply unit circuit is provided, such as the interchange city power supply of 110 volts of controls.When this power switch was in open-circuit condition, the power supply unit of system did not have power supply, so system closedown.When this power switch is switched to closed circuit state, AC power promptly is supplied to the power supply unit of system, power supply unit just can produce the required various direct supplys of computer system operation, typical case as just/negative 5V (volt) with just/bear 12V (volt), computer system is started, begin to operate.This kind mechanicalness power switch must just can make computer system start or shutdown with the action of manually directly switching.If do not have operation or user of service at the scene at computer system place, system promptly can't open or close.
On the other hand, (the IntelCorporation of Ying Daier company in the holy Plutarch La La of California, USA city, Santa Clara, California) proposed before that a kind of its was called the personal host computer specification of ATX, power supply unit wherein no longer is as the major control switch of computer system and system is directly controlled with mechanical open circuit/closed switch.Relatively, the power specification of this kind ATX is management and the control of carrying out whole computer system power supply with the circuit on the computer internal control wafer.This also is a kind of idea of soft power supply control, and it can utilize various mode to come the switch computer, and the mechanicalness switch that no longer only is only limited to by power supply switches, to open and close the operation that two kinds of simple states come the controlling computer system.
2.01 editions with the ATX specification is example, its pre-stand-by power source (standby power) 5VSB is the power supply of a direct current 5V, its maximum can be fed to the output current of 0.7A (ampere), so that the normal power management circuit among driving computer system under the state of shutdown.This kind management circuit can be set carry out many manipulate make things convenient for function.For example, system can set appropriate in advance, in night preset time start automatically, so that in the reduced rate period of telephone operator, send international fax, perhaps, when night is unattended, can dial the incident of crying such as modem and start because of external, so that accept the transmission of external file, or the like.
Because the function renewal of power supply unit, power supply unit now are the standby power supplies that low power consumption can still be provided when computer system is in off-mode.For example above-mentioned ATX framework power supply unit just can provide main power supply and standby power supply simultaneously when starting, and standby power supply is provided when closing.And the present invention utilizes this type of power supply unit that main power supply and standby power supply can be provided, but reaches method and the mainboard system of the present invention's automatic backup of CMOS RAM.
Below please refer to Fig. 2, but in order to a kind of mainboard system of automatic backup of CMOS RAM of explanation a preferred embodiment of the present invention.
But the mainboard system of the automatic backup of CMOS RAM of preferred embodiment of the present invention is connected between a CMOS battery VBAT, a power supply unit 240 and the storage facilities 230 of computer system; Wherein power supply unit can provide main power supply MP and standby power supply SBP, but is the power supply unit of a kind of Auto Power On and shutoff capability.But the mainboard system of above-mentioned automatic backup of CMOS RAM can be established among the wafer set (chipset) 250, as shown in Figure 2.But the mainboard system of this automatic backup of CMOS RAM comprises a CMOS RAM 200, a detecting device (detector) 210 and a main control circuit 220.
This CMOS RAM 200 is in order to store the related data of computer system, for example BIOS data, the basic setting data of operating system (OS) etc.And, supply CMOS RAM 200 working powers when CMOS battery VBAT is in shutdown with open state with main power supply MP respectively at computer system; So keep the working power of CMOSRAM 200, keep being stored in wherein data integrity.
This detecting device 210 is a working power with pre-stand-by power source SBP, and whether the voltage that detects CMOS battery VBAT is lower than the operate as normal value; That is whether the voltage that this detecting device 210 just detects CMOS battery VBAT when computer system is in off-mode is lower than the operate as normal value.
Main control circuit 220 is coupled between detecting device 210, CMOS RAM 200, storage device 230 and the power supply unit 240, can receive respectively detecting device 210 testing result signal, the data transfer between control CMOS RAM200 and the storage device 230 and control power supply unit 240 startup and close.This main control circuit 220 is to be working power with main power supply MP with pre-stand-by power source SBP.Therefore, main control circuit 220 can receive the testing result signal of detecting device 210 when computer system is in shutdown, so if the voltage of CMOS battery be lower than normal working voltage then main control circuit 220 control power supply units 240 start and begin to provide main power supply MP, computer system enters open state.And after computer system enters open state, the data transfer between main control circuit 220 may command CMOS RAM 200 and the storage device 230, so the data with CMOS RAM 200 deposit in the storage device 230; For example the data with CMOS RAM 200 deposit in the Winchester disk drive.Afterwards, main control circuit 220 control power supply units 240 are closed automatically, and so computer system is shut down automatically.
And when computer system user start next time, main control circuit 220 can return the data that have in the storage device 230 CMOS RAM 200 originally to deposit and deposit back in the CMOS RAM 200, so the data of CMOS RAM200 reason CMOS battery power deficiency and losing not.Simultaneously, computer system can notify the user to change battery, for example informs with sound notification or on screen etc.
From the above mentioned, the main substrate system that preferred embodiment of the present invention proposed can prevent the data loss of CMOS RAM when the CMOS battery power is not enough.
In addition, detecting device more can comprise the record CMOS battery function of tenure of use.If the CMOS battery arrives tenure of use, just notify main control circuit 220 to carry out above-mentioned action equally.
Next, please refer to Fig. 3, but in order to the method step of a kind of automatic backup of CMOS RAM of interpretation preferred embodiment of the present invention.
Method of the present invention is as described below.
Step 300: computer system is in off-mode.
Step 310: when computer system was in off-mode, whether the voltage that detects the CMOS battery was lower than the operate as normal value.
Step 320: the voltage as if the CMOS battery is lower than the operate as normal value, then the computer system Auto Power On; That is the power supply of computer system starts the execution start automatically.
Step 330: the storage data storing of CMOS RAM in a storage device of computer system, for example is stored in the Winchester disk drive.
Step 340: computer system is shut down automatically; That is computer system automatically performs shutdown with power-off.
Step 350: when next computer system boot-strap, automatically the storage data of CMOSRAM stored in the storage device are deposited back CMOS RAM, and remind the user to change the CMOS battery.
Therefore, not only can remind the user to change battery, more can keep the integrality of CMOS RAM data according to method of the present invention.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limiting the present invention, anyly has the knack of this skill person, without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the accompanying Claim person of defining.

Claims (5)

1. but the method for an automatic backup of CMOS RAM is applicable to a computer system, is the storage data of keeping this CMOS RAM with a CMOS battery during this computer system off-mode; It is characterized in that this method comprises:
When this computer system was in off-mode, whether the voltage that detects this CMOS battery was lower than the operate as normal value;
If the voltage of this CMOS battery is lower than the operate as normal value, this computer system Auto Power On then, and with the storage data storing of this CMOS RAM in a storage device of this computer system, afterwards, this computer system is shut down automatically; And
Next time, the storage data of this CMOS RAM that this storage device is stored were deposited back this CMOS RAM during this computer system boot-strap, and the prompting user changes the CMOS battery.
2. the method for claim 1 is characterized in that, this storage device comprises a Winchester disk drive.
3. but the mainboard system of an automatic backup of CMOS RAM is applicable to a computer system, and this computer system comprises this mainboard system, a CMOS battery at least, a power supply unit and the storage facilities of a main power supply with pre-stand-by power source can be provided; It is characterized in that this mainboard system comprises:
One CMOS RAM is in order to store the related data of this computer system; When being in shutdown with open state with this main power supply respectively at this computer system, supplies by this CMOS battery this CMOS RAM power supply;
One detecting device is a working power with this pre-stand-by power source, and whether the voltage that detects this CMOS battery is lower than the operate as normal value; And
One main control circuit is working power with this main power supply with pre-stand-by power source, receive respectively this detecting device the testing result signal, control the data transfer of this CMOS RAM and this storage device and control this power supply unit and start and close.
4. mainboard system as claimed in claim 3 is characterized in that this storage device comprises a Winchester disk drive.
5. mainboard system as claimed in claim 3 is characterized in that, this power supply unit comprises that one has the power supply unit of Auto Power On ability.
CN 99123162 1999-10-25 1999-10-25 Method for automatic backup of CMOS RAM and masterboard system Expired - Lifetime CN1121641C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 99123162 CN1121641C (en) 1999-10-25 1999-10-25 Method for automatic backup of CMOS RAM and masterboard system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 99123162 CN1121641C (en) 1999-10-25 1999-10-25 Method for automatic backup of CMOS RAM and masterboard system

Publications (2)

Publication Number Publication Date
CN1294335A CN1294335A (en) 2001-05-09
CN1121641C true CN1121641C (en) 2003-09-17

Family

ID=5282814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 99123162 Expired - Lifetime CN1121641C (en) 1999-10-25 1999-10-25 Method for automatic backup of CMOS RAM and masterboard system

Country Status (1)

Country Link
CN (1) CN1121641C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100428831C (en) * 2003-03-20 2008-10-22 联想(北京)有限公司 User data backup method based on network information terminal
CN1297908C (en) * 2003-08-25 2007-01-31 联想(北京)有限公司 Method for back-up protection of CMOS data
CN100465907C (en) * 2006-08-04 2009-03-04 华为技术有限公司 Apparatus and method of CMOS parameter setting and maintaining
CN102624076B (en) * 2011-08-05 2014-01-22 小米科技有限责任公司 Power supply method for wireless communication terminal
CN104035907A (en) * 2013-03-08 2014-09-10 纬创资通股份有限公司 Backup method for computer system and computer system

Also Published As

Publication number Publication date
CN1294335A (en) 2001-05-09

Similar Documents

Publication Publication Date Title
CN1025252C (en) Battery operated computer power management system
KR100950235B1 (en) Appliance, including a flash memory, that is robust under power failure
US5822597A (en) Power management apparatus and method for an information processing system
US5545935A (en) Rechargeable system with separate battery circuits in a common module
US6601181B1 (en) Uninterruptible power supply apparatus and method
CN106300638B (en) A kind of low-voltage power down overrun control and control method
CN100470450C (en) Information processing apparatus and power supply control method
EP0752638A2 (en) Resume operations in an information processing system
GB2262170A (en) Internal card type uninterruptible power system
CN1987737A (en) Information processing apparatus including network controller, and method of controlling application of power supply voltage to the network controller
JPH08331768A (en) Overdischarge protective circuit for battery
CN1578057A (en) Uninterruptible power supply device
CN1121641C (en) Method for automatic backup of CMOS RAM and masterboard system
CN103841291A (en) Information processing apparatus
EP0560510A1 (en) Battery operated computer and method for managing battery power in battery operated computer
JPH05165738A (en) Semiconductor memory device
JP4411014B2 (en) Computer and power supply backup method thereof
JP2005251225A (en) Electronic apparatus and system environment setting method thereof
JP3851866B2 (en) Electronic device and system environment setting method for the same
CN1293461C (en) Method for suspending state of computer system
CN101388680A (en) Portable electronic device and electricity saving method
CN1307260A (en) UPS device and method capable of storing data automatically
JP2000040037A (en) Data protective device, data protective method and storage medium
JP4212570B2 (en) Electronic device and system environment setting method for the same
JPH0739079A (en) Battery power supply apparatus

Legal Events

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

Granted publication date: 20030917