[go: up one dir, main page]

CN1581021B - Personal digital assistant capable of reducing cold start probability and method thereof - Google Patents

Personal digital assistant capable of reducing cold start probability and method thereof Download PDF

Info

Publication number
CN1581021B
CN1581021B CN 03153043 CN03153043A CN1581021B CN 1581021 B CN1581021 B CN 1581021B CN 03153043 CN03153043 CN 03153043 CN 03153043 A CN03153043 A CN 03153043A CN 1581021 B CN1581021 B CN 1581021B
Authority
CN
China
Prior art keywords
battery
processing unit
central processing
personal digital
digital assistant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03153043
Other languages
Chinese (zh)
Other versions
CN1581021A (en
Inventor
陈振德
郭英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HTC Corp
Original Assignee
HTC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HTC Corp filed Critical HTC Corp
Priority to CN 03153043 priority Critical patent/CN1581021B/en
Publication of CN1581021A publication Critical patent/CN1581021A/en
Application granted granted Critical
Publication of CN1581021B publication Critical patent/CN1581021B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

一种于电脑系统中减少冷开机的机率的方法及其电脑系统。电脑系统具有用以控制电脑系统的一CPU、用以将CPU从一睡眠模式唤醒的一唤醒按键、及用以供应电脑系统电源的一电池。CPU是支持软件电池故障处理功能。本发明的方法包括,当CPU处于睡眠模式,且电脑系统处于一电池电量供应不确定的状态时,即使一唤醒事件产生,CPU仍继续维持于睡眠模式;以及当CPU处于睡眠模式,且唤醒按键被按下的期间小于一预定值时,则CPU继续维持于睡眠模式。

Figure 03153043

A method for reducing the probability of cold boot in a computer system and a computer system thereof. The computer system has a CPU for controlling the computer system, a wake-up button for waking up the CPU from a sleep mode, and a battery for supplying power to the computer system. The CPU supports a software battery fault handling function. The method of the present invention includes, when the CPU is in sleep mode and the computer system is in a state where the battery power supply is uncertain, even if a wake-up event occurs, the CPU continues to remain in sleep mode; and when the CPU is in sleep mode and the period during which the wake-up button is pressed is less than a predetermined value, the CPU continues to remain in sleep mode.

Figure 03153043

Description

减少冷开机机率的个人数字助理及其方法 Personal digital assistant and method for reducing cold boot probability

(1)技术领域(1) Technical field

本发明有关一种于电脑系统中减少冷开机的机率的方法及其电脑系统,且特别是有关于一种可避免因电池故障(Battery Fault)而导致电脑系统的同步动态内存(Synchronous Dynamic Random Access Memory,SDRAM)的数据流失,以减少冷开机的机率的方法及其电脑系统。The present invention relates to a method for reducing the probability of cold boot in a computer system and its computer system, and in particular to a Synchronous Dynamic Random Access (SDR) that can avoid battery faults (Battery Fault) in computer systems. Memory, SDRAM) data loss, to reduce the method and its computer system of the probability of cold boot.

(2)背景技术(2) Background technology

对于一个以电池为主要供电来源的电脑系统而言,当发生电池故障,电池无法继续供电时,电脑系统必须实时进入睡眠模式,来减少电能损耗。其中,电池故障是指电池电量用尽,或是电脑系统遭外力撞击,使得电池脱离电脑系统而无法继续供电的情况。此电脑系统例如是个人数字助理(Personal DigitalAssistant,PDA)。For a computer system whose main power source is a battery, when a battery failure occurs and the battery cannot continue to supply power, the computer system must enter a sleep mode in real time to reduce power consumption. Among them, the battery failure refers to the situation that the battery power is exhausted, or the computer system is hit by an external force, so that the battery is separated from the computer system and cannot continue to supply power. The computer system is, for example, a Personal Digital Assistant (PDA).

一般电脑系统所使用的中央处理器(Central Processing Unit,CPU)至少包括两种模式:正常工作模式(Normal Operation Mode)与睡眠模式(SleepMode)。若CPU是为可处理电池故障的CPU时,当电池故障发生后,CPU将直接进入睡眠模式。若电脑系统所使用的CPU是为支持软件电池故障(SoftwareBattery fault)处理功能的CPU时,当电池故障发生,CPU将接收到一电池故障指示事件。此时,CPU是将此电池故障指示事件视为一中断来源(InterruptSource)。此中断来源必须经过软件程序代码(Software Code)处理之后,CPU才能进入睡眠模式。The central processing unit (Central Processing Unit, CPU) used by general computer systems includes at least two modes: normal operation mode (Normal Operation Mode) and sleep mode (Sleep Mode). If the CPU is a CPU capable of handling battery failure, the CPU will directly enter sleep mode when the battery failure occurs. If the CPU used by the computer system is a CPU supporting a software battery fault (Software Battery fault) processing function, when a battery fault occurs, the CPU will receive a battery fault indication event. At this time, the CPU regards the battery failure indication event as an interrupt source (InterruptSource). This interrupt source must be processed by the software program code (Software Code) before the CPU can enter the sleep mode.

