TWI529521B - Method for managing power and portable electronic device using the same - Google Patents

Method for managing power and portable electronic device using the same Download PDF

Info

Publication number
TWI529521B
TWI529521B TW099104098A TW99104098A TWI529521B TW I529521 B TWI529521 B TW I529521B TW 099104098 A TW099104098 A TW 099104098A TW 99104098 A TW99104098 A TW 99104098A TW I529521 B TWI529521 B TW I529521B
Authority
TW
Taiwan
Prior art keywords
battery
controller
portable electronic
electronic device
power
Prior art date
Application number
TW099104098A
Other languages
Chinese (zh)
Other versions
TW201128375A (en
Inventor
林志雄
Original Assignee
和碩聯合科技股份有限公司
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 和碩聯合科技股份有限公司 filed Critical 和碩聯合科技股份有限公司
Priority to TW099104098A priority Critical patent/TWI529521B/en
Publication of TW201128375A publication Critical patent/TW201128375A/en
Application granted granted Critical
Publication of TWI529521B publication Critical patent/TWI529521B/en

Links

Description

電源管理方法及應用其的可攜式電子裝置Power management method and portable electronic device using same

本發明有關於一種電源管理技術,且特別是有關於一種電源管理方法及應用其的可攜式電子裝置。The present invention relates to a power management technology, and in particular to a power management method and a portable electronic device using the same.

隨著科技的發展,可攜式電子裝置的應用越來越普遍。為符合可攜式電子裝置可攜性的特點,電池的重要性不言而喻。然而,電池的容量通常都很有限,為確保可攜式電子裝置可以持續使用,則需在確保系統正常運行下可方便地更換電池。With the development of technology, the application of portable electronic devices is becoming more and more popular. In order to meet the portability of portable electronic devices, the importance of batteries is self-evident. However, the capacity of the battery is usually very limited. To ensure that the portable electronic device can be used continuously, it is convenient to replace the battery while ensuring that the system is operating normally.

儘管目前的可攜式電子裝置內通常會內建一個鈕扣電池,然而此鈕扣電池實質上是RTC電池,即其僅為內部的實時時鐘和日曆提供電源,而無法供電給其它操作模組。因此,倘若在可攜式電子裝置未連接外部電源適配器時直接更換電池,則會導致整個可攜式電子裝置無法操作。使用者在更換電池前進行的所有操作,包括上網、傳輸資料等動作會被中斷,如此極為不便。Although a button cell is usually built in the current portable electronic device, the button cell is essentially an RTC battery, that is, it only supplies power to the internal real-time clock and calendar, and cannot supply power to other operating modules. Therefore, if the battery is directly replaced when the portable electronic device is not connected to the external power adapter, the entire portable electronic device cannot be operated. All operations performed by the user before the battery is replaced, including surfing the Internet, transferring data, etc., are interrupted, which is extremely inconvenient.

本發明的目的在於提供一種電源管理方法及應用其的可攜式電子裝置,以改善現有技術的缺失。It is an object of the present invention to provide a power management method and a portable electronic device using the same to improve the lack of the prior art.

根據本發明之一方面,本發明提出的電源管理方法,實施於可攜式電子裝置。可攜式電子裝置包括第一電池、第二電池、中央處理器以及操作模組。電源管理方法包括以下步驟。偵測可攜式電子裝置之系統耗電量。根據系統耗電量計算第二電池之可使用時間。比較第二電池之可使用時間與預設時間。當更換該第一電池時,利用第二電池所提供之電力來維持操作模組的工作狀態。當更換第一電池且第二電池之可使用時間小於預設時間時,降低中央處理器(central processing unit)之操作頻率(throughput)。According to an aspect of the present invention, a power management method provided by the present invention is implemented in a portable electronic device. The portable electronic device includes a first battery, a second battery, a central processing unit, and an operation module. The power management method includes the following steps. Detecting system power consumption of portable electronic devices. The usable time of the second battery is calculated based on the system power consumption. Compare the usable time of the second battery with the preset time. When the first battery is replaced, the power provided by the second battery is used to maintain the operating state of the operating module. When the first battery is replaced and the usable time of the second battery is less than the preset time, the operating frequency of the central processing unit is lowered.

根據本發明之另一方面,本發明提出的可攜式電子裝置包括中央處理器、操作模組、第一電池、第二電池以及控制器。控制器耦接中央處理器、第一電池以及第二電池。當更換第一電池時,第二電池所提供之電力維持操作模組的工作狀態。控制器偵測系統耗電量,並根據系統耗電量計算第二電池之可使用時間。控制器比較第二電池之可使用時間與預設時間。當更換第一電池且第二電池之可使用時間小於預設時間時,控制器降低中央處理器之操作頻率。According to another aspect of the present invention, a portable electronic device provided by the present invention includes a central processing unit, an operation module, a first battery, a second battery, and a controller. The controller is coupled to the central processor, the first battery, and the second battery. When the first battery is replaced, the power provided by the second battery maintains the operating state of the operating module. The controller detects the system power consumption and calculates the usable time of the second battery based on the system power consumption. The controller compares the usable time and the preset time of the second battery. When the first battery is replaced and the usable time of the second battery is less than the preset time, the controller lowers the operating frequency of the central processor.

本發明提供的電源管理方法及應用其的可攜式電子裝置,可實時(real time)偵測可攜式電子裝置之系統耗電量,且據此計算出第二電池之可使用時間並與預設時間作比較。當更換第一電池且第二電池之可使用時間小於預設時間時,控制器藉由降低中央處理器之操作頻率來確保第二電池提供之電力可使可攜式電子裝置維持在S0狀態。藉此,在更換第一電池時,使用者無需中斷當前進行的所有操作,即使操作模組維持在原工作狀態。The power management method provided by the present invention and the portable electronic device using the same can real-timely detect the system power consumption of the portable electronic device, and calculate the usable time of the second battery according to the Preset time for comparison. When the first battery is replaced and the usable time of the second battery is less than the preset time, the controller ensures that the power provided by the second battery can maintain the portable electronic device in the S0 state by reducing the operating frequency of the central processor. Thereby, when the first battery is replaced, the user does not need to interrupt all the operations currently performed, even if the operation module is maintained in the original working state.

為讓本發明的上述和其他目的、特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合附圖,作詳細說明如下。The above and other objects, features, and advantages of the present invention will become more apparent and understood by the appended claims appended claims

圖1所示為根據本發明一較佳實施例的可攜式電子裝置的功能方塊圖。請參考圖1。於本實施例中,可攜式電子裝置1可為一筆記型電腦。然而,本發明對此不作任何限定。1 is a functional block diagram of a portable electronic device in accordance with a preferred embodiment of the present invention. Please refer to Figure 1. In this embodiment, the portable electronic device 1 can be a notebook computer. However, the present invention is not limited thereto.

於本實施例中,可攜式電子裝置1具有一系統電源端SP。並且,可攜式電子裝置1包括第一電池10、第二電池11、控制器12、感應電阻13、晶片組14、中央處理器15、操作模組16、顯示器17、周邊裝置18、電源切換單元19、第一電池充電控制器101以及第二電池充電控制器111。In this embodiment, the portable electronic device 1 has a system power terminal SP. Moreover, the portable electronic device 1 includes a first battery 10, a second battery 11, a controller 12, a sensing resistor 13, a chip set 14, a central processing unit 15, an operation module 16, a display 17, a peripheral device 18, and a power switch. The unit 19, the first battery charge controller 101, and the second battery charge controller 111.

於本實施例中,感應電阻13設置於系統電源端SP並耦接於控制器12。操作模組16與控制器12藉由晶片組14耦接中央處理器15。並且,控制器12亦耦接顯示器17與周邊裝置18。電源切換單元19耦接第一電池10、第二電池11以及控制器12。第二電池充電控制器111耦接第一電池10、第二電池11以及控制器12。第一電池充電控制器101耦接一外部電源適配器、控制器12與第一電池10。然而,本發明對此不作任何限定。In the embodiment, the sensing resistor 13 is disposed at the system power terminal SP and coupled to the controller 12 . The operating module 16 and the controller 12 are coupled to the central processor 15 by the chip set 14. Moreover, the controller 12 is also coupled to the display 17 and the peripheral device 18. The power switching unit 19 is coupled to the first battery 10, the second battery 11, and the controller 12. The second battery charging controller 111 is coupled to the first battery 10, the second battery 11, and the controller 12. The first battery charging controller 101 is coupled to an external power adapter, the controller 12 and the first battery 10. However, the present invention is not limited thereto.

於本實施例中,第一電池10為可攜式電子裝置1的主電池,以提供可攜式電子裝置1運作時所需的電力。第一電池10可為可充電電池,例如可為可充電鋰電池。然而,本發明對此不作任何限定。於其它實施例中,其可為鎳鎘可充電電池或鎳氫可充電電池,或者亦可為一次性電池。In the embodiment, the first battery 10 is a main battery of the portable electronic device 1 to provide power required for the portable electronic device 1 to operate. The first battery 10 can be a rechargeable battery, such as a rechargeable lithium battery. However, the present invention is not limited thereto. In other embodiments, it may be a nickel-cadmium rechargeable battery or a nickel-hydrogen rechargeable battery, or may be a disposable battery.

於本實施例中,第一電池充電控制器101將外部電源適配器提供的直流電壓輸出至第一電池10,並在控制器12的控制下對第一電池10進行充電。以第一電池10為可充電鋰電池為例,其充電過程可分為兩個階段,恒流快充階段和恒壓電流遞減階段。在恒流快充階段,第一電池10的電壓逐步升高至標準電壓,隨後在第一電池充電控制器101的控制下轉入恒壓階段,藉此電壓便不再升高以確保第一電池10不會過充。電流則隨著第一電池10的電量的上升而逐步減弱到0而完成充電。然而,本發明對此不作任何限定。In the present embodiment, the first battery charging controller 101 outputs the DC voltage supplied from the external power adapter to the first battery 10, and charges the first battery 10 under the control of the controller 12. Taking the first battery 10 as a rechargeable lithium battery as an example, the charging process can be divided into two stages, a constant current fast charging phase and a constant voltage current decreasing phase. In the constant current fast charging phase, the voltage of the first battery 10 is gradually increased to the standard voltage, and then is switched to the constant voltage phase under the control of the first battery charging controller 101, whereby the voltage is no longer raised to ensure the first Battery 10 does not overcharge. The current is gradually reduced to 0 as the amount of electricity of the first battery 10 rises to complete the charging. However, the present invention is not limited thereto.

另外,於本實施例中,第一電池充電控制器101亦控制第一電池10的放電過程。在放電過程中,第一電池10的電壓基本保持不變,只有在第一電池10的電量很少時才會突然下降。在第一電池充電控制器101偵測到此狀態時便認為第一電池10的電量用完了,則第一電池充電控制器101便控制第一電池10停止放電以防止第一電池10過度放電。然而,本發明對此不作任何限定。In addition, in the present embodiment, the first battery charging controller 101 also controls the discharging process of the first battery 10. During the discharge process, the voltage of the first battery 10 remains substantially unchanged, and only suddenly drops when the amount of electricity of the first battery 10 is small. When the first battery charge controller 101 detects this state and considers that the first battery 10 has run out of power, the first battery charge controller 101 controls the first battery 10 to stop discharging to prevent the first battery 10 from being over-discharged. However, the present invention is not limited thereto.

於本實施例中,第二電池11可為小容量電池,在更換第一電池10時,其可用來維持可攜式電子裝置1的運作。因此,相較於第一電池10,第二電池11可具有較小的容量。於本實施例中,第二電池11亦可為可充電電池,例如可為可充電鋰電池。然而,本發明對此不作任何限定。於其它實施例中,其可為鎳鎘可充電電池或鎳氫可充電電池,或者亦可為一次性電池。In this embodiment, the second battery 11 can be a small-capacity battery, which can be used to maintain the operation of the portable electronic device 1 when the first battery 10 is replaced. Therefore, the second battery 11 can have a smaller capacity than the first battery 10. In this embodiment, the second battery 11 can also be a rechargeable battery, such as a rechargeable lithium battery. However, the present invention is not limited thereto. In other embodiments, it may be a nickel-cadmium rechargeable battery or a nickel-hydrogen rechargeable battery, or may be a disposable battery.

於本實施例中,第二電池充電控制器111可在控制器12的控制下利用第一電池10提供的電壓來對第二電池11充電,並負責控制第二電池11的充放電過程並保護第二電池11。第二電池充電控制器111的控制原理與第一電池充電控制器101相同,故在此不再贅述。於本實施例中,由於第一電池10與第二電池11的容量不同,則第一電池10與第二電池11的充電電流亦不同,故分別設置了第一電池充電控制器101與第二電池充電控制器111來對第一電池10與第二電池11進行充放電控制。然而,本發明對此不作任何限定。In the embodiment, the second battery charging controller 111 can charge the second battery 11 by using the voltage provided by the first battery 10 under the control of the controller 12, and is responsible for controlling the charging and discharging process of the second battery 11 and protecting The second battery 11. The control principle of the second battery charging controller 111 is the same as that of the first battery charging controller 101, and therefore will not be described herein. In this embodiment, since the capacities of the first battery 10 and the second battery 11 are different, the charging currents of the first battery 10 and the second battery 11 are also different, so the first battery charging controller 101 and the second are respectively disposed. The battery charge controller 111 performs charge and discharge control of the first battery 10 and the second battery 11. However, the present invention is not limited thereto.

於本實施例中,電源切換單元19可為一開關元件,其負責在第一電池10與第二電池11之間進行切換。具體而言,在可攜式電子裝置1處於電池模式,即沒有外接電源供電時,電源切換單元19將第一電池10提供的電量提供至整個系統,以使可攜式電子裝置1正常運作。在更換第一電池10的過程中,電源切換單元19切斷與第一電池10的連接,並將可攜式電子裝置1之電源切換至第二電池11,以用第二電池11提供的電量維持可攜式電子裝置1的運作。In the present embodiment, the power switching unit 19 can be a switching element that is responsible for switching between the first battery 10 and the second battery 11. Specifically, when the portable electronic device 1 is in the battery mode, that is, when there is no external power supply, the power switching unit 19 supplies the power provided by the first battery 10 to the entire system to enable the portable electronic device 1 to operate normally. In the process of replacing the first battery 10, the power switching unit 19 cuts off the connection with the first battery 10, and switches the power of the portable electronic device 1 to the second battery 11 to supply the power of the second battery 11. The operation of the portable electronic device 1 is maintained.

於本實施例中,操作模組16與周邊裝置18可以是相同種類的元件,也可以是不同種類的元件。例如:操作模組16可以是可攜式電子裝置1在更換第一電池10時,仍有可能在特定工作狀態的電子元件或模組,例如:正在連線的乙太網路模組,而周邊裝置18可以是可攜式電子裝置1在更換第一電池10時,沒有工作的電子元件或模組,例如:沒有連線的無線網路模組、藍芽模組、光碟機、或沒有連接的I/O連接器。In this embodiment, the operation module 16 and the peripheral device 18 may be the same type of components, or may be different types of components. For example, the operation module 16 may be an electronic component or a module that the portable electronic device 1 may still be in a specific working state when the first battery 10 is replaced, for example, an Ethernet module being connected, and The peripheral device 18 may be an electronic component or module that does not work when the portable electronic device 1 is replaced with the first battery 10, for example, a wireless network module without a connection, a Bluetooth module, a CD player, or no Connected I/O connector.

於本實施例中,感應電阻13設置於系統電源端SP,用於偵測可攜式電子裝置1的系統供電總電流I。此系統電源端SP通常是位於供電路徑中系統負載RLoad的最前端,即位於直流轉直流的電壓轉換器(圖未示)之前。藉此,將感應電阻13串聯至此可確保感應電阻13可獲得精確的系統供電總電流I。此處的系統負載RLoad即為可攜式電子裝置1內所有功耗元件,包括中央處理器15、操作模組16、顯示器17以及周邊裝置18在內的等效電阻。In this embodiment, the sensing resistor 13 is disposed at the system power terminal SP for detecting the total system power supply current I of the portable electronic device 1. The power supply SP of this system is usually located at the forefront of the system load R Load in the power supply path, that is, before the DC to DC voltage converter (not shown). Thereby, connecting the sense resistor 13 in series ensures that the sense resistor 13 can obtain an accurate total system power supply current I. The system load R Load here is the equivalent resistance of all power consumption components in the portable electronic device 1, including the central processing unit 15, the operation module 16, the display 17, and the peripheral device 18.

於本實施例中,感應電阻13可為一種超低阻值的電流取樣元件,其阻值範圍通常可在0.002歐姆至0.1歐姆之間。然而,本發明對此不作任何限定。In the present embodiment, the inductive resistor 13 can be an ultra-low resistance current sampling element having a resistance range generally between 0.002 ohms and 0.1 ohms. However, the present invention is not limited thereto.

於本實施例中,控制器12可為嵌入式控制器(embedded controller),然而本發明對此不作任何限定。於其它實施例中,其亦可為超級輸入輸出晶片或微處理器。In this embodiment, the controller 12 can be an embedded controller, but the invention is not limited thereto. In other embodiments, it can also be a super input/output chip or a microprocessor.

於本實施例中,控制器12耦接至感應電阻13的兩端,控制器12可通過偵測感應電阻13兩端的電壓,再根據感應電阻13的阻值來計算流經感應電阻13的系統供電總電流I。隨後,控制器12可根據歐姆定律來計算系統耗電量P,即系統耗電量P=I2RLoadIn this embodiment, the controller 12 is coupled to both ends of the sensing resistor 13 , and the controller 12 can calculate the voltage flowing through the sensing resistor 13 according to the voltage across the sensing resistor 13 and according to the resistance of the sensing resistor 13 . Total current supply I. Subsequently, the controller 12 can calculate the system power consumption P according to Ohm's law, that is, the system power consumption P=I 2 R Load .

於本實施例中,控制器12可耦接至第二電池11以偵測其剩餘電量PS。並且,控制器12可內建一儲存器121。儲存器121內可儲存有一預設時間,此預設時間即代表了第一電池10之允許更換時間。然而,本發明對此不作任何限定。於其它實施例中,控制器12亦可不包括儲存器,此預設時間可儲存於可攜式電子裝置1的其它位置。或者,此預設時間亦可由使用者透過操作介面進行設定。In this embodiment, the controller 12 can be coupled to the second battery 11 to detect its remaining power P S . Moreover, the controller 12 can have a built-in storage 121. The storage unit 121 can store a preset time, which represents the allowable replacement time of the first battery 10. However, the present invention is not limited thereto. In other embodiments, the controller 12 may not include a storage unit, and the preset time may be stored in other locations of the portable electronic device 1 . Alternatively, the preset time can also be set by the user through the operation interface.

於本實施例中,控制器12可根據偵測到的系統耗電量P與第二電池11之剩餘電量PS來計算第二電池11之可使用時間TL,即TL=PS/P。並且,控制器12可將此第二電池11之可使用時間TL與預設時間進行比較。In this embodiment, the controller 12 can calculate the usable time T L of the second battery 11 according to the detected system power consumption P and the remaining power P S of the second battery 11, that is, T L =P S / P. And, the controller 12 can compare the usable time T L of the second battery 11 with a preset time.

於本實施例中,控制器12還可用於偵測可攜式電子裝置1當前所處的電源模式。具體而言,控制器12可通過耦接於外部電源適配器的通用輸入/輸出引腳(GPIO)來偵測外部電源適配器是否存在。若偵測到外部電源適配器存在,則判定可攜式電子裝置1當前正處於外接電源模式,藉此產生AC_IN訊號。若偵測到外部電源適配器不存在,則控制器12通過耦接於第一電池10的通用輸入/輸出引腳(GPIO)來偵測第一電池10是否存在。若第一電池10存在,則判定可攜式電子裝置1當前正處於電池模式,藉此產生BAT_IN訊號。然而,本發明對此不作任何限定。In this embodiment, the controller 12 can also be used to detect the power mode in which the portable electronic device 1 is currently located. Specifically, the controller 12 can detect the presence of an external power adapter through a general purpose input/output pin (GPIO) coupled to the external power adapter. If it is detected that the external power adapter is present, it is determined that the portable electronic device 1 is currently in the external power mode, thereby generating an AC_IN signal. If it is detected that the external power adapter does not exist, the controller 12 detects whether the first battery 10 is present through a general-purpose input/output pin (GPIO) coupled to the first battery 10. If the first battery 10 is present, it is determined that the portable electronic device 1 is currently in the battery mode, thereby generating a BAT_IN signal. However, the present invention is not limited thereto.

於本實施例中,控制器12亦可用於偵測第一電池10之剩餘電量。在第一電池10之剩餘電量低於一設定值時,例如,當第一電池10是由兩節可充電鋰電池串聯形成,其剩餘電量低於3V時,控制器12可控制一發光二極體(圖未示)發光或一蜂鳴器(圖未示)發出提示音,以提醒使用者更換第一電池10。在使用者更換第一電池10時,即控制器12偵測到第一電池10被拔出時,控制器12可發送BAT_SW訊號至電源切換單元19,在可攜式電子裝置1處於電池模式時,控制器12控制電源切換單元19將可攜式電子裝置1之電源由第一電池10切換為第二電池11。然而,本發明對此不作任何限定。In this embodiment, the controller 12 can also be used to detect the remaining power of the first battery 10. When the remaining battery capacity of the first battery 10 is lower than a set value, for example, when the first battery 10 is formed by two rechargeable lithium batteries in series, and the remaining power is lower than 3V, the controller 12 can control a light-emitting diode. A body (not shown) emits light or a buzzer (not shown) emits a prompt tone to remind the user to replace the first battery 10. When the user replaces the first battery 10, that is, when the controller 12 detects that the first battery 10 is pulled out, the controller 12 can send a BAT_SW signal to the power switching unit 19 when the portable electronic device 1 is in the battery mode. The controller 12 controls the power switching unit 19 to switch the power of the portable electronic device 1 from the first battery 10 to the second battery 11. However, the present invention is not limited thereto.

於本實施例中,當可攜式電子裝置1在電池模式下更換第一電池10時,第二電池11所提供之電力可用來維持操作模組16的工作狀態,即讓操作模組16維持在更換第一電池10之前的狀態,藉此在更換第一電池10期間,使用者無需中斷目前的操作。In the embodiment, when the portable electronic device 1 replaces the first battery 10 in the battery mode, the power provided by the second battery 11 can be used to maintain the operating state of the operating module 16, that is, the operating module 16 is maintained. The state before the replacement of the first battery 10, whereby the user does not need to interrupt the current operation during the replacement of the first battery 10.

於本實施例中,在電池模式下更換第一電池10期間,控制器12即會根據最新的比較結果(第二電池11之可使用時間TL與預設時間相比)來進行相應的處理控制。In this embodiment, during the replacement of the first battery 10 in the battery mode, the controller 12 performs corresponding processing according to the latest comparison result (the available time T L of the second battery 11 is compared with the preset time). control.

具體而言,當第二電池11之可使用時間TL小於預設時間時,控制器12透過晶片組14來降低中央處理器15之操作頻率。降低的方式可以是每次以調降相同比例的方式來進行,例如每次可降低10%。然而,本發明對此不作任何限定。Specifically, when the usable time T L of the second battery 11 is less than the preset time, the controller 12 reduces the operating frequency of the central processing unit 15 through the wafer set 14. The manner of reduction can be done each time in the same proportions, for example by 10% each time. However, the present invention is not limited thereto.

於本實施例中,假設主機板向中央處理器15發送133MHz的頻率,此133MHz的頻率即為中央處理器15的外頻,外頻乘上倍頻(假設為21)即得到中央處理器15的主頻2.8GHz。主頻決定中央處理器15運算單元的實際操作頻率。在常規狀態下,中央處理器15內的算術邏輯運算單元(ALU)可收到相同的2.8GHz的頻率。當控制器12啟動調降機制後,其會決定省略多少時鐘周期來降低中央處理器15的操作頻率。In this embodiment, it is assumed that the motherboard sends a frequency of 133 MHz to the central processing unit 15, the frequency of the 133 MHz is the external frequency of the central processing unit 15, and the external frequency is multiplied by the multiplication frequency (assumed to be 21) to obtain the central processing unit 15. The main frequency is 2.8GHz. The primary frequency determines the actual operating frequency of the central processing unit of the central processor 15. In the normal state, the arithmetic logic unit (ALU) in the central processing unit 15 can receive the same frequency of 2.8 GHz. When the controller 12 initiates the down-conversion mechanism, it will decide how many clock cycles to omit to reduce the operating frequency of the central processor 15.

具體而言,當時鐘周期被發送到中央處理器15的倍乘器單元後,其中部分的時鐘周期會在控制器12的控制下被省略掉。藉此,發送至ALU的訊號的實際頻率會有所降低。由於ALU是中央處理器15內真正負責運算的元件,因此透過此種方式可降低中央處理器15的執行速度以降低其耗電量。Specifically, when a clock cycle is transmitted to the multiplier unit of the central processor 15, a portion of the clock cycle is omitted under the control of the controller 12. Thereby, the actual frequency of the signal sent to the ALU will be reduced. Since the ALU is an element that is actually responsible for the operation in the central processing unit 15, the execution speed of the central processing unit 15 can be lowered in this way to reduce its power consumption.

於本實施例中,在降低中央處理器15之操作頻率後,控制器12繼續偵測系統耗電量P與第二電池11之剩餘電量PS以計算第二電池11之可使用時間,隨後與預設時間作比較。若第二電池11之可使用時間仍小於預設時間,則繼續降低中央處理器15之操作頻率。如此反復,直至第二電池11之可使用時間大於或等於預設時間。In this embodiment, after reducing the operating frequency of the central processing unit 15, the controller 12 continues to detect the system power consumption P and the remaining power P S of the second battery 11 to calculate the usable time of the second battery 11, and then Compare with preset time. If the usable time of the second battery 11 is still less than the preset time, the operating frequency of the central processing unit 15 is continuously lowered. This is repeated until the usable time of the second battery 11 is greater than or equal to the preset time.

另外,於本實施例中,在更換第一電池10期間,若第二電池11之可使用時間TL小於預設時間,除了降低中央處理器15之操作頻率外,控制器12還可降低顯示器17之亮度。於本實施例中,顯示器17可為液晶顯示器。或者,控制器12還可關閉周邊裝置18。然而,本發明對此不作任何限定。In addition, in the embodiment, during the replacement of the first battery 10, if the usable time T L of the second battery 11 is less than the preset time, the controller 12 may lower the display in addition to lowering the operating frequency of the central processing unit 15 17 brightness. In this embodiment, the display 17 can be a liquid crystal display. Alternatively, controller 12 can also turn off peripheral device 18. However, the present invention is not limited thereto.

如上所述,於本實施例中,而周邊裝置18可以是可攜式電子裝置1在更換第一電池10時,沒有工作或可能不工作的電子元件或模組,例如:沒有連線的無線網路模組、沒有連線的藍芽模組、沒有工作的光碟機、或沒有連接的I/O連接器(如:USB裝置或PCIE裝置)。控制器12可控制周邊裝置18進入電源關閉模式(power down mode),即切斷周邊裝置18的電源以省電。As described above, in the embodiment, the peripheral device 18 may be an electronic component or a module that the portable electronic device 1 does not work or may not work when the first battery 10 is replaced, for example, wireless without connection. Network modules, Bluetooth modules that are not connected, CD drives that are not working, or I/O connectors that are not connected (such as USB devices or PCIE devices). The controller 12 can control the peripheral device 18 to enter a power down mode, that is, power off the peripheral device 18 to save power.

圖2所示為根據本發明另一較佳實施例的可攜式電子裝置的功能方塊圖。請參考圖2。於本實施例中,可攜式電子裝置2亦可為一筆記型電腦。然而,本發明對此不作任何限定。FIG. 2 is a functional block diagram of a portable electronic device according to another preferred embodiment of the present invention. Please refer to Figure 2. In this embodiment, the portable electronic device 2 can also be a notebook computer. However, the present invention is not limited thereto.

於本實施例中,可攜式電子裝置2具有一系統電源端SP。並且,可攜式電子裝置2包括第一電池20、第二電池21、控制器22、感應電阻23、晶片組24、中央處理器25、操作模組26、顯示器27、周邊裝置28、電源切換單元29、第一電池充電控制器201以及第二電池充電控制器211,其中控制器22還包括儲存器221。In this embodiment, the portable electronic device 2 has a system power terminal SP. Moreover, the portable electronic device 2 includes a first battery 20, a second battery 21, a controller 22, a sense resistor 23, a chip set 24, a central processing unit 25, an operation module 26, a display 27, a peripheral device 28, and a power switch. The unit 29, the first battery charging controller 201, and the second battery charging controller 211, wherein the controller 22 further includes a storage unit 221.

本實施例與上一實施例的工作過程類似,唯差別在於,於本實施例中,負責偵測可攜式電子裝置2當前所處的電源模式、第二電池21的剩餘電量PS以及第一電池20的剩餘電量的是電源切換單元29。This embodiment is similar to the previous embodiment of the working process, the only difference is that, in the present embodiment, is responsible for detecting the current power mode 2 in which the portable electronic device 21 of the second battery remaining amount and the second P S The remaining power of a battery 20 is the power switching unit 29.

具體而言,於本實施例中,電源切換單元29包括電源切換開關291與電源控制器292。電源切換開關291為一開關元件,其耦接第一電池20與第二電池21,並負責在第一電池20與第二電池21之間進行切換。電源控制器292耦接第一電池20、第二電池21、控制器22以及電源切換開關291。Specifically, in the present embodiment, the power source switching unit 29 includes a power source switching switch 291 and a power source controller 292. The power switch 291 is a switching element that couples the first battery 20 and the second battery 21 and is responsible for switching between the first battery 20 and the second battery 21. The power controller 292 is coupled to the first battery 20, the second battery 21, the controller 22, and the power switch 291.

於本實施例中,控制器22可偵測系統耗電量P並根據電源控制器292偵測到的第二電池21的剩餘電量PS來對應計算第二電池21之可使用時間TL。此後,控制器22再將此第二電池21之可使用時間TL與第一電池20之允許更換時間進行比較。In this embodiment, the controller 22 can detect the system power consumption P and correspondingly calculate the usable time T L of the second battery 21 according to the remaining power P S of the second battery 21 detected by the power controller 292. Thereafter, the controller 22 compares the usable time T L of the second battery 21 with the allowable replacement time of the first battery 20.

於本實施例中,電源控制器292偵測可攜式電子裝置2當前所處的電源模式的方式與上一實施例中控制器12的偵測方式相同,故在此不再贅述。藉此,當電源控制器292判定可攜式電子裝置2當前正處於外接電源模式時,其發送一AC_IN訊號至控制器22;當電源控制器292判定可攜式電子裝置2當前正處於電池模式時,其發送一BAT_IN訊號至控制器22。然而,本發明對此不作任何限定。In this embodiment, the manner in which the power controller 292 detects the power mode of the portable electronic device 2 is the same as that of the controller 12 in the previous embodiment, and details are not described herein. Thereby, when the power controller 292 determines that the portable electronic device 2 is currently in the external power mode, it sends an AC_IN signal to the controller 22; when the power controller 292 determines that the portable electronic device 2 is currently in the battery mode When it sends a BAT_IN signal to the controller 22. However, the present invention is not limited thereto.

於本實施例中,當電源控制器292偵測到第一電池20之剩餘電量低於一設定值,電源控制器292可控制一發光二極體(圖未示)發光或一蜂鳴器(圖未示)發出提示音,以提醒使用者更換第一電池20。在使用者開始更換第一電池20時,即電源控制器292偵測到第一電池20被拔出時,電源控制器292可發送一BAT_SW訊號至電源切換開關291與控制器22。藉此,在可攜式電子裝置2處於電池模式時,電源切換開關291負責將可攜式電子裝置2之電源由第一電池20切換為第二電池21。並且,在電池模式下,控制器22會根據第二電池21之可使用時間TL與預設時間的比較結果來決定是否進行相應的處理控制。In this embodiment, when the power controller 292 detects that the remaining power of the first battery 20 is lower than a set value, the power controller 292 can control a light emitting diode (not shown) to emit light or a buzzer ( A reminder sound is emitted to remind the user to replace the first battery 20. When the user starts to replace the first battery 20, that is, when the power controller 292 detects that the first battery 20 is pulled out, the power controller 292 can send a BAT_SW signal to the power switch 291 and the controller 22. Therefore, when the portable electronic device 2 is in the battery mode, the power switch 291 is responsible for switching the power of the portable electronic device 2 from the first battery 20 to the second battery 21. Moreover, in the battery mode, the controller 22 determines whether to perform the corresponding process control based on the comparison result of the usable time T L of the second battery 21 and the preset time.

於本實施例中,同樣地,當在電池模式下更換第一電池20時,第二電池21所提供之電力可用來維持操作模組26的工作狀態,即讓操作模組26維持在更換第一電池20之前的狀態,藉此在更換第一電池20期間,使用者無需中斷目前的操作。In the embodiment, similarly, when the first battery 20 is replaced in the battery mode, the power provided by the second battery 21 can be used to maintain the operating state of the operating module 26, that is, the operating module 26 is maintained in the replacement state. A state before the battery 20, whereby the user does not need to interrupt the current operation during the replacement of the first battery 20.

圖3所示為根據本發明一較佳實施例的電源管理方法的流程圖。請一併參考圖1與圖3。3 is a flow chart of a power management method in accordance with a preferred embodiment of the present invention. Please refer to Figure 1 and Figure 3 together.

於本實施例中,在步驟S30中,偵測可攜式電子裝置1之系統耗電量。In this embodiment, in step S30, the system power consumption of the portable electronic device 1 is detected.

具體而言,控制器12可通過偵測感應電阻13兩端的電壓,再根據感應電阻13的阻值來計算流經感應電阻13的系統供電總電流I。隨後,控制器12可根據歐姆定律來計算系統耗電量,即系統耗電量P=I2RLoadSpecifically, the controller 12 can calculate the total power supply current I flowing through the sensing resistor 13 by detecting the voltage across the sensing resistor 13 and then calculating the resistance of the sensing resistor 13. Subsequently, the controller 12 can calculate the system power consumption according to Ohm's law, that is, the system power consumption P=I 2 R Load .

在步驟S31中,根據系統耗電量P計算第二電池11之可使用時間。於本實施例中,可利用控制器12來偵測第二電池11之剩餘電量PS。然而,本發明對此不作任何限定。在圖2所示的實施例中,第二電池21之剩餘電量PS可由電源切換單元29的電源控制器292來偵測。隨後,控制器12可根據偵測到的系統耗電量P與第二電池11之剩餘電量PS來計算第二電池11之可使用時間TL,即TL=PS/P。In step S31, the usable time of the second battery 11 is calculated based on the system power consumption P. In this embodiment, the controller 12 can be used to detect the remaining power P S of the second battery 11 . However, the present invention is not limited thereto. In the embodiment illustrated in Figure 2, a second battery remaining amount of P S 21 by the power switching unit 29 of the power supply controller 292 to detect. Subsequently, the controller 12 can calculate the usable time T L of the second battery 11 according to the detected system power consumption P and the remaining power P S of the second battery 11, that is, T L =P S /P.

在步驟S32中,比較第二電池11之可使用時間TL與預設時間。具體而言,控制器12會將偵測得到的第二電池11之可使用時間TL與儲存在其內建儲存器121內的預設時間進行比較,以決定後續在更換第一電池10時是否進行對應的處理控制。In step S32, the usable time T L of the second battery 11 is compared with a preset time. Specifically, the controller 12 compares the detected available time T L of the second battery 11 with a preset time stored in the built-in storage 121 to determine the subsequent replacement of the first battery 10 . Whether to perform corresponding processing control.

在步驟S33中,偵測可攜式電子裝置1的電源模式。於本實施例中,可利用控制器12來偵測可攜式電子裝置1的電源模式,藉此對應地產生AC_IN訊號或BAT_IN訊號。具體方法已在圖1中敘述過,故在此不再贅述。然而,本發明對此不作任何限定。在圖2所示的實施例中,亦可利用電源切換單元29的電源控制器292來偵測。In step S33, the power mode of the portable electronic device 1 is detected. In this embodiment, the controller 12 can be used to detect the power mode of the portable electronic device 1, thereby correspondingly generating an AC_IN signal or a BAT_IN signal. The specific method has been described in FIG. 1, and therefore will not be described again here. However, the present invention is not limited thereto. In the embodiment shown in FIG. 2, the power controller 292 of the power switching unit 29 can also be used for detection.

於本實施例中,在可攜式電子裝置1的電源模式為電池模式時,則執行如下的步驟;在可攜式電子裝置1的電源模式為外接電源模式時,則繼續實時地去偵測可攜式電子裝置1之系統耗電量。In the embodiment, when the power mode of the portable electronic device 1 is the battery mode, the following steps are performed; when the power mode of the portable electronic device 1 is the external power mode, the real-time detection is continued. The system power consumption of the portable electronic device 1.

另外,本發明並不限定步驟S33的執行順序,其可在偵測可攜式電子裝置1之系統耗電量的同時,亦同步對可攜式電子裝置1的電源模式進行實時地偵測。In addition, the present invention does not limit the execution sequence of the step S33, and can detect the power mode of the portable electronic device 1 in real time while detecting the power consumption of the portable electronic device 1.

在步驟S34中,當更換第一電池10時,利用第二電池11所提供之電力來維持操作模組16的工作狀態。具體而言,於本實施例中,可利用控制器12來偵測第一電池10之剩餘電量並判斷第一電池10之剩餘電量是否低於設定值。然而,本發明對此不作任何限定。在圖2所示的實施例中,則是利用電源切換單元29的電源控制器292來偵測。In step S34, when the first battery 10 is replaced, the operating state of the operating module 16 is maintained by the power provided by the second battery 11. Specifically, in this embodiment, the controller 12 can be used to detect the remaining power of the first battery 10 and determine whether the remaining power of the first battery 10 is lower than a set value. However, the present invention is not limited thereto. In the embodiment shown in FIG. 2, it is detected by the power controller 292 of the power switching unit 29.

於本實施例中,當第一電池10之剩餘電量低於設定值時,可攜式電子裝置1可發出提示以提示使用者更換第一電池10。在電池模式下使用者拔出第一電池10時,控制器12可發送BAT_SW訊號至電源切換單元19,以控制電源切換單元19將可攜式電子裝置1之電源由第一電池10切換為第二電池11。同時,第二電池11所提供之電力可用來維持操作模組16的工作狀態,即讓操作模組16保持在更換第一電池10之前的工作狀態。例如,當操作模組16包括乙太網路模組時,若使用者在更換第一電池10前正在上網或傳輸資料,則在更換第一電池10時,第二電池11所提供之電力可繼續維持乙太網路模組的連線狀態。In this embodiment, when the remaining power of the first battery 10 is lower than the set value, the portable electronic device 1 can issue a prompt to prompt the user to replace the first battery 10. When the user pulls out the first battery 10 in the battery mode, the controller 12 can send the BAT_SW signal to the power switching unit 19 to control the power switching unit 19 to switch the power of the portable electronic device 1 from the first battery 10 to the first battery 10 Two batteries 11. At the same time, the power provided by the second battery 11 can be used to maintain the operating state of the operating module 16, that is, to keep the operating module 16 in an operating state prior to replacing the first battery 10. For example, when the operation module 16 includes an Ethernet module, if the user is surfing the Internet or transferring data before replacing the first battery 10, when the first battery 10 is replaced, the power provided by the second battery 11 can be Continue to maintain the connection status of the Ethernet module.

於本實施例中,若第一電池10之剩餘電量未低於設定值,則表示不需要更換第一電池10。控制器12會繼續實時地去偵測可攜式電子裝置1之系統耗電量。In this embodiment, if the remaining power of the first battery 10 is not lower than the set value, it means that the first battery 10 does not need to be replaced. The controller 12 continues to detect the system power consumption of the portable electronic device 1 in real time.

另外,本發明並不限定偵測第一電池10之剩餘電量的執行順序,其可在偵測可攜式電子裝置1之系統耗電量的同時,亦同步對第一電池10之剩餘電量進行實時地偵測。In addition, the present invention does not limit the execution order of detecting the remaining power of the first battery 10, and can simultaneously detect the remaining power of the first battery 10 while detecting the power consumption of the system of the portable electronic device 1. Detect in real time.

在步驟S35中,當更換第一電池10且第二電池11之可使用時間小於預設時間時,降低中央處理器15之操作頻率。In step S35, when the first battery 10 is replaced and the usable time of the second battery 11 is less than the preset time, the operating frequency of the central processing unit 15 is lowered.

具體而言,晶片組14上的數個通用輸入/輸出引腳(GPIO)會連接至控制器12,控制器12可藉由改變這些通用輸入/輸出引腳的電位來觸發一SCI中斷。根據此SCI中斷,晶片組14發送一STPCLK#訊號至中央處理器15,以使中央處理器15按照預設的時鐘周期進行工作,以降低中央處理器15之實際操作頻率。此預設的時鐘周期可由使用者在BIOS中進行設定。例如,使用者在BIOS中預設的時鐘周期為原來的75%,則中央處理器15的實際工作頻率為原來的75%,以實現工作的間歇,降低系統耗電量。In particular, a number of general purpose input/output pins (GPIOs) on chipset 14 are coupled to controller 12, which can trigger an SCI interrupt by changing the potential of these general purpose input/output pins. Based on this SCI interrupt, the chipset 14 sends an STPCLK# signal to the central processor 15 to cause the central processor 15 to operate at a predetermined clock cycle to reduce the actual operating frequency of the central processor 15. This preset clock period can be set by the user in the BIOS. For example, if the preset clock period of the user in the BIOS is 75%, the actual operating frequency of the CPU 15 is 75% of the original, so as to realize the intermittent operation and reduce the system power consumption.

並且,如步驟S35所示,當更換第一電池10且第二電池11之可使用時間小於預設時間時,還可降低顯示器17之亮度。具體而言,於本實施例中,控制器12可發送具有一定脈衝占空比來發出對應的脈衝信號至顯示器17中光源(圖未示)的負極,以控制光源在此脈衝信號的一個周期內的部份時間處於“點亮”狀態,而在這個周期內的其餘時間處於“熄滅”狀態。由於人眼無法分辨超過25Hz的頻率,因此,只要這個周期小於0.04s,則可利用人眼的視覺暫留,讓光源的發光看起來是連續的。並且,藉由控制不同的脈衝占空比,可使人眼感覺到不同的發光亮度。例如,在脈衝占空比為0.8的時候,人眼會感覺到光源的發光亮度大於脈衝占空比為0.3時的發光亮度。藉此,可實現顯示器17之亮度的控制。Moreover, as shown in step S35, when the first battery 10 is replaced and the usable time of the second battery 11 is less than the preset time, the brightness of the display 17 can also be lowered. Specifically, in this embodiment, the controller 12 can transmit a negative pulse having a certain pulse duty ratio to emit a corresponding pulse signal to a light source (not shown) in the display 17 to control the light source in one cycle of the pulse signal. Part of the time is in the "lighted" state, and the rest of the time is in the "off" state. Since the human eye cannot distinguish frequencies exceeding 25 Hz, as long as this period is less than 0.04 s, the visual persistence of the human eye can be utilized to make the illuminance of the light source appear continuous. Moreover, by controlling different pulse duty ratios, the human eye can feel different luminances of illumination. For example, when the pulse duty ratio is 0.8, the human eye will feel that the light-emitting luminance of the light source is larger than the luminance of the light when the pulse duty ratio is 0.3. Thereby, the control of the brightness of the display 17 can be achieved.

或者亦可如步驟S37所示,當更換第一電池10且第二電池11之可使用時間小於預設時間時,關閉周邊裝置18。Alternatively, as shown in step S37, when the first battery 10 is replaced and the usable time of the second battery 11 is less than the preset time, the peripheral device 18 is turned off.

於本實施例中,控制器12可重複進行步驟S35~S37,直至第二電池11之可使用時間TL大於或等於預設時間。In this embodiment, the controller 12 may repeat steps S35-S37 until the usable time T L of the second battery 11 is greater than or equal to the preset time.

在步驟S38中,當第一電池10更換完成後,對第二電池11進行充電。具體而言,於本實施例中,在使用者更換完第一電池10後,控制器12可控制電源切換單元19將可攜式電子裝置1之電源切換至新換上的第一電池10,並利用新換上的第一電池10提供的電力來控制對第二電池11進行充電。In step S38, after the replacement of the first battery 10 is completed, the second battery 11 is charged. Specifically, in this embodiment, after the user replaces the first battery 10, the controller 12 can control the power switching unit 19 to switch the power of the portable electronic device 1 to the newly replaced first battery 10. The second battery 11 is controlled to be charged by the power supplied from the newly replaced first battery 10.

與此同時,如步驟S39所示,當第一電池10更換完成後,回復中央處理器之操作頻率。並且,若在更換第一電池10時,控制器12已降低過顯示器17之亮度或者已關閉周邊裝置18,則在第一電池10更換完成後,控制器12可將顯示器17之亮度回復至初始亮度,並開啟周邊裝置18,即恢復對周邊裝置18的供電。At the same time, as shown in step S39, when the replacement of the first battery 10 is completed, the operating frequency of the central processing unit is restored. Moreover, if the controller 12 has lowered the brightness of the display 17 or has turned off the peripheral device 18 when the first battery 10 is replaced, the controller 12 can restore the brightness of the display 17 to the initial state after the first battery 10 is replaced. Brightness, and turning on the peripheral device 18, restores power to the peripheral device 18.

綜上所述,本發明實施例提供的電源管理方法及應用其的可攜式電子裝置,可實時偵測可攜式電子裝置之系統耗電量,且據此計算出第二電池之可使用時間並與預設時間作比較。當更換第一電池且第二電池之可使用時間小於預設時間時,控制器藉由降低中央處理器之操作頻率來使可攜式電子裝置維持在S0狀態。藉此,在更換第一電池時,使用者無需中斷當前進行的所有操作。另外,由於本發明實施例提供的電源管理方法及應用其的可攜式電子裝置,是在更換第一電池前對系統耗電量進行實時偵測,因此可避免因計算系統耗電量的負荷過大,而導致在更換第一電池過程中因第二電池的電量不足而造成斷電的情形。In summary, the power management method and the portable electronic device using the same according to the embodiments of the present invention can detect the system power consumption of the portable electronic device in real time, and calculate the usable capacity of the second battery according to the method. Time is compared to the preset time. When the first battery is replaced and the usable time of the second battery is less than the preset time, the controller maintains the portable electronic device in the S0 state by lowering the operating frequency of the central processing unit. Thereby, the user does not need to interrupt all operations currently performed when the first battery is replaced. In addition, the power management method and the portable electronic device using the same according to the embodiments of the present invention detect the power consumption of the system before the first battery is replaced, thereby avoiding the load of the power consumption of the computing system. If it is too large, it may cause a power failure due to insufficient power of the second battery during the replacement of the first battery.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,因此本發明的保護範圍當視申請專利範圍所界定者為準。Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the present invention, and those skilled in the art can make some modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention is subject to the definition of the scope of the patent application.

1、2...可攜式電子裝置1, 2. . . Portable electronic device

10、20...第一電池10, 20. . . First battery

101、201...第一電池充電控制器101, 201. . . First battery charge controller

11、21...第二電池11, 21. . . Second battery

111、211...第二電池充電控制器111, 211. . . Second battery charge controller

12、22...控制器12, 22. . . Controller

121、221...儲存器121, 221. . . Storage

13、23...感應電阻13,23. . . Inductive resistance

14、24...晶片組14, 24. . . Chipset

15、25...中央處理器15,25. . . CPU

16、26...操作模組16, 26. . . Operation module

17、27...顯示器17, 27. . . monitor

18、29...周邊裝置18, 29. . . Peripheral device

19、29...電源切換單元19, 29. . . Power switching unit

291...電源切換開關291. . . Power switch

292...電源控制器292. . . Power controller

AC_IN、BAT_IN、BAT_SW...訊號AC_IN, BAT_IN, BAT_SW. . . Signal

I...系統供電總電流I. . . System power supply total current

RLoad...系統負載R Load . . . System load

S30~S39...步驟S30~S39. . . step

SP...系統電源端SP. . . System power terminal

圖1所示為根據本發明一較佳實施例的可攜式電子裝置的功能方塊圖。1 is a functional block diagram of a portable electronic device in accordance with a preferred embodiment of the present invention.

圖2所示為根據本發明另一較佳實施例的可攜式電子裝置的功能方塊圖。FIG. 2 is a functional block diagram of a portable electronic device according to another preferred embodiment of the present invention.

圖3所示為根據本發明一較佳實施例的電源管理方法的流程圖。3 is a flow chart of a power management method in accordance with a preferred embodiment of the present invention.

S30~S39...步驟S30~S39. . . step

Claims (18)

一種電源管理方法,實施於一可攜式電子裝置,該可攜式電子裝置包括一第一電池、一第二電池、一中央處理器、一感應電阻以及一操作模組,該電源管理方法包括:(a)藉由該感應電阻偵測該可攜式電子裝置之一系統耗電量;(b)根據該系統耗電量計算該第二電池之可使用時間;(c)比較該第二電池之可使用時間與一預設時間,該預設時間係為使用者更換該第一電池所需花費的時間;(d)當更換該第一電池時,利用該第二電池所提供之電力來維持該操作模組的工作狀態;以及(e)當更換該第一電池且該第二電池之可使用時間小於該預設時間時,降低該中央處理器之一操作頻率。 A power management method is implemented in a portable electronic device. The portable electronic device includes a first battery, a second battery, a central processing unit, a sensing resistor, and an operation module. The power management method includes (a) detecting the system power consumption of one of the portable electronic devices by the sensing resistor; (b) calculating the usable time of the second battery according to the power consumption of the system; (c) comparing the second The usable time of the battery is a preset time, which is a time required for the user to replace the first battery; (d) when the first battery is replaced, the power provided by the second battery is utilized To maintain the operating state of the operating module; and (e) reducing the operating frequency of one of the central processors when the first battery is replaced and the usable time of the second battery is less than the predetermined time. 如申請專利範圍第1項所述之電源管理方法,還包括偵測該可攜式電子裝置的一電源模式。 The power management method of claim 1, further comprising detecting a power mode of the portable electronic device. 如申請專利範圍第2項所述之電源管理方法,其中當該電源模式為電池模式且更換該第一電池時,執行該步驟(d)與該步驟(e)。 The power management method of claim 2, wherein the step (d) and the step (e) are performed when the power mode is the battery mode and the first battery is replaced. 如申請專利範圍第1項所述之電源管理方法,其中該操作模組包括一乙太網路模組,於該步驟(d)中,利用該第二電池所提供之電力來維持該乙太網路模組的連線狀態。 The power management method of claim 1, wherein the operation module comprises an Ethernet module, and in the step (d), the power provided by the second battery is used to maintain the Ethernet The connection status of the network module. 如申請專利範圍第1項所述之電源管理方法,其中該可攜式電子裝置還包括一顯示器,該電源管理方法還包括:當更換該第一電池且該第二電池之可使用時間小於該預設時間時,降低該顯示器之亮度。 The power management method of claim 1, wherein the portable electronic device further comprises a display, the power management method further comprising: when the first battery is replaced and the second battery is usable for less than Decrease the brightness of the display at preset times. 如申請專利範圍第1項所述之電源管理方法,其中該可攜式電子裝置還包括一周邊裝置,該電源管理方法還包括:當更換該第一電池且該第二電池之可使用時間小於該預設時間時,關閉該周邊裝置。 The power management method of claim 1, wherein the portable electronic device further comprises a peripheral device, the power management method further comprising: when the first battery is replaced and the second battery is usable for less than At the preset time, the peripheral device is turned off. 如申請專利範圍第1項所述之電源管理方法,還包括:當該第一電池更換完成後,對該第二電池進行充電。 The power management method of claim 1, further comprising: charging the second battery after the first battery replacement is completed. 如申請專利範圍第1項所述之電源管理方法,還包括:當該第一電池更換完成後,回復該中央處理器之該操作頻率。 The power management method of claim 1, further comprising: replying to the operating frequency of the central processor after the first battery replacement is completed. 一種可攜式電子裝置,包括:一中央處理器;一操作模組;一第一電池;一第二電池,當更換該第一電池時,該第二電池所提供之電力維持該操作模組的工作狀態;一控制器,耦接該中央處理器、該第一電池以及該第二電池,該控制器偵測一系統耗電量,並根據該系統耗電量計算該第二電池之可使用時間,該控制器 比較該第二電池之可使用時間與一預設時間,該預設時間係為使用者更換該第一電池所需花費的時間;以及一感應電阻;其中當更換該第一電池且該第二電池之可使用時間小於該預設時間時,該控制器降低該中央處理器之一操作頻率,該可攜式電子裝置具有一系統電源端,該感應電阻設置於該系統電源端並耦接於該控制器,該控制器藉由該感應電阻偵測該系統耗電量。 A portable electronic device includes: a central processing unit; an operation module; a first battery; and a second battery, wherein when the first battery is replaced, the power provided by the second battery maintains the operation module a controller, coupled to the central processing unit, the first battery, and the second battery, the controller detects a system power consumption, and calculates the second battery according to the system power consumption Use time, the controller Comparing the usable time of the second battery with a preset time, which is a time required for the user to replace the first battery; and a sensing resistor; wherein when the first battery is replaced and the second When the usable time of the battery is less than the preset time, the controller reduces the operating frequency of the central processing unit. The portable electronic device has a system power terminal, and the sensing resistor is disposed at the power supply end of the system and coupled to the The controller detects the power consumption of the system by the sensing resistor. 如申請專利範圍第9項所述之可攜式電子裝置,還包括一顯示器,其耦接於該控制器,當更換該第一電池且該第二電池之可使用時間小於預設時間時,該控制器降低該顯示器之亮度。 The portable electronic device of claim 9, further comprising a display coupled to the controller, when the first battery is replaced and the second battery is usable for less than a preset time, The controller reduces the brightness of the display. 如申請專利範圍第9項所述之可攜式電子裝置,還包括一周邊裝置,其耦接於該控制器,當更換該第一電池且該第二電池之可使用時間小於該預設時間時,該控制器關閉該周邊裝置。 The portable electronic device of claim 9, further comprising a peripheral device coupled to the controller, when the first battery is replaced and the second battery is usable for less than the preset time The controller turns off the peripheral device. 如申請專利範圍第9項所述之可攜式電子裝置,還包括一電源切換單元,其耦接該第一電池、該第二電池以及該控制器。 The portable electronic device of claim 9, further comprising a power switching unit coupled to the first battery, the second battery, and the controller. 如申請專利範圍第12項所述之可攜式電子裝置,其中該電源切換單元偵測該可攜式電子裝置的一電源模式。 The portable electronic device of claim 12, wherein the power switching unit detects a power mode of the portable electronic device. 如申請專利範圍第9項所述之可攜式電子裝置,還包 括一第二電池充電控制器,其耦接該控制器與該第二電池,當該第一電池更換完成後,該控制器控制該第二電池充電控制器對該第二電池進行充電。 The portable electronic device according to claim 9 of the patent application, which also includes A second battery charging controller is coupled to the controller and the second battery. After the first battery replacement is completed, the controller controls the second battery charging controller to charge the second battery. 如申請專利範圍第9項所述之可攜式電子裝置,其中該控制器偵測該可攜式電子裝置的一電源模式。 The portable electronic device of claim 9, wherein the controller detects a power mode of the portable electronic device. 如申請專利範圍第9項所述之可攜式電子裝置,其中該操作模組包括一乙太網路模組,當更換該第一電池時,該第二電池所提供之電力維持該乙太網路模組的連線狀態。 The portable electronic device of claim 9, wherein the operation module comprises an Ethernet module, and when the first battery is replaced, the power provided by the second battery maintains the Ethernet The connection status of the network module. 如申請專利範圍第9項所述之可攜式電子裝置,其中該控制器為嵌入式控制器。 The portable electronic device of claim 9, wherein the controller is an embedded controller. 如申請專利範圍第9項所述之可攜式電子裝置,其中該預設時間儲存於該控制器內。The portable electronic device of claim 9, wherein the preset time is stored in the controller.
TW099104098A 2010-02-10 2010-02-10 Method for managing power and portable electronic device using the same TWI529521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099104098A TWI529521B (en) 2010-02-10 2010-02-10 Method for managing power and portable electronic device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099104098A TWI529521B (en) 2010-02-10 2010-02-10 Method for managing power and portable electronic device using the same

Publications (2)

Publication Number Publication Date
TW201128375A TW201128375A (en) 2011-08-16
TWI529521B true TWI529521B (en) 2016-04-11

Family

ID=45025173

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099104098A TWI529521B (en) 2010-02-10 2010-02-10 Method for managing power and portable electronic device using the same

Country Status (1)

Country Link
TW (1) TWI529521B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI463298B (en) * 2012-01-19 2014-12-01 Asmedia Technology Inc External electronic device
CN103683348B (en) * 2012-09-12 2016-06-29 国基电子(上海)有限公司 There is the electronic installation of power consumption detecting function
TWI475368B (en) * 2012-11-21 2015-03-01 Giga Byte Tech Co Ltd Power control system and method thereof
CN110071569B (en) * 2018-01-22 2023-10-13 关隆股份有限公司 Load control system and control method thereof

Also Published As

Publication number Publication date
TW201128375A (en) 2011-08-16

Similar Documents

Publication Publication Date Title
US10910870B2 (en) Charging device and charging method
TWI427892B (en) Power supply system for power saving and method thereof
JP5301008B1 (en) ELECTRONIC DEVICE, CHARGE CONTROL DEVICE, AND CHARGE CONTROL METHOD
US8854014B2 (en) Battery charging apparatus, electronic apparatus, and charging method
US20120313571A1 (en) Method and system for rationing charge or energy provided to a portable device
JPH075958A (en) Computer operated by battery
CN102148532B (en) Power supply management method and portable electronic device applying same
JP2016024561A (en) Power management circuit, and electronic device using the same
TWI481889B (en) Rechargeable battery temperature detection method, power management device and electronic system
US9880610B2 (en) Power supplying method, power supplying system, and electronic device
TWI529521B (en) Method for managing power and portable electronic device using the same
CN110716631A (en) Power supply management method, device, equipment and readable storage medium
TWI408541B (en) Power management device for a computer system and related power management method and computer system
US8423804B2 (en) System and method for adjusting system performance based on an output power of a power adapter determined according to an over current recovering time
US7612536B2 (en) Pre-set discharging of batteries
US8022676B2 (en) Electronic device
US20120030487A1 (en) Information processing apparatus and power control method
TWI394973B (en) Battery detecting device and method applied to hand-held electronic apparatus
JP2004159382A (en) Electronic apparatus
CN105653002B (en) Display methods, device and the electronic equipment of battery capacity
JP2004318629A (en) Electronic device
JP4030408B2 (en) Operating frequency control system and method
CN103257597B (en) Control method and electronic equipment
CN206650886U (en) Indicating lamp control circuit and electronic equipment
TWI488032B (en) Electronic device and power supplying control method thereof