TW550451B - Programmable power-on system and method for central processing unit - Google Patents

Programmable power-on system and method for central processing unit Download PDF

Info

Publication number
TW550451B
TW550451B TW91111784A TW91111784A TW550451B TW 550451 B TW550451 B TW 550451B TW 91111784 A TW91111784 A TW 91111784A TW 91111784 A TW91111784 A TW 91111784A TW 550451 B TW550451 B TW 550451B
Authority
TW
Taiwan
Prior art keywords
central processing
processing unit
power
mode
unit
Prior art date
Application number
TW91111784A
Other languages
Chinese (zh)
Inventor
Kun-Ying Tsai
Original Assignee
Rdc Semiconductor Co Ltd
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 Rdc Semiconductor Co Ltd filed Critical Rdc Semiconductor Co Ltd
Priority to TW91111784A priority Critical patent/TW550451B/en
Application granted granted Critical
Publication of TW550451B publication Critical patent/TW550451B/en

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

A programmable power-on system for a central processing unit and a method of the same are provided, wherein the programmable power-on system includes: a power-down confirming unit, a power-on mode selecting unit, and a memory unit for storing a main control program, which is provided with an interrupt service queue command and a direct power-on command. When the central processing unit is in a power-down mode, mode-confirmation data are written into the power-down confirming unit, and then selection data are written into the power-on mode selecting unit. When the central processing unit receives an interrupt signal, the main control program reads a command corresponding to the selection data so as to implement a power-on mode. This is therefore of greater selectivity and operational efficiency than the prior art.

Description

550451 五、發明說明(l) 【發明領_域】 本發明係有關於 於-種可程式化中二種電子訊號處理技冑,特別是有關 係提供系統在進入省=理皁凡重新啟動之系統及其方法, 中斷伺服序列之啟式後重新啟動時’有啟動即進入 模式,以提供使用ίΐϋ;過中斷祠服序列之直接啟動 【發明背景】 ^ 也是:二(CPU) *-個電子電路的積體電路, 电知内進仃处理、控制和儲存的電路。 運异、輸入輸出與連接儲物中的各種 控制。 ㈣存5都疋由中央處理單元執行與 而若電腦在待機(standby)狀態時,為 =理單元亦會處於省電模式(ρ_ — _二: :接收到外部(例如鍵盤1鼠)所輸入的中斷訊)直 :會開啟(power orO再重新啟動,並由進入省電振1丄 中斷的程式繼續執行下去。 、式則 :而’二統的開:程序為當中央處理單元接收 =J便’ t先進入-中斷飼服序歹",執行該中 : 歹中之中斷内容’然後再繼續省電模式前的動4乍 序 X :半的應用程式),然:而,此種運作方式較浪: :具J擇性’即使中斷序列中的中斷内容是空(em t ;’且 ::央處理器仍J執行此一程序,再執行中斷前的2 恭k成時間的耗費,進而影響系統整體運作的動 【發明概述】550451 V. Description of the invention (l) [Invention domain_domain] The present invention relates to two kinds of programmable electronic signal processing technologies, especially related to the provision of the system when the province enters the province = Li Zaofan. System and its method, when restarting after interrupting the servo sequence, it will enter the mode when it is restarted to provide the use of ΐϋ; direct startup after interrupting the sequence of the temple service [Background of the invention] ^ Also: two (CPU) *-an electronic The integrated circuit of a circuit, a circuit that processes, controls, and stores information. Various controls in operation, input / output and connected storage. The 5 units are saved and executed by the central processing unit. If the computer is in the standby state, the unit will be in the power saving mode (ρ_ — _Ⅱ:: Input from an external device (such as a keyboard and a mouse) is received. The interruption message is straight: it will be turned on (power or O restarts, and continues to execute the program interrupted by entering the power-saving vibration 1 丄.) The formula is: while the 'two unified on: the program is when the central processing unit receives = J Then 't first enter-interrupt the feeding sequence ", execute the following:" The interrupted content in the sequence ", and then continue the operation before the power saving mode (4 X order: half of the application), but: this kind of The mode of operation is relatively wavy:: Selectively 'Even if the interrupt content in the interrupt sequence is empty (em t;') and :: The central processor still executes this program, and then executes 2 hours before the interrupt. , Which in turn affects the overall operation of the system [Invention Summary]

