CN100507844C - Developing method for embedded system and device thereof - Google Patents

Developing method for embedded system and device thereof Download PDF

Info

Publication number
CN100507844C
CN100507844C CNB2007101206317A CN200710120631A CN100507844C CN 100507844 C CN100507844 C CN 100507844C CN B2007101206317 A CNB2007101206317 A CN B2007101206317A CN 200710120631 A CN200710120631 A CN 200710120631A CN 100507844 C CN100507844 C CN 100507844C
Authority
CN
China
Prior art keywords
code value
operational motion
menu
task
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2007101206317A
Other languages
Chinese (zh)
Other versions
CN101110027A (en
Inventor
张攀峰
游明琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vimicro Corp
Original Assignee
Vimicro Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2007101206317A priority Critical patent/CN100507844C/en
Publication of CN101110027A publication Critical patent/CN101110027A/en
Application granted granted Critical
Publication of CN100507844C publication Critical patent/CN100507844C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The utility model discloses a development method for the embedded system, of which the control terminal can decompose the task into the operating action array which is analyzed to the code value array. After the format conversion, the code value array is delivered to the ARM; the ARM can analyze the code value into the operating action array which is converted to the task order which can be recognized by the ARM, so that the task can be completed as per the task order. The utility model also discloses a development device for the embedded system which comprises a control terminal and an ARM. The control terminal consists of the first menu-layer module and an extended order resolver; the ARM consists of the second menu-layer module and the execution module. Based on the above method and the device, the control terminal can avoid the analyzing for a lot of the orders, so as to greatly reduce the operation time and improve the work efficiency. Also, the GUI is provided. So, the user can use or debug the system more conveniently.

Description

The method and the device of executing the task in a kind of embedded system and instructing
Technical field
The present invention relates to embedded system, refer in particular to the method and the device of the instruction of executing the task in a kind of embedded system.
Background technology
The device that instructs of executing the task in the embedded system of the prior art generally is divided into PC and senior reduced instruction set computer microprocessor (ARM, Advanced RISC Machine) two parts.In general, PC partly is used for providing the debugging interface to programmer or user, receives the program or the task of outside input, sends to the ARM part after received program or Task Switching are become the discernible code of ARM part; The ARM part is then carried out concrete operation according to the code that PC partly sends, and finishes the program or the task of required execution.Simultaneously, the ARM part also can directly receive the program or the task of outside input, but program of being imported or task are necessary for the discernible form of ARM part.PC part and ARM partly generally can be divided into 3 levels for the processing procedure that being imported of task or program are carried out:
1) uses (App, Application) layer: its function is to receive the task or the program of outside input, it is assignment instructions, and received assignment instructions resolved into one or more concrete functions that relevant chip can realize, the for example combination of the preview of chip (Preview) pattern and sectional drawing (Capture) pattern etc., and the function of the required realization after will decomposing sends to Drive Layer;
2) drive (Driver) layer: the various functions that needs that will be received are realized are decomposed into a series of corresponding concrete operations instructions respectively, and as to certain function calls etc., and the concrete operations after will decomposing are instructed and sent to the base register writable layer.For example, the function of Shi Xianing is if desired: the size that each module under the Capture pattern is set, then above-mentioned Function Decomposition can be corresponding a series of operations of calling the SetCaptureSize function, can be by the difference of SetCaptureSize function being called the function that realizes being provided with the size of each module under the Capture pattern.
3) base register read-write (Baserw) layer: concrete operations instruction that will be received is decomposed into corresponding a series of read-write operations to the base register in the chip and instructs promptly the most basic operation to chip.To be converted into the discernible read-write operation instruction of ARM part by the read-write operation instruction after the decomposition of PC part Baserw layer, and send to the Baserw layer of ARM part; The Baserw layer of ARM part then according to the read-write operation instruction that receives, carries out read-write operation to the base register in the chip.
Fig. 1 is the structural representation of the device of the instruction of executing the task in the embedded system in the prior art.As shown in Figure 1, execute the task in the embedded system in the prior art instruction device comprise PC 101 and ARM 102 two parts.Wherein, PC101 also comprises: application layer module 103, Drive Layer module 104, base register writable layer module 105 and command analysis device (Cmd Protocol) 106; ARM 102 comprises: application layer module 107, Drive Layer module 108 and base register writable layer module 109.
When the device of the instruction of executing the task in the above-mentioned embedded system receives the assignment instructions of outside input, can be with among this assignment instructions input PC101, this assignment instructions is broken down into a series of corresponding read-write operation instructions successively by after application layer module 103, Drive Layer module 104, the base register writable layer module 105; Base register writable layer module 105 will be decomposed good a series of read-write operations instructions and be sent to command analysis device 106 then; Command analysis device 106 becomes the compiling of instruction that receives can be instructed by the read-write operation that ARM discerns, by USB (universal serial bus) (USB, Universal Serial Bus) or UART Universal Asynchronous Receiver Transmitter (UART, Universal Asynchronous Receiver/Transmitter) directly sends to base register writable layer module 109 among the ARM102, base register writable layer module 109 is carried out read-write operation according to the instruction of received read-write operation to the base register of chip, finishes whole task or program.
In addition, also can directly import this assignment instructions among the ARM102, this assignment instructions is successively by after application layer module 107, Drive Layer module 108, the base register writable layer module 109, and being broken down into can be by a series of read-write operation instruction of base register writable layer module 109 identifications; Base register writable layer module 109 is carried out read-write operation according to above-mentioned a series of read-write operations instructions to the base register of chip then, finishes whole task or program.Because the application layer among the ARM can only be discerned the assignment instructions of specific format, the form that is the assignment instructions in the application layer module 103 among form and the PC101 of 107 assignment instructions that can discern of application layer module among the ARM102 is different, therefore, the assignment instructions of directly importing among the ARM 102 is necessary for 107 forms that can discern of application layer module.For above-mentioned reasons, in the ordinary course of things, assignment instructions all is to be input to earlier among the PC 101, resolves to the operational order that ARM can discern through command analysis device 106, just sends to move in the base register writable layer module 109 of ARM 102.
In above-mentioned embedded system, application layer module 103 among the PC 101, Drive Layer module 104 and base register writable layer module 105, the assignment instructions that is mainly used in required realization resolves into concrete read-write operation instruction, therefore application layer module 103, Drive Layer module 104 and 105 3 modules of base register writable layer module can be referred to as decomposing module; And the application layer module 107 among the ARM 102, Drive Layer module 108 and base register writable layer module 109, be mainly used in the function of carrying out required realization, therefore application layer module 107, Drive Layer module 108 and base register writable layer module 109 can be referred to as execution module.
From the above, in the device of the instruction of in above-mentioned this embedded system, executing the task, just can send to ARM after the assignment instructions of input among the PC all needs to resolve by the command analysis device and carry out.Under normal conditions, even realize calling the function of a utility function in the application layer in PC, this function also will be broken down into hundreds of even several thousand read-write operation instructions at the Baserw layer of PC part, and these read-write operation instructions all must just can be sent to ARM and go up execution after the command analysis device resolve to the read-write operation instruction that can be discerned by ARM.And among the ARM of the device of the instruction of in above-mentioned embedded system, executing the task, carrying out read-write operation instructs the required time generally all very short, therefore, the used time being resolved in read-write operation instruction will be far longer than and carry out this used time of read-write operation instruction.When the number of the instruction of the required parsing of command analysis device very for a long time, execute the task making or most of the time that program is used all spends in the parsing to instruction, thereby cause the travelling speed of task or program to become very slow.For example, in some audio/video process chip, when the application layer among the PC need be called an Open function, the command analysis device need can be instructed by the read-write operation that ARM discerns realizing that above-mentioned several thousand instructions to Open function call function resolve to accordingly, the process of whole parsing is with clock more than a minute consuming time, instruct the used time then very short at the read-write operation of carrying out on the ARM after above-mentioned process is resolved, almost can ignore.Therefore, above-mentioned resolving will have a strong impact on execute the task travelling speed on the device of instruction of task or program in above-mentioned embedded system.
Summary of the invention
In view of this, fundamental purpose of the present invention be to provide a kind of embedded system in the execute the task method and the device of instruction, thereby significantly reduce working time of task.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides the method for the instruction of executing the task in a kind of embedded system, this method comprises:
Control terminal resolves into the operational motion sequence with task, and the operational motion sequence analysis is become the code value sequence, and the code value sequence is carried out sending to senior reduced instruction set computer microprocessor ARM after the format conversion; The code value sequence analysis of ARM after with the format conversion that receives becomes the operational motion sequence, converts the operational motion sequence after resolving to can be discerned by ARM assignment instructions, finishes described task according to assignment instructions.
The present invention also provides the device of the instruction of executing the task in a kind of embedded system, and the first menu layer module and explosion command resolver are set in control terminal; The described setting in ARM comprises second menu layer module and the execution module;
The described first menu layer module is used for task is resolved into the operational motion sequence, and the operational motion sequence analysis is become the code value sequence, and the code value sequence is sent to the explosion command resolver;
Described explosion command resolver after being used for the code value sequence carried out format conversion, sends to the second menu layer module;
The described second menu layer module is used for obtaining into the operational motion sequence according to the code value sequence after the format conversion that receives, and converts the operational motion sequence to can be discerned by ARM assignment instructions, can be sent to execution module by the assignment instructions that ARM discerns;
Described execution module is used for according to received assignment instructions base register being operated.
In summary, the invention provides the method and the device of the instruction of executing the task in a kind of embedded system, owing in ARM, carry out assignment instructions is resolved to and can be instructed by the read-write operation that ARM discerns, make and executing the task or during program, in control terminal, need not a large amount of orders is resolved, thereby reduced the working time of task widely, improved whole system operation efficient.And owing to the process that assignment instructions is converted to the read-write operation instruction is carried out in ARM, therefore the speed of conversion is faster, thereby has saved system resource, has reduced the energy consumption and the cost of system.Simultaneously, control terminal promptly is transferred among the ARM after only the Task Switching of required execution need being become a code value sequence, handle and need not to convert assignment instructions to a series of read-write operation instruction again, so the processing procedure of control terminal is more simple again.
Further, owing to provide graphic user interface in the embodiment of the invention, thus make the user become more convenient for the use or the debugging of total system; Simultaneously, because all optional tasks are all classified and are presented in first menu shown in the graphic user interface, therefore described graphic user interface also has good visuality, and promptly the user can be known the classification at all optional tasks and task place like a cork from graphic user interface.
Description of drawings
Fig. 1 is the structural representation of the device of the instruction of executing the task in the embedded system in the prior art.
Fig. 2 is the structural representation of the device of the instruction of executing the task in the embedded system in the embodiment of the invention.
Fig. 3 is the user interface synoptic diagram of the first menu layer module in the embodiment of the invention.
Fig. 4 is the process flow diagram of the method for the instruction of executing the task in the embedded system in the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The method and the device of the instruction of executing the task in a kind of embedded system are provided in the embodiment of the invention, promptly by increasing by the first menu layer module and the second menu layer module respectively among control terminal in the device of the instruction of in embedded system, executing the task and the ARM, make control terminal can use the first menu layer module that user-selected task is resolved into a series of operational motion, can be referred to as an operational motion sequence, and the aforesaid operations action sequence resolved to corresponding code value sequence, then the code value sequence is carried out sending to ARM after the format conversion through the explosion command resolver; Become the operational motion sequence by the code value sequence analysis of the second menu layer module among the ARM after with format conversion, and the operational motion sequence after will resolving converts the assignment instructions that can be discerned by ARM to, thereby makes ARM to finish user-selected task according to described assignment instructions.Described operational motion sequence can comprise one or more operational motion.
Figure 2 shows that the structural representation of the device of the instruction of executing the task in the embedded system in the embodiment of the invention, as shown in Figure 2, the device of the instruction of executing the task in the embedded system in the embodiment of the invention comprises control terminal 201 and ARM 202 two parts.Control terminal 201 comprises: the first menu layer module 203 and explosion command resolver 204; ARM 202 comprises: execution module 300, the second menu layer module 205 and enquiry module 206.
Wherein, described execution module 300 comprises: application layer module 107, Drive Layer module 108 and base register writable layer module 109.
The user sends to the first menu layer module 203 with required finishing of task, and its follow-up processing procedure is with as described below:
The described first menu layer module 203, can use user interface as shown in Figure 3 to receive required finishing of the task of user, according to set in advance the first menu layer module 203 in first menu, user-selected fixed task (being assignment instructions) is resolved into an operational motion sequence, this operational motion sequence comprises one or more operational motion, and described operational motion sequence analysis is become the code value sequence according to the first code value table that sets in advance in the first menu layer module 203, then the code value sequence is sent to explosion command resolver 204; Explosion command resolver 204 converts the code value sequence to can be discerned by ARM code value sequence, and the code value sequence is sent to the second menu layer module 205; The second menu layer module 205 sends to enquiry module 206 with the code value sequence after the format conversion; Enquiry module 206 will become corresponding operational motion sequence from the code value sequence analysis of the second menu layer module 205 according to the second code value table that sets in advance, and this operational motion sequence is returned to the second menu layer module 205; The second menu layer module 205 according to set in advance in the second menu layer module 205 with the first menu layer module 203 in corresponding second menu of first menu, operational motion sequence after resolving is converted to can be by the assignment instructions (being user-selected task) that ARM discerned, and this assignment instructions is sent to execution module 300; Execution module 300 is finished user-selected task according to the assignment instructions that receives.
As mentioned above, in the first above-mentioned menu layer module 203, also comprise a user interface, this user interface is the graphic user interface (GUI) of " What You See Is What You Get ".By this graphic user interface, the user can select the task or the program of required execution easily.The first menu layer module 203 can use user interface as shown in Figure 3 to receive required finishing of the task of user, and promptly the user can come the selection task by user interface as shown in Figure 3.
Fig. 3 is the user interface synoptic diagram of the first menu layer module in the embodiment of the invention.As shown in Figure 3, the graphic user interface in the described first menu layer module 203 is made up of a display box 301 and button frame 302.Wherein, display box 301 is used for showing the pairing task of assignment instructions of the first above-mentioned menu, shown content is the first above-mentioned menu in the display box 301 in other words, this first menu is a multilevel menu, a plurality of optional triggering objects (being the square frame in the display box 301) are all arranged in each grade menu, and each triggers a kind of function that on behalf of the device of the instruction of executing the task in the embedded system, object all to realize.
For example, shown in the display box 301 of Fig. 3 is a three-stage menu, and wherein, first order menu has two to trigger objects: " V578b " and " V336 ", represent that respectively the user can select to use chip V578b or chip V336; Trigger object " V578b " and have submenu, this submenu can be referred to as Level-2 menu (trigger object " V336 " and also can have submenu, be not shown among Fig. 3).Have " preview " and " catching " two in the described Level-2 menu and trigger object, represent that respectively the user also can select to use preview mode or the acquisition mode under the chip V578b.Wherein, triggering object " preview " does not have submenu, can be referred to as the terminal object that triggers, and each terminal triggering object is all represented the task of the needs execution that a user can select.For example, if the user has selected terminal triggering object " preview ", represent that then the task that user-selected fixed needs are carried out is: enter the preview mode under the chip V578b.In addition, the triggering object " is caught " has submenu, this submenu can be referred to as Level-3 menu.Also have " 1280 * 968 " and " 640 * 480 " two in the described Level-3 menu and trigger object, these two are triggered object and are not all had submenu, therefore all be the terminal object that triggers, represent that respectively the user can also continue to select " 1280 * 968 " or " 640 * 480 " two options under the acquisition mode, these two options represent that respectively the size of the image of being caught is two kinds of acquisition modes of 1280 * 968 pixels and 640 * 480 pixels.According to three-stage menu as implied above, the user can realize the selection of above-mentioned task to required execution by 5 buttons in the button frame 302, these 5 buttons are respectively reset (Reset) key, upwards (Up) key, (Down) key, affirmation (Enter) key and return (Exit) key downwards, the function of these 5 buttons has been represented 5 operational motions, 5 operational motions with and corresponding code value as described below:
Reset key: select this key can make current selection be returned to the original state of graphic user interface, the original state when promptly not doing any selection; In above-mentioned three-stage menu, the original state of acquiescence promptly selects to use chip V578b for triggering object " V578b "; Select the operational motion of this key can use code value " 0 " expression.
The Up key: select this key can in described three-stage menu, select with in the one-level menu one trigger object; Select the operational motion of this key can use code value " 1 " expression.
Down key: select this key can in described three-stage menu, select to trigger object with the next one in the one-level menu; Select the operational motion of this key can use code value " 2 " expression.
"enter" key":, then select this key can enter the next stage menu of described current triggering object place menu if current triggering object is not the terminal object that triggers; If current triggering object is the terminal object (the triggering object that does not promptly have submenu) that triggers, then select this key table to show the selected pairing task of this triggering object.Select the operational motion of this key can use code value " 3 " expression.
Exit key: select this key can enter previous menu in the described three-stage menu; Select the operational motion of this key can use code value " 4 " expression.
By represent 5 buttons in the button frame 302 respectively with code value, the user represents the various combination that shown each in the display box 301 triggers all available above-mentioned five buttons of selection of object.For example, if the user need be implemented in and use the task of acquisition mode intercepting size as the picture of 1280x960 among the chip V578b, then this user can realize by following a series of operational motion (i.e. operational motion sequence) the selection of above-mentioned task, promptly by following select progressively button: Reset key → "enter" key" → down key → "enter" key" → "enter" key".The a series of pairing code value of operational motion available buttons to button of above-mentioned this is represented, thereby is formed a code value sequence: 0,3,2,3,3.Simultaneously, the user also can come selector button by other order, thereby the acquisition mode that uses in chip V578b of selected required realization intercepts the task of size as the picture of 1280x960, for example: Reset key → "enter" key" → Exit key → "enter" key" → Exit key → "enter" key" → down key → "enter" key" → "enter" key", the pairing code value sequence of above-mentioned this a series of operational motion (i.e. operational motion sequence) is: 0,3,4,3,4,3,2,3,3.Therefore, the pairing code value sequence of each task that can realize in the above-mentioned display box 301 is not unique, and promptly the user can realize selecting same task by different operational motion sequences.The above-mentioned pairing code value of these buttons can be provided with in advance, form two code value tables, be the above-mentioned first code value table and the second code value table, and these two code value tables set in advance respectively in the first menu layer module 203 and enquiry module 206 of device of the instruction of in embedded system, executing the task.Wherein, the first menu layer module 203 earlier will user-selected fixed task (being assignment instructions) resolves into an operational motion sequence (be user in the process of selecting above-mentioned task to above-mentioned five a series of operational motions that button carried out), and the aforesaid operations action sequence being resolved to the code value sequence according to the first code value table, enquiry module 206 becomes the operational motion sequence according to the second code value table with the code value sequence analysis that receives.Described enquiry module 206 can be arranged among the ARM202, also can be arranged in the second menu layer module 205.
Shown function is a specific embodiment of the present invention in the display box 301 shown in Figure 3, in actual applications, can display box 301 be designed to different displaying contents according to the function of system and user's demand, and set in advance code value, code value sequence and code value table according to the function of required realization.
In addition, behind the assignment instructions that execution module 300 receives, the application layer module 107 in the execution module 300 resolves into the function of corresponding required realization with the assignment instructions that receives, and sends it to Drive Layer module 108; The Function Decomposition of the required realization that Drive Layer module 108 will receive becomes a series of corresponding concrete operations instructions, and sends it to base register writable layer module 109; Base register writable layer module 109 is decomposed into corresponding a series of read-write operation instruction to the base register in the chip with received concrete operations instruction, and corresponding base register is operated, and finishes user-selected task.
In addition, the control terminal 201 in the embodiment of the invention can be PC, also can be other opertaing device such as handheld mobile device.Described enquiry module 206 can be arranged on outside the second menu layer module 205, also can be arranged within the second menu layer module 205.The described first code value table is used for describing the corresponding relation of the code value of each operational motion and code value sequence, and the described second code value table is used for the code value of the code value sequence after the descriptor format conversion and the corresponding relation of each operational motion; In the described first code value table and the second code value table, the code value after a code value and the corresponding conversion thereof is corresponding to same operational motion.For example, if in the first code value table, a certain code value a is corresponding to operational motion A, then in the second code value table, by the code value a1 of above-mentioned code value a after through the conversion that obtains after the format conversion also corresponding to operational motion A.In addition, but described first menu is used to describe the corresponding relation of operational motion sequence and the assignment instructions of Be Controlled terminal recognition, and described second menu is used to describe the assignment instructions that can be discerned by ARM and the corresponding relation of operational motion sequence; In described first menu and second menu, but same operational motion sequence is corresponding to the assignment instructions of a Be Controlled terminal recognition and through the assignment instructions that can be discerned by ARM after the format conversion.For example, in first menu, but if operational motion sequence B pairing be the assignment instructions b of Be Controlled terminal recognition, then in second menu, aforesaid operations action sequence B is corresponding to by the assignment instructions b1 that can by ARM be discerned of above-mentioned assignment instructions b through obtaining after the format conversion.
Below in conjunction with Fig. 2 and Fig. 3 the device treatment scheme of instructing of executing the task in the embedded system in the embodiment of the invention is described in detail.Figure 4 shows that the process flow diagram of the method for the instruction of executing the task in the embedded system in the embodiment of the invention.As shown in Figure 4, execute the task in the embedded system in the embodiment of the invention instruction method comprise following step:
Step 401, the task of selected required execution, default code value table.
Specifically, when needs were finished certain task or moved certain program, the user can be by selected above-mentioned task of the GUI in the first menu layer module 203 of control terminal 201 or program.Simultaneously, the default respectively first code value table and the second code value table in the first menu layer module 203 and in the enquiry module 206, described first, second code value tabular has been lifted the corresponding relation of the code value after operational motion and code value and the conversion.
Step 402 resolves to the code value sequence with selected task.
Specifically, the first menu layer module 203 resolves into corresponding operational motion sequence according to first menu that described GUI provides with above-mentioned user-selected fixed task or the program of carrying out earlier, after according to the first pre-set code value table described operational motion sequence analysis being become a group code value sequence again, this code value sequence is sent to explosion command resolver 204.
Step 403 sends to ARM with the code value sequence.
Specifically, can convert the code value sequence that receives to form that ARM can discern, and the code value sequence after will changing sends to the second menu layer module 205 among the ARM 202 by explosion command resolver 204.
Step 404 becomes the code value sequence analysis operational order of ARM.
Specifically, after the second menu layer module 205 among the ARM 202 receives the code value sequence, this code value sequence is sent to enquiry module 206; Enquiry module 206 becomes corresponding operational motion sequence according to the second code value table with received code value sequence analysis, and the operational motion sequence after will resolving returns to the second menu layer module 205; The operational motion sequence that the second menu layer module 205 is returned according to enquiry module 206, from set in advance second menu the second menu layer module 205, find the pairing terminal object that triggers of this operational motion sequence, and this end is triggered object (for example trigger, complete operation action " Enter "), carry out function call, the result of described function call is this end and triggers the pairing assignment instructions of object, can be thereby the operational motion sequence that above-mentioned parsing is good converts to by the assignment instructions (being user-selected task) that ARM discerned, and this assignment instructions sent to execution module 300; Execution module 300 is finished user-selected task according to the assignment instructions that receives.Specifically, the application layer module 107 in the execution module 300 resolves into the function of corresponding required realization with the assignment instructions that receives, and sends it to Drive Layer module 108; The Function Decomposition of the required realization that Drive Layer module 108 will receive becomes a series of corresponding concrete operations instructions, and sends it to base register writable layer module 109; Base register writable layer module 109 is decomposed into corresponding a series of read-write operation instruction to the base register in the chip with received concrete operations instruction, and corresponding base register is operated, and finishes user-selected task.
Step 405 is operated base register, finishes the work.
Specifically, base register writable layer module 109 is operated relevant register accordingly according to above-mentioned read-write operation instruction, thereby finishes the task or the program of the required execution of user.
In the method for instructing of in above-mentioned embedded system, executing the task, the function that also can realize in the prior art being realized, in can task or program input control terminal 201 with required execution, resolve into a series of corresponding read-write operation instructions by decomposing module 200, send to base register writable layer module 109 among the ARM 102 by explosion command resolver 204 again, according to the instruction of received read-write operation the base register of chip is carried out read-write operation by base register writable layer module 109, finish whole task or program.
In sum, in method of instructing and the device owing in the embedded system that the embodiment of the invention provided, execute the task, after the task of user-selected execution is resolved to a group code value sequence by the first menu layer module 203, directly send to explosion command resolver 204, and 204 need of explosion command resolver carry out can sending to after the format conversion the second menu layer module 205 among the ARM to the code value sequence, and need not a large amount of orders is resolved, thereby saved the used time of resolve command, reduce the working time of task widely, improved whole system operation efficient.And, owing to provide graphic user interface in the embodiment of the invention, thus make the user become more convenient for the use or the debugging of total system; Simultaneously, because all optional tasks are all classified and are presented in first menu, therefore described graphic user interface also has good visuality, and promptly the user can be known the classification at all optional tasks and task place like a cork from graphic user interface; In addition,, handle after the Task Switching of required execution can being become a code value sequence, handle again and need not to convert assignment instructions to a series of read-write operation instruction again, so processing procedure is more simple by using the user images interface; In addition, owing to the process that assignment instructions is converted to the read-write operation instruction is carried out in ARM, therefore the speed of conversion is faster, thereby has saved system resource, has reduced the energy consumption and the cost of system.
The one of ordinary skilled in the art also can make many modifications according to foregoing description.Such as, as shown in Figure 2, in control terminal 201, decomposing module 200 can also be set.
Described decomposing module 200 comprises: application layer module 103, Drive Layer module 104, base register writable layer module 105; Execute the task in described decomposing module 200 and execution module 300 and the embedded system shown in Figure 1 corresponding decomposing module (comprising: application layer module 103, Drive Layer module 104 and base register writable layer module 105) and execution module (comprising: application layer module 107, Drive Layer module 108 and base register writable layer module 109) in the device of instruction can be consistent on structure, annexation and function.Accordingly, described explosion command resolver 204 also have with Fig. 1 in command analysis device 106 identical functions.The user can send to decomposing module 200 with required finishing of task, also required finishing of task can be sent to the first menu layer module 203 (choice relation wherein should realize for those skilled in the art, not give unnecessary details) herein.If task is sent to decomposing module 200, then follow-up processing procedure is consistent with processing procedure shown in Figure 1.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, the method for executing the task in a kind of embedded system and instructing is characterized in that this method comprises at least:
Control terminal resolves into the operational motion sequence with task, and the operational motion sequence analysis is become the code value sequence, and the code value sequence is carried out sending to senior reduced instruction set computer microprocessor ARM after the format conversion; The code value sequence analysis of ARM after with the format conversion that receives becomes the operational motion sequence, converts the operational motion sequence after resolving to can be discerned by ARM assignment instructions, finishes described task according to assignment instructions.
2, method according to claim 1 is characterized in that, also further comprises before task is resolved into operational motion described: the task of selecting required execution.
3, method according to claim 1 is characterized in that, also further comprises before task is resolved into the operational motion sequence described:
Set in advance one first menu, but be used to describe the corresponding relation of operational motion sequence and the assignment instructions of Be Controlled terminal recognition;
Set in advance one second menu, be used to describe the assignment instructions that to be discerned by ARM and the corresponding relation of operational motion sequence;
In described first menu and second menu, but but same operational motion sequence corresponding to the assignment instructions of a Be Controlled terminal recognition and assignment instructions that should the Be Controlled terminal recognition through the assignment instructions that can be discerned by ARM after the format conversion.
4, method according to claim 1 is characterized in that, also further comprises before the operational motion sequence analysis is become the code value sequence described:
Set in advance one first code value table, be used for describing each operational motion of operational motion sequence and the corresponding relation of the code value in the code value sequence;
Set in advance one second code value table, be used for the code value of the code value sequence after descriptor format is changed and the corresponding relation of each operational motion in the operational motion sequence;
In the described first code value table and the second code value table, the code value after a code value and the corresponding conversion thereof is corresponding to same operational motion.
5, the device of executing the task in a kind of embedded system and instructing is characterized in that: the first menu layer module and explosion command resolver are set in control terminal; Second menu layer module and the execution module is set in ARM;
The described first menu layer module is used for task is resolved into the operational motion sequence, and the operational motion sequence analysis is become the code value sequence, and the code value sequence is sent to the explosion command resolver;
Described explosion command resolver after being used for the code value sequence carried out format conversion, sends to the second menu layer module;
The described second menu layer module is used for obtaining the operational motion sequence according to the code value sequence after the format conversion that receives, and converts the operational motion sequence to can be discerned by ARM assignment instructions, can be sent to execution module by the assignment instructions that ARM discerns;
Described execution module is used for according to received assignment instructions base register being operated.
6, device according to claim 5 is characterized in that: the described first menu layer module also comprises first menu; The described second menu layer module also comprises second menu;
Described first menu, but be used to describe the corresponding relation of operational motion sequence and the assignment instructions of Be Controlled terminal recognition;
The described first menu layer module resolves into the operational motion sequence according to described first menu with task;
Described second menu is used to describe the assignment instructions that can be discerned by ARM and the corresponding relation of operational motion sequence;
The described second menu layer module, according to described second menu operational motion sequence being converted to can be by the assignment instructions that ARM discerned.
7, device according to claim 5 is characterized in that: described ARM also comprises enquiry module;
Described enquiry module, the code value sequence analysis after the format conversion that is used for receiving from the second menu layer module becomes the operational motion sequence, and the operational motion sequence is sent to the second menu layer module;
The described second menu layer module is used for the code value sequence after the format conversion is sent to described enquiry module, the operational motion sequence after the parsing that the reception enquiry module sends.
8, device according to claim 7 is characterized in that: the described first menu layer module also comprises the first code value table; Described enquiry module also comprises the second code value table;
The described first code value table is used for describing each operational motion of operational motion sequence and the corresponding relation of the code value in the code value sequence;
The described first menu layer module becomes the code value sequence according to the described first code value table with the operational motion sequence analysis;
The described second code value table is used for the code value of the code value sequence after descriptor format is changed and the corresponding relation of each operational motion in the operational motion sequence;
Described enquiry module will become the operational motion sequence from the code value sequence analysis after the format conversion of second menu layer module reception according to the described second code value table;
In the described first code value table and the second code value table, the code value after a code value and the corresponding conversion thereof is corresponding to same operational motion.
9, device according to claim 5 is characterized in that: the described first menu layer module also comprises a user interface;
Described user interface is used to select the task of required execution, and selected task is sent to the first menu layer module.
10, device according to claim 9 is characterized in that: described user interface comprises display box and button frame;
Described display box is used for showing the pairing task of assignment instructions of first menu;
Described button frame is used for task of selecting described display box to show.
CNB2007101206317A 2007-08-22 2007-08-22 Developing method for embedded system and device thereof Expired - Fee Related CN100507844C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101206317A CN100507844C (en) 2007-08-22 2007-08-22 Developing method for embedded system and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101206317A CN100507844C (en) 2007-08-22 2007-08-22 Developing method for embedded system and device thereof