当电池故障发生,CPU进入睡眠模式之后,电脑系统的主电路板上所残存的电量,包括主电路板上的等效电容所储存的电量以及备用电源的电量,将继续供应给SDRAM,以继续保存SDRAM上的数据。这样,只要使用者更换新的电池或是将脱落的电池重新安装完毕,则CPU可以再次被唤醒,电脑系统将回复至进入睡眠模式前的状态以供使用者继续使用。当CPU被唤醒后,CPU将先执行硬件初始化,之后,CPU方能开始执行运用程序。其中,CPU于硬件初始化时,CPU会进行软件程序代码的加载程序。软件程序代码的加载程序包括开机码(Boot Code)的加载程序。When a battery failure occurs and the CPU enters sleep mode, the remaining power on the main circuit board of the computer system, including the power stored in the equivalent capacitor on the main circuit board and the power of the backup power supply, will continue to be supplied to SDRAM to continue Save data on SDRAM. Like this, as long as the user replaces a new battery or reinstalls the dropped battery, the CPU can be woken up again, and the computer system will return to the state before entering the sleep mode for the user to continue using. When the CPU is woken up, the CPU will perform hardware initialization first, and then the CPU can start to execute the application program. Wherein, when the CPU is initializing the hardware, the CPU will perform a loading procedure of the software program code. The loading program of the software program code includes the loading program of the boot code (Boot Code).

然而,在上述的所使用的CPU是为支持软件电池故障处理功能的CPU时,电池故障必须发生于CPU已成功执行完硬件初始化的动作之后,软件程序代码方能处理相对应的电池故障指示事件而使CPU进入睡眠模式。若电池故障是发生于CPU正在执行硬件初始化的过程中,软件程序代码将无法处理此电池故障指示事件,而无法使CPU进入睡眠模式。这样,由于CPU将仍维持于损耗大量电量的正常工作模式,而电池又无法供应电源,故电脑系统的主电路板上的残余电量将快速损耗,至所有电量损耗完毕为止。此时,SDRAM上的数据将因主电路板上的电量耗尽,主电路板无法继续供电而全部流失。使用者的所有数据及原有下载的程序将全部被清除。当使用者更换电池或重新将电池安装完毕后,因SDRAM的数据已经消失,所以电脑系统只能进行冷开机(Cold Reset),回复至电脑系统出厂时的初始状态。However, when the above-mentioned CPU used is a CPU that supports the software battery failure processing function, the battery failure must occur after the CPU has successfully executed the hardware initialization action, and the software program code can handle the corresponding battery failure indication event Instead, put the CPU into sleep mode. If the battery failure occurs when the CPU is executing hardware initialization, the software program code will not be able to handle the battery failure indication event, and will not be able to make the CPU enter the sleep mode. In this way, since the CPU will remain in the normal operating mode that consumes a large amount of power, and the battery cannot supply power, the residual power on the main circuit board of the computer system will be rapidly consumed until all the power is consumed. At this time, the data on the SDRAM will be completely lost due to the exhaustion of the power on the main circuit board, and the main circuit board cannot continue to supply power. All user data and previously downloaded programs will be cleared. After the user replaces the battery or reinstalls the battery, the data in the SDRAM has disappeared, so the computer system can only be cold-booted (Cold Reset), returning to the initial state of the computer system when it leaves the factory.

为便于说明,兹将CPU由睡眠模式被唤醒后,CPU执行硬件初始化的期间的定义为第一期间T1,而CPU执行硬件初始化后,CPU得以正常地开始执行运用程序的期间是定义为第二期间T2。For ease of description, the period during which the CPU executes hardware initialization after the CPU wakes up from sleep mode is defined as the first period T1, and after the CPU executes hardware initialization, the period during which the CPU can normally start executing the application program is defined as the second period. Period T2.

请参照图1,其是当电池故障发生于第一期间T1的相关信号波形图。电源致能信号PWR_EN是用以指示是否进入睡眠模式。当电源致能信号PWR_EN为致能(enabled)时,例如为高位准,CPU是处于正常工作模式;而当电源致能信号PWR_EN为非致能时,例如为低位准,CPU是处于睡眠模式。CPU核心电源信号CPU_CR_PWR是用以指示CPU的核心电源的供电状态。当CPU于正常工作模式时,电池是正常供电给CPU,故CPU核心电源信号CPU_CR_PWR为高位准,而当CPU于睡眠模式时,电池不供电给CPU,故CPU核心电源信号CPU_CR_PWR为为低位准。Please refer to FIG. 1 , which is a waveform diagram of related signals when the battery failure occurs in the first period T1 . The power enable signal PWR_EN is used to indicate whether to enter the sleep mode. When the power enable signal PWR_EN is enabled (eg high level), the CPU is in the normal working mode; and when the power enable signal PWR_EN is disabled (eg low level), the CPU is in the sleep mode. The CPU core power signal CPU_CR_PWR is used to indicate the power supply state of the CPU core power. When the CPU is in the normal working mode, the battery supplies power to the CPU normally, so the CPU core power signal CPU_CR_PWR is at a high level, and when the CPU is in the sleep mode, the battery does not supply power to the CPU, so the CPU core power signal CPU_CR_PWR is at a low level.

此外,CPU外围组件电源CPU_IO_PWR是用以指示CPU的外围组件的供电状态。不管CPU处于正常工作模式或是睡眠模式,CPU的外围组件均有电源供应,故CPU外围组件电源CPU_IO_PWR均为高位准。电池故障信号BTRY_FLT是用以指示是否有电池故障发生。当电池故障信号BTRY_FLT为致能时,电池故障信号BTRY_FLT转为低位准。In addition, the CPU peripheral component power supply CPU_IO_PWR is used to indicate the power supply status of the CPU peripheral components. Regardless of whether the CPU is in the normal working mode or the sleep mode, the peripheral components of the CPU have power supply, so the CPU_IO_PWR of the CPU peripheral component power supply is at a high level. The battery fault signal BTRY_FLT is used to indicate whether there is a battery fault. When the battery fault signal BTRY_FLT is enabled, the battery fault signal BTRY_FLT turns to a low level.