16609.ptd 第5頁 550451 五、發明說明(2) 有鐫於上述習知技術之缺點,本發明的主要目的在提 供一種具選擇性之可程式化中央處理單元重新啟動之系統 及其方法。 本發明之另一目的係在提供一種較節省時間且具效率 之可程式化中央處理單元重新啟動之系統及其方法。 為了達成上述之目的,本發明的主要特徵係建立一可 程式化中央處理單元之重新啟動系統,該重新啟動系統係 包括:一省電模式確認單元,用以接收該中央處理單元進 入省電模式狀態時寫入一確定狀態資料,俾確定該中央處 I單元係處於省電模式狀態;一啟動模式選擇單元,用以 接收該中央處理單元進入省電模式時寫入一選擇資料,以 確定欲重新開啟之程序;及一記憶單元,儲存有一主控程 式,該主控程式中包含有一中斷伺服序列執行指令及一直 接啟動執行指令,係接收該選擇資料,以對主控程式中對 應之指令進行讀取,因此,當一中斷訊號輸入至中央處理 單元後,即根據讀取之指令内容進行對應之開啟(ρ 〇 w e r on)步驟。 根據上述系統,本發明的可程式化中央處理單元之重 新啟動方法係包括:當該中央處理單元進入省電模式前, f先,該中央處理單元寫入一選擇資料至該啟動模式選擇 單元中,以確定欲讀取之開啟指令;然後,該中央處理單 元寫入確定狀態資料至該省電模式確認單元中;最後,當 該中央處理單元接收到一中斷訊號後,主控程式即根據選 擇資料對對應之指令進行讀取,並根據讀取之指令内容進16609.ptd Page 5 550451 V. Description of the invention (2) In view of the disadvantages of the above-mentioned conventional technology, the main purpose of the present invention is to provide a system and method for selectively restarting a programmable central processing unit. Another object of the present invention is to provide a system and method for restarting the programmable central processing unit which is more time-saving and efficient. In order to achieve the above object, the main feature of the present invention is to establish a programmable restart system of the central processing unit. The restart system includes: a power saving mode confirmation unit for receiving the central processing unit into the power saving mode. When the state is written, a certain state data is written, and it is determined that the central unit I is in a power saving mode; a startup mode selection unit is used to receive a selection data when the central processing unit enters the power saving mode to determine Re-opening procedure; and a memory unit storing a main control program, the main control program including an interrupted servo sequence execution instruction and a direct start execution instruction, which receives the selection data to respond to the corresponding instruction in the main control program The reading is performed. Therefore, when an interrupt signal is input to the central processing unit, a corresponding opening step is performed according to the read instruction content. According to the above system, the method for restarting the programmable central processing unit of the present invention includes: before the central processing unit enters the power saving mode, first, the central processing unit writes a selection data to the startup mode selection unit. To determine the open command to be read; then, the central processing unit writes the determined status data to the power saving mode confirmation unit; finally, when the central processing unit receives an interrupt signal, the main control program is based on the selection The data reads the corresponding instructions, and updates them according to the contents of the read instructions.

