CN102135921B - Protective circuit, protective method and software realizing method for portable terminal low-power system protection - Google Patents

Protective circuit, protective method and software realizing method for portable terminal low-power system protection Download PDF

Info

Publication number
CN102135921B
CN102135921B CN201110038774A CN201110038774A CN102135921B CN 102135921 B CN102135921 B CN 102135921B CN 201110038774 A CN201110038774 A CN 201110038774A CN 201110038774 A CN201110038774 A CN 201110038774A CN 102135921 B CN102135921 B CN 102135921B
Authority
CN
China
Prior art keywords
power supply
battery
power
management module
cpu
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 - Fee Related
Application number
CN201110038774A
Other languages
Chinese (zh)
Other versions
CN102135921A (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.)
GAREA TECHNOLOGY (WUXI) Co Ltd
Original Assignee
GAREA TECHNOLOGY (WUXI) 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 GAREA TECHNOLOGY (WUXI) Co Ltd filed Critical GAREA TECHNOLOGY (WUXI) Co Ltd
Priority to CN201110038774A priority Critical patent/CN102135921B/en
Publication of CN102135921A publication Critical patent/CN102135921A/en
Application granted granted Critical
Publication of CN102135921B publication Critical patent/CN102135921B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention relates to a protective circuit, a protective method and a software realizing method for portable terminal low-power system protection, and is applied to embedded mobile terminal equipment with a power supply management module. The core logical circuit in the invention comprises a power supply management module, a power supply switchover module, a battery and a minimum system, wherein when the battery power is insufficient for the whole system through the power supply management module, and the system detects that voltage is lower than a threshold valve, the power supply management module is closed, and the battery directly supplies electricity for the minimum system through voltage conversion. The protective circuit closes power supply for the system by closing the power supply management module, and software is not required to close each path of power supply; the power supply voltage of the minimum system is far lower than the work voltage required by normal startup of the system in general condition, and power supply of the power supply management module is converted to direct battery power supply through a hardware circuit, so that the data is protected under a condition that the mobile terminal battery is insufficient in power.

Description