请参考图1。于时间点t1时,CPU从睡眠模式中被唤醒,电源致能信号PWR_EN转为高位准,CPU进入第一期间T1。若于第一期间T1内电池故障发生,将产生一电池故障指示事件102,电池故障信号BTRY_FLT将转为低位准。此时,软件程序代码将无法处理此电池故障,故CPU将继续维持于正常工作模式,而消耗大量的电能。于时间点t2之后,由于主电路板上的电能会消耗完毕,主电路板将无法再提供电源给SDRAM。SDRAM上的数据将完全消失。Please refer to Figure 1. At the time point t1, the CPU wakes up from the sleep mode, the power enable signal PWR_EN turns to a high level, and the CPU enters the first period T1. If a battery failure occurs during the first period T1, a battery failure indication event 102 will be generated, and the battery failure signal BTRY_FLT will turn to a low level. At this time, the software program code will not be able to handle the battery fault, so the CPU will continue to maintain the normal working mode and consume a large amount of electric energy. After the time point t2, since the power on the main circuit board will be exhausted, the main circuit board will no longer be able to provide power to the SDRAM. Data on SDRAM will be completely gone.

请参照图2,其是当电池故障发生于第二期间T2的相关信号波形图。当电池故障发生于第二期间T2内的时间点t3而产生电池故障指示事件202时,由于软件程序代码可以成功地处理电池故障指示事件202,故CPU将成功地进入睡眠模式,以减少电源损耗。此时,主电路板上的残余电量仍可继续供应给SDRAM,故SDRAM所储存的数据仍可完整的保存。Please refer to FIG. 2 , which is a waveform diagram of related signals when the battery failure occurs in the second period T2 . When the battery failure occurs at the time point t3 in the second period T2 and the battery failure indication event 202 is generated, since the software program code can successfully process the battery failure indication event 202, the CPU will successfully enter the sleep mode to reduce power consumption . At this time, the remaining power on the main circuit board can still be supplied to the SDRAM, so the data stored in the SDRAM can still be completely preserved.

因此,如何解决因电池故障发生于第一期间,使得主电路板的残余电量将因CPU仍维持于正常工作模式而消耗殆尽,主电路板无法再供应SDRAM电源而SDRAM所储存的数据流失的问题,以减少电脑系统冷开机的机率,是业界所努力的方向之一。Therefore, how to solve the problem that the battery failure occurs in the first period, so that the residual power of the main circuit board will be exhausted due to the CPU still maintaining the normal operating mode, and the main circuit board can no longer supply SDRAM power and the data stored in SDRAM will be lost. It is one of the directions of the industry's efforts to reduce the chance of cold booting of the computer system.

(3)发明内容(3) Contents of the invention

有鉴于此,本发明的目的是提供一种于电脑系统中减少冷开机的机率的方法及其电脑系统。本发明将可有效地避免电池故障发生于第一期间,导致SDRAM数据流失的问题,并可降低冷开机的机率。In view of this, the object of the present invention is to provide a method for reducing the probability of cold boot in a computer system and the computer system thereof. The present invention can effectively avoid the problem of SDRAM data loss caused by battery failure occurring in the first period, and can reduce the probability of cold booting.

根据本发明的目的,提出一种于个人数字助理中减少冷开机的机率的方法,该个人数字助理具有用以控制该个人数字助理的一中央处理器、用以将该中央处理器从一睡眠模式唤醒的一唤醒按键、及用以为该个人数字助理提供电源的一电池,该中央处理器支持软件电池故障处理功能,该方法包括:在该中央处理器处于该睡眠模式的情况下,且该个人数字助理处于一电池电量供应不确定的状态时,即使一唤醒事件产生,该中央处理器仍继续维持于该睡眠模式;以及当该中央处理器处于该睡眠模式,且该唤醒按键被按下的期间小于一预定值时,则该中央处理器继续维持于该睡眠模式。According to the object of the present invention, a method for reducing the probability of cold boot in a personal digital assistant having a central processing unit for controlling the personal digital assistant from a sleep mode to A wake-up button for mode wake-up, and a battery used to provide power for the personal digital assistant, the central processing unit supports a software battery fault handling function, the method includes: when the central processing unit is in the sleep mode, and the When the personal digital assistant is in a state of uncertain battery power supply, even if a wake-up event occurs, the CPU is still maintained in the sleep mode; and when the CPU is in the sleep mode, and the wake-up button is pressed When the period is less than a predetermined value, the central processing unit continues to be in the sleep mode.

