TWI796143B - Computer system and wake-up method - Google Patents

Computer system and wake-up method Download PDF

Info

Publication number
TWI796143B
TWI796143B TW111106168A TW111106168A TWI796143B TW I796143 B TWI796143 B TW I796143B TW 111106168 A TW111106168 A TW 111106168A TW 111106168 A TW111106168 A TW 111106168A TW I796143 B TWI796143 B TW I796143B
Authority
TW
Taiwan
Prior art keywords
wake
control unit
chip system
signal
unit
Prior art date
Application number
TW111106168A
Other languages
Chinese (zh)
Other versions
TW202334783A (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 TW111106168A priority Critical patent/TWI796143B/en
Application granted granted Critical
Publication of TWI796143B publication Critical patent/TWI796143B/en
Publication of TW202334783A publication Critical patent/TW202334783A/en

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Hardware Redundancy (AREA)

Abstract

A wake-up method is adopted to a computer system including a button unit, a single chip system, and a first control unit and includes: a set value input by the button unit and stored in a register of the first control unit when the single chip system operates in a normal mode; the first control unit detecting whether N buttons of the button unit are pressed, and defining the corresponding M buttons of the N buttons based on the set value of the register value as a wake-up button when the single chip system operates in a sleep mode; a wake-up signal generated so that the single chip system is switched to operate in the normal mode accordingly when the single chip system operates in the sleep mode and the first control unit determines that the wake-up button is pressed.

Description

電腦系統及喚醒方法Computer system and wake-up method

本發明是有關於一種電腦系統及喚醒方法,特別是指一種具備自定義喚醒按鍵之功能的電腦系統及喚醒方法。The present invention relates to a computer system and a wake-up method, in particular to a computer system and a wake-up method with the function of custom wake-up buttons.

在現有的電腦系統,例如是銷售點系統(POS),在進入休眠模式(Sleep mode) 之後,都是採用按壓電源鍵以喚醒系統進而重新回到操作在正常模式。然而,除了這種現有的作法之外,是否存有其他更具彈性的作法或系統,以將操作在休眠模式的系統喚醒為操作在正常模式,便成為一個待解決的問題。In the existing computer systems, such as point-of-sale systems (POS), after entering the sleep mode (Sleep mode), it is all used to press the power button to wake up the system and then return to the normal operation mode. However, in addition to this existing method, whether there are other more flexible methods or systems for waking up the system operating in the sleep mode to operate in the normal mode has become a problem to be solved.

因此,本發明的目的,即在提供一種具備自定義喚醒按鍵之功能的電腦系統及喚醒方法。Therefore, the purpose of the present invention is to provide a computer system with the function of custom wake-up button and a wake-up method.

於是,本發明之一觀點,提供一種電腦系統,包含一按鍵單元、一單晶片系統(SOC)、及一第一控制單元。該按鍵單元包括N個按鍵,N為正整數。該單晶片系統(SOC)電連接該按鍵單元,並執行一作業系統,且操作在一正常模式及一休眠模式(Sleep mode)之間。該第一控制單元電連接該單晶片系統及該按鍵單元,並包括一暫存器。Therefore, an aspect of the present invention provides a computer system including a key unit, a system on chip (SOC), and a first control unit. The button unit includes N buttons, where N is a positive integer. The system on chip (SOC) is electrically connected to the key unit, and executes an operation system, and operates between a normal mode and a sleep mode (Sleep mode). The first control unit is electrically connected to the single-chip system and the key unit, and includes a register.

其中,當單晶片系統操作在該正常模式時,藉由該按鍵單元輸入一設定數值,並儲存至該第一控制單元的該暫存器。當該單晶片系統操作在該休眠模式時,該第一控制單元偵測該按鍵單元的該N個按鍵是否被按壓,並根據該暫存器的該設定數值,定義該按鍵單元的該N個按鍵之其中對應該設定數值的該M個,作為一種喚醒按鍵,M為正整數且小於或等於N。Wherein, when the single-chip system operates in the normal mode, a set value is input through the key unit and stored in the register of the first control unit. When the single-chip system operates in the sleep mode, the first control unit detects whether the N keys of the key unit are pressed, and defines the N keys of the key unit according to the set value of the register Among the M buttons corresponding to the set value, as a wake-up button, M is a positive integer and less than or equal to N.

當該單晶片系統操作在該休眠模式且該第一控制單元判斷該種喚醒按鍵被按壓時,產生一喚醒信號。該單晶片系統根據該喚醒信號,轉為操作在該正常模式。When the single-chip system operates in the sleep mode and the first control unit determines that the wake-up button is pressed, a wake-up signal is generated. The single-chip system switches to operate in the normal mode according to the wake-up signal.

在一些實施態樣中,該電腦系統還包含一基本輸入輸出系統(BIOS)及一顯示單元。其中,當該單晶片系統由操作在正常模式改為操作在該休眠模式時,產生一休眠信號,並將該休眠信號傳送至該基本輸入輸出系統,使得該基本輸入輸出系統輸出一休眠觸發信號至該顯示單元及該第一控制單元。In some implementation aspects, the computer system further includes a basic input output system (BIOS) and a display unit. Wherein, when the single-chip system is changed from operating in the normal mode to operating in the sleep mode, a sleep signal is generated, and the sleep signal is transmitted to the basic input output system, so that the basic input output system outputs a sleep trigger signal to the display unit and the first control unit.

在一些實施態樣中,其中,該休眠模式是進階組態與電源介面(Advanced Configuration and Power Interface,ACPI)的S0IX狀態或S3狀態。In some implementation aspects, the sleep mode is the SOIX state or the S3 state of Advanced Configuration and Power Interface (ACPI).

在一些實施態樣中,其中,該設定數值等於0xb K...b N-1…b 1b 0,K為正整數且大於或等於(N-1)。當該單晶片系統操作在該休眠模式時,該第一控制單元根據該b j的邏輯值判斷該N個按鍵之其中對應者是否作為該種喚醒按鍵,j=1、2…、N。 In some implementation aspects, the set value is equal to 0xb K ... b N-1 ... b 1 b 0 , K is a positive integer greater than or equal to (N-1). When the single-chip system is operating in the sleep mode, the first control unit judges whether the corresponding one of the N keys is the wake-up key according to the logic value of b j , j=1, 2...,N.

在一些實施態樣中,該電腦系統還包含一第二控制單元,電連接該第一控制單元及該單晶片系統。其中,當該第一控制單元產生該喚醒信號時,該第二控制單元接收該喚醒信號,以依照預定順序控制多個電壓源開啟,並通知該單晶片系統由操作在該休眠模式轉為操作在該正常模式。In some embodiments, the computer system further includes a second control unit electrically connected to the first control unit and the single-chip system. Wherein, when the first control unit generates the wake-up signal, the second control unit receives the wake-up signal to control multiple voltage sources to be turned on according to a predetermined sequence, and notify the single-chip system to switch from operating in the sleep mode to operating in the normal mode.

於是,本發明之另一觀點,提供一種喚醒方法,適用於一電腦系統,該電腦系統包含一按鍵單元、一單晶片系統(SOC)、及一第一控制單元。該按鍵單元包括N個按鍵。該喚醒方法包含步驟(A)~(C)。Therefore, another aspect of the present invention provides a wake-up method, which is suitable for a computer system, and the computer system includes a key unit, a single-chip system (SOC), and a first control unit. The key unit includes N keys. The wake-up method includes steps (A)-(C).

於步驟(A),當單晶片系統操作在一正常模式時,藉由該按鍵單元輸入一設定數值,並儲存至該第一控制單元的一暫存器。In step (A), when the single-chip system is operating in a normal mode, a set value is input through the key unit and stored in a register of the first control unit.

於步驟(B),當該單晶片系統操作在一休眠模式時,該第一控制單元偵測該按鍵單元的該N個按鍵是否被按壓,並根據該暫存器的該設定數值,定義該按鍵單元的該N個按鍵之其中對應該設定數值的該M個,作為一種喚醒按鍵,M為正整數且小於或等於N。In step (B), when the single-chip system operates in a sleep mode, the first control unit detects whether the N keys of the key unit are pressed, and defines the Among the N keys of the key unit, the M keys corresponding to the set value are used as a wake-up key, and M is a positive integer less than or equal to N.

於步驟(C),當該單晶片系統操作在該休眠模式且該第一控制單元判斷該種喚醒按鍵被按壓時,產生一喚醒信號,該單晶片系統根據該喚醒信號,轉為操作在該正常模式。In step (C), when the single-chip system operates in the sleep mode and the first control unit determines that the wake-up button is pressed, a wake-up signal is generated, and the single-chip system switches to operate in the sleep mode according to the wake-up signal. normal mode.

在一些實施態樣中,該電腦系統還包含一基本輸入輸出系統(BIOS)及一顯示單元。該喚醒方法還包含步驟(D),當該單晶片系統由操作在正常模式改為操作在該休眠模式時,產生一休眠信號,並將該休眠信號傳送至該基本輸入輸出系統,使得該基本輸入輸出系統輸出一休眠觸發信號至該顯示單元及該第一控制單元。In some implementation aspects, the computer system further includes a basic input output system (BIOS) and a display unit. The wake-up method also includes a step (D). When the single-chip system is changed from operating in the normal mode to operating in the sleep mode, a sleep signal is generated, and the sleep signal is sent to the basic input output system, so that the basic The I/O system outputs a sleep trigger signal to the display unit and the first control unit.

在一些實施態樣中,其中,在步驟(B)中,該休眠模式是進階組態與電源介面(Advanced Configuration and Power Interface,ACPI)的S0IX狀態或S3狀態。In some implementation aspects, wherein, in the step (B), the sleep mode is the SOIX state or the S3 state of Advanced Configuration and Power Interface (ACPI).

在一些實施態樣中,其中,在步驟(B)中,該設定數值等於0xb K...b N-1…b 1b 0,K為正整數且大於或等於(N-1),當該單晶片系統操作在該休眠模式時,該第一控制單元根據該b j的邏輯值判斷該N個按鍵之其中對應者是否作為該種喚醒按鍵,j=1、2…、N。 In some implementation aspects, wherein, in step (B), the set value is equal to 0xb K ... b N-1 ... b 1 b 0 , K is a positive integer greater than or equal to (N-1), when When the single-chip system operates in the sleep mode, the first control unit judges whether the corresponding one of the N keys is the wake-up key according to the logic value of b j , j=1, 2...,N.

在一些實施態樣中,該電腦系統還包含一第二控制單元。其中,在步驟(C)中,當該第一控制單元產生該喚醒信號時,該第二控制單元接收該喚醒信號,以依照預定順序控制多個電壓源開啟,並通知該單晶片系統由操作在該休眠模式轉為操作在該正常模式。In some implementation aspects, the computer system further includes a second control unit. Wherein, in step (C), when the first control unit generates the wake-up signal, the second control unit receives the wake-up signal to control multiple voltage sources to be turned on according to a predetermined sequence, and notify the single-chip system to be operated by The sleep mode is changed to operate in the normal mode.

本發明的功效在於:藉由該第一控制單元在該休眠模式時,根據該暫存器所儲存的該設定數值,判斷該種喚醒按鍵被按壓以產生該喚醒信號,使得該單晶片系統據以轉為操作在該正常模式。此外,該單晶片系統能夠藉由該按鍵單元輸入該設定數值,而實現一種自定義喚醒按鍵的功能。The effect of the present invention is: when the first control unit is in the dormant mode, according to the set value stored in the temporary register, it is judged that the wake-up button is pressed to generate the wake-up signal, so that the single-chip system data to switch to operate in the normal mode. In addition, the single-chip system can realize the function of customizing the wake-up button by inputting the setting value through the button unit.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numerals.

參閱圖1,本發明電腦系統之一實施例,包含一按鍵單元3、一單晶片系統(SOC)2、一第一控制單元1、一第二控制單元4、一基本輸入輸出系統(BIOS)5、及一顯示單元6。該電腦系統例如是一銷售點系統(POS)。該按鍵單元3包括N個按鍵,N為正整數。該顯示單元6例如是一液晶顯示器。Referring to Fig. 1, one embodiment of computer system of the present invention comprises a button unit 3, a single chip system (SOC) 2, a first control unit 1, a second control unit 4, a basic input output system (BIOS) 5, and a display unit 6. The computer system is, for example, a point-of-sale system (POS). The button unit 3 includes N buttons, where N is a positive integer. The display unit 6 is, for example, a liquid crystal display.

該單晶片系統2具備相當於一中央處理器(CPU)的功能,並電連接該按鍵單元3、該第二控制單元4、及該基本輸入輸出系統5,且執行一作業系統,並操作在一正常模式及一休眠模式(Sleep mode)之間。該作業系統例如是一種視窗作業系統。This single-chip system 2 has the function equivalent to a central processing unit (CPU), and is electrically connected to the key unit 3, the second control unit 4, and the basic input output system 5, and executes an operating system, and operates on Between a normal mode and a sleep mode. The operating system is, for example, a Windows operating system.

該第一控制單元1電連接該單晶片系統2、該按鍵單元3、該第二控制單元4、該基本輸入輸出系統5、及該顯示單元6,並包括一暫存器11。該暫存器11儲存一設定數值。該第二控制單元4用於控制多個電壓源開啟,該等電壓源提供該電腦系統運作所需的電力。在本實施例中,該第一控制單元1及該第二控制單元4例如都是採用相同的微控制器,但分別儲存有不同的韌體,使其執行不同的功能,例如該第二控制單元4是作為一種電源序列控制的微控制器(Power sequenc MCU)。The first control unit 1 is electrically connected to the single-chip system 2 , the key unit 3 , the second control unit 4 , the BIOS 5 , and the display unit 6 , and includes a register 11 . The register 11 stores a set value. The second control unit 4 is used to control multiple voltage sources to be turned on, and the voltage sources provide the power required for the computer system to operate. In this embodiment, the first control unit 1 and the second control unit 4 both use the same microcontroller, but store different firmware to enable them to perform different functions, such as the second control unit Unit 4 is a microcontroller (Power sequence MCU) used as a power sequence control.

該喚醒方法包含步驟S1~S4。The wake-up method includes steps S1-S4.

於步驟S1,當單晶片系統2操作在該正常模式時,藉由該按鍵單元3輸入該設定數值,並儲存至該第一控制單元1的該暫存器11。舉例來說,該單晶片系統2與該第一控制單元1之間是以積體電路匯流排(I2C)傳送該設定數值。In step S1, when the single-chip system 2 is operating in the normal mode, the set value is input through the key unit 3 and stored in the register 11 of the first control unit 1 . For example, the set value is transmitted between the single-chip system 2 and the first control unit 1 through an integrated circuit bus (I2C).

於步驟S2,當使用者藉由在該作業系統下達休眠指令時,或該作業系統判斷在設定時間內未接收到任何指令(如該按鍵單元4都未被按壓)時,則該單晶片系統2由操作在正常模式改為操作在該休眠模式,以產生一休眠信號,並將該休眠信號傳送至該基本輸入輸出系統5,使得該基本輸入輸出系統5輸出一休眠觸發信號至該顯示單元6及該第一控制單元1,進而通知該顯示單元6也操作在對應該休眠模式(如螢幕變暗或不顯示)的省電狀態。In step S2, when the user issues a dormancy command on the operating system, or the operating system judges that no command has been received within the set time (such as the button unit 4 is not pressed), the single-chip system 2. Change from operating in the normal mode to operating in the sleep mode to generate a sleep signal, and transmit the sleep signal to the BIOS 5, so that the BIOS 5 outputs a sleep trigger signal to the display unit 6 and the first control unit 1, and then notify the display unit 6 to also operate in the power-saving state corresponding to the sleep mode (eg, the screen is dimmed or not displayed).

於步驟S3,當該第一控制單元1接收到該休眠觸發信號時,獲知該單晶片系統2操作在該休眠模式。此時,該第一控制單元1持續偵測該按鍵單元3的該N個按鍵是否被按壓,並根據該暫存器11的該設定數值,定義該按鍵單元3的該N個按鍵之其中對應該設定數值的該M個,作為一種喚醒按鍵,M為正整數且小於或等於N。In step S3, when the first control unit 1 receives the sleep trigger signal, it knows that the single-chip system 2 is operating in the sleep mode. At this time, the first control unit 1 continues to detect whether the N keys of the key unit 3 are pressed, and according to the set value of the register 11, defines the pair of the N keys of the key unit 3 The M number of values should be set, as a wake-up button, M is a positive integer and less than or equal to N.

更具體地說,該休眠模式是進階組態與電源介面(ACPI)的S0IX狀態或S3狀態。該設定數值等於0xb K...b N-1…b 1b 0,K為正整數且大於或等於(N-1),該第一控制單元1是根據該b j的邏輯值判斷該N個按鍵之其中對應者是否作為該種喚醒按鍵,j=1、2…、N。 More specifically, the sleep mode is the SOIX state or the S3 state of the Advanced Configuration and Power Interface (ACPI). The set value is equal to 0xb K ... b N-1 ... b 1 b 0 , K is a positive integer greater than or equal to (N-1), and the first control unit 1 judges the N according to the logic value of b j Whether the corresponding one of the buttons is used as the wake-up button, j=1, 2..., N.

舉例來說,N=6,K=8,該按鍵單元3包括6個按鍵,例如是「volume up」、「volume down」、「function left」、「function right」、「trigger left」、及「trigger right」,該第一控制單元1的韌體例如已定義b 0、b 1、b 2、b 3、b 4、b 5分別對應「volume up」、「volume down」、「function left」、「function right」、「trigger left」、及「trigger right」,且定義b j的邏輯值等於邏輯1時,b j所對應的該按鍵屬於該種喚醒按鍵。因此,該設定數值等於0x00000000表示該6個按鍵都不屬於該種喚醒按鍵;該設定數值等於0x00111111表示該6個按鍵都屬於該種喚醒按鍵;該設定數值等於0x00001100表示「function left」及「function right」屬於該種喚醒按鍵。另外要特別補充說明的是:前述舉例的該6個按鍵是分別電連接該第一控制單元1的6個接腳(Pin),也就是說,該第一控制單元1是微控制器時,該微控制器的6個通用型輸入輸出(GPIO)接腳被定義為輸入腳位以分別電連接該6個按鍵而接收對應的信號。 For example, N=6, K=8, the button unit 3 includes 6 buttons, such as "volume up", "volume down", "function left", "function right", "trigger left", and " trigger right", the firmware of the first control unit 1 has defined b 0 , b 1 , b 2 , b 3 , b 4 , and b 5 respectively corresponding to "volume up", "volume down", "function left", When "function right", "trigger left" and "trigger right" are defined, and the logic value of b j is equal to logic 1, the key corresponding to b j belongs to this type of wake-up key. Therefore, if the set value is equal to 0x00000000, it means that the 6 buttons do not belong to this kind of wake-up button; if the set value is equal to 0x00111111, it means that the 6 buttons belong to this kind of wake-up button; if the set value is equal to 0x00001100, it means that "function left" and "function right” belongs to this kind of wake-up button. In addition, it should be specially supplemented that: the 6 buttons in the aforementioned examples are respectively electrically connected to the 6 pins (Pins) of the first control unit 1, that is to say, when the first control unit 1 is a microcontroller, The six general-purpose input and output (GPIO) pins of the microcontroller are defined as input pins for electrically connecting the six buttons respectively to receive corresponding signals.

於步驟S4,當該單晶片系統2操作在該休眠模式且該第一控制單元1判斷該種喚醒按鍵被按壓時,產生一喚醒信號。該第二控制單元4接收該喚醒信號,以依照預定順序控制該等電壓源開啟,並通知該單晶片系統2由操作在該休眠模式轉為操作在該正常模式。換句話說,該暫存器11只需要一個位元組(1 byte)就可以控制到8個按鍵,即1個位元組的8個位元分別對應8個按鍵,並根據自定義的喚醒按鍵決定那些按鈕可以喚醒該單晶片系統2。In step S4, when the single-chip system 2 is operating in the sleep mode and the first control unit 1 determines that the wake-up button is pressed, a wake-up signal is generated. The second control unit 4 receives the wake-up signal, controls the voltage sources to be turned on according to a predetermined sequence, and notifies the single-chip system 2 to change from operating in the sleep mode to operating in the normal mode. In other words, the temporary register 11 only needs one byte (1 byte) to control 8 keys, that is, the 8 bits of 1 byte correspond to 8 keys respectively, and wake up according to the user-defined Buttons determine which buttons can wake up the single-chip system 2 .

綜上所述,藉由該第一控制單元1在該休眠模式時,根據該暫存器11所儲存的該設定數值,判斷該種喚醒按鍵被按壓以產生該喚醒信號,使得該單晶片系統2據以轉為操作在該正常模式。此外,該單晶片系統2能夠藉由該按鍵單元3輸入該設定數值,而實現一種自定義喚醒按鍵的功能,故確實能達成本發明的目的。In summary, when the first control unit 1 is in the sleep mode, according to the set value stored in the temporary register 11, it is judged that the wake-up button is pressed to generate the wake-up signal, so that the single-chip system 2 accordingly to operate in the normal mode. In addition, the single-chip system 2 can realize the function of a self-defined wake-up button by inputting the set value through the button unit 3 , so the purpose of the present invention can indeed be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。But the above-mentioned ones are only embodiments of the present invention, and should not limit the scope of the present invention. All simple equivalent changes and modifications made according to the patent scope of the present invention and the content of the patent specification are still within the scope of the present invention. Within the scope covered by the patent of the present invention.

1:第一控制單元 11:暫存器 2:單晶片系統 3:按鍵單元 4:第二控制單元 5:基本輸入輸出系統 6:顯示單元 S1~S4:步驟 1: The first control unit 11: scratchpad 2: Single chip system 3: Button unit 4: Second control unit 5: Basic input and output system 6: Display unit S1~S4: steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊圖,說明本發明電腦系統的一實施例;及 圖2是一流程圖,說明該實施例所執行的一喚醒方法。 Other features and effects of the present invention will be clearly presented in the implementation manner with reference to the drawings, wherein: Figure 1 is a block diagram illustrating an embodiment of the computer system of the present invention; and FIG. 2 is a flowchart illustrating a wake-up method implemented by the embodiment.

S1~S4:步驟 S1~S4: steps

Claims (8)

一種電腦系統,包含:一按鍵單元,包括N個按鍵,N為正整數;一單晶片系統(SOC),電連接該按鍵單元,並執行一作業系統,且操作在一正常模式及一休眠模式(Sleep mode)之間;及一第一控制單元,電連接該單晶片系統及該按鍵單元,並包括一暫存器;其中,當單晶片系統操作在該正常模式時,藉由該按鍵單元輸入一設定數值,並儲存至該第一控制單元的該暫存器,該設定數值等於0xbK...bN-1...b1b0,K為正整數且大於或等於(N-1),當該單晶片系統操作在該休眠模式時,該第一控制單元偵測該按鍵單元的該N個按鍵是否被按壓,並根據該暫存器的該設定數值,定義該按鍵單元的該N個按鍵之其中對應該設定數值的該M個,作為一種喚醒按鍵,也就是該第一控制單元根據該bj的邏輯值判斷該N個按鍵之其中對應者是否作為該種喚醒按鍵,j=1、2...、N,M為正整數且小於或等於N,當該單晶片系統操作在該休眠模式且該第一控制單元判斷該種喚醒按鍵被按壓時,產生一喚醒信號,該單晶片系統根據該喚醒信號,轉為操作在該正常模式。 A computer system comprising: a button unit including N buttons, where N is a positive integer; a single-chip system (SOC), electrically connected to the button unit, and executing an operating system, and operating in a normal mode and a sleep mode (Sleep mode); and a first control unit, which is electrically connected to the single-chip system and the key unit, and includes a temporary register; wherein, when the single-chip system operates in the normal mode, by the key unit Input a set value and store it in the register of the first control unit, the set value is equal to 0xb K ... b N-1 ... b 1 b 0 , K is a positive integer greater than or equal to (N -1), when the single-chip system is operating in the sleep mode, the first control unit detects whether the N keys of the key unit are pressed, and defines the key unit according to the set value of the temporary register Among the N buttons, the M buttons corresponding to the set value are used as a wake-up button, that is, the first control unit judges whether the corresponding one of the N buttons is used as the wake-up button according to the logic value of bj , j=1, 2..., N, M is a positive integer and less than or equal to N, when the single-chip system operates in the sleep mode and the first control unit judges that the wake-up button is pressed, a wake-up is generated signal, the single-chip system turns to operate in the normal mode according to the wake-up signal. 如請求項1所述的電腦系統,還包含一基本輸入輸出系統(BIOS)及一顯示單元,其中,當該單晶片系統由操作在正 常模式改為操作在該休眠模式時,產生一休眠信號,並將該休眠信號傳送至該基本輸入輸出系統,使得該基本輸入輸出系統輸出一休眠觸發信號至該顯示單元及該第一控制單元。 The computer system as described in claim 1, further comprising a basic input output system (BIOS) and a display unit, wherein, when the single-chip system is operated by When the normal mode is changed to operate in the sleep mode, a sleep signal is generated, and the sleep signal is sent to the basic input output system, so that the basic input output system outputs a sleep trigger signal to the display unit and the first control unit . 如請求項2所述的電腦系統,其中,該休眠模式是進階組態與電源介面(Advanced Configuration and Power Interface,ACPI)的S0IX狀態或S3狀態。 The computer system according to claim 2, wherein the sleep mode is the SOIX state or the S3 state of the Advanced Configuration and Power Interface (ACPI). 如請求項3所述的電腦系統,還包含一第二控制單元,電連接該第一控制單元及該單晶片系統,其中,當該第一控制單元產生該喚醒信號時,該第二控制單元接收該喚醒信號,以依照預定順序控制多個電壓源開啟,並通知該單晶片系統由操作在該休眠模式轉為操作在該正常模式。 The computer system according to claim 3, further comprising a second control unit electrically connected to the first control unit and the single-chip system, wherein when the first control unit generates the wake-up signal, the second control unit The wake-up signal is received to control a plurality of voltage sources to be turned on according to a predetermined sequence, and notify the single-chip system to change from operating in the sleep mode to operating in the normal mode. 一種喚醒方法,適用於一電腦系統,該電腦系統包含一按鍵單元、一單晶片系統(SOC)、及一第一控制單元,該按鍵單元包括N個按鍵,該喚醒方法包含:(A)當單晶片系統操作在一正常模式時,藉由該按鍵單元輸入一設定數值,並儲存至該第一控制單元的一暫存器,該設定數值等於0xbK...bN-1...b1b0,K為正整數且大於或等於(N-1);(B)當該單晶片系統操作在一休眠模式時,該第一控制單元偵測該按鍵單元的該N個按鍵是否被按壓,並根據該暫存器的該設定數值,定義該按鍵單元的該N個按鍵之其中對應該設定數值的該M個,作為一種喚醒按鍵,也就是該第一控制單元根據該bj的邏輯值判斷該N個按鍵之其 中對應者是否作為該種喚醒按鍵,j=1、2...、N,M為正整數且小於或等於N;及(C)當該單晶片系統操作在該休眠模式且該第一控制單元判斷該種喚醒按鍵被按壓時,產生一喚醒信號,該單晶片系統根據該喚醒信號,轉為操作在該正常模式。 A wake-up method is applicable to a computer system, the computer system includes a key unit, a single-chip system (SOC), and a first control unit, the key unit includes N keys, the wake-up method includes: (A) when When the single-chip system operates in a normal mode, a set value is input through the key unit and stored in a register of the first control unit, and the set value is equal to 0xb K ... b N-1 ... b 1 b 0 , K is a positive integer greater than or equal to (N-1); (B) when the single-chip system operates in a sleep mode, the first control unit detects whether the N keys of the key unit is pressed, and according to the set value of the temporary register, define the M of the N keys of the key unit corresponding to the set value as a wake-up key, that is, the first control unit according to the b j The logical value judges whether one of the corresponding ones of the N buttons is used as the wake-up button, j=1, 2..., N, M is a positive integer and is less than or equal to N; and (C) when the single-chip system operates In the sleep mode and when the first control unit judges that the wake-up button is pressed, a wake-up signal is generated, and the single-chip system is converted to operate in the normal mode according to the wake-up signal. 如請求項5所述的喚醒方法,該電腦系統還包含一基本輸入輸出系統(BIOS)及一顯示單元,該喚醒方法還包含步驟(D),當該單晶片系統由操作在正常模式改為操作在該休眠模式時,產生一休眠信號,並將該休眠信號傳送至該基本輸入輸出系統,使得該基本輸入輸出系統輸出一休眠觸發信號至該顯示單元及該第一控制單元。 As the wake-up method described in claim item 5, the computer system also includes a basic input output system (BIOS) and a display unit, and the wake-up method also includes step (D), when the single-chip system is changed from operating in normal mode to When operating in the sleep mode, generate a sleep signal and send the sleep signal to the BIOS, so that the BIOS outputs a sleep trigger signal to the display unit and the first control unit. 如請求項6所述的喚醒方法,其中,在步驟(B)中,該休眠模式是進階組態與電源介面(Advanced Confi-guration and Power Interface,ACPI)的S0IX狀態或S3狀態。 The wake-up method as claimed in item 6, wherein, in the step (B), the sleep mode is the SOIX state or the S3 state of the Advanced Configuration and Power Interface (ACPI). 如請求項7所述的喚醒方法,該電腦系統還包含一第二控制單元,其中,在步驟(C)中,當該第一控制單元產生該喚醒信號時,該第二控制單元接收該喚醒信號,以依照預定順序控制多個電壓源開啟,並通知該單晶片系統由操作在該休眠模式轉為操作在該正常模式。 The wake-up method as described in claim 7, the computer system further includes a second control unit, wherein, in step (C), when the first control unit generates the wake-up signal, the second control unit receives the wake-up signal The signal controls multiple voltage sources to be turned on according to a predetermined sequence, and notifies the single-chip system to change from operating in the sleep mode to operating in the normal mode.
TW111106168A 2022-02-21 2022-02-21 Computer system and wake-up method TWI796143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111106168A TWI796143B (en) 2022-02-21 2022-02-21 Computer system and wake-up method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111106168A TWI796143B (en) 2022-02-21 2022-02-21 Computer system and wake-up method

Publications (2)

Publication Number Publication Date
TWI796143B true TWI796143B (en) 2023-03-11
TW202334783A TW202334783A (en) 2023-09-01

Family

ID=86692291

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111106168A TWI796143B (en) 2022-02-21 2022-02-21 Computer system and wake-up method

Country Status (1)

Country Link
TW (1) TWI796143B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806816A (en) * 2019-10-30 2020-02-18 深圳市汇顶科技股份有限公司 Touch detection method, MCU, touch control equipment and storage medium
US20210124594A1 (en) * 2019-10-25 2021-04-29 Intel Corporation Apparatus and method for dynamic selection of an optimal processor core for power-up and/or sleep modes
TW202131144A (en) * 2020-02-08 2021-08-16 大陸商業成科技(成都)有限公司 Portable device
CN113282194A (en) * 2021-05-31 2021-08-20 中微半导体(深圳)股份有限公司 Low-power-consumption touch detection awakening method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210124594A1 (en) * 2019-10-25 2021-04-29 Intel Corporation Apparatus and method for dynamic selection of an optimal processor core for power-up and/or sleep modes
CN110806816A (en) * 2019-10-30 2020-02-18 深圳市汇顶科技股份有限公司 Touch detection method, MCU, touch control equipment and storage medium
TW202131144A (en) * 2020-02-08 2021-08-16 大陸商業成科技(成都)有限公司 Portable device
CN113282194A (en) * 2021-05-31 2021-08-20 中微半导体(深圳)股份有限公司 Low-power-consumption touch detection awakening method and device

Also Published As

Publication number Publication date
TW202334783A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US20200183704A1 (en) Method and apparatus for waking up computer from sleep state
AU2009291819B2 (en) Circuit having a low power mode
US8533511B2 (en) Notebook computer
US5708819A (en) Process and apparatus for generating power management events in a computer system
TWI225982B (en) Power shutdown method of wireless peripheral device
CN104461048B (en) Electronic device and control method thereof
TW200906081A (en) Multi-protocol infrared receiver
WO2013166778A1 (en) Method and device for operating mobile terminal based on sensor, and mobile terminal
TWI479303B (en) Sleep status controlling system, computer system, and sleep status detecting method thereof
US8769326B2 (en) Computer system and operation method for changing operation state by capacitive button group
US20090300395A1 (en) Power saving system and method
TWI796143B (en) Computer system and wake-up method
TWI397807B (en) Energy-efficient touch panel device and related method
TWI515550B (en) Chip device and electronic system thereof
US7237132B2 (en) Power reduction for unintentional activation of a wireless input device using a flip-flop to detect event termination
US11662800B2 (en) Electronic device with power-off partition and partition-based power-off method therefor
CN203117961U (en) Dead halt monitoring and resetting device
CN116737242A (en) Computer system and wake-up method
WO2024193257A1 (en) Wake-up device
TWI817636B (en) Electronic device and present method for status description information thereof
CN216956887U (en) Single-wire awakening and key detection circuit
CN103049347A (en) Computer crash monitoring and resetting device
CN219831808U (en) Wake-up device
US20230251978A1 (en) Pointing device and method capable of correcting its usb state by monitoring voltage/state of usb communication interface
US20230098532A1 (en) Electronic device