Holding circuit, guard method and the software implementation method of the low electric weight system protection of portable terminal
Technical field
The present invention relates to system power supply field, be specifically related to a kind of core logic circuit and software processing method of low electric weight system protection, be mainly used in for the demanding embedded mobile terminal of system conformance.
Background technology
The power down that the battery of present portable terminal causes owing to loose contact suddenly can adopt the hardware interface design to come well solution; But the power down problem that often occurs now is not because the battery loose contact; But since the battery electric quantity deficiency cause, can't satisfy normal shutdown when particularly battery uses and causes system to detect voltage under the situation that battery performance descends after a period of time being lower than threshold value.Normal shutdown is along with the portable terminal peripheral hardware enriches constantly, and the longest normal shutdown required time possibly reach 10S, might undertension take place to keep the situation that continues shutdown along with the carrying out of shutdown in shutdown process.The restriction that existing portable terminal is connected up can't provide big electric capacity to do power down protection, general maximum in the stage of system recovery to last data backup, can't guarantee that like this portable terminal well is applied to sector application.
Summary of the invention
To the problems referred to above, the applicant has carried out improving research, provides a kind of portable terminal to hang down electric weight system protection circuit, guard method and software implementation method, under the not enough situation of battery capacity of mobile terminal, realizes Data Protection.
Technical scheme of the present invention is following:
The holding circuit of the low electric weight system protection of a kind of portable terminal; Be applied on the embedded mobile terminal equipment of charged source control module; Comprise power management module, power supply handover module, battery and minimum system; Said minimum system is made up of cpu chip, internal memory and flash memory, and said cpu chip comprises CPU nuclear, cpu cache, Memory Controller Hub and flash controller; Said power management module is connected battery respectively with the power supply handover module, has the power supply outlet line to be connected between power management module and power supply handover module and the minimum system respectively, and is electrically connected between power management module and the power supply handover module.
Its further technical scheme is: the power supply connected mode of said minimum system is: said CPU nuclear is supplied power separately by one road power supply; Said cpu cache, Memory Controller Hub and internal memory are supplied power by same road power supply; Said flash controller and flash memory are supplied power by same road power supply in addition.There is the power supply outlet line to be connected between other hardware modules on said power management module and the said terminal device except that minimum system.
The guard method of the low electric weight system protection of a kind of portable terminal; When battery electric quantity is supplied with total system and not enough, system occurred and detect voltage and be lower than threshold value through power management module; The powered-down administration module, battery directly is the minimum system power supply through voltage transitions.
Its further technical scheme is: concrete steps are following: the power supply of the minimum system that CPU nuclear, cpu cache, Memory Controller Hub, internal memory, flash controller and flash memory are formed is connected to the power supply of power supply handover module simultaneously except by the power management module power supply; After voltage detection module detected level and is lower than setting value, voltage detection module was through the current low-voltage state that has been in of interrupt notification CPU; Steering logic opening power modular converter is exported various voltages to minimum system; Steering logic is notified power management module simultaneously, makes it stop output, and switches to power supply handover module output state; Processor is treated to export a control signal and give steering logic can the safety shutdown state time, notifies it to close all remaining power supplys.The supply voltage of said minimum system is lower than the minimum voltage that the total system normal boot-strap requires.
The software implementation method of the low electric weight system protection of a kind of portable terminal, concrete steps are following:
(1) in the bootloader boot, detects battery electric quantity during system boot with decision start whether further;
Detect battery electric quantity when (2) system moves, when battery electric quantity is lower than threshold value, start shutdown programm;
(3) if threshold value and actual battery have deviation; Perhaps battery electric quantity can't be realized normal shutdown when being lower than threshold value; Be directly switch to battery through hardware circuit from the power management module power supply and directly supply power, at this moment a battery feed system CPU nuclear, cpu cache, Memory Controller Hub, internal memory, flash controller and flash memory; System through catching a look-at-me so that the data of cpu cache and internal memory are write back flash memory;
(4) close remaining system,, need not carry out detection of power loss to guarantee that next time, start was a normal boot-strap.
Its further technical scheme is: said remaining system is meant flash memory, flash controller, internal memory, Memory Controller Hub, cpu chip internal bus, cpu cache, CPU nuclear and power supply switch circuit.
Useful technique effect of the present invention is:
The present invention is based on the most of power management module that adopts of present portable terminal; Through the powered-down administration module system's power supply is closed; And do not need software to remove to close every road power supply; And the supply voltage of generalized case minimum system switches to battery through hardware circuit from the power management module power supply and directly supplies power far below the WV of the normal boot-strap requirement of system, thereby under the not enough situation of battery capacity of mobile terminal, realizes Data Protection.
Description of drawings
Fig. 1 is the schematic diagram of the holding circuit of the low electric weight system protection of the present invention.
Fig. 2 is that the low electric weight power supply of the present invention switches hardware controls figure.
Fig. 3 is the software flow pattern of the low electric weight system protection of the present invention.
Embodiment
Further specify below in conjunction with the accompanying drawing specific embodiments of the invention.
As shown in Figure 1, the core logic circuit of the low electric weight system protection of portable terminal of the present invention comprises power management module 8, power supply handover module 9, battery 10 and minimum system.Said minimum system is made up of cpu chip 1, internal memory 2 and flash memory 3; Said cpu chip 1 comprises CPU nuclear 4, cpu cache 5, Memory Controller Hub 6 and flash controller 7.
As shown in Figure 1, power management module 8 is connected battery 10 respectively with power supply handover module 9, and has the power supply outlet line to be connected respectively between power management module 8 and power supply handover module 9 and the minimum system.The power supply of minimum system design is based on the minimum power domain, and its power supply connected mode is: (a) CPU nuclear 4 is supplied power separately by one road power supply; (b) cpu cache 5, Memory Controller Hub 6 and internal memory 2 are supplied power by same road power supply, and do not supply with other unit module; (c) flash controller 7 is supplied power by same road power supply with flash memory 3 in addition.Power management module 8 also with on the terminal device has the power supply outlet line to be connected between other hardware modules 11 except that minimum system.Be electrically connected between power management module 6 and the power supply handover module 9.
Based on the said circuit of Fig. 1, the present invention has proposed the guard method of the low electric weight system protection of a kind of portable terminal simultaneously.Specifically, the power supply of the minimum system that the present invention at first forms CPU nuclear 4, cpu cache 5, Memory Controller Hub 6, internal memory 2, flash controller 7, flash memory 3 is received power supply handover module 9 simultaneously except by power supply module 8 power supplies.
The hardware controls that power supply switches is as shown in Figure 2; A voltage detection module is set outside power supply handover module 9 or sheet; After voltage detection module detected level and is lower than certain setting value, voltage detection module was through the current low-voltage state that has been in of interrupt notification CPU; Output control below steering logic is made: the power transfer module in (1) opening power handover module 9, convert cell voltage into each module can be used in the minimum system various voltages, export various voltages to minimum system; (2) notice power management module 8 lets it stop output, and switches to power supply handover module 9 power supply output states; (3) after this preprocessor carries out sequence of operations, treat can safety shutdown state the time, export a control signal and give steering logic, notify it to close all remaining power supplys.
Through above-mentioned steps, when battery 10 electric weight went wrong through power management module 8 supply total systems, power supply handover module 9 can directly be supplied power the power supply of minimum system through battery 10.Because the supply voltage of minimum system is lower than the minimum voltage that the total system normal boot-strap requires, and this moment battery 10 electric weight can satisfy the power supply of minimum system.When system detects voltage and is lower than threshold value through battery voltage detection circuit, opening power handover module 9, power supply handover module 9 is directly exported the minimum system required voltage through voltage transformation module from battery 10, and powered-down administration module 8.
The present invention has proposed a kind of software processing method simultaneously, after CPU captures the look-at-me that power management module 8 closes, the data of cpu cache 5, internal memory 2 is write flash memory 3 and closes remaining system.The remaining system here refers to flash memory 3, flash controller 7, internal memory 2, Memory Controller Hub 6, cpu chip internal bus, cpu cache 5, CPU nuclear 4 and power supply handover module 9.
As shown in Figure 3, software implementation method of the present invention is following:
(1) in the bootloader boot, detects battery electric quantity during system boot with decision start whether further;
Detect battery electric quantity when (2) system moves, when battery electric quantity is lower than threshold value, start shutdown programm;
(3) if threshold value and actual battery have deviation; Perhaps battery electric quantity can't be realized normal shutdown when being lower than threshold value; Be directly switch to battery through hardware circuit from the power management module power supply and directly supply power, at this moment a battery feed system CPU nuclear, cpu cache, Memory Controller Hub, internal memory, flash controller and flash memory; System through catching a look-at-me so that the data of cpu cache and internal memory are write back flash memory;
(4) close remaining system, the remaining system here is meant flash memory, flash controller, internal memory, Memory Controller Hub, cpu chip internal bus, cpu cache, CPU nuclear and power supply switch circuit.
The present invention can make next time start for normal boot-strap and guarantee data integrity, need not carry out detection of power loss.
Annotate, among the present invention:
Cpu cache: being the part of CPU, is to establish for the speed difference problem that solves CPU speed and memory speed.
Internal memory: be data and the program that is used for depositing current (in promptly carrying out) of using.
Flash memory: FLASH, electricity erasable memorizer fast.
Above-described only is preferred implementation of the present invention, the invention is not restricted to above embodiment.Be appreciated that other improvement and variation that those skilled in the art directly derive or associate under the prerequisite that does not break away from spirit of the present invention and design, all should think to be included within protection scope of the present invention.