本发明还提供了一种个人数字助理,包括:一中央处理器,用以控制该个人数字助理,该中央处理器支持软件电池故障处理功能;一电路单元,与该中央处理器电性连接,该电路单元用以接收一唤醒事件,并选择性地将该唤醒事件输出至该中央处理器;一判断电路,用以根据该个人数字助理的状态,控制该电路单元;以及一电池,用以为该个人数字助理提供电源;其中,在该中央处理器处于该睡眠模式的情况下,当一唤醒事件产生之时,该判断电路判断出该个人数字助理是否正处于电池故障状态、电池的电池盖打开状态或电池低电量状态,若是,则该电路单元不将该唤醒事件输出至该中央处理器,使该中央处理器仍继续维持于该睡眠模式。The present invention also provides a personal digital assistant, including: a central processing unit, used to control the personal digital assistant, the central processing unit supports software battery failure processing function; a circuit unit, electrically connected with the central processing unit, The circuit unit is used to receive a wake-up event and selectively output the wake-up event to the central processing unit; a judgment circuit is used to control the circuit unit according to the state of the personal digital assistant; and a battery is used for The personal digital assistant provides power; wherein, when the central processing unit is in the sleep mode, when a wake-up event occurs, the judging circuit judges whether the personal digital assistant is in a battery failure state, the battery cover of the battery On state or battery low power state, if yes, then the circuit unit does not output the wake-up event to the CPU, so that the CPU remains in the sleep mode.

本发明还提供了一种于个人数字助理中减少冷开机的机率的方法,该个人数字助理具有用以控制该个人数字助理的一中央处理器、用以将该中央处理器从一睡眠模式唤醒的一唤醒按键、及用以供应该个人数字助理电源的一电池,该中央处理器支持软件电池故障处理功能,该方法包括:于该中央处理器处于该睡眠模式,当一唤醒事件产生之时,判断该个人数字助理是否正处于电池故障状态、电池的电池盖打开状态或电池低电量状态下,若是,则该中央处理器仍继续维持于该睡眠模式。The present invention also provides a method of reducing the chance of cold boot in a personal digital assistant having a central processing unit for controlling the personal digital assistant for waking the central processing unit from a sleep mode A wake-up button, and a battery for supplying power to the personal digital assistant, the central processing unit supports a software battery fault handling function, the method includes: when the central processing unit is in the sleep mode, when a wake-up event occurs , judging whether the personal digital assistant is in the state of battery failure, the state of opening the battery cover of the battery or the state of low battery power, if so, the central processing unit is still maintained in the sleep mode.

为让本发明的上述目的、特点和优点能更明显易懂,下文特举一较佳实施例,并配合附图进行详细说明如下:In order to make the above-mentioned purposes, features and advantages of the present invention more comprehensible, a preferred embodiment is specifically cited below, and is described in detail in conjunction with the accompanying drawings as follows:

(4)附图说明(4) Description of drawings

图1是当电池故障发生于第一期间T1的相关信号波形图。FIG. 1 is a waveform diagram of related signals when a battery failure occurs in a first period T1.

图2是当电池故障发生于第二期间T2的相关信号波形图。FIG. 2 is a waveform diagram of related signals when the battery failure occurs in the second period T2.

图3是根据本发明的一较佳实施例,执行上述程序(1)的电脑系统的方块图。FIG. 3 is a block diagram of a computer system for executing the above-mentioned program (1) according to a preferred embodiment of the present invention.

图4A是图3的中央处理器(CPU)处于睡眠模式,且判断电路判断出电脑系统是处于电池电量供应不确定的状态时,第一信号S1与第二信号S2的波形图。FIG. 4A is a waveform diagram of the first signal S1 and the second signal S2 when the central processing unit (CPU) of FIG. 3 is in sleep mode and the judging circuit judges that the computer system is in an uncertain state of battery power supply.

图4B是图3的CPU处于睡眠模式,且判断电路判断出电脑系统非处于电池电量供应不确定的状态时,第一信号S1与第二信号S2的波形图。FIG. 4B is a waveform diagram of the first signal S1 and the second signal S2 when the CPU of FIG. 3 is in the sleep mode and the judging circuit judges that the computer system is not in the state of uncertain battery power supply.

图5是根据本发明的一较佳实施例,执行上述程序(2)的电脑系统的方块图。Fig. 5 is a block diagram of a computer system executing the above-mentioned program (2) according to a preferred embodiment of the present invention.

图6A是图5中,CPU处于睡眠模式,且唤醒按键被按下的期间小于预定值P时的第三信号S3与第四信号S4的波形图。FIG. 6A is a waveform diagram of the third signal S3 and the fourth signal S4 when the CPU is in the sleep mode and the wake-up button is pressed for less than a predetermined value P in FIG. 5 .

图6B是图5中,CPU处于睡眠模式,且唤醒按键被按下的期间大于预定值P时的第三信号S3与第四信号S4的波形图。FIG. 6B is a waveform diagram of the third signal S3 and the fourth signal S4 when the CPU is in the sleep mode and the wake-up button is pressed for a period greater than a predetermined value P in FIG. 5 .

(5)具体实施方式(5) specific implementation

本发明是藉由避免电池故障发生于第一期间T1,来避免传统因电量消耗殆尽而使SDRAM数据全部流失的问题。而本发明所提出的避免电池故障发生于第一期间T1的程序包括:(1)当电脑系统处于睡眠模式,且当电脑系统处于一电池电量供应不确定的状态时,包括电池故障状态、电池盖打开状态或电池低电量状态,即使一唤醒事件(Wake-up Event)产生,所产生的唤醒事件是不传送至CPU中,使CPU继续维持于睡眠模式。(2)当电脑系统处于睡眠模式时,电脑系统藉由判断唤醒按键被按下的时间长短,来判断唤醒按键是否因遭外力撞击而触发。当唤醒按键被按下的期间小于一预定值时,亦使CPU继续维持于睡眠模式。程序(1)和程序(2)可同时实施或是个别实施。The present invention avoids the traditional problem of losing all SDRAM data due to power exhaustion by preventing battery failure from occurring during the first period T1. And the program that the present invention proposes to prevent battery failure from occurring in the first period T1 includes: (1) when the computer system is in sleep mode, and when the computer system is in a state where the power supply of the battery is uncertain, including battery failure state, battery When the cover is open or the battery is low, even if a wake-up event occurs, the generated wake-up event is not sent to the CPU, so that the CPU continues to stay in sleep mode. (2) When the computer system is in the sleep mode, the computer system judges whether the wake-up button is triggered by an external force by judging the length of time the wake-up button is pressed. When the period during which the wake-up button is pressed is less than a predetermined value, the CPU is also kept in the sleep mode. Procedure (1) and procedure (2) may be implemented simultaneously or individually.

