TWI493333B - Computer device and power saving method therefor - Google Patents

Computer device and power saving method therefor Download PDF

Info

Publication number
TWI493333B
TWI493333B TW102113498A TW102113498A TWI493333B TW I493333 B TWI493333 B TW I493333B TW 102113498 A TW102113498 A TW 102113498A TW 102113498 A TW102113498 A TW 102113498A TW I493333 B TWI493333 B TW I493333B
Authority
TW
Taiwan
Prior art keywords
switch
unit
power source
storage unit
embedded controller
Prior art date
Application number
TW102113498A
Other languages
Chinese (zh)
Other versions
TW201441806A (en
Inventor
Chih Chieh Yin
Original Assignee
Acer Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Inc filed Critical Acer Inc
Priority to TW102113498A priority Critical patent/TWI493333B/en
Publication of TW201441806A publication Critical patent/TW201441806A/en
Application granted granted Critical
Publication of TWI493333B publication Critical patent/TWI493333B/en

Links

Landscapes

  • Power Sources (AREA)

Description

電腦裝置及其省電方法Computer device and power saving method thereof

本發明是有關於一種電腦裝置,且特別是有關於一種電腦裝置的省電方法。The present invention relates to a computer device, and more particularly to a power saving method for a computer device.

隨著科技進步,電腦裝置產品也日漸普及,像是手機、筆記型電腦(Note Book)、個人數位助理(Personal Digital Assistant,PDA)等產品更是以輕薄且功能性多元化的優勢受到廣大使用者之歡迎。然而,在不影響電腦裝置產品之正常運作的情況下,延長其使用時間,其功率消耗的問題即顯得非常重要。With the advancement of technology, computer device products are becoming more and more popular, such as mobile phones, notebooks (Note Book), personal digital assistants (PDAs) and other products are widely used in the light and thin and functional advantages. Welcome. However, the problem of power consumption is very important if the use time of the computer device product is not affected and the use time is extended.

電腦裝置為了達到便於攜帶及使用之目的,電池電量的提供便顯得非常重要。使用者可在不需要使用電腦裝置時將電腦裝置關機或進入省電模式,而電腦裝置會將其電源關閉或減少耗電而避免耗費電池電量。此時,電腦裝置中除了嵌入式控制器或是因仍有一些系統關機時需要執行任務而需要電源的供應之外,其餘所有的元件都是斷電的,以達到省電的效果。In order to be portable and usable, the provision of battery power is very important. The user can turn off the computer device or enter the power saving mode when the computer device is not needed, and the computer device will turn off the power or reduce the power consumption to avoid the battery power consumption. At this time, in addition to the embedded controller in the computer device or the need to perform power supply when some systems need to be shut down, all other components are powered off to achieve power saving effect.

然而,嵌入式控制器的韌體程式碼大多儲存於電腦裝置的基本輸入輸出系統(BIOS)單元當中。因此,存有嵌入式控制器 之韌體程式碼的基本輸入輸出單元和嵌入式控制器的電源在設計時通常是連接在一起的。如此一來,嵌入式控制器才能在電腦裝置開機的時候,從基本輸入輸出單元中讀取韌體程式碼來執行任務。也由於基本輸入輸出單元的電源與嵌入式控制器是連接在一起的,所以即使在嵌入式控制器讀取完韌體程式碼之後,基本輸入輸出單元依然持續的在耗電,因此便會降低電腦裝置在沒有外接電源情況下的待機時間。However, the firmware code of the embedded controller is mostly stored in the basic input/output system (BIOS) unit of the computer device. Therefore, there is an embedded controller The basic input and output unit of the firmware code and the power supply of the embedded controller are usually connected at the time of design. In this way, the embedded controller can read the firmware code from the basic input and output unit to perform the task when the computer device is powered on. Also, since the power of the basic input/output unit is connected to the embedded controller, even after the embedded controller reads the firmware code, the basic input/output unit continues to consume power, so it is reduced. Standby time of the computer device without external power supply.

有鑑於此,本發明提出一種電腦裝置及其省電方法,可在嵌入式控制器讀取完韌體程式碼後,停止提供電源至儲存韌體程式碼的儲存單元,藉此達到省電的效果。In view of this, the present invention provides a computer device and a power saving method thereof, which can stop supplying power to a storage unit that stores a firmware code after the embedded controller reads the firmware code, thereby achieving power saving. effect.

本發明提供一種電腦裝置,此電腦裝置包括儲存單元、嵌入式控制器,以及開關單元。其中,儲存單元儲存韌體程式碼。嵌入式控制器耦接儲存單元並接收第一電源。開關單元的輸入端接收第二電源,開關單元的輸出端耦接儲存單元的電源供應端,且開關單元的控制端耦接嵌入式控制器。當嵌入式控制器接收第一電源時,嵌入式控制器於程式碼讀取期間產生控制信號以控制開關單元將第二電源從其輸入端導引到其輸出端,從而使嵌入式控制器從儲存單元讀取韌體程式碼,且在經過程式碼讀取期間之後,停止將第二電壓輸出至儲存單元。The invention provides a computer device comprising a storage unit, an embedded controller, and a switch unit. The storage unit stores the firmware code. The embedded controller is coupled to the storage unit and receives the first power source. The input end of the switch unit receives the second power source, the output end of the switch unit is coupled to the power supply end of the storage unit, and the control end of the switch unit is coupled to the embedded controller. When the embedded controller receives the first power source, the embedded controller generates a control signal during the code reading to control the switch unit to direct the second power source from its input terminal to its output terminal, thereby enabling the embedded controller to The storage unit reads the firmware code and stops outputting the second voltage to the storage unit after the code reading period.

本發明提供一種電腦裝置的省電方法,此電腦裝置包括 開關單元與儲存單元。此省電方法包括下列步驟。首先,當接收第一電源時,於程式碼讀取期間產生控制信號以控制開關單元將第二電源導引到儲存單元。接著,從儲存單元讀取韌體程式碼。然後,經過程式碼讀取期間之後,停止產生控制信號以控制開關單元停止將第二電源輸出至儲存單元。The invention provides a power saving method for a computer device, and the computer device comprises Switch unit and storage unit. This power saving method includes the following steps. First, when receiving the first power source, a control signal is generated during code reading to control the switch unit to direct the second power source to the storage unit. Next, the firmware code is read from the storage unit. Then, after the program code reading period, the generation of the control signal is stopped to control the switching unit to stop outputting the second power source to the storage unit.

基於上述,本發明所提供之電腦裝置及其省電方法中,藉由嵌入式控制器來控制開關單元,使開關單元開啟或關閉提供至儲存單元的電源。讓電腦裝置僅在嵌入式控制器讀取韌體程式碼期間中的時候,才會提供電源至儲存單元。藉此,可有效減少電量持續消耗,達到省電的效果,並進而達到增加電池之待機時間以及延長電池的使用壽命。Based on the above, in the computer device and the power saving method thereof provided by the present invention, the switch unit is controlled by the embedded controller to enable the switch unit to turn on or off the power supply to the storage unit. Allows the computer device to provide power to the storage unit only while the embedded controller is reading the firmware code. Thereby, the power consumption can be effectively reduced, the power saving effect can be achieved, and the standby time of the battery can be increased and the service life of the battery can be prolonged.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

100‧‧‧電腦裝置100‧‧‧ computer equipment

110‧‧‧儲存單元110‧‧‧ storage unit

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

150‧‧‧開關單元150‧‧‧Switch unit

170‧‧‧電源供應器170‧‧‧Power supply

C1~C3‧‧‧電容C1~C3‧‧‧ capacitor

T1‧‧‧P型電晶體T1‧‧‧P type transistor

T2、T3‧‧‧N型電晶體T2, T3‧‧‧N type transistor

t1~t3‧‧‧時間T1~t3‧‧‧Time

TP‧‧‧程式碼讀取期間TP‧‧‧ code reading period

N1、N2‧‧‧節點N1, N2‧‧‧ nodes

AC-IN‧‧‧直流電源AC-IN‧‧‧DC power supply

DC-IN‧‧‧交流電源DC-IN‧‧‧AC power supply

EV1‧‧‧第一電源EV1‧‧‧first power supply

EV2‧‧‧第二電源EV2‧‧‧second power supply

EV3‧‧‧電源EV3‧‧‧ power supply

CS‧‧‧控制信號CS‧‧‧Control signal

S310~S350‧‧‧本發明一實施例之省電方法各步驟S310~S350‧‧‧ steps of the power saving method according to an embodiment of the present invention

圖1是根據本發明一實施例說明電腦裝置的示意圖。1 is a schematic diagram of a computer device in accordance with an embodiment of the present invention.

圖2是根據本發明一實施例說明開關單元的電路圖。2 is a circuit diagram illustrating a switching unit in accordance with an embodiment of the present invention.

圖3是根據本發明一實施例說明電腦裝置的省電方法的流程圖。FIG. 3 is a flow chart illustrating a power saving method of a computer device according to an embodiment of the invention.

圖4是根據本發明一實施例說明電腦裝置的運作時序圖。4 is a timing chart showing the operation of a computer device according to an embodiment of the invention.

現將詳細參考本發明之示範性實施例,在附圖中說明所述示範性實施例之實例。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/符號代表相同或類似部分。DETAILED DESCRIPTION OF THE INVENTION Reference will now be made in detail to the exemplary embodiments embodiments In addition, wherever possible, the elements and/

圖1是根據本發明一實施例說明電腦裝置100的示意圖。於本實施例中,電腦裝置100可以是筆記型電腦、桌上型電腦、伺服器電腦…等計算機設備,也可以是其他種類的個人行動裝置,本發明對此不限制。請參照圖1,電腦裝置100包括儲存單元110、嵌入式控制器(Embedded Controller,EC)130、以及開關單元150。儲存單元110例如是唯讀記憶體(Read Only Memory,ROM)、單次燒錄記憶體(One Time Programming Memory,OTPMemory)或是快閃記憶體(Flash Memory)等,其中儲存了用來載入嵌入式控制器130的韌體程式碼。在本案實施例中,儲存單元110為一基本輸入輸出系統單元,其儲存了用來載入電腦系統最基本的程式碼,即基本輸入輸出系統(Basic Input Output System,BIOS),同時儲存了嵌入式控制器130在執行時所需的韌體程式碼。1 is a schematic diagram of a computer device 100 in accordance with an embodiment of the present invention. In this embodiment, the computer device 100 may be a computer device such as a notebook computer, a desktop computer, a server computer, or the like, or may be other types of personal mobile devices. The present invention is not limited thereto. Referring to FIG. 1 , the computer device 100 includes a storage unit 110 , an embedded controller (EC) 130 , and a switch unit 150 . The storage unit 110 is, for example, a read only memory (ROM), a single time memory (OTPMemory), or a flash memory (Flash Memory), etc., which is stored for loading. The firmware code of the embedded controller 130. In the embodiment of the present invention, the storage unit 110 is a basic input/output system unit that stores the most basic code for loading the computer system, that is, a Basic Input Output System (BIOS), and stores the embedded system. The firmware code required by the controller 130 when executed.

嵌入式控制器130耦接儲存單元110並接收第一電源EV1。於本案實施例中,嵌入式控制器130可透過序列周邊介面匯流排(SPI Bus)耦接儲存單元110,以讀取韌體程式碼。一般來說,嵌入式控制器130用以控管電腦裝置100的電源,以及管控散熱風扇、鍵盤、電池之充放電機制…等週邊設備與功能。即使 在電腦裝置100關機時,嵌入式控制器130依然執行電腦裝置裡的特定任務,例如電池的充放電機制、電源開機機制…等。開關單元150可以利用邏輯電路(logic circuit)、切換開關(switch)或多工器(multiplexer)等方式實現,其輸入端接收第二電源EV2。另外,開關單元150的輸出端耦接儲存單元110的電源供應端,且開關單元150的控制端耦接嵌入式控制器130。The embedded controller 130 is coupled to the storage unit 110 and receives the first power source EV1. In the embodiment of the present invention, the embedded controller 130 can be coupled to the storage unit 110 through a serial peripheral interface bus (SPI Bus) to read the firmware code. Generally, the embedded controller 130 is used to control the power of the computer device 100, and to control peripheral devices and functions such as a cooling fan, a keyboard, and a battery charging and discharging mechanism. even if When the computer device 100 is turned off, the embedded controller 130 still performs specific tasks in the computer device, such as a charge and discharge mechanism of the battery, a power-on mechanism, and the like. The switching unit 150 can be implemented by using a logic circuit, a switch or a multiplexer, and the input terminal receives the second power source EV2. In addition, the output end of the switch unit 150 is coupled to the power supply end of the storage unit 110 , and the control end of the switch unit 150 is coupled to the embedded controller 130 .

於本實施例中,電腦裝置更包括一電源供應器170。一般來說,電腦裝置100的電源供應器170接收交流變壓器所提供的外部交流電源(AC-IN),或其內部電池所提供的直流電源(DC-IN),並透過交流轉直流轉換器(AC/DC converter)或是直流轉直流轉換器(DC/DC converter),來產生電腦裝置中各元件所需的電壓。如圖1所示,電源供應器170可提供第一電源EV1給嵌入式控制器130,也提供第二電源EV2給開關單元150。In this embodiment, the computer device further includes a power supply 170. Generally, the power supply 170 of the computer device 100 receives an external alternating current power source (AC-IN) provided by an alternating current transformer, or a direct current power source (DC-IN) provided by an internal battery thereof, and passes through an alternating current to direct current converter ( AC/DC converter) or DC/DC converter to generate the voltage required for each component in a computer device. As shown in FIG. 1, the power supply 170 can provide a first power source EV1 to the embedded controller 130 and a second power source EV2 to the switch unit 150.

當嵌入式控制器130接收第一電源EV1時,嵌入式控制器需要從電腦裝置中的儲存單元110讀取韌體程式碼,才可藉以執行欲執行之任務。因此,嵌入式控制器130於程式碼讀取期間利用控制信號CS以控制開關單元150,讓開關單元150將第二電源EV2從其輸入端導引到其輸出端。詳細來說,嵌入式控制器130會輸出一電壓準位(例如:邏輯0)到開關單元150,以控制開關單元150將輸入端接收到的第二電壓源EV2導引到輸出端,讓與開關單元150的輸出端耦接的儲存單元110能夠接收到第二電壓源EV2。值得一提的是,雖然本實施例列舉了上述電壓準位的實 施型態,但其並非用以限定本發明,本領域具有通常知識者也可以將電壓準位設定為邏輯1。When the embedded controller 130 receives the first power source EV1, the embedded controller needs to read the firmware code from the storage unit 110 in the computer device to perform the task to be executed. Thus, embedded controller 130 utilizes control signal CS to control switching unit 150 during code reading, and switch unit 150 directs second power supply EV2 from its input to its output. In detail, the embedded controller 130 outputs a voltage level (for example, logic 0) to the switch unit 150 to control the switch unit 150 to guide the second voltage source EV2 received at the input end to the output end. The storage unit 110 coupled to the output end of the switch unit 150 is capable of receiving the second voltage source EV2. It is worth mentioning that although this embodiment enumerates the above voltage levels The mode is applied, but it is not intended to limit the invention, and those skilled in the art can also set the voltage level to logic 1.

在儲存單元110接收到第二電源EV2的電源供應後,嵌入式控制器130便可以從儲存單元110讀取韌體程式碼。且在經過程式碼讀取期間之後,開關單元150停止將第二電壓EV2輸出至儲存單元。也就是說,在嵌入式控制器130讀取韌體程式碼完畢後,嵌入式控制器130會改變控制信號CS並輸出至開關單元150,來控制開關單元150能據以停止將第二電源EV2導引到儲存單元110。舉例來說,當嵌入式控制器130欲讀取韌體程式碼時,可輸出電壓準位(例如:邏輯0)至開關單元150,使儲存單元110接收到第二電源EV2。當嵌入式控制器130讀取韌體程式碼完畢時,可輸出另一電壓準位(例如:邏輯1)至開關單元150,使儲存單元110停止接收到第二電源EV2。需注意的是,本領域具有通常知識者可依據電壓準位的實施型態,來變化開關單元150的細部架構,達到操控開關單元150的目的,本發明對此不限制。After the storage unit 110 receives the power supply of the second power source EV2, the embedded controller 130 can read the firmware code from the storage unit 110. And after the program code reading period, the switching unit 150 stops outputting the second voltage EV2 to the storage unit. That is, after the embedded controller 130 reads the firmware code, the embedded controller 130 changes the control signal CS and outputs it to the switch unit 150 to control the switch unit 150 to stop the second power supply EV2. Directed to the storage unit 110. For example, when the embedded controller 130 wants to read the firmware code, the voltage level (eg, logic 0) can be output to the switch unit 150, so that the storage unit 110 receives the second power source EV2. When the embedded controller 130 reads the firmware code, another voltage level (eg, logic 1) may be output to the switch unit 150, so that the storage unit 110 stops receiving the second power EV2. It should be noted that those skilled in the art can change the detailed structure of the switch unit 150 according to the implementation mode of the voltage level to achieve the purpose of manipulating the switch unit 150, which is not limited by the present invention.

舉例來說,當交流變壓器插入電腦裝置100時,嵌入式控制器130可以接收到電源供應器170提供的第一電源EV1。此時,因為嵌入式控制器130尚未讀取韌體程式碼,實現嵌入式控制器130的晶片的通用輸入輸出接腳(general purpose input/output,GPIO)的電壓準位會以預設設定為主。與開關單元150耦接的輸出接腳(general purpose output,GPO)會輸出預設的電壓準位,即控制訊號CS,進而控制開關單元150將電源供應 器170提供的第二電源EV2輸出至儲存單元110。For example, when the AC adapter is plugged into the computer device 100, the embedded controller 130 can receive the first power source EV1 provided by the power supply 170. At this time, since the embedded controller 130 has not read the firmware code, the voltage level of the general purpose input/output (GPIO) of the embedded controller 130 is preset to be the Lord. A general purpose output (GPO) coupled to the switch unit 150 outputs a preset voltage level, that is, a control signal CS, thereby controlling the switch unit 150 to supply power. The second power source EV2 provided by the device 170 is output to the storage unit 110.

接著,嵌入式控制器130便可以從儲存單元110讀取韌體程式碼,以啟動其相關的操作,使嵌入式控制器130可以進而控制電腦裝置100中的部份元件,或依據韌體程式碼執行相關程序。當嵌入式控制器130讀取韌體程式碼完畢之後,就可以控制從輸出接腳輸出的電壓準位,據以藉由輸出接腳輸出的控制訊號停止供電至儲存單元110,達到省電的目的。Then, the embedded controller 130 can read the firmware code from the storage unit 110 to start its related operations, so that the embedded controller 130 can further control some components in the computer device 100, or according to the firmware program. Code execution related procedures. After the embedded controller 130 reads the firmware code, the voltage level output from the output pin can be controlled, and the power supply is stopped by the control signal outputted by the output pin to save power. purpose.

圖2是根據本發明一實施例說明開關單元150的電路圖。請參照圖2,開關單元150包括第一開關T1、第二開關T2,以及第三開關T3。於本實施例中,第一開關T1為P型電晶體,而第三開關T3與第二開關T2為P型電晶體。另外,開關單元更包括電容C1~C3以及電阻R1~R3,這些電容是C1~C3為了維持各點之信號及電源的電壓,電阻R1~R3則是為了提供其兩端所需的電壓降幅。此處的電晶體、電容與電阻等電路元件配置僅為舉例說明,本領域技術人員可針對實際的需求而酌予變更,並不限於上述說明。2 is a circuit diagram illustrating a switching unit 150 in accordance with an embodiment of the present invention. Referring to FIG. 2, the switch unit 150 includes a first switch T1, a second switch T2, and a third switch T3. In this embodiment, the first switch T1 is a P-type transistor, and the third switch T3 and the second switch T2 are P-type transistors. In addition, the switch unit further includes capacitors C1~C3 and resistors R1~R3. These capacitors are C1~C3 in order to maintain the signal of each point and the voltage of the power supply. The resistors R1~R3 are used to provide the voltage drop required at both ends. The arrangement of circuit elements such as transistors, capacitors, and resistors herein is merely illustrative, and those skilled in the art can change them according to actual needs, and are not limited to the above description.

於本實施例中,第一開關T1的第一端作為開關單元150的輸入端以接收第二電源EV2,第一開關T1的第二端作為開關單元150的輸出端。電容C1的第一端耦接第一開關T1的第一端,電容C1的第二端耦接接地電壓GND。電容C2的第一端耦接第一開關T1的第二端,電容C1的第二端耦接接地電壓GND。電容C3的第一端耦接第一開關T1的控制端,電容C3的第二端耦接接 地電壓GND,電容C1~C3用以穩定電路中的電壓,增加電路的穩定性。藉此,第一開關T1可透過控制端接收的信號來決定是否導通,據以將節點N1的電源導引至節點N2。In this embodiment, the first end of the first switch T1 serves as an input end of the switch unit 150 to receive the second power source EV2, and the second end of the first switch T1 serves as an output end of the switch unit 150. The first end of the capacitor C1 is coupled to the first end of the first switch T1, and the second end of the capacitor C1 is coupled to the ground voltage GND. The first end of the capacitor C2 is coupled to the second end of the first switch T1, and the second end of the capacitor C1 is coupled to the ground voltage GND. The first end of the capacitor C3 is coupled to the control end of the first switch T1, and the second end of the capacitor C3 is coupled Ground voltage GND, capacitors C1~C3 are used to stabilize the voltage in the circuit and increase the stability of the circuit. Thereby, the first switch T1 can determine whether to conduct through the signal received by the control terminal, thereby guiding the power of the node N1 to the node N2.

第二開關T2的第一端耦接第一開關150的控制端並接收第二電源EV2,第二開關T2的第二端耦接接地電壓GND,第二開關T2的控制端接收第二電源EV2。於本實施例中,電阻R1耦接於第一開關T1的控制端與第二開關T2的第一端之間,其第一端耦接第一開關T1的控制端,電阻R1的第二端耦接第二開關T2的第一端。電阻R2的第一端接收第二電壓源EV2,電阻R2的第二端耦接第二開關T2的第一端。電阻R3的第一端接收第二電壓源EV2,電阻R3的第二端耦接第二開關T2的控制端。The second end of the second switch T2 is coupled to the control terminal of the first switch 150 and receives the second power source EV2. The second end of the second switch T2 is coupled to the ground voltage GND, and the control end of the second switch T2 receives the second power source EV2. . In this embodiment, the resistor R1 is coupled between the control end of the first switch T1 and the first end of the second switch T2, the first end of which is coupled to the control end of the first switch T1, and the second end of the resistor R1. The first end of the second switch T2 is coupled. The first end of the resistor R2 receives the second voltage source EV2, and the second end of the resistor R2 is coupled to the first end of the second switch T2. The first end of the resistor R3 receives the second voltage source EV2, and the second end of the resistor R3 is coupled to the control end of the second switch T2.

第三開關T3的第一端耦接第二開關T2的控制端,第三開關T3的第二端耦接接地電壓GND,第三開關T3的控制端作為開關單元150的控制端以接收控制信號CS。在本實施例中,當第三開關T3的控制端在接收到控制信號CS時,假設此時控制信號CS為一低電壓準位(例如:邏輯0),第三開關T3會被關閉而截止第三開關T3的第一端及第二端。此時,第二開關T2會因為其控制端接收到的第二電壓源而開啟,導通第二開關T2的第一端及第二端,而第一開關T1的控制端的信號會因第二開關T的導通而成為低電壓準位(例如:邏輯0)。基此,第一開關T1會開啟而導通其第一端與第二端,即電流可由節點N1流至節點N2,使節點N2可因第二電源EV2而具有電源EV3,以供電至儲存單元110。The first end of the third switch T3 is coupled to the control end of the second switch T2, the second end of the third switch T3 is coupled to the ground voltage GND, and the control end of the third switch T3 is used as the control end of the switch unit 150 to receive the control signal. CS. In this embodiment, when the control terminal of the third switch T3 receives the control signal CS, it is assumed that the control signal CS is at a low voltage level (for example, logic 0), and the third switch T3 is turned off. The first end and the second end of the third switch T3. At this time, the second switch T2 is turned on because of the second voltage source received by the control terminal thereof, and the first end and the second end of the second switch T2 are turned on, and the signal of the control end of the first switch T1 is caused by the second switch. The conduction of T becomes a low voltage level (for example, logic 0). Therefore, the first switch T1 is turned on to turn on the first end and the second end, that is, the current can flow from the node N1 to the node N2, so that the node N2 can have the power source EV3 due to the second power source EV2 to supply power to the storage unit 110. .

當控制信號CS從低電壓準位(例如:邏輯0)轉換成高電壓準位(例如:邏輯1)時,第三開關T3會被開啟而導通第三開關T3的第一端及第二端。此時,第二開關T2會因為其控制端無法接收到的第二電壓源EV2而關閉,截止第二開關T2的第一端及第二端,而第一開關T1的控制端的信號會因第二開關T的截止而成為高電壓準位(例如:邏輯1)。基此,第一開關T1會關閉而截止其第一端與第二端之間的電流,使節點N2不會因第二電源EV2而具有電源EV3,以停止供電至儲存單元110。When the control signal CS is converted from a low voltage level (eg, logic 0) to a high voltage level (eg, logic 1), the third switch T3 is turned on to turn on the first end and the second end of the third switch T3. . At this time, the second switch T2 is turned off due to the second voltage source EV2 that the control terminal cannot receive, and the first end and the second end of the second switch T2 are turned off, and the signal of the control end of the first switch T1 is caused by the first The second switch T is turned off to become a high voltage level (for example, logic 1). Accordingly, the first switch T1 is turned off to cut off the current between the first end and the second end, so that the node N2 does not have the power source EV3 due to the second power source EV2 to stop supplying power to the storage unit 110.

統合上述,本發明實施例利用另一觀點來提出一種電腦裝置的省電方法,其適用於圖1的電腦裝置100。圖3是根據本發明一實施例說明電腦裝置100的省電方法的流程圖。圖4是根據本發明一實施例說明電腦裝置100的運作時序圖。請同時參照圖1、圖3與圖4,於步驟S310中,當嵌入式控制器130在時間t1接收到第一電源EV1時,嵌入式控制器130在時間t2利用控制信號CS以控制開關單元150將第二電源EV2導引到儲存單元110。在部份實施例中,詳細來說,開關單元150接收控制信號CS,而致能第三開關T3截止。當第三開關T3截止時,第二開關T2導通。當第二開關T2導通時,第一開關T1導通,以將第二電源EV2導引到儲存單元110。如箭頭Q所示,電源EV3是由於第一開關的導通,而將第二電源EV2導引至開關單元150的輸出端而產生。In view of the above, the embodiment of the present invention provides a power saving method for a computer device using another point of view, which is applicable to the computer device 100 of FIG. FIG. 3 is a flow chart illustrating a power saving method of the computer device 100 according to an embodiment of the invention. FIG. 4 is a timing chart showing the operation of the computer device 100 according to an embodiment of the invention. Referring to FIG. 1 , FIG. 3 and FIG. 4 simultaneously, in step S310, when the embedded controller 130 receives the first power source EV1 at time t1, the embedded controller 130 uses the control signal CS to control the switch unit at time t2. The second power source EV2 is guided to the storage unit 110. In some embodiments, in detail, the switch unit 150 receives the control signal CS and enables the third switch T3 to be turned off. When the third switch T3 is turned off, the second switch T2 is turned on. When the second switch T2 is turned on, the first switch T1 is turned on to guide the second power source EV2 to the storage unit 110. As indicated by the arrow Q, the power source EV3 is generated by guiding the second power source EV2 to the output terminal of the switching unit 150 due to the conduction of the first switch.

接著,由於儲存單元110已接收到第二電源EV2,於步驟S330中,嵌入式控制器130可從儲存單元110讀取韌體程式碼。 如圖4所示,在本實施例中,嵌入式控制器130在程式碼讀取期間TP讀取韌體程式碼。藉此,嵌入式控制器130便可以開始執行相關的操作。Then, since the storage unit 110 has received the second power source EV2, the embedded controller 130 can read the firmware code from the storage unit 110 in step S330. As shown in FIG. 4, in the present embodiment, the embedded controller 130 reads the firmware code during the code reading period TP. Thereby, the embedded controller 130 can start performing related operations.

然後,於步驟S350中,經過程式碼讀取期間TP之後,在時間t3嵌入式控制器130利用控制信號CS以控制開關單元150,以致在時間t3之後開關單元150停止將第二電源EV2輸出至儲存單元110。在部份實施例中,詳細來說,開關單元150接收控制信號CS,而致能第三開關T3導通。當第三開關T3導通時,第二開關T2截止。當第二開關T2截止時,第一開關T1截止,以停止將第二電源EV2導引到儲存單元110。Then, in step S350, after the code reading period TP, the embedded controller 130 controls the switching unit 150 with the control signal CS at time t3, so that after the time t3, the switching unit 150 stops outputting the second power source EV2 to The storage unit 110. In some embodiments, in detail, the switch unit 150 receives the control signal CS and enables the third switch T3 to be turned on. When the third switch T3 is turned on, the second switch T2 is turned off. When the second switch T2 is turned off, the first switch T1 is turned off to stop guiding the second power source EV2 to the storage unit 110.

綜上所述,本發明之電腦裝置及其省電方法藉由嵌入式控制器來控制開關單元,可在嵌入式控制器讀取完韌體程式碼後停止供電至儲存單元,達到省電的效果。如此一來,當嵌入式控制器已不需要讀取儲存單元中的韌體程式碼時,可關閉提供至儲存單元的電源供應,使儲存單元不在繼續消耗電量。因此,以本發明實施例所提供的電腦裝置及其省電方法可有效地降低電池電量的持續損耗量,並增加電池使用的時間,有效調降非使用中儲存單元的用電量,進而提高電池使用效率、延長電腦裝置在沒有外部電源供應時的待機時間。In summary, the computer device of the present invention and the power saving method thereof control the switch unit by the embedded controller, and can stop power supply to the storage unit after the embedded controller reads the firmware code, thereby achieving power saving. effect. In this way, when the embedded controller does not need to read the firmware code in the storage unit, the power supply provided to the storage unit can be turned off, so that the storage unit does not continue to consume power. Therefore, the computer device and the power saving method provided by the embodiments of the present invention can effectively reduce the continuous loss of the battery power, increase the time of using the battery, and effectively reduce the power consumption of the non-use storage unit, thereby improving Battery efficiency, extending the standby time of the computer device when there is no external power supply.

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

100‧‧‧電腦裝置100‧‧‧ computer equipment

110‧‧‧儲存單元110‧‧‧ storage unit

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

150‧‧‧開關單元150‧‧‧Switch unit

170‧‧‧電源供應器170‧‧‧Power supply

AC-IN‧‧‧直流電源AC-IN‧‧‧DC power supply

DC-IN‧‧‧交流電源DC-IN‧‧‧AC power supply

EV1‧‧‧第一電源EV1‧‧‧first power supply

EV2‧‧‧第二電源EV2‧‧‧second power supply

EV3‧‧‧電源EV3‧‧‧ power supply

CS‧‧‧控制信號CS‧‧‧Control signal

Claims (9)

一種電腦裝置,包括:一儲存單元,儲存一韌體程式碼,其中該儲存單元為一基本輸入輸出系統單元;一嵌入式控制器,耦接該儲存單元並接收一第一電源;以及一開關單元,其輸入端接收一第二電源,該開關單元的輸出端耦接該儲存單元的電源供應端,且該開關單元的控制端耦接該嵌入式控制器,其中,當該嵌入式控制器接收該第一電源時,該嵌入式控制器於一程式碼讀取期間利用一控制信號以控制該開關單元將該第二電源從其輸入端導引到其輸出端,從而使已接收到該第二電源的該嵌入式控制器從該儲存單元讀取該韌體程式碼,且在經過該程式碼讀取期間且該嵌入式控制器讀取該韌體程式碼完畢之後,停止將該第二電壓輸出至該儲存單元。 A computer device comprising: a storage unit storing a firmware code, wherein the storage unit is a basic input/output system unit; an embedded controller coupled to the storage unit and receiving a first power source; and a switch a unit, the input end of which receives a second power source, the output end of the switch unit is coupled to the power supply end of the storage unit, and the control end of the switch unit is coupled to the embedded controller, wherein, when the embedded controller Receiving the first power source, the embedded controller utilizes a control signal during a code reading to control the switch unit to direct the second power source from its input terminal to its output terminal, so that the received The embedded controller of the second power source reads the firmware code from the storage unit, and stops the first time after the code reading is completed and the embedded controller reads the firmware code. The two voltages are output to the storage unit. 如申請專利範圍第1項所述的電腦裝置,其中該開關單元包括:一第一開關,其第一端作為該開關單元的該輸入端以接收該第二電源,該第一開關的第二端作為該開關單元的輸出端;一第二開關,該第二開關的第一端耦接該第一開關的控制端並接收該第二電源,該第二開關的第二端接地,該第二開關的控制端接收該第二電源;以及一第三開關,具有第一端、第二端與控制端,該第三開關的 第一端耦接該第二開關的控制端,該第三開關的第二端接地,該第三開關的控制端作為該開關單元的控制端以接收該控制信號,其中,該第三開關的控制端在接收到該控制信號時截止該第三開關的第一端及第二端,該第二開關的第一端及第二端導通,且該第一開關的第一端及第二端導通。 The computer device of claim 1, wherein the switch unit comprises: a first switch having a first end serving as the input end of the switch unit to receive the second power source, and a second switch The second end of the second switch is coupled to the control end of the first switch and receives the second power source, and the second end of the second switch is grounded. a control end of the second switch receives the second power source; and a third switch having a first end, a second end, and a control end, the third switch The first end is coupled to the control end of the second switch, the second end of the third switch is grounded, and the control end of the third switch serves as a control end of the switch unit to receive the control signal, wherein the third switch The control terminal turns off the first end and the second end of the third switch when receiving the control signal, the first end and the second end of the second switch are turned on, and the first end and the second end of the first switch Turn on. 如申請專利範圍第2項所述的電腦裝置,其中該第一開關為P型電晶體,該第二開關與該第三開關為N型電晶體。 The computer device of claim 2, wherein the first switch is a P-type transistor, and the second switch and the third switch are N-type transistors. 如申請專利範圍第1項所述的電腦裝置,其中該電腦裝置更包括一電源供應單元,該電源供應單元提供該第一電源至該嵌入式控制器以及提供該第二電源至該開關單元。 The computer device of claim 1, wherein the computer device further comprises a power supply unit that supplies the first power source to the embedded controller and the second power source to the switch unit. 如申請專利範圍第1項所述的電腦裝置,其中該嵌入式控制器透過序列周邊介面匯流排耦接該儲存單元。 The computer device of claim 1, wherein the embedded controller is coupled to the storage unit via a serial peripheral interface bus. 一種電腦裝置的省電方法,其中該電腦裝置包括一開關單元與一儲存單元,該省電方法包括:當接收一第一電源時,於一程式碼讀取期間利用一控制信號以控制該開關單元將一第二電源導引到該儲存單元,其中該儲存單元為一基本輸入輸出系統單元;從已接收到該第二電源的該儲存單元讀取一韌體程式碼;以及經過該程式碼讀取期間且該嵌入式控制器讀取該韌體程式碼完畢之後,改變該控制信號以控制該開關單元停止將該第二電源輸出至該儲存單元。 A power saving method for a computer device, wherein the computer device includes a switch unit and a storage unit, the power saving method includes: when receiving a first power source, using a control signal to control the switch during reading of a code code The unit directs a second power source to the storage unit, wherein the storage unit is a basic input/output system unit; reading a firmware code from the storage unit that has received the second power source; and passing the code After the reading period and after the embedded controller reads the firmware code, the control signal is changed to control the switch unit to stop outputting the second power source to the storage unit. 如申請專利範圍第6項所述的省電方法,其中該開關單元包括一第一開關、一第二開關以及一第三開關,該第一開關的第一端作為該開關單元的該輸入端以接收該第二電源,該第一開關的第二端作為該開關單元的輸出端,並且,控制該開關單元將該第二電源導引到該儲存單元包括下列步驟:該開關單元接收該控制信號,致能該第三開關截止;當該第三開關截止時,該第二開關導通;以及當該第二開關導通時,該第一開關導通,以將該第二電源導引到儲存單元。 The power saving method of claim 6, wherein the switch unit comprises a first switch, a second switch, and a third switch, the first end of the first switch being the input end of the switch unit Receiving the second power source, the second end of the first switch is used as an output end of the switch unit, and controlling the switch unit to guide the second power source to the storage unit comprises the following steps: the switch unit receives the control a signal enabling the third switch to be turned off; when the third switch is turned off, the second switch is turned on; and when the second switch is turned on, the first switch is turned on to guide the second power source to the storage unit . 如申請專利範圍第7項所述的省電方法,其中該開關單元停止將該第二電源輸出至該儲存單元包括下列步驟:該開關單元接收該控制信號,致能該第三開關導通;當該第三開關導通時,該第二開關截止;以及當該第二開關截止時,該第一開關截止,以停止將該第二電源導引到儲存單元。 The power saving method of claim 7, wherein the switching unit stops outputting the second power source to the storage unit, comprising the steps of: receiving, by the switch unit, the control signal, enabling the third switch to be turned on; When the third switch is turned on, the second switch is turned off; and when the second switch is turned off, the first switch is turned off to stop guiding the second power source to the storage unit. 如申請專利範圍第6項所述的省電方法,其中由一電源供應單元提供該第一電源至該嵌入式控制器以及提供該第二電源至該開關單元。 The power saving method of claim 6, wherein the first power source is supplied to the embedded controller by a power supply unit and the second power source is supplied to the switch unit.
TW102113498A 2013-04-16 2013-04-16 Computer device and power saving method therefor TWI493333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102113498A TWI493333B (en) 2013-04-16 2013-04-16 Computer device and power saving method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102113498A TWI493333B (en) 2013-04-16 2013-04-16 Computer device and power saving method therefor

Publications (2)

Publication Number Publication Date
TW201441806A TW201441806A (en) 2014-11-01
TWI493333B true TWI493333B (en) 2015-07-21

Family

ID=52422912

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102113498A TWI493333B (en) 2013-04-16 2013-04-16 Computer device and power saving method therefor

Country Status (1)

Country Link
TW (1) TWI493333B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI776427B (en) * 2021-03-17 2022-09-01 英業達股份有限公司 Switching power supply system and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004017195A1 (en) * 2002-08-06 2004-02-26 Phoenix Technologies Ltd. Using system bios to update embedded controller firmware
US6775784B1 (en) * 1999-10-25 2004-08-10 Samsung Electronics Co., Ltd. Power supply control circuit and method for cutting off unnecessary power to system memory in the power-off state
TW200917006A (en) * 2007-10-01 2009-04-16 Inventec Corp Apparatus and method for power management
US7890726B1 (en) * 2001-05-07 2011-02-15 Winbond Electronics Corporation Flash memory protection scheme for secured shared BIOS implementation in personal computers with an embedded controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6775784B1 (en) * 1999-10-25 2004-08-10 Samsung Electronics Co., Ltd. Power supply control circuit and method for cutting off unnecessary power to system memory in the power-off state
US7890726B1 (en) * 2001-05-07 2011-02-15 Winbond Electronics Corporation Flash memory protection scheme for secured shared BIOS implementation in personal computers with an embedded controller
WO2004017195A1 (en) * 2002-08-06 2004-02-26 Phoenix Technologies Ltd. Using system bios to update embedded controller firmware
TW200917006A (en) * 2007-10-01 2009-04-16 Inventec Corp Apparatus and method for power management

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI776427B (en) * 2021-03-17 2022-09-01 英業達股份有限公司 Switching power supply system and method thereof

Also Published As

Publication number Publication date
TW201441806A (en) 2014-11-01

Similar Documents

Publication Publication Date Title
US10635151B2 (en) Method and system of universal serial bus power-delivery which stops clock signal generation until attach event occurs
JP3563066B2 (en) Power supply device and portable device having the same
US9483108B2 (en) Ultra-deep power-down mode for memory devices
US9841805B2 (en) Power management circuit and electronic device employing the same
KR102031710B1 (en) Clock Generation Circuit with Fast Start Standby Mode
US20110006735A1 (en) Portable Computer System and Related Power Supply Device and Charging Method
US20090224741A1 (en) Low power supply maintaining circuit
JP5936415B2 (en) Semiconductor integrated circuit, information processing apparatus and control method
TWI493333B (en) Computer device and power saving method therefor
JP2012196050A (en) Soft start circuit
TWI394973B (en) Battery detecting device and method applied to hand-held electronic apparatus
TWI582575B (en) Electronic device
TW201541803A (en) Portable electronic apparatus and charging control method thereof
US10897199B2 (en) Buck converter with power saving mode
US20150253827A1 (en) Control circuit of semiconductor memory, memory system and control system of semiconductor memory
US9785216B2 (en) Management apparatus and power management method
US20200321866A1 (en) Buck Converter With Variable Sized Switches
JP5961588B2 (en) Power supply circuit and electronic equipment
US10601322B1 (en) Strong arm comparator
US10897203B2 (en) Buck converter with inductor sensor
TWI821949B (en) Power saving system of battery charger
US11620929B1 (en) Voltage adjustments for display panels
CN111817559B (en) Apparatus and method for implementing a buck converter with a power saving mode
US11476692B2 (en) Turbo support for systems with limited battery power
CN104122975A (en) Computer device and power saving method thereof