16609.ptd 第6頁 550451 五、發明說明(3) 行對應之開啟(power on)模式。 因此,本發明可程式化中央處理單元之重新啟動系統 及其方法,提供一啟動模式選擇單元供中央處理單元寫入 選擇資料並在記憶單元中提供不同的開啟指令,使使用者 可選擇不同的開啟模式,較習知僅有一種開啟模式更具選 擇性;另外,提供一直接啟動模式,解決習知需先進入中 斷伺服序列再執行進入省電模式前之動作,重新啟動過程 較節省時間,相對整個系統的運作也更有效率。 【發明實施例】 以下即配合所附圖式之第1及第2圖,分別詳細揭露說 明本發明中央處理單元之重新啟動方法及其裝置的較佳實 施例。 第1圖所示係為本發明可程式化中央處理單元之重新 啟動系統之應用架構及内部架構,該系統大致包括有一省 電模式確認單元2、一啟動模式選擇單元3及一記憶單元 4 〇 省電模式確認單元2在本實施例係指一狀態暫存器 (Status resister),其係搞接至該中央處理單元1,以 接收當該中央處理單元1進入電源關閉狀態時寫入一確定 狀態資料;該確定狀態資料係指一 0或1的二進位數值,此 數值代表該中央處理單元1處於省電模式(power down) 狀態或開啟(power on)狀態。 啟動模式選擇單元3在本實施例中亦指一狀態暫存器 (Status register),其係耗接至該中央處理單元1,俾16609.ptd Page 6 550451 V. Description of the invention (3) The corresponding power on mode. Therefore, the restarting system and method of the programmable central processing unit of the present invention provide a starting mode selection unit for the central processing unit to write selection data and provide different opening instructions in the memory unit, so that the user can select different The open mode is more selective than the conventional one. In addition, a direct start mode is provided. To solve the problem, the user needs to enter the interrupt servo sequence before performing the actions before entering the power saving mode. The restart process saves time. It is also more efficient than the entire system. [Inventive Embodiment] The following describes the preferred embodiments of the restart method and the device of the central processing unit according to the present invention in detail with the first and second figures of the drawings. Figure 1 shows the application architecture and internal architecture of the restartable system of the programmable central processing unit of the present invention. The system roughly includes a power saving mode confirmation unit 2, a startup mode selection unit 3, and a memory unit 4. The power saving mode confirmation unit 2 in this embodiment refers to a status register, which is connected to the central processing unit 1 to receive a confirmation when the central processing unit 1 enters a power-off state. Status data; the determined status data refers to a binary value of 0 or 1, which indicates that the central processing unit 1 is in a power down state or a power on state. The startup mode selection unit 3 also refers to a status register in this embodiment, which is connected to the central processing unit 1.

16609.ptd 第7頁 550451 五、發明說明(4) 以接收當.該中央處理單元1進入省電模式狀態時寫入一選 擇資料;該選擇資料亦指一 0或1的二進位數值,用以對應 欲選擇的開啟模式。 記憶單元4在本實施例係指一隨機存取記憶體(RAM ),其儲存有一主控程式40,該主控程式40中含有對應於 該選擇資料之中斷伺服序列執行指令4 1及直接啟動執行指 令4 2,其中,該主控程式4 0係可根據啟動模式選擇單元3 之選擇資料,對對應的執行指令(中斷伺服序列執行指令 4 1或直接啟動執行指令4 2)進行讀取,並根據讀取之指令 ,容進行對應之開啟(power on)步驟。 實際操作時,當中央處理單元1處於省電模式(power down)的狀態前,中央處理單元1先寫入一選擇資料至該啟 動模式選擇單元3中,以確定欲開啟之程序;接著,寫入 一確定狀態資料至該省電模式確認單元2中,以通知中央 處理單元3進入省電模式。當該中央處理單元1接收到外部 (如鍵盤、滑鼠)所傳來之一中斷訊號後,主控程式4 0即 根據選擇資料對對應之執行指令進行讀取,並根據讀取之 指令内容進行對應之開啟(power on)步驟。 請參閱第2圖,係為本發明中央處理單元重新啟動方 法之流程示意圖,在步驟S時,該中央處理單元寫入一選 擇資料至該啟動模式選擇單元中,在本實施例中係指中央 處理單元輸入一選擇資料為〇或1的二進位數值至另一狀態 暫存器中,用以對應欲選擇的開啟模式。 步驟S跨,該中央處理單元寫入確定狀態資料至該省16609.ptd Page 7 550451 V. Description of the invention (4) To receive when the central processing unit 1 enters the power saving mode state, write a selection data; the selection data also refers to a binary value of 0 or 1, use To correspond to the desired opening mode. The memory unit 4 in this embodiment refers to a random access memory (RAM), which stores a main control program 40. The main control program 40 contains an interrupt servo sequence execution instruction 41 corresponding to the selected data and a direct start. Execution instruction 42, wherein the main control program 40 can read the corresponding execution instruction (interrupt servo sequence execution instruction 41 or directly start execution instruction 4 2) according to the selection data of the startup mode selection unit 3. According to the read instruction, the corresponding power on step may be performed. In actual operation, before the central processing unit 1 is in a power down mode, the central processing unit 1 first writes a selection data into the startup mode selection unit 3 to determine a program to be started; then, write Enter a certain status data into the power saving mode confirmation unit 2 to notify the central processing unit 3 to enter the power saving mode. When the central processing unit 1 receives an interrupt signal from an external (such as a keyboard, a mouse), the main control program 40 reads the corresponding execution instruction according to the selected data, and according to the read instruction content Perform the corresponding power on step. Please refer to FIG. 2, which is a schematic flowchart of the restart method of the central processing unit of the present invention. In step S, the central processing unit writes a selection data to the startup mode selection unit. In this embodiment, it refers to the central processing unit. The processing unit inputs a binary value whose selection data is 0 or 1 into another state register to correspond to the opening mode to be selected. Step S, the central processing unit writes the determined status data to the province