请参照图3,其是根据本发明的一较佳实施例,执行上述程序(1)的电脑系统300的方块图。电脑系统300包括有一中央处理器(Central Processing Unit,CPU)302、一电路单元304、一判断电路306及一电池308。CPU 302是用以控制电脑系统300。CPU 302是支持软件电池故障处理功能。电路单元304是与CPU 302电性连接。电路单元304是用以接收一第一信号S1,并输出一第二信号S2。判断电路306用以根据电脑系统300的状态,控制电路单元304。而电池308则是用以供应电脑系统300电源。Please refer to FIG. 3 , which is a block diagram of a computer system 300 for executing the above procedure (1) according to a preferred embodiment of the present invention. The computer system 300 includes a central processing unit (Central Processing Unit, CPU) 302, a circuit unit 304, a judgment circuit 306 and a battery 308. The CPU 302 is used to control the computer system 300. CPU 302 is to support software battery failure processing function. The circuit unit 304 is electrically connected with the CPU 302. The circuit unit 304 is used for receiving a first signal S1 and outputting a second signal S2. The judging circuit 306 is used for controlling the circuit unit 304 according to the state of the computer system 300 . The battery 308 is used to supply power to the computer system 300 .

请参照图4A,其是图3的CPU 302处于睡眠模式,且判断电路306判断出电脑系统300是处于电池电量供应不确定的状态时,第一信号S1与第二信号S2的波形图。假设当第一信号S1致能时,第一信号S1为低位准;同样地,当第二信号S2致能时,第二信号S2为低位准。当一唤醒事件410于时间点t4产生时,第一信号S1是转为低位准。当CPU 302处于睡眠模式,且判断电路306判断出电脑系统300是处于电池电量供应不确定的状态时,电路单元304是不会将唤醒事件410传送给CPU 302,故此时第二信号S2是维持于高位准。即使唤醒事件410被输入至电路单元304,但是,由于CPU 302并未接收到唤醒事件,故CPU 302仍将继续维持于睡眠模式。Please refer to FIG. 4A, which is a waveform diagram of the first signal S1 and the second signal S2 when the CPU 302 of FIG. 3 is in sleep mode and the judging circuit 306 judges that the computer system 300 is in an uncertain state of battery power supply. Assume that when the first signal S1 is enabled, the first signal S1 is at a low level; similarly, when the second signal S2 is enabled, the second signal S2 is at a low level. When a wake-up event 410 is generated at the time point t4, the first signal S1 is turned to a low level. When the CPU 302 is in sleep mode, and the judging circuit 306 judges that the computer system 300 is in an uncertain state of battery power supply, the circuit unit 304 will not transmit the wake-up event 410 to the CPU 302, so the second signal S2 is maintained at this time at a high level. Even though the wake-up event 410 is input to the circuit unit 304, since the CPU 302 does not receive the wake-up event, the CPU 302 will still remain in the sleep mode.

请参照图4B,其是图3的CPU 302处于睡眠模式,且判断电路306判断出电脑系统300非处于电池电量供应不确定的状态时,第一信号S1与第二信号S2的波形图。当一唤醒事件420于时间点t5产生时,第一信号S1是转为低位准。当CPU 302处于睡眠模式,且判断电路306判断出电脑系统300非处于电池电量供应不确定的状态时,电路单元304会传送唤醒事件422给CPU 302。CPU 302将被唤醒。Please refer to FIG. 4B, which is a waveform diagram of the first signal S1 and the second signal S2 when the CPU 302 of FIG. When a wake-up event 420 is generated at the time point t5, the first signal S1 is turned to a low level. When the CPU 302 is in sleep mode, and the judging circuit 306 judges that the computer system 300 is not in a state of uncertain battery power supply, the circuit unit 304 will send a wakeup event 422 to the CPU 302. CPU 302 will be woken up.

