CN104077156A - Restarting system for programmable central processing unit and method thereof - Google Patents
Restarting system for programmable central processing unit and method thereof Download PDFInfo
- Publication number
- CN104077156A CN104077156A CN201310105664.XA CN201310105664A CN104077156A CN 104077156 A CN104077156 A CN 104077156A CN 201310105664 A CN201310105664 A CN 201310105664A CN 104077156 A CN104077156 A CN 104077156A
- Authority
- CN
- China
- Prior art keywords
- central processing
- processing unit
- cpu
- saving mode
- mode
- 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.)
- Granted
Links
Landscapes
- Power Sources (AREA)
Abstract
本发明有关于一种可程序化中央处理单元的重新启动系统及其方法,此系统包括有一省电模式确认单元、一启动模式选择单元及一储存有一主控程序的存储单元,且该主控程序中包含有一中断服务序列执行指令及一直接启动执行指令,因此,当中央处理单元在进入省电模式前,先写入一选择数据至该启动模式选择单元中,再写入确定状态数据至该省电模式确认单元中,以便进入省电模式状态;当该中央处理单元接收到一中断信号后,主控程序即根据选择数据对对应的指令进行读取,并根据读取的指令内容进行对应的开启模式,较常见的更具选择性及提高整体系统的运行效率。
The present invention relates to a restart system and method for a programmable central processing unit. The system includes a power-saving mode confirmation unit, a startup mode selection unit and a storage unit storing a master control program, and the master control The program includes an interrupt service sequence execution instruction and a direct startup execution instruction. Therefore, before the central processing unit enters the power saving mode, it first writes a selection data into the startup mode selection unit, and then writes the determination status data into the In the power-saving mode confirmation unit, so as to enter the power-saving mode state; when the central processing unit receives an interrupt signal, the main control program reads the corresponding instruction according to the selected data, and proceeds according to the read instruction content The corresponding opening mode is more selective than the common one and improves the operating efficiency of the overall system.
Description
技术领域technical field
本发明有关于一种电子信号处理技术,特别是有关于一种可程序化中央处理单元重新启动的系统及其方法,提供系统在进入省电模式后重新启动时,有启动即进入中断服务序列的启动模式及跳过中断服务序列的直接启动模式,以提供使用者多种选择。The present invention relates to an electronic signal processing technology, in particular to a system and method for restarting a programmable central processing unit, which provides that when the system restarts after entering the power-saving mode, it enters the interrupt service sequence immediately after starting The startup mode and the direct startup mode that skips the interrupt service sequence provide users with multiple choices.
背景技术Background technique
中央处理单元(CPU)是一个电子电路的集成电路,也是电脑内进行处理、控制和储存的电路。电脑中的各种运算、输入输出与连接存储器都是由中央处理单元执行与控制。The central processing unit (CPU) is an integrated circuit of electronic circuits, which is also the circuit in the computer for processing, control and storage. Various calculations, input and output, and connection memory in the computer are executed and controlled by the central processing unit.
而若电脑在待机(standby)状态时,为求省电,中央处理单元亦会处于省电模式(powerdown mode),直到接收到外部(例如键盘、鼠标)所输入的中断信号后,才会开启(power on)再重新启动,并由进入省电模式前中断的程序继续执行下去。And if the computer is in the standby (standby) state, in order to save power, the central processing unit will also be in the power saving mode (powerdown mode), and will not be turned on until it receives an interrupt signal input from the outside (such as a keyboard, mouse). (power on) and then restart, and continue the execution of the interrupted program before entering the power saving mode.
然而,传统的开启程序为当中央处理单元接收到中断信号后,会先进入一中断服务序列中,执行该中断服务序列中的中断内容,然后再继续省电模式前的动作(如执行到一半的应用程序),然而,此种运作方式较浪费时间且不具选择性,即使中断序列中的中断内容是空(empty)的,中央处理器仍需执行此一程序,再执行中断前的动作,造成时间的耗费,进而影响系统整体运作的效率。However, the traditional opening procedure is that after the central processing unit receives an interrupt signal, it will first enter an interrupt service sequence, execute the interrupt content in the interrupt service sequence, and then continue the action before the power saving mode (such as executing halfway application program), however, this method of operation is time-consuming and non-selective. Even if the interrupt content in the interrupt sequence is empty (empty), the CPU still needs to execute this program, and then perform the actions before the interrupt. It causes time consumption, which in turn affects the efficiency of the overall operation of the system.
发明内容Contents of the invention
有鉴于上述常见技术的缺点,本发明的主要目的在提供一种具选择性的可程序化中央处理单元重新启动的系统及其方法。In view of the disadvantages of the above conventional technologies, 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 a programmable central processing unit that saves time and is more efficient.
为了达成上述目的,本发明的主要特征建立一可程序化中央处理单元的重新启动系统,该重新启动系统包括:一省电模式确认单元,用以接收该中央处理单元进入省电模式状态时写入一确定状态数据,以确定该中央处理单元处于省电模式状态;一启动模式选择单元,用以接收该中央处理单元进入省电模式时写入一选择数据,以确定欲重新开启的程序;及一存储单元,储存有一主控程序,该主控程序中包含有一中断服务序列执行指令及一直接启动执行指令,接收该选择数据,以对主控程序中对应的指令进行读取,因此,当一中断信号输入至中央处理单元后,即根据读取的指令内容进行对应的开启步骤。In order to achieve the above object, the main feature of the present invention is to establish a restart system of a programmable central processing unit, which restart system includes: a power saving mode confirmation unit, which is used to receive the write when the central processing unit enters the power saving mode state Entering a certain state data to determine that the central processing unit is in the state of power saving mode; a startup mode selection unit is used to receive and write a selection data when the central processing unit enters the power saving mode, so as to determine the program to be restarted; and a storage unit storing a main control program, which includes an interrupt service sequence execution command and a direct start execution command, receiving the selection data to read the corresponding command in the main control program, therefore, When an interrupt signal is input to the central processing unit, a corresponding opening step is performed according to the content of the read instruction.
根据上述系统,本发明的可程序化中央处理单元的重新启动方法包括:当该中央处理单元进入省电模式前,首先,该中央处理单元写入一选择数据至该启动模式选择单元中,以确定欲读取的开启指令;然后,该中央处理单元写入确定状态数据至该省电模式确认单元中;最后,当该中央处理单元接收到一中断信号后,主控程序即根据选择数据对对应的指令进行读取,并根据读取的指令内容进行对应的开启模式。According to the above system, the restart method of 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 into the startup mode selection unit to Determine the opening command to be read; then, the central processing unit writes the determined status data into the power-saving mode confirmation unit; finally, when the central processing unit receives an interrupt signal, the main control program is based on the selected data. The corresponding instruction is read, and the corresponding opening mode is performed according to the content of the read instruction.
因此,本发明可程序化中央处理单元的重新启动系统及其方法,提供一启动模式选择单元供中央处理单元写入选择数据并在存储单元中提供不同的开启指令,使使用者可选择不同的开启模式,较常见仅有一种开启模式更具选择性;另外,提供一直接启动模式,解决常见需先进入中断服务序列再执行进入省电模式前的动作,重新启动过程较节省时间,相对整个系统的运作也更有效率。Therefore, the restart system and method of the programmable central processing unit of the present invention provide a start mode selection unit for the central processing unit to write selection data and provide different start commands in the storage unit, so that the user can choose different The start mode is more selective than the usual only one start mode; in addition, a direct start mode is provided to solve the common problem of first entering the interrupt service sequence and then performing the actions before entering the power saving mode. The restart process saves time, compared to the entire The system also operates more efficiently.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,并不构成对本发明的限定。在附图中:The drawings described here are used to provide further understanding of the present invention, constitute a part of the application, and do not limit the present invention. In the attached picture:
图1为本发明实施例中可程序化中央处理单元的重新启动系统一较佳实施例的方块示意图;FIG. 1 is a schematic block diagram of a preferred embodiment of a restart system of a programmable central processing unit in an embodiment of the present invention;
图2为本发明实施例中可程序化中央处理单元的重新启动方法一较佳实施例的流程示意图;FIG. 2 is a schematic flow chart of a preferred embodiment of a method for restarting a programmable central processing unit in an embodiment of the present invention;
主要元件符号说明Description of main component symbols
1 中央处理单元1 Central processing unit
2 省电模式确认单元2 Power saving mode confirmation unit
3 启动模式选择单元3 Start mode selection unit
4 存储单元4 storage unit
40 主控程序40 Main control program
41 中断服务序列执行指令41 Interrupt service sequence execution instruction
42 直接启动执行指令42 Directly start the execution command
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例作进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.
以下即配合所附图中图1及图2,分别详细揭露说明本发明中央处理单元的重新启动方法及其装置的较佳实施例。In the following, with reference to Fig. 1 and Fig. 2 in the accompanying drawings, the preferred embodiments of the restart method and device of the central processing unit of the present invention are respectively disclosed in detail.
图1所示为本发明可程序化中央处理单元的重新启动系统的应用架构及内部架构,该系统大致包括有一省电模式确认单元2、一启动模式选择单元3及一存储单元4。FIG. 1 shows the application architecture and internal architecture of the restart 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 storage unit 4 .
省电模式确认单元2在本实施例是指一状态寄存器(Status resister),其耦接至该中央处理单元1,以接收当该中央处理单元1进入电源关闭状态时写入一确定状态数据;该确定状态数据指一0或1的二进位数值,此数值代表该中央处理单元1处于省电模式(powerdown)状态或开启(power on)状态。The power-saving mode confirmation unit 2 refers to a status register (Status register) in this embodiment, which is coupled to the central processing unit 1 to receive a certain status data written when the central processing unit 1 enters the power-off state; The determined state data refers to a binary value of 0 or 1, which represents that the central processing unit 1 is in a power-down state or in a power-on state.
启动模式选择单元3在本实施例中亦指一状态寄存器(Status resister),其耦接至该中央处理单元1,以接收当该中央处理单元1进入省电模式状态时写入一选择数据;该选择数据亦指一0或1的二进位数值,用以对应欲选择的开启模式。The startup mode selection unit 3 also refers to a status register (Status register) in this embodiment, which is coupled to the central processing unit 1 to receive a selection data written when the central processing unit 1 enters the power saving mode state; The selection data also refers to a binary value of 0 or 1, which is used to correspond to the opening mode to be selected.
存储单元4在本实施例指一随机存储器(RAM),其储存有一主控程序40,该主控程序40中含有对应于该选择数据的中断服务序列执行指令41及直接启动执行指令42,其中,该主控程序40可根据启动模式选择单元3的选择数据,对对应的执行指令(中断服务序列执行指令41或直接启动执行指令42)进行读取,并根据读取的指令内容进行对应的开启(power on)步骤。The storage unit 4 refers to a random access memory (RAM) in this embodiment, which stores a main control program 40, which contains an interrupt service sequence execution instruction 41 and a direct start execution instruction 42 corresponding to the selected data, wherein , the main control program 40 can read the corresponding execution instruction (interrupt service sequence execution instruction 41 or direct start execution instruction 42) according to the selection data of the startup mode selection unit 3, and perform corresponding execution according to the content of the read instruction Turn on (power on) steps.
实际操作时,当中央处理单元1处于省电模式(power down)的状态前,中央处理单元1先写入一选择数据至该启动模式选择单元3中,以确定欲开启的程序;接着,写入一确定状态数据至该省电模式确认单元2中,以通知中央处理单元3进入省电模式。当该中央处理单元1接收到外部(如键盘、鼠标)所传来的一中断信号后,主控程序40即根据选择数据对对应的执行指令进行读取,并根据读取的指令内容进行对应的开启(power on)步骤。During actual operation, before the central processing unit 1 is in the state of the power saving mode (power down), the central processing unit 1 first writes a selection data into the startup mode selection unit 3 to determine the program to be opened; then, write Enter a certain status data into the power saving mode confirming 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 the outside (such as keyboard, mouse), the main control program 40 reads the corresponding execution instruction according to the selected data, and performs corresponding execution according to the read instruction content. The open (power on) steps.
请参阅第2图,为本发明中央处理单元重新启动方法的流程示意图,在步骤S1时,该中央处理单元写入一选择数据至该启动模式选择单元中,在本实施例中指中央处理单元输入一选择数据为0或1的二进位数值至另一状态寄存器中,用以对应欲选择的开启模式。Please refer to Figure 2, which is a schematic flow chart of the restart method of the central processing unit of the present invention. A selection data is a binary value of 0 or 1 to another status register, which is used to correspond to the opening mode to be selected.
步骤S2时,该中央处理单元写入确定状态数据至该省电模式确认单元中。在本实施例中指中央处理单元输入一确定状态数据为0或1的二进位数值至状态寄存器中,用以通知中央处理单元进入省电模式,随后中央处理单元即进入省电模式(power down)。In step S2, the central processing unit writes the determined state data into the power saving mode confirming unit. In this embodiment, it means that the central processing unit inputs a binary value whose state data is 0 or 1 to the state register to notify the central processing unit to enter the power saving mode, and then the central processing unit enters the power saving mode (power down) .
在步骤S3时,当该中央处理单元接收到由外部输入的一中断信号后,即控制主控程序对该选择数据进行读取,主控程序即根据选择数据对对应的指令进行读取。In step S3, when the central processing unit receives an interrupt signal input from the outside, 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.
步骤S4,对服务序列执行指令进行续取,进行中断服务序列模式(INT Service queue),即先读取中断服务序列中的中断内容再进行省电模式(power down)前的动作(如执行中的程序)。Step S4, continue fetching the execution command of the service sequence, and perform the interrupt service sequence mode (INT Service queue), that is, first read the interrupt content in the interrupt service sequence and then perform the action before the power saving mode (power down) (such as executing program of).
步骤S5,对直接启动指令进行读取,进行直接启动模式;即直接进行省电模式前的动作(如执行中的程序)。Step S5, read the direct start instruction, and perform the direct start mode; that is, directly perform the action before the power saving mode (such as the program in execution).
综上所述,本发明提供了一种可程序化中央处理单元的重新启动系统及其方法,提供一可程序化的启动系统供使用者具有不同选择的启动(power on)方式,可使使用者根据需要选择对应的重新启动模式。而提供一直接启动模式,解决常见需先进入中断服务序列再执行省电模式(power down)前的程序,重新启动过程较节省时间,相对整个系统的运作也更有效率。In summary, the present invention provides a programmable central processing unit restart system and its method, and provides a programmable startup system for users to have different options for starting (power on) Or select the corresponding restart mode as needed. And provide a direct boot mode to solve the common need to enter the interrupt service sequence and then execute the program before the power saving mode (power down). The restart process saves time and is more efficient than the operation of the entire system.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310105664.XA CN104077156B (en) | 2013-03-28 | 2013-03-28 | The restarting systems and its method of programmable CPU |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310105664.XA CN104077156B (en) | 2013-03-28 | 2013-03-28 | The restarting systems and its method of programmable CPU |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104077156A true CN104077156A (en) | 2014-10-01 |
| CN104077156B CN104077156B (en) | 2017-08-25 |
Family
ID=51598427
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310105664.XA Active CN104077156B (en) | 2013-03-28 | 2013-03-28 | The restarting systems and its method of programmable CPU |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104077156B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110096124A (en) * | 2018-01-31 | 2019-08-06 | 北京视联动力国际信息技术有限公司 | A kind of configuration method and device of multiple nucleus system |
| CN112350888A (en) * | 2020-10-23 | 2021-02-09 | 英业达科技有限公司 | Starting state detection system and method thereof |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1164460A1 (en) * | 2000-01-13 | 2001-12-19 | Access Co., Ltd. | Computer system and power saving control method therefor |
| CN101131605A (en) * | 2006-08-25 | 2008-02-27 | 佛山市顺德区顺达电脑厂有限公司 | Internal memory sleep mode wake-up method for computer system |
| CN101893932A (en) * | 2010-06-22 | 2010-11-24 | 中科方德软件有限公司 | Power management device based on linux system and management method thereof |
-
2013
- 2013-03-28 CN CN201310105664.XA patent/CN104077156B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1164460A1 (en) * | 2000-01-13 | 2001-12-19 | Access Co., Ltd. | Computer system and power saving control method therefor |
| CN101131605A (en) * | 2006-08-25 | 2008-02-27 | 佛山市顺德区顺达电脑厂有限公司 | Internal memory sleep mode wake-up method for computer system |
| CN101893932A (en) * | 2010-06-22 | 2010-11-24 | 中科方德软件有限公司 | Power management device based on linux system and management method thereof |
Non-Patent Citations (1)
| Title |
|---|
| JDH99: "《http://blog.csdn.net/jdh99/article/details/7369844》", 19 March 2012 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110096124A (en) * | 2018-01-31 | 2019-08-06 | 北京视联动力国际信息技术有限公司 | A kind of configuration method and device of multiple nucleus system |
| CN112350888A (en) * | 2020-10-23 | 2021-02-09 | 英业达科技有限公司 | Starting state detection system and method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104077156B (en) | 2017-08-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109885343B (en) | Controller low-power-consumption starting method and device, computer equipment and storage medium | |
| CN102122250B (en) | Computer system and operating system switching method thereof | |
| CN109739563B (en) | Terminal control method, device, system and storage medium | |
| TWI567541B (en) | Implementing a power off state in a computing device | |
| TW201011524A (en) | Method and controller for power management | |
| US20140013140A1 (en) | Information processing apparatus and computer program product | |
| CN110058672B (en) | Method for managing power domains in an integrated circuit | |
| CN102957806A (en) | Method and device for restarting mobile phone | |
| TWI534707B (en) | Computer system, shutdown and boot method thereof | |
| CN102736928B (en) | Quickly wake up computer system method and computer system | |
| CN107168798A (en) | A kind of device sleeps method and device, device sleeps awakening method and device | |
| CN112162710A (en) | Method and device for reducing chip power consumption, computer equipment and storage medium | |
| US7617407B2 (en) | Method and system for power consumption management, and corresponding computer program product | |
| CN103197964A (en) | Method for exchanging information among multiple operating systems of electronic device | |
| CN104077156B (en) | The restarting systems and its method of programmable CPU | |
| CN113986001B (en) | Chip and control method | |
| CN103699412B (en) | The quick start method and system of terminal | |
| CN112579005B (en) | Method, device, computer equipment and storage medium for reducing average power consumption of SSD | |
| CN101872233B (en) | Automatic switch machine scheduling control method and system | |
| CN119025170A (en) | Multi-core operating system startup method, device, equipment, medium and product | |
| JP2010097427A (en) | Processing apparatus, processing method and computer program | |
| CN117812682A (en) | Method for reducing power consumption of Bluetooth chip and low-power consumption Bluetooth chip | |
| CN112148365B (en) | Control module, method and microcontroller chip | |
| TW201312465A (en) | System capable of booting through a universal serial bus device and method thereof | |
| CN115061561A (en) | Power saving method, device and system for equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20210201 Address after: 102300 room a-7982, building 3, 20 Yong'an Road, Shilong Economic Development Zone, Mentougou District, Beijing (cluster registration) Patentee after: Datang state investment information technology Co.,Ltd. Address before: 13z, block a, Haoming Fortune Plaza, 7060 Shennan Avenue, Futian District, Shenzhen, Guangdong 518040 Patentee before: SHENZHEN XINLI ELECTRONIC TECHNOLOGY Co.,Ltd. |
|
| PP01 | Preservation of patent right | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20250806 Granted publication date: 20170825 |