Claims (1)

1. the software implementation method of the low electric weight system protection of a portable terminal is characterized in that concrete steps are following:
(1) in the bootloader boot, detects battery electric quantity during system boot with decision start whether further;
Detect battery electric quantity when (2) system moves, when battery electric quantity is lower than threshold value, start shutdown programm;
(3) if threshold value and actual battery have deviation; Perhaps battery electric quantity can't be realized normal shutdown when being lower than threshold value; Be directly switch to battery through hardware circuit from the power management module power supply and directly supply power, at this moment a battery feed system CPU nuclear, cpu cache, Memory Controller Hub, internal memory, flash controller and flash memory; System through catching a look-at-me so that the data of cpu cache and internal memory are write back flash memory;
(4) close remaining system,, need not carry out detection of power loss to guarantee that next time, start was a normal boot-strap; Said remaining system is meant flash memory, flash controller, internal memory, Memory Controller Hub, cpu chip internal bus, cpu cache, CPU nuclear and power supply switch circuit.
CN201110038774A 2011-02-16 2011-02-16 Protective circuit, protective method and software realizing method for portable terminal low-power system protection Expired - Fee Related CN102135921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110038774A CN102135921B (en) 2011-02-16 2011-02-16 Protective circuit, protective method and software realizing method for portable terminal low-power system protection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110038774A CN102135921B (en) 2011-02-16 2011-02-16 Protective circuit, protective method and software realizing method for portable terminal low-power system protection