当电脑系统于电池电量供应不确定的状态时,本发明藉由不让唤醒事件输入至CPU 302,不使CPU 302被唤醒,以避免电脑系统进入上述的执行硬件初始化的第一期间T1。这是因为,当电脑系统300于(1)电池已无电量与电池脱落等电池无法正常供电的电池故障状态;(2)使用者将用以固定电池的电池盖打开,将要取出电池以更换电池的电池盖打开状态;或(3)电池所储存的电量过低的电池低电量状态时,若唤醒电脑系统300,使电脑系统300进入正常工作模式,并进入第一期间T1以执行硬件初始化的话,以上三种状态均可能产生电池无法继续供电,主电路板上的残余电量快速耗尽,而使SDRAM数据全部流失的情形。所以,本发明藉由检测电脑系统300的状态,当电脑系统符合上述三种状态时,则让CPU 302继续保持在睡眠模式。这样,CPU 302将不会进入上述的第一期间T1,亦不会有如传统作法中,软件程序代码无法处理电池故障事件的问题。主电路板上的残余电量是得以继续供电给SDRAM以维持其所储存的数据。故本发明的电脑系统300可以避免SDRAM数据流失,减少冷开机的机会。When the computer system is in an uncertain state of battery power supply, the present invention prevents the CPU 302 from being woken up by not allowing the wake-up event to be input to the CPU 302, so as to prevent the computer system from entering the above-mentioned first period T1 of executing hardware initialization. This is because, when the computer system 300 is in (1) the battery failure state that the battery has no power and the battery falls off, and the battery cannot supply power normally; (2) the user will open the battery cover for fixing the battery, and will take out the battery to replace the battery or (3) in a low battery state in which the power stored in the battery is too low, if the computer system 300 is woken up, the computer system 300 enters the normal working mode, and enters the first period T1 to perform hardware initialization. , the above three states may cause the battery to continue to supply power, the remaining power on the main circuit board will be exhausted rapidly, and all SDRAM data will be lost. Therefore, the present invention detects the state of the computer system 300, and when the computer system meets the above three states, the CPU 302 is kept in the sleep mode. In this way, the CPU 302 will not enter the above-mentioned first period T1, and there will be no problem that the software program code cannot handle the battery failure event as in the traditional method. The remaining power on the main circuit board can continue to supply power to the SDRAM to maintain its stored data. Therefore, the computer system 300 of the present invention can avoid SDRAM data loss and reduce the chance of cold boot.

请参照图5,其是根据本发明的较佳实施例,执行上述程序(2)的电脑系统500的方块图。电脑系统500包括一唤醒按键530、一CPU 502、一延迟保护电路532及一电池508。唤醒按键530是配置于电脑系统500的外壳上,用以供使用者操作。CPU 502是用以控制电脑系统500,CPU 502并支持软件电池故障处理功能。延迟保护电路532是用以检测唤醒按键530的状态。唤醒按键530是输出一第三信号S3至延迟保护电路532,而延迟保护电路532是输出一第四信号S4至CPU 502。电池508是用以提供电脑系统500所需的电源。Please refer to FIG. 5 , which is a block diagram of a computer system 500 for executing the above procedure (2) according to a preferred embodiment of the present invention. The computer system 500 includes a wake-up button 530, a CPU 502, a delay protection circuit 532 and a battery 508. The wake-up button 530 is configured on the casing of the computer system 500 for operation by the user. The CPU 502 is used to control the computer system 500, and the CPU 502 supports software battery failure handling functions. The delay protection circuit 532 is used to detect the state of the wake-up button 530 . The wake-up button 530 outputs a third signal S3 to the delay protection circuit 532, and the delay protection circuit 532 outputs a fourth signal S4 to the CPU 502. The battery 508 is used to provide power required by the computer system 500 .

唤醒按键530可能藉由使用者的手指按下,也可能因为电脑系统500掉落遭到撞击而被按下。当电脑系统500掉落时,电池508也很可能因为碰撞的缘故而同时脱落。一般而言,唤醒按键530因碰撞或撞击而被按下的时间长度的一般值约为1~2毫秒(millisecond),而使用者用手指按下唤醒按键530的时间长度通常较长,其一般值约为100毫秒左右。所以,本发明藉由设定一预定值P,预定值P大于1~2毫秒,并小于100毫秒。只要判断出唤醒按键530被按下的期间小于预定值P时,即可得知此时唤醒按键530是因碰撞或撞击而被按下。The wake-up button 530 may be pressed by the user's finger, or may be pressed because the computer system 500 is dropped and hit. When the computer system 500 is dropped, the battery 508 is likely to fall off at the same time due to the impact. Generally speaking, the general value of the time length for the wake-up button 530 to be pressed due to collision or impact is about 1-2 milliseconds (millisecond), and the time length for the user to press the wake-up button 530 with a finger is usually longer, which is generally Values around 100 milliseconds or so. Therefore, in the present invention, by setting a predetermined value P, the predetermined value P is greater than 1-2 milliseconds and less than 100 milliseconds. As long as it is determined that the wake-up button 530 is pressed for less than the predetermined value P, it can be known that the wake-up button 530 is pressed due to a collision or impact.

由于当电脑系统500掉落或遭到撞击时,电池508很可能亦被撞落。若电池508脱落,则电池508将无法正常地供电给电脑系统500。此时,若让CPU 502从睡眠模式中唤醒,则主电路板上的残余电量将会被快速地消耗殆尽,而使SDRAM数据流失。所以,当CPU 502处于睡眠模式,且延迟保护电路532检测出唤醒按键530被按下的期间小于预定值P时,则表示电脑系统500可能遭到碰撞或撞击,电池508很可能已经脱落。此时,本发明是藉由使CPU 502继续维持于睡眠模式,以避免SDRAM数据流失的情形。Because when the computer system 500 is dropped or hit, the battery 508 is likely to be knocked off as well. If the battery 508 falls off, the battery 508 cannot normally supply power to the computer system 500 . At this time, if the CPU 502 is woken up from the sleep mode, the residual power on the main circuit board will be exhausted quickly, and the SDRAM data will be lost. Therefore, when the CPU 502 is in sleep mode, and the delay protection circuit 532 detects that the wake-up button 530 is pressed for less than the predetermined value P, it means that the computer system 500 may be bumped or impacted, and the battery 508 may have fallen off. At this time, the present invention avoids the situation of SDRAM data loss by keeping the CPU 502 in the sleep mode.

