CN104077156B - The restarting systems and its method of programmable CPU - Google Patents
The restarting systems and its method of programmable CPU Download PDFInfo
- Publication number
- CN104077156B CN104077156B CN201310105664.XA CN201310105664A CN104077156B CN 104077156 B CN104077156 B CN 104077156B CN 201310105664 A CN201310105664 A CN 201310105664A CN 104077156 B CN104077156 B CN 104077156B
- Authority
- CN
- China
- Prior art keywords
- cpu
- battery saving
- saving mode
- mode
- programmable
- 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.)
- Active
Links
Landscapes
- Power Sources (AREA)
Abstract
The present invention is related to a kind of restarting systems and its method of programmable CPU, this system includes a battery saving mode confirmation unit, a start-up mode selecting unit and a memory cell for storing a primary control program, and include an interruption service sequences execute instruction in the primary control program and one directly initiate execute instruction, therefore, when CPU is before battery saving mode is entered, first write-in one selects data into the start-up mode selecting unit, determination status data is write again into the battery saving mode confirmation unit, to enter battery saving mode state;After the CPU receives an interrupt signal, primary control program is that corresponding instruction is read out according to selection data, and carries out corresponding open mode, more typical operational efficiency that is more selective and improving total system according to the command content of reading.
Description
Technical field
The present invention is related to a kind of electronic signal process technology, in particular to a kind of programmable CPU
The system and method for restarting there is provided system enter battery saving mode after restart when, have startup i.e. enter interrupt take
The start-up mode for sequence of being engaged in and skip and interrupt service sequences and directly initiate pattern, to provide user multiple choices.
Background technology
CPU (CPU) is the integrated circuit of an electronic circuit, is also to be handled, controlled and stored up in computer
The circuit deposited.Various computings, input and output and connection memory in computer are all to be performed by CPU with controlling.
And if computer, in standby (standby) state, to ask power saving, CPU can also be in battery saving mode
(power down mode), until receiving after the interrupt signal that outside (such as keyboard, mouse) is inputted, can just be opened
(power on) restarts again, and is continued executing with down by entering the program interrupted before battery saving mode.
However, traditional opening program is after CPU receives interrupt signal, interruption clothes can be introduced into
In sequence of being engaged in, the interruption content in the interruption service sequences is performed, the action before battery saving mode is then further continued for and (such as goes to one
Half application program), however, such a function mode is relatively lost time and does not have a selectivity, even if in the interruption in interrupt sequence
Appearance is empty (empty), and central processing unit still needs to perform this program, then performs the action before interrupting, and causes the consuming of time,
And then influence the efficiency of system overall operation.
The content of the invention
In view of the shortcoming of above-mentioned common technique, the main object of the present invention is providing a kind of selective programmable
The system and method for CPU restarting.
Another object of the present invention is providing a kind of programmable CPU weight relatively saved the time and have efficiency
The system and method newly started.
In order to reach above-mentioned purpose, principal character of the invention sets up the restarting of a programmable CPU
System, the restarting systems include:One battery saving mode confirmation unit, enters battery saving mode to receive the CPU
Write-in one determines status data during state, to determine that the CPU is in battery saving mode state;One start-up mode is selected
Unit, selects the binary digit that data are 0 or 1 to receive CPU input one, opening for selection is intended to correspondence
Open instruction;And a memory cell, a primary control program is stored, an interruption service sequences execute instruction is included in the primary control program
And one directly initiate execute instruction, the selection data are received, to be read out to corresponding instruction in primary control program, therefore, when
One interrupt signal is inputted to CPU, i.e., carry out corresponding unlatching step according to the command content of reading;
Wherein, interruption service execution instruction refers specifically to CPU and is introduced into interruption service sequence from holding state
Row, then perform the program before battery saving mode;This, which directly initiates execute instruction and refers specifically to CPU, is directly entered power saving mould
Action before formula.
According to said system, the method for restarting of programmable CPU of the invention includes:When the center
Processing unit enters before battery saving mode, first, and the binary digit that the selection data of CPU input one are 0 or 1 is extremely
Start-up mode selecting unit, the open command of selection is intended to correspondence;Then, CPU write-in determines status data extremely
In the battery saving mode confirmation unit;Finally, after the CPU receives an interrupt signal, primary control program is i.e. according to choosing
Select data to be read out corresponding instruction, and corresponding open mode is carried out according to the command content of reading;
Wherein, the open command includes interrupting service execution instruction and directly initiates execute instruction, the interruption service execution
Instruction refers specifically to CPU and is introduced into interruption service sequences from holding state, then performs the program before battery saving mode;Should
Directly initiate execute instruction and refer specifically to CPU and be directly entered the action before battery saving mode.
Therefore, there is provided a start-up mode for the restarting systems and its method of programmable CPU of the present invention
Selecting unit is for CPU write-in selection data and provides different open commands in the memory unit, makes user can
The different open mode of selection, more typically only a kind of open mode is more selective;Additionally, it is provided a direct start-up mode,
Solve the common interruption service sequences that need to be introduced into and perform the action into before battery saving mode again, when restarting procedure is relatively saved
Between, with respect to whole system running also more efficiently.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, not
Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the side of the preferred embodiment of restarting systems one of programmable CPU in the embodiment of the present invention
Block schematic diagram;
Fig. 2 is the stream of the preferred embodiment of method for restarting one of programmable CPU in the embodiment of the present invention
Journey schematic diagram;
Main element symbol description
1 CPU
2 battery saving mode confirmation units
3 start-up mode selecting units
4 memory cell
40 primary control programs
41 interrupt service sequences execute instruction
42 directly initiate execute instruction
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with the accompanying drawings to present invention implementation
Example is described in further detail.Here, the schematic description and description of the present invention is used to explain the present invention, but it is not intended as
Limitation of the invention.
Coordinate Fig. 1 and Fig. 2 in institute's accompanying drawing below, disclose in detail illustrate opening again for CPU of the present invention respectively
The preferred embodiment of dynamic method and its device.
Fig. 1 show the application architecture and inner bay of the restarting systems of programmable CPU of the present invention
Structure, the system has generally comprised a battery saving mode confirmation unit 2, a start-up mode selecting unit 3 and a memory cell 4.
Battery saving mode confirmation unit 2 refers to a status register (Status resister) in the present embodiment, and it is coupled to
The CPU 1, status data is determined to receive the write-in one when the CPU 1 enters power down state;
The determination status data refers to one 0 or 1 binary digit, and this numerical value represents the CPU 1 and is in battery saving mode
(power down) state opens (power on) state.
Start-up mode selecting unit 3 also refers to a status register (Status resister) in the present embodiment, and it is coupled
To the CPU 1, data are selected to receive the write-in one when the CPU 1 enters battery saving mode state;Should
Selection data also refer to one 0 or 1 binary digit, and the open mode of selection is intended to correspondence.
Memory cell 4 refers to a random access memory (RAM) in the present embodiment, and it stores a primary control program 40, the master control journey
Contain in sequence 40 and correspond to the interruption service sequences execute instruction 41 of the selection data and directly initiate execute instruction 42, wherein,
The primary control program 40 (can interrupt service sequences to hold according to the selection data of start-up mode selecting unit 3 to corresponding execute instruction
Row instruction 41 directly initiates execute instruction 42) it is read out, and corresponding open is carried out according to the command content of reading
(power on) step.
During practical operation, when CPU 1 is in before the state of battery saving mode (power down), center processing is single
The first write-in one of member 1 selects data into the start-up mode selecting unit 3, to determine the program to be opened;Then, write-in one is determined
Status data is into the battery saving mode confirmation unit 2, to notify CPU 3 to enter battery saving mode.When center processing
Unit 1 is received after the interrupt signal that outside (such as keyboard, mouse) is transmitted, and primary control program 40 is i.e. according to selection data to right
The execute instruction answered is read out, and carries out corresponding unlatching (power on) step according to the command content of reading.
The 2nd figure is referred to, is the schematic flow sheet of CPU method for restarting of the present invention, in step S1,
CPU write-in one selects data into the start-up mode selecting unit, refers to CPU in the present embodiment
The binary digit that the selection data of input one are 0 or 1 is intended to the open mode of selection to correspondence into another status register.
During step S2, CPU write-in determines status data into the battery saving mode confirmation unit.In this reality
Apply middle finger CPU input one determine status data for 0 or 1 binary digit into status register, to logical
Know that CPU enters battery saving mode, subsequent CPU enters battery saving mode (power down).
In step S3, after the CPU receives the interrupt signal by outside input, that is, master control is controlled
Program is read out to the selection data, and primary control program is read out according to selection data to corresponding instruction.
Step S4, to service sequences execute instruction continue taking, carries out interrupting service sequences pattern (INT Service
Queue), i.e., first read the interruption content interrupted in service sequences and carry out the action before battery saving mode (power down) again (such as
Executory program).
Step S5, is read out to directly initiating instruction, and progress directly initiates pattern;Directly carry out before battery saving mode
Act (such as executory program).
In summary, the invention provides a kind of restarting systems and its method of programmable CPU,
There is provided the activation system of a programmable has startup (power on) mode of different choice for user, can make user's root
According to needing to select corresponding restarting pattern.And a direct start-up mode is provided, solve common need to be introduced into and interrupt service sequence
Row perform the program before battery saving mode (power down) again, and restarting procedure relatively saves the time, with respect to the fortune of whole system
Make also more efficiently.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included
Within protection scope of the present invention.
Claims (8)
1. a kind of restarting systems of programmable CPU, it is characterised in that including:One battery saving mode confirmation form
Member, to receive the CPU into the determination of write-in one status data during battery saving mode state, to determine the centre
Manage unit and be in power down state;One start-up mode selecting unit, number is selected to receive CPU input one
According to the binary digit for 0 or 1, the open command of selection is intended to correspondence;And a memory cell, a primary control program is stored, and
The primary control program directly initiates execute instruction including an interruption service sequences execute instruction and one, with according to CPU control
Make according to the selection data to be read out to corresponding instruction, therefore, after an interrupt signal is inputted to CPU,
Corresponding open mode is carried out according to the command content of reading;
Wherein, interruption service execution instruction refers specifically to CPU and is introduced into interruption service sequences from holding state, then
Perform the program before battery saving mode;This, which directly initiates execute instruction and refers specifically to CPU, is directly entered before battery saving mode
Action.
2. the restarting systems of programmable CPU as claimed in claim 1, it is characterised in that the power saving mould
Formula confirmation unit is a status register.
3. the restarting systems of programmable CPU as claimed in claim 1, it is characterised in that the determination shape
State data are a binary digit.
4. the restarting systems of programmable CPU as claimed in claim 1, it is characterised in that the startup mould
Formula selecting unit is a status register.
5. the restarting systems of programmable CPU as claimed in claim 1, it is characterised in that the storage list
Member is a random access memory.
6. the restarting systems of programmable CPU as claimed in claim 1, it is characterised in that the unlatching mould
Formula is interruption one of service sequences pattern and direct open mode.
7. a kind of method for restarting of programmable CPU, it is characterised in that including:CPU is inputted
The binary digit that one selection data are 0 or 1 is intended to the open command of selection with correspondence to start-up mode selecting unit;The center
Processing unit write-in determines status data into battery saving mode confirmation unit, to enter battery saving mode state;CPU
An interrupt signal is received, that is, controls primary control program to be read out according to selection data to corresponding instruction, and according to reading
Command content carries out corresponding open mode;
Wherein, the open command includes interrupting service execution instruction and directly initiates execute instruction, interruption service execution instruction
Refer specifically to CPU and be introduced into interruption service sequences from holding state, then perform the program before battery saving mode;This is direct
Startup execute instruction refers specifically to CPU and is directly entered the action before battery saving mode.
8. the method for restarting of programmable CPU as claimed in claim 7, it is characterised in that the unlatching mould
Formula is interruption one of service sequences pattern and direct open mode.
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 CN104077156A (en) | 2014-10-01 |
CN104077156B true 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) |
Families Citing this family (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 |
CN112350888B (en) * | 2020-10-23 | 2022-10-11 | 英业达科技有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN104077156A (en) | 2014-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102650947B (en) | Continuous increment over-the-air upgrade method of Android handheld equipment | |
CN104750510B (en) | A kind of chip starting method and multi-core processor chip | |
CN108763099A (en) | Startup method, apparatus, electronic equipment and the storage medium of system | |
CN109885343A (en) | A kind of controller low-power consumption starting method, apparatus, computer equipment and storage medium | |
US9043806B2 (en) | Information processing device and task switching method | |
CN102693136A (en) | Quick starting method and system for computer and starting system of computer | |
CN104156226B (en) | Mix hang-up or the closedown method of memory device | |
JP2018515822A5 (en) | ||
CN110851246A (en) | Batch task processing method, device and system and storage medium | |
CN107491346A (en) | A kind of task processing method of application, apparatus and system | |
CN108139903B (en) | Implement load acquisition/storage with load/store operations according to DMB operation to release order | |
KR20120063828A (en) | Method for reducing power consumptiom to multi-port memory device of memory link architecture | |
CN108701026A (en) | Method and apparatus for the managing process under memory constraints | |
CN111061981A (en) | Page management method and device, storage medium and electronic equipment | |
CN103440169B (en) | A kind of method and device of process interrupt processing | |
CN104077156B (en) | The restarting systems and its method of programmable CPU | |
CN102799248A (en) | Wake-on-local access network (LAN) device, computer and wake-on-LAN method | |
CN103890713B (en) | Device and method for managing the register information in processing system | |
CN103294578B (en) | Method for obtaining instruction of triggering function | |
CN105653495B (en) | Dual processor electronic device and its method of quick turn-on starting | |
CN106168932B (en) | Flash control method and device | |
CN108399135A (en) | A kind of control method and relevant apparatus of disk unit identification | |
US9223697B2 (en) | Computer reprogramming method, data storage medium and motor vehicle computer | |
CN108156310A (en) | A kind of method and system of finger prints processing, terminal device and computer-readable medium | |
WO2009034316A2 (en) | Boot loading |
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 |
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. |
|
TR01 | Transfer of patent right |