Publications (2)

Publication Number Publication Date
CN102135921A CN102135921A (en) 2011-07-27
CN102135921B true CN102135921B (en) 2012-09-26

Family

ID=44295711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110038774A Expired - Fee Related CN102135921B (en) 2011-02-16 2011-02-16 Protective circuit, protective method and software realizing method for portable terminal low-power system protection

Country Status (1)

Country Link
CN (1) CN102135921B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013118383A1 (en) * 2012-02-06 2013-08-15 日立アロカメディカル株式会社 Mobile ultrasonic diagnostic device
CN103092802B (en) * 2013-02-07 2015-07-22 飞天诚信科技股份有限公司 Method of communication of card reader and upper computer
CN107729972B (en) * 2017-09-01 2020-09-08 捷德(中国)科技有限公司 Data protection method for intelligent IC card
CN109471758A (en) * 2018-11-22 2019-03-15 北京同有飞骥科技股份有限公司 Storing data power-off protection method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648921A (en) * 2005-02-17 2005-08-03 倚天资讯股份有限公司 Device and method for prolonging electronic device data storage time
CN1996242A (en) * 2006-01-05 2007-07-11 英业达股份有限公司 Booting system in low-power mode and method therefor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101377317B1 (en) * 2007-01-25 2014-03-26 엘지전자 주식회사 Power control apparatus, Ending-mode checking method, Driving method and Power control method of Terminal
CN101470509B (en) * 2007-12-27 2011-04-27 联想(北京)有限公司 Computer system control method, computer system and notebook computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648921A (en) * 2005-02-17 2005-08-03 倚天资讯股份有限公司 Device and method for prolonging electronic device data storage time
CN1996242A (en) * 2006-01-05 2007-07-11 英业达股份有限公司 Booting system in low-power mode and method therefor

Also Published As

Publication number Publication date
CN102135921A (en) 2011-07-27

Similar Documents

Publication Publication Date Title
CN102156679B (en) PCIE interface-based solid state disk power-down protection method and device
CN202013570U (en) Power down protecting device for solid state disk based on PCIE (Peripheral Component Interface Express) interface
CN103838349B (en) Power supply control system and method thereof
CN101859173B (en) Electronic device for reducing power consumption during sleep mode of computer motherboard and motherboard thereof
WO2013097381A1 (en) Mobile terminal and charge device and method thereof
CN101930279A (en) Electronic device for reducing power consumption of computer motherboard and motherboard thereof
CN102135921B (en) Protective circuit, protective method and software realizing method for portable terminal low-power system protection
CN103904769B (en) The control system and control method of reserve battery
CN102147652A (en) Shut-down energy-saving system and shut-down energy-saving method
CN104281465B (en) Computer and awakening method thereof
CN102200826B (en) Power adapter and portable computer
CN104881375A (en) Power-down data protection method and device of storage system
CN104898476A (en) Powering-on/off control circuit and electronic equipment with same
CN106250786A (en) A kind of power-off protection of solid state disk method and device
CN103970248A (en) power management circuit and method and computer system
CN103869927A (en) Information processing method and electronic device
CN101510116B (en) Energy-conserving method and system of terminal equipment with standby function
CN105487638A (en) Electronic circuit system and power consumption reducing method thereof
CN104850182A (en) Circuit structure applied to embedded system and power-fail protection method
CN101788842A (en) Power management device for computer system and related method thereof and computer system
TWI517033B (en) Conversion method for reducing power consumption and computing apparatus using the same
CN104571465A (en) Design method for achieving CPU (Central Processing Unit) power supply phase dynamic adjustment
CN204256036U (en) The power-off signal that power supply interrupts produces circuit
CN202616815U (en) On-board unit
CN204759339U (en) But protection device of OPS computer is standardized in open plug in all -in -one

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: 20120926

Termination date: 20170216

CF01 Termination of patent right due to non-payment of annual fee