请参照图6A,其是图5中,CPU 502处于睡眠模式,且唤醒按键530被按下的期间小于预定值P时的第三信号S3与第四信号S4的波形图。假设当第三信号S3致能时,第三信号S3为低位准;同样地,当第四信号S4致能时,第四信号S4为低位准。当一唤醒事件610于时间点t6产生时,第三信号S3是转为低位准。当CPU 502处于睡眠模式,且延迟保护电路532检测出唤醒按键530被按下的期间小于预定值P时,虽然延迟保护电路532接收到唤醒事件610,但是延迟保护电路532将不传送任何唤醒事件给CPU 502。故此时延迟保护电路532输出的第四信号S4于时间点t6仍将维持于高位准,而CPU 502则继续维持于睡眠模式。Please refer to FIG. 6A, which is a waveform diagram of the third signal S3 and the fourth signal S4 when the CPU 502 is in the sleep mode and the wake-up button 530 is pressed for less than a predetermined value P in FIG. Assume that when the third signal S3 is enabled, the third signal S3 is at a low level; similarly, when the fourth signal S4 is enabled, the fourth signal S4 is at a low level. When a wake-up event 610 is generated at the time point t6, the third signal S3 is turned to a low level. When CPU 502 is in sleep mode, and delay protection circuit 532 detects that the period during which wake-up button 530 is pressed is less than predetermined value P, although delay protection circuit 532 receives wake-up event 610, delay protection circuit 532 will not transmit any wake-up event Give CPU 502. Therefore, the fourth signal S4 output by the delay protection circuit 532 will remain at a high level at the time point t6, and the CPU 502 will continue to maintain the sleep mode.

请参照图6B,其是图5中,CPU 502处于睡眠模式,且唤醒按键530被按下的期间大于预定值P时的第三信号S3与第四信号S4的波形图。当一唤醒事件620于时间点t7产生时,第三信号S3是转为低位准。当CPU 502处于睡眠模式,且延迟保护电路532检测出唤醒按键530被按下的期间大于预定值P时,代表使用者按下了唤醒按键530,欲唤醒电脑系统500。因此,当延迟保护电路532接收到唤醒事件620之后,延迟保护电路532将输出一唤醒事件622至CPU 502。此时,延迟保护电路532输出的第四信号S4于时间点t6是转为低位准,CPU 502将被唤醒。Please refer to FIG. 6B , which is a waveform diagram of the third signal S3 and the fourth signal S4 when the CPU 502 is in sleep mode and the wake-up button 530 is pressed for a period greater than a predetermined value P in FIG. 5 . When a wake-up event 620 is generated at the time point t7, the third signal S3 is turned to a low level. When the CPU 502 is in the sleep mode, and the delay protection circuit 532 detects that the wake-up button 530 has been pressed for a period greater than the predetermined value P, it means that the user has pressed the wake-up button 530 and intends to wake up the computer system 500. Therefore, after the delay protection circuit 532 receives the wakeup event 620, the delay protection circuit 532 will output a wakeup event 622 to the CPU 502. At this time, the fourth signal S4 output by the delay protection circuit 532 turns to a low level at the time point t6, and the CPU 502 will be woken up.

其中,延迟保护电路532是由一控制信号CTRL所控制。当电脑系统500处于睡眠模式时,控制信号CTRL为致能,延迟保护电路532是被启动,以执行如图6A与图6B的动作。而当电脑系统500处于正常工作模式时,控制信号CTRL是为非致能,延迟保护电路532是不动作。此时,第三信号S3将直接传送至CPU 502。这样,可以加快电脑系统500于正常工作模式下的操作速度。Wherein, the delay protection circuit 532 is controlled by a control signal CTRL. When the computer system 500 is in the sleep mode, the control signal CTRL is enabled, and the delay protection circuit 532 is activated to perform the actions shown in FIG. 6A and FIG. 6B . And when the computer system 500 is in the normal working mode, the control signal CTRL is disabled, and the delay protection circuit 532 is not activated. At this time, the third signal S3 will be directly transmitted to the CPU 502. In this way, the operation speed of the computer system 500 in the normal working mode can be accelerated.

本发明上述实施例所揭示的于电脑系统中减少冷开机的机率的方法及其电脑系统,可有效地避免电池故障发生于第一期间T1,导致SDRAM数据流失的问题,并可降低冷开机的机率。本发明对于电脑系统,特别是个人数字助理,更具有可延长SDRAM储存数据的时间与保存数据完整性的优点。The method for reducing the probability of cold boot in the computer system and the computer system disclosed in the above-mentioned embodiments of the present invention can effectively avoid the problem that the battery failure occurs in the first period T1, resulting in the loss of SDRAM data, and can reduce the risk of cold boot probability. For computer systems, especially personal digital assistants, the present invention has the advantages of extending the time for SDRAM to store data and preserving data integrity.

综上所述,虽然本发明已以一较佳实施例揭示如上,然而其并非用以限定本发明,任何熟悉本技术的人员在不脱离本发明的精神和范围内,当可作各种的更动与替换,因此本发明的保护范围当视后附的权利要求所界定的为准。In summary, although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Any person familiar with the art may make various modifications without departing from the spirit and scope of the present invention. Modifications and replacements, so the protection scope of the present invention shall prevail as defined by the appended claims.

Claims (5)