Publications (2)

Publication Number Publication Date
CN101110027A CN101110027A (en) 2008-01-23
CN100507844C true CN100507844C (en) 2009-07-01

Family

ID=39042112

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101206317A Expired - Fee Related CN100507844C (en) 2007-08-22 2007-08-22 Developing method for embedded system and device thereof

Country Status (1)

Country Link
CN (1) CN100507844C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551747B (en) * 2009-04-09 2012-06-20 怯肇乾 Software system configuring tool of ARM series microprocessor
CN103954325B (en) * 2014-04-25 2017-07-21 向志军 Ultrasonic flowmeter and data processing method

Also Published As

Publication number Publication date
CN101110027A (en) 2008-01-23

Similar Documents

Publication Publication Date Title
CN100456235C (en) Method and system for screen drawing-sectioning in instant messaging
KR101228102B1 (en) A mobile terminal and method for providing user shortcut operation
EP2680123A2 (en) Method and Device of Task Processing of One Screen and Multi-Foreground
KR100700951B1 (en) Apparatus and method for multi task management in mobile communication system
CN111459393B (en) Method, system and equipment for realizing multi-signal-source interactive control
CN105302364B (en) It is remotely controlled the method and system of Android device
CN101308610A (en) Calligraphy exercising method and apparatus based on mobile terminal
CN101419617A (en) Method and apparatus for determining web page object
CN102541549B (en) The method of integration television application module and device
US20170177208A1 (en) Systems and wearable devices and methods for operating a computer
CN106155542A (en) Image processing method and device
CN102637127A (en) Method for controlling mouse modules and electronic device
CN112231017B (en) Virtual keyboard and mouse method and device compatible with Android running environment running on Linux
CN102331906A (en) Method for operating intelligent equipment and intelligent equipment
CN111615099B (en) eSIM card interaction control method and related equipment
CN100507844C (en) Developing method for embedded system and device thereof
CN110297563A (en) Control method for screen display and smartwatch
CN111881703A (en) Graphic code identification method and device and electronic equipment
CN109788356B (en) Smart television screen sliding method and device based on remote controller and smart television
CN103428550A (en) Object selecting method and terminal
CN105138224B (en) The control method and intelligent watch of a kind of intelligent watch
CN102279654A (en) Method for realizing keyboard in keyboard, video and mouse (KVM) all-in-one machine calling on screen display (OSD) menu of display
CN102760351A (en) Method for implementing remote letter symbol input between intelligent terminals through wireless network
CN114757159A (en) Packaging development method and system of multifunctional data table component
CN102722290B (en) The anti-tampering processing method of touch screen, device and touch screen terminal

Legal Events

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

Granted publication date: 20090701

Termination date: 20120822