16609.ptd 第8頁 55〇45l 五、發明說明(5) !Ξ ϊ確認單元中。在本實施例中係指中央處理單元輪入 、作疋狀態資料為〇或1的二進位數值至狀態暫存器中, 从通知中央處理單元進入省電模式,隨後中央處理單元^ 進入省電模式(p0werdown)。 尸 在步驟S聘,當該中央處理單元接收到由外部輪入的 —中斷訊號後,即控制主控程式對該選擇資料進行讀取, 主控程式即根據選擇資料對對應之指令進行讀取。 ’ 步驟S r對伺服序列執行指令進行讀取,進行中斷词 服序列模式(INT Service queue),即先讀取中斷伺服 序歹]中之中斷内容再進行省電模式(p〇wer down)前之動作 (如執行中的程式)。 、步驟s 5,對直接啟動指令進行讀取,進行直接啟動模 气,即直接進行省電模式釗之動作(如執行中的程式)。 綜而言之,本發明提供了 一種可程式化中央處理單元 之重新啟動系統及其方法,提供一可程式化之啟動系統供 使用者具有不同選擇之啟動(P〇Wer 〇n)方式,可使使用 者根據需要選擇對應之重新啟動模式。而提供一直接啟動 杈式,解決習知需先進入中斷伺服序列 “一_)前之程序,重新啟動過程:二;式 對整個系統的運作也更有效率。 又即名t门 —以上所述僅為本發明之較佳實施例而已,並非用以限 之技術實體或方法,若是與下述之4專義元:16609.ptd Page 8 55〇45l V. Description of Invention (5)! Ξ ϊ Confirmation unit. In this embodiment, it means that the central processing unit rotates and operates as a binary value of status data of 0 or 1 into the status register, and notifies the central processing unit to enter the power saving mode, and then the central processing unit ^ enters the power saving Mode (p0werdown). The corpse is hired in step S. When the central processing unit receives an interruption signal from an external rotation, it controls the main control program to read the selection data, and the main control program reads the corresponding instruction according to the selection data. . 'Step S r reads the servo sequence execution instruction, and executes the interrupt service sequence mode (INT Service queue), that is, the interrupt content in the interrupt servo sequence is read first, and then the power saving mode (p〇wer down) is performed. Actions (such as running programs). Step s5: Read the direct start instruction and perform the direct start mode, that is, directly perform the action of the power saving mode (such as the program under execution). In summary, the present invention provides a restartable system and method for a programmable central processing unit, and provides a programmable start-up system for users with different choices of start-up (P0WerOn) methods. Allows the user to select the corresponding restart mode as required. And provide a direct start fork type, the solution needs to enter the procedure before interrupting the servo sequence "a_), restart process: two; type is more efficient for the operation of the entire system. Also known as t-gate-the above The description is only a preferred embodiment of the present invention, and is not intended to limit the technical entity or method, if it is related to the following 4 special elements:

16609.ptd 第9頁 55045116609.ptd Page 9 550451

16609.ptd 第10頁 550451 圖式簡單說明 【圖式簡.述】 以下茲以較佳實施配合所附圖式進一步詳細說明本發 明之特點及功效: 第1圖係為本發明可程式化中央處理單元之重新啟動 系統一較佳實施例之方塊示意圖; 第2圖係為本發明可程式化中央處理單元之重新啟動 方法一較佳實施例之流程示意圖; 【圖式標號】 1 中央處理單元 2 省電模式確認單元 3 啟動模式選擇單元 4 記憶單元 40 主控程式 41 中斷伺服序列執行指令 4 2 直接啟動執行指令16609.ptd Page 10 550451 Brief description of the drawings [Brief description. The following is a detailed description of the features and effects of the present invention with a better implementation in conjunction with the attached drawings: Figure 1 is the programmable center of the present invention A block diagram of a preferred embodiment of a restart system of a processing unit; FIG. 2 is a flowchart of a preferred embodiment of a restartable method of a programmable central processing unit according to the present invention; [Schematic labeling] 1 Central processing unit 2 Power saving mode confirmation unit 3 Start mode selection unit 4 Memory unit 40 Master program 41 Interrupt servo sequence execution instruction 4 2 Direct start execution instruction

16609.ptd 第11頁16609.ptd Page 11

Claims (1)

550451 六、申請專利範圍 1. 一種可程式化中央處理單元之重新啟動系統,係包 括: 一省電模式確認單元,用以接收該中央處理單元 進入省電模式狀態時寫入一確定狀態資料,俾確定該 中央處理單元係處於電源關閉狀態; 一啟動模式選擇單元,用以接收該中央處理單元 進入電源關閉狀態時寫入一選擇資料,以確定選擇之 開啟程序;及 一記憶單元,儲存有一主控程式,且該主控程式 包括一中斷伺服序列執行指令及一直接啟動執行指 令,俾可根據中央處理單元控制根據該選擇資料以對 對應之指令進行讀取,因此,當一中斷訊號輸入至中 央處理單元後,即根據讀取之指令内容進行對應之開 啟(power on)模式 。 2. 如申請專利範圍第1項所述之可程式化中央處理單元之 重新啟動系統,其中,該省電模式確認單元係為一狀 態暫存器。 3. 如申請專利範圍第1項所述之可程式化中央處理單元之 重新啟動系統,其中,該確定狀態資料係指一二進位 數值。 4 ·如申請專利範圍第1項所述之可程式化中央處理單元之 重新啟動系統,其中,該啟動模式選擇單元係為一狀 態暫存器。 5 ·如申請專利範圍第1項所述之可程式化中央處理單元之550451 6. Scope of patent application 1. A programmable restart system of a central processing unit, comprising: a power saving mode confirmation unit for receiving a certain status data when the central processing unit enters the power saving mode state,俾 Make sure that the central processing unit is in a power-off state; a start-up mode selection unit for receiving a selection data written when the central processing unit enters a power-off state to determine a selected opening procedure; and a memory unit storing a A main control program, and the main control program includes an interrupted servo sequence execution instruction and a direct start execution instruction, which can be controlled according to the central processing unit to read the corresponding instruction according to the selected data. Therefore, when an interrupt signal is input After reaching the central processing unit, the corresponding power on mode is performed according to the read instruction content. 2. The restartable system of the programmable central processing unit as described in item 1 of the scope of the patent application, wherein the power saving mode confirmation unit is a status register. 3. The restartable system of the programmable central processing unit as described in item 1 of the scope of patent application, wherein the determined status data refers to a binary value. 4 · The restartable system of the programmable central processing unit as described in item 1 of the scope of patent application, wherein the startup mode selection unit is a status register. 5 · Programmable central processing unit as described in item 1 of the scope of patent application 16609.ptd 第12頁 550451 六、申請專利範圍 重新啟動系統,其中,該記憶單元係為一隨機存取記 憶體(RAM )。 6如申請專利範圍第1項所述之可程式化中央處理單元之 重新啟動系統,其中,該開啟模式係為中斷伺服序列 模式(INT Service queue)及直接開啟模式其中之 —— 〇 7. —種可程式化中央處理單元之重新啟動方法,係包括: 中央處理單元寫入一選擇資料至該啟動模式選擇 單元中,以確定欲讀取之開啟指令; 該中央處理單元寫入確定狀態資料至該省電模式 確認單元中,以進入省電模式狀態; 中央處理單元接收到一中斷訊號,即控制主控程 式根據選擇資料對對應之指令進行讀取,並根據讀取 之指令内容進行對應之開啟(power on)模式。 8. 如申請專利範圍第1項所述之可程式化中央處理單元之 重新啟動方法,其中,該開啟模式係為中斷伺服序列 模式(INT Service queue)及直接開啟模式其中之16609.ptd Page 12 550451 6. Scope of Patent Application Restart the system, where the memory unit is a random access memory (RAM). 6 The restartable system of the programmable central processing unit as described in item 1 of the scope of patent application, wherein the open mode is one of an interrupt servo sequence mode (INT Service queue) and a direct open mode-〇7. — A method for restarting a programmable central processing unit includes: the central processing unit writes a selection data to the startup mode selection unit to determine an opening instruction to be read; the central processing unit writes determination status data to The power-saving mode confirmation unit enters the power-saving mode state; the central processing unit receives an interrupt signal, that is, the control main program reads the corresponding command according to the selected data, and responds according to the content of the read command. Power on mode. 8. The restart method of the programmable central processing unit as described in item 1 of the scope of patent application, wherein the open mode is one of an interrupt service sequence mode (INT Service queue) and a direct open mode 16609.ptd 第13頁16609.ptd Page 13
TW91111784A 2002-05-31 2002-05-31 Programmable power-on system and method for central processing unit TW550451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91111784A TW550451B (en) 2002-05-31 2002-05-31 Programmable power-on system and method for central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91111784A TW550451B (en) 2002-05-31 2002-05-31 Programmable power-on system and method for central processing unit

Publications (1)

Publication Number Publication Date
TW550451B true TW550451B (en) 2003-09-01

Family

ID=31713533

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91111784A TW550451B (en) 2002-05-31 2002-05-31 Programmable power-on system and method for central processing unit

Country Status (1)

Country Link
TW (1) TW550451B (en)

Similar Documents

Publication Publication Date Title
JP3799130B2 (en) Method for switching power saving mode of computer having power saving function while using network
TWI528284B (en) Method for switching operating system and electronic apparatus using thereof
TWI528162B (en) Computer system and operating system switching method thereof
TWI407300B (en) Method and controller for power management
US20070234093A1 (en) Information processing device, power supply control method and storage medium
JP2006120114A (en) Computer which has multifunctional power button and related method
US20020038328A1 (en) Information processing system and resume processing method used in the system
JP2005316855A (en) Information processor, starting method thereof, and starting program thereof
US20100064158A1 (en) Method and controller for power management
JP2008090435A (en) Information processor and control method therefor
JP2010262621A (en) Computer system with power supply control, and power supply control method
TWI352281B (en) Method for judging a rebooting action of a compute
CN101281416A (en) Method for ensuring system closedown completion
JP2003085041A (en) Disc cache system
TW550451B (en) Programmable power-on system and method for central processing unit
JP2010097427A (en) Processing apparatus, processing method and computer program
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
JP2667411B2 (en) Personal computer
TWI522924B (en) Electronic device and operating system switching method thereof
JP2011013836A (en) Memory arrangement management device and microprocessor
JP2010079572A (en) Information processor, external memory and control method
WO2007049423A1 (en) Computer system and method for activating basic program therein
JPH10333790A (en) Information processor equipped with power-saving function and power saving releasing method for the information processor
JP2010079579A (en) Resume method and information processing apparatus
JPH10254570A (en) Information processor and starting method therefor

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MK4A Expiration of patent term of an invention patent