1. method that in personal digital assistant, reduces the probability of cold boot, this personal digital assistant have in order to a central processing unit of controlling this personal digital assistant, in order to this central processing unit from a sleep pattern wake up one wake button up, and with thinking that this personal digital assistant provides a battery of power supply, this central processing unit support software battery failures processing capacity, this method comprises:
Be at this central processing unit under the situation of this sleep pattern, and this personal digital assistant is when being in a battery electric quantity and supplying uncertain state, even a wake events produces, this central processing unit still continues to be maintained at this sleep pattern; And
When this central processing unit is in this sleep pattern, and this wake that button is pressed up during during less than a predetermined value, then this central processing unit continues to be maintained at this sleep pattern.
2. the method for claim 1 is characterized in that, this predetermined value is waken the general value of button because of collision or the time span that is pressed of bump up greater than this, and wakes the general value of the time span that button pressed by a user up less than this.
3. the method for claim 1 is characterized in that, this predetermined value is greater than 2 milliseconds, and less than 100 milliseconds.
4. personal digital assistant comprises:
One central processing unit is in order to control this personal digital assistant, this central processing unit support software battery failures processing capacity;
One circuit unit electrically connects with this central processing unit, and this circuit unit is in order to receiving a wake events, and optionally exports this wake events to this central processing unit;
One decision circuitry in order to the state according to this personal digital assistant, is controlled this circuit unit; And
One battery is with thinking that this personal digital assistant provides power supply;
Wherein, be at this central processing unit under the situation of this sleep pattern, in wake events generation, this decision circuitry is judged battery cover open mode or the low state of charge of battery whether this personal digital assistant is in battery fault condition, battery, if, then this circuit unit does not export this wake events to this central processing unit, makes this central processing unit still continue to be maintained at this sleep pattern.
5. method that in personal digital assistant, reduces the probability of cold boot, this personal digital assistant have in order to a central processing unit of controlling this personal digital assistant, in order to this central processing unit from a sleep pattern wake up one wake button up, and with thinking that this personal digital assistant provides a battery of power supply, this central processing unit support software battery failures processing capacity, this method comprises:
Be in this sleep pattern in this central processing unit, in wake events generation, judge whether this personal digital assistant is under the battery cover open mode or the low state of charge of battery of battery fault condition, battery, if then this central processing unit still continues to be maintained at this sleep pattern.
CN 03153043 2003-08-07 2003-08-07 Personal digital assistant capable of reducing cold start probability and method thereof Expired - Fee Related CN1581021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03153043 CN1581021B (en) 2003-08-07 2003-08-07 Personal digital assistant capable of reducing cold start probability and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03153043 CN1581021B (en) 2003-08-07 2003-08-07 Personal digital assistant capable of reducing cold start probability and method thereof

Publications (2)

Publication Number Publication Date
CN1581021A CN1581021A (en) 2005-02-16
CN1581021B true CN1581021B (en) 2010-05-26

Family

ID=34579907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03153043 Expired - Fee Related CN1581021B (en) 2003-08-07 2003-08-07 Personal digital assistant capable of reducing cold start probability and method thereof

Country Status (1)

Country Link
CN (1) CN1581021B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100412761C (en) * 2006-01-20 2008-08-20 佛山市顺德区顺达电脑厂有限公司 Method for displaying awakening event of computer system in graphics context mode
CN102387571A (en) * 2010-09-06 2012-03-21 中国移动通信集团上海有限公司 Communication establishing method, system and device for wireless sensor network

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0404061A2 (en) * 1989-06-23 1990-12-27 Kabushiki Kaisha Toshiba Computer having a resume function and operable on an internal power source

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0404061A2 (en) * 1989-06-23 1990-12-27 Kabushiki Kaisha Toshiba Computer having a resume function and operable on an internal power source

Also Published As

Publication number Publication date
CN1581021A (en) 2005-02-16

Similar Documents

Publication Publication Date Title
US7100062B2 (en) Power management controller and method
US6243831B1 (en) Computer system with power loss protection mechanism
CN101662370B (en) Dormancy/wakening method for server and server with dormancy/wakening function
KR101429674B1 (en) Apparatus and method for reducing power consumption in system-on-chip
CN101470509B (en) Computer system control method, computer system and notebook computer
CN102150102B (en) circuit with low power mode
JP4515093B2 (en) CPU power-down method and apparatus therefor
CN104246655B (en) Message processing device, information processing method and program
US8055889B2 (en) BIOS management device and method for managing BIOS setting value
US7757060B2 (en) Reducing wake latency time for power conserving state transition
JP2004152304A (en) System and method for holding state data of personal computer in standby state at ac power supply failure
TW200528970A (en) Wake-up reset circuit
TWI230328B (en) Method and computer system for reducing occurrence of cold reset
US20120117364A1 (en) Method and System for Operating a Handheld Calculator
US20040250147A1 (en) Uninterrupted system operation
US20020194512A1 (en) Method of configuring a computer system capable of being woken up on LAN
TWI485623B (en) Method for fast resuming computer system and computer system
WO2005071531A1 (en) A method and device for start up computer
CN1581021B (en) Personal digital assistant capable of reducing cold start probability and method thereof
US20210191493A1 (en) Transition into and out of a partially-off power state
CN117812682A (en) Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip
US7272731B2 (en) Information handling system having reduced power consumption
TW541453B (en) Power saving device for computer and method thereof
US11863721B2 (en) Image forming apparatus for supplying power to a first controller based on detection of an abnormality in a second controller
EP1564628B1 (en) Method and computer system for reducing the possibility of cold reset

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100526

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