TWI387175B - Battery protection system and method for electronic device - Google Patents

Battery protection system and method for electronic device Download PDF

Info

Publication number
TWI387175B
TWI387175B TW97146347A TW97146347A TWI387175B TW I387175 B TWI387175 B TW I387175B TW 97146347 A TW97146347 A TW 97146347A TW 97146347 A TW97146347 A TW 97146347A TW I387175 B TWI387175 B TW I387175B
Authority
TW
Taiwan
Prior art keywords
power
battery protection
battery
electronic device
frequency
Prior art date
Application number
TW97146347A
Other languages
Chinese (zh)
Other versions
TW201021348A (en
Inventor
Peyi Lin
Chopin Su
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to TW97146347A priority Critical patent/TWI387175B/en
Publication of TW201021348A publication Critical patent/TW201021348A/en
Application granted granted Critical
Publication of TWI387175B publication Critical patent/TWI387175B/en

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Description

電子裝置之電池保護系統及方法Battery protection system and method for electronic device

本發明是有關於一種電子裝置之電池保護系統及方法,且特別是有關於一種利用降頻來保護可攜式電子裝置之電池的系統及方法。The present invention relates to a battery protection system and method for an electronic device, and more particularly to a system and method for protecting a battery of a portable electronic device by using frequency reduction.

可攜式裝置之應用已成為電子產品之趨勢,如筆記型電腦、個人數位助理(PDA)等,而這些可攜式裝置的電源供應通常設置有交流電源及電池。在某些使用情況下,當交流電源自可攜式電子裝置移除時,若裝置仍維持在高頻工作的狀態,電池可能無法在瞬間負載這樣大的電流,而對電池造成極大的損害。The application of portable devices has become a trend in electronic products, such as notebook computers, personal digital assistants (PDAs), etc., and the power supply of these portable devices is usually provided with an AC power source and a battery. In some use cases, when the AC power is removed from the portable electronic device, if the device is still operating at a high frequency, the battery may not be able to load such a large current in an instant, causing great damage to the battery.

因此,一種電池保護系統及方法是有必要的以改善上述缺點。Therefore, a battery protection system and method are necessary to improve the above disadvantages.

因此本發明的目的就是在提供一種電子裝置之電池保護系統及方法,可保護電池,延長電池壽命。SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a battery protection system and method for an electronic device that protects the battery and extends battery life.

根據本發明一較佳實施例,此電子裝置之電池保護系統包括:電池,用以提供電能;中央處理器;嵌入式控制器,用以偵測交流電源移除訊號,以及產生並傳送降頻控制訊號;以及基本輸出輸入系統,用以接收降頻控制訊號並發送降頻指令至中央處理器以執行降頻程序。According to a preferred embodiment of the present invention, a battery protection system of the electronic device includes: a battery for providing electrical energy; a central processing unit; an embedded controller for detecting an AC power removal signal, and generating and transmitting a frequency reduction a control signal; and a basic output input system for receiving the down-conversion control signal and transmitting a down-converted command to the central processor to perform the down-conversion procedure.

根據本發明一較佳實施例,此電子裝置之電池保護方 法包括以下步驟:偵測交流電源移除訊號;根據交流電源移除訊號,產生並傳送降頻控制訊號至基本輸出輸入系統;以及根據降頻控制訊號及電子裝置所支援之降頻機制,發送降頻指令給中央處理器以執行降頻程序。According to a preferred embodiment of the present invention, the battery protection device of the electronic device The method includes the steps of: detecting an AC power removal signal; generating and transmitting a down control signal to the basic output input system according to the AC power removal signal; and transmitting according to the frequency reduction control signal and the frequency reduction mechanism supported by the electronic device The down-convert command is sent to the central processor to perform a down-conversion procedure.

接下來請參照本發明較佳實施例的詳細說明,其中所提到的範例會連同圖式一同進行說明。在任何可能的情況下,圖式及說明中所使用的相同參考數標都代表了相同或類似的元件。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Reference will be made in detail to the preferred embodiments embodiments Wherever possible, the same reference numerals are used in the drawings and the claims

本發明之電池保護方法及系統可應用於各種不同之可攜式電子裝置中,例如筆記型電腦或個人數位助理(PDA),藉由本發明之降頻機制的設計,在使用電池為電子裝置的電能來源時,能降低電池的功耗,避免對電池造成損害。下述實施例係以筆記型電腦作為說明,但本發明之應用當不僅限於以下所述之較佳實施例。The battery protection method and system of the present invention can be applied to various portable electronic devices, such as a notebook computer or a personal digital assistant (PDA). With the design of the frequency reduction mechanism of the present invention, the battery is used as an electronic device. When the power source is used, the power consumption of the battery can be reduced to avoid damage to the battery. The following embodiments are described with a notebook computer, but the application of the present invention is not limited to the preferred embodiments described below.

第1圖繪示根據本發明實施例之電池保護系統的功能架構方塊圖。此電池保護系統100為筆記型電腦之一部分,包含了電池110、嵌入式控制器(Embedded Controller,EC)120、基本輸出輸入系統(Basic Input/Output System,BIOS)140、執行於電腦系統之中的作業系統160、以及中央處理器180等元件。這些元件中的某些部分如電池、作業系統、以及中央處理器等元件可利用一般現今筆記型電腦內已具備的即可,各元件之間的功能與相互關係,以及降頻機制的運作將敘述如下。FIG. 1 is a block diagram showing the functional architecture of a battery protection system according to an embodiment of the present invention. The battery protection system 100 is a part of a notebook computer, and includes a battery 110, an embedded controller (EC) 120, a basic input/output system (BIOS) 140, and is executed in a computer system. The operating system 160, and components such as the central processing unit 180. Some of these components, such as batteries, operating systems, and central processing units, can be used in today's notebooks, the functions and interrelationships between the components, and the operation of the down-conversion mechanism. The description is as follows.

在本實施例中,嵌入式控制器120可為鍵盤控制器(keyboard controller),可偵測電腦系統的電能來源狀態,如在某一時間點時電源係由電池或是交流電源(AC)所提供,以及其他與交流電源及電池有關的事件。當自電腦系統移除交流電源時,嵌入式控制器120可偵測到交流電源移除訊號,以及產生並傳送降頻控制訊號給基本輸出輸入系統140,接著再繼續進行後續之處理程序。In this embodiment, the embedded controller 120 can be a keyboard controller that can detect the power source status of the computer system. For example, at a certain time, the power source is powered by a battery or an AC power source (AC). Provide, as well as other events related to AC power and batteries. When the AC power is removed from the computer system, the embedded controller 120 can detect the AC power removal signal and generate and transmit the down control signal to the basic output input system 140, and then proceed with the subsequent processing.

基本輸出輸入系統140係用以接收降頻控制訊號並發送降頻指令至中央處理器180以執行降頻程序。基本輸出輸入系統140可視不同的中央處理器180所支援之不同降頻機制而以合適的機制實現降頻程序。在一種情況下,基本輸出輸入系統140可直接與中央處理器180通訊,因此可直接發送降頻指令至中央處理器180以執行降頻程序。例如,在一實施例中,可在中央處理器180內部執行調速功能(throttling function),亦即在一工作週期寬度內,不會讓中央處理器180於整個工作週期寬度持續運作,此調速功能機制會讓中央處理器180於一工作週期寬度內只執行某個百分比,以降低中央處理器的頻率。The basic output input system 140 is configured to receive the down-convert control signal and send a down-converted command to the central processor 180 to perform a down-conversion procedure. The basic output input system 140 can implement the down-conversion procedure in a suitable mechanism, depending on the different down-conversion mechanisms supported by the different central processing units 180. In one case, the basic output input system 140 can communicate directly with the central processing unit 180, so the down-converted instructions can be sent directly to the central processor 180 to perform the down-conversion procedure. For example, in one embodiment, a throttling function can be performed within the central processing unit 180, that is, within a duty cycle width, without causing the central processing unit 180 to continue to operate over the entire duty cycle width. The speed function mechanism causes the central processor 180 to perform only a certain percentage over a duty cycle width to reduce the frequency of the central processor.

在另一種情況下,基本輸出輸入系統140要透過作業系統160與中央處理器180通訊才能執行降頻程序。例如,英特爾(Intel)公司所發展出來之變速(SpeedStep)技術,可藉由作業系統對電腦系統之掌控,迅速改變中央處理器之運轉速度,來達到降低頻率的目的。In another case, the basic output input system 140 is to communicate with the central processing unit 180 via the operating system 160 to perform the down-conversion procedure. For example, Intel's SpeedStep technology can reduce the frequency by quickly changing the operating speed of the CPU by controlling the computer system.

在一實施例中,例如,降頻機制的程式控制碼可寫在筆記型電腦中的鍵盤控制器(keyboard controller)所提供之 記憶區塊中,並配合相應之基本輸出輸入系統的程式碼更改而實現本電池保護系統。In an embodiment, for example, the program control code of the down-conversion mechanism can be written by a keyboard controller in the notebook computer. The battery protection system is implemented in the memory block in accordance with the code change of the corresponding basic output input system.

在一實施例中,作業系統160還可包含交流電源安全移除單元165,用以接收使用者利用輸入裝置(如滑鼠或鍵盤)所輸入的交流電源安全移除訊號,並根據交流電源安全移除訊號執行預保護程序。舉例來說,在電腦系統準備好處理移除交流電源的事件後,若使用者想要執行將使用大量電腦系統資源的程式時,預保護程序可顯示警告訊息。In an embodiment, the operating system 160 may further include an AC power safety removal unit 165 for receiving an AC power safety removal signal input by a user using an input device (such as a mouse or a keyboard), and according to the AC power supply security. Remove the signal to perform the pre-protection process. For example, after the computer system is ready to handle the removal of AC power, the pre-protection program can display a warning message if the user wants to execute a program that will use a large amount of computer system resources.

第2圖係繪示一種電子裝置之電池保護方法的流程圖。此電池保護方法以一般之筆記型電腦所支援的功能架構作為說明,包含以下步驟:在步驟210,偵測到交流電源移除訊號。在步驟220,根據交流電源移除訊號,產生並傳送降頻控制訊號至基本輸出輸入系統。在步驟230,基本輸出輸入系統判定電腦系統是否支援變速(SpeedStep)技術。亦即,此步驟是根據降頻控制訊號及電子裝置所支援之降頻機制,發送降頻指令給中央處理器以執行降頻程序。2 is a flow chart showing a battery protection method of an electronic device. The battery protection method is described by a functional architecture supported by a general notebook computer, and includes the following steps: In step 210, an AC power removal signal is detected. At step 220, a down-conversion control signal is generated and transmitted to the basic output input system based on the AC power removal signal. At step 230, the basic output input system determines if the computer system supports SpeedStep technology. That is, this step is based on the down-conversion control signal and the down-conversion mechanism supported by the electronic device, and sends a down-converted command to the central processing unit to perform the frequency-down procedure.

在步驟240,當基本輸出輸入系統判定電腦系統支援變速(SpeedStep)技術時,基本輸出輸入系統通知Passive Cooling event,而在步驟242,作業系統執行變速(SpeedStep)技術以達到降頻。在這種情況下,執行降頻程序之步驟是透過作業系統來降低中央處理器之運轉頻率。At step 240, when the basic output input system determines that the computer system supports the SpeedStep technique, the basic output input system notifies the Passive Cooling event, and in step 242, the operating system performs a SpeedStep technique to achieve the down frequency. In this case, the step of performing the down-conversion procedure is to reduce the operating frequency of the central processing unit through the operating system.

在步驟250,當基本輸出輸入系統判定電腦系統不支援變速(SpeedStep)技術時,基本輸出輸入系統發出中央處理器指令以執行調速功能(throttling function)。在這種情 況下,不需透過作業系統,即可降低中央處理器之運轉頻率。在步驟260,電腦系統等待下一事件的發生。At step 250, when the basic output input system determines that the computer system does not support the SpeedStep technique, the basic output input system issues a central processor command to perform a throttle function. In this situation In this case, the operating frequency of the central processing unit can be reduced without going through the operating system. At step 260, the computer system waits for the next event to occur.

在偵測交流電源移除訊號的步驟之前,此電池保護方法還可包含以下額外步驟:接收交流電源安全移除訊號;以及根據交流電源安全移除訊號,執行預保護程序。預保護程序可讓電腦系統採取適當的行動以準備處理移除交流電源的事件,例如,若使用者想要執行將使用大量電腦系統資源的程式時,預保護程序可顯示警告訊息。The battery protection method may further include the following additional steps: receiving an AC power safety removal signal; and performing a pre-protection procedure based on the AC power safety removal signal before the step of detecting the AC power removal signal. The pre-protection program allows the computer system to take appropriate action to prepare for the event of removing AC power. For example, if the user wants to execute a program that will use a large amount of computer system resources, the pre-protection program can display a warning message.

在使用電池為筆記型電腦的電能來源時,本發明的降頻機制改寫了原先由作業系統所決定的頻率操作機制。舉例來說,在一實施例中,當電能模式設為電池模式、性能模式、或節能模式等不同的模式時,原本會有不同的頻率切換設定,但在本發明的降頻機制下,當交流電源移除時而使用電池為電能來源時,皆執行降頻以保護電池。When the battery is used as the power source of the notebook computer, the frequency down mechanism of the present invention rewrites the frequency operation mechanism originally determined by the operating system. For example, in an embodiment, when the power mode is set to a different mode such as a battery mode, a performance mode, or a power saving mode, there may be different frequency switching settings, but in the frequency reduction mechanism of the present invention, when When the AC power is removed and the battery is used as the power source, the frequency reduction is performed to protect the battery.

因為,當以電池來提供電能時,若電腦系統仍維持在高頻工作的狀態(例如當使用者將電能模式設在性能模式時),中央處理器在負載高時,耗電量增加,電流增大以提供電腦系統所需之電流,電池可能無法在瞬間負載這樣大的電流,容易對電池造成損害,造成電池壽命極短。因此,本發明可保護電池,延長電池壽命。Because, when the battery is used to provide power, if the computer system is still in the state of high frequency operation (for example, when the user sets the power mode in the performance mode), the central processor increases the power consumption when the load is high, and the current is increased. Increased to provide the current required by the computer system, the battery may not be able to load such a large current in an instant, which is easy to damage the battery, resulting in extremely short battery life. Therefore, the present invention can protect the battery and extend battery life.

雖然本發明已以一較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技術者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been described above in terms of a preferred embodiment, it is not intended to limit the present invention, and various modifications and refinements may be made without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧電池保護系統100‧‧‧Battery protection system

110‧‧‧電池110‧‧‧Battery

120‧‧‧嵌入式控制器120‧‧‧ embedded controller

140‧‧‧基本輸出輸入系統140‧‧‧Basic output input system

160‧‧‧作業系統160‧‧‧Operating system

165‧‧‧交流電源安全移除單元165‧‧‧AC power safe removal unit

180‧‧‧中央處理器180‧‧‧Central Processing Unit

210-260‧‧‧步驟方法210-260‧‧‧Step method

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之詳細說明如下:The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.

第1圖係繪示根據本發明實施例之電池保護系統的功能架構方塊圖。1 is a block diagram showing the functional architecture of a battery protection system according to an embodiment of the present invention.

第2圖係繪示根據本發明實施例之電池保護方法的流程圖。2 is a flow chart showing a battery protection method according to an embodiment of the present invention.

100‧‧‧電池保護系統100‧‧‧Battery protection system

110‧‧‧電池110‧‧‧Battery

120‧‧‧嵌入式控制器120‧‧‧ embedded controller

140‧‧‧基本輸出輸入系統140‧‧‧Basic output input system

160‧‧‧作業系統160‧‧‧Operating system

165‧‧‧交流電源安全移除單元165‧‧‧AC power safe removal unit

180‧‧‧中央處理器180‧‧‧Central Processing Unit

Claims (6)

一種電子裝置之電池保護系統,包含:一電池,用以提供電能;一中央處理器;一嵌入式控制器,用以偵測一交流電源移除訊號,以及產生並傳送一降頻控制訊號;一基本輸出輸入系統,用以接收該降頻控制訊號並發送一降頻指令至該中央處理器以執行一降頻程序;以及一作業系統,該基本輸出輸入系統透過該作業系統以執行該降頻程序,其中該作業系統包含一交流電源安全移除單元,用以接收一交流電源安全移除訊號,並根據該交流電源安全移除訊號執行一預保護程序。 A battery protection system for an electronic device, comprising: a battery for providing electrical energy; a central processing unit; an embedded controller for detecting an AC power removal signal, and generating and transmitting a down control signal; a basic output input system for receiving the down-conversion control signal and transmitting a down-converted command to the central processor to perform a down-conversion process; and an operating system through which the basic output input system performs the down-conversion The frequency program, wherein the operating system comprises an AC power safety removal unit for receiving an AC power safety removal signal, and performing a pre-protection procedure according to the AC power safety removal signal. 如申請專利範圍第1項所述之電池保護系統,其中該嵌入式控制器係一鍵盤控制器。 The battery protection system of claim 1, wherein the embedded controller is a keyboard controller. 如申請專利範圍第1項所述之電池保護系統,其中該電子裝置係一筆記型電腦或一個人數位助理(PDA)。 The battery protection system of claim 1, wherein the electronic device is a notebook computer or a PDA. 一種電子裝置之電池保護方法,包含以下步驟:偵測一交流電源移除訊號;根據該交流電源移除訊號,產生並傳送一降頻控制訊號至一基本輸出輸入系統; 根據該降頻控制訊號及該電子裝置所支援之降頻機制,發送一降頻指令給一中央處理器以執行一降頻程序;於該偵測該交流電源移除訊號之步驟前,接收一交流電源安全移除訊號;以及根據該交流電源安全移除訊號,執行一預保護程序。 A battery protection method for an electronic device includes the steps of: detecting an AC power removal signal; generating and transmitting a down control signal to a basic output input system according to the AC power removal signal; Transmitting a down-converting command to a central processing unit to perform a down-conversion process according to the down-conversion control signal and the down-conversion mechanism supported by the electronic device; and receiving a frequency-down procedure before the step of detecting the AC power removal signal The AC power supply safely removes the signal; and performs a pre-protection procedure based on the AC power safety removal signal. 如申請專利範圍第4項所述之電池保護方法,其中該執行該降頻程序之步驟包含降低該中央處理器之運轉頻率。 The battery protection method of claim 4, wherein the step of performing the frequency down procedure comprises reducing an operating frequency of the central processor. 如申請專利範圍第4項所述之電池保護方法,其中該執行該降頻程序之步驟包含透過一作業系統降低該中央處理器之運轉頻率。 The battery protection method of claim 4, wherein the step of performing the frequency down procedure comprises reducing an operating frequency of the central processing unit through an operating system.
TW97146347A 2008-11-28 2008-11-28 Battery protection system and method for electronic device TWI387175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97146347A TWI387175B (en) 2008-11-28 2008-11-28 Battery protection system and method for electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97146347A TWI387175B (en) 2008-11-28 2008-11-28 Battery protection system and method for electronic device

Publications (2)

Publication Number Publication Date
TW201021348A TW201021348A (en) 2010-06-01
TWI387175B true TWI387175B (en) 2013-02-21

Family

ID=44832600

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97146347A TWI387175B (en) 2008-11-28 2008-11-28 Battery protection system and method for electronic device

Country Status (1)

Country Link
TW (1) TWI387175B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040070371A1 (en) * 2002-10-11 2004-04-15 Compaq Information Technologies Group, L.P. Power management of a battery operated computer system based on battery status
US7103786B2 (en) * 2002-10-17 2006-09-05 Uniwill Computer Corp. Method of portable computer power management using keyboard controller in detection circuit
US7157882B2 (en) * 2002-11-22 2007-01-02 Milwaukee Electric Tool Corporation Method and system for battery protection employing a selectively-actuated switch

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040070371A1 (en) * 2002-10-11 2004-04-15 Compaq Information Technologies Group, L.P. Power management of a battery operated computer system based on battery status
US7103786B2 (en) * 2002-10-17 2006-09-05 Uniwill Computer Corp. Method of portable computer power management using keyboard controller in detection circuit
US7157882B2 (en) * 2002-11-22 2007-01-02 Milwaukee Electric Tool Corporation Method and system for battery protection employing a selectively-actuated switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Software Specification, Ch.6, p6-1~6-12,2007/06/07 *

Also Published As

Publication number Publication date
TW201021348A (en) 2010-06-01

Similar Documents

Publication Publication Date Title
JP3058986B2 (en) Computer system power saving controller
US8775830B2 (en) System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on temperature
US7549075B2 (en) System and method for adjusting execution frequency of a central processing unit
JP3090767B2 (en) Computer system power saving controller
US7472291B2 (en) Method and apparatus for integrating ACPI functionality and power button functionality into a single power key
JPH05297993A (en) Drive controller for microprocessor
JP2004178588A (en) Method for regulating voltage to be supplied to processor according to clock frequency
KR20080035850A (en) Computer system and control method thereof
KR20150023845A (en) Mechanism for facilitating efficent operations paths for storage devices in computing systems
CN104969190A (en) Multi-core binary translation task processing
TW200917006A (en) Apparatus and method for power management
CN108227900B (en) Electronic device, energy-saving control method, energy-saving device, and readable storage medium
US7802119B2 (en) Method and system for saving power of central processing unit
TWI387175B (en) Battery protection system and method for electronic device
TWI667569B (en) Computer wake-up method and computer power saving method
CN104076892A (en) Power supply management method and power supply management system
US9207742B2 (en) Power saving operating method for an electronic device by disabling a connection port to a touch device before the touch device enters power-saving mode
GB2506169A (en) Limiting task context restore if a flag indicates task processing is disabled
CN102103403A (en) Power management method and computer system using same
JP4860255B2 (en) Throttling control method and throttling control system
EP1717663A1 (en) Power-managing key apparatus and method for the same
CN101752843B (en) Battery protection system of electronic device and method thereof
US9423850B2 (en) System and method of power control for embedded systems without advanced configuration and power interface (ACPI)
EP3069256A1 (en) Techniques for processing custom events
TW201339818A (en) Power management system and power management method