CN109165086A - Task executing method and single-chip microcontroller - Google Patents

Task executing method and single-chip microcontroller Download PDF

Info

Publication number
CN109165086A
CN109165086A CN201810918552.9A CN201810918552A CN109165086A CN 109165086 A CN109165086 A CN 109165086A CN 201810918552 A CN201810918552 A CN 201810918552A CN 109165086 A CN109165086 A CN 109165086A
Authority
CN
China
Prior art keywords
task
subtask
partition
chip microcontroller
current
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.)
Pending
Application number
CN201810918552.9A
Other languages
Chinese (zh)
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.)
Shenzhen Tekang Bioengineering Co
Original Assignee
Shenzhen Tekang Bioengineering Co
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 Shenzhen Tekang Bioengineering Co filed Critical Shenzhen Tekang Bioengineering Co
Priority to CN201810918552.9A priority Critical patent/CN109165086A/en
Publication of CN109165086A publication Critical patent/CN109165086A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Multi Processors (AREA)

Abstract

A kind of task executing method and single-chip microcontroller, the task executing method is applied in single-chip microcontroller, this method comprises: obtaining a task packet, and multiple subtasks in the task packet are grouped according to the attribute information of the task packet, to obtain multiple tasks group, the attribute information includes the temporal information and related information that each subtask executes;And multiple tasks subregion is created according to the quantity of the task groups;Multiple task groups are respectively sent in multiple task partitions, and execute each subtask in each task partition.The embodiment of the present invention can efficiently solve the problems, such as multi-computer communication, realize control of the single-chip microcontroller to multiple equipment, reduce costs.

Description

Task executing method and single-chip microcontroller
Technical field
The present invention relates to electronic technology fields, more particularly to a kind of task executing method and single-chip microcontroller.
Background technique
Single-chip microcontroller (Microcontrollers) is a kind of IC chip, is using very large scale integration technology The central processor CPU with data-handling capacity, random access memory ram, read only memory ROM, a variety of I/O mouthfuls and interruptions The functions such as system, timer/counter (may further include display driver circuit, pulse-width modulation circuit, analog multiplexer, The circuits such as A/D converter) it is integrated into the small and perfect microcomputer system constituted on one piece of silicon wafer, in Industry Control Field is widely applied.
In current single-chip microcontroller, built-in tasks operating system mostly uses the kernels such as UC/OS-II, WinCE, VxWorks, These core systems are bigger, consume a large amount of resource, therefore monolithic processor controlled number of devices is considerably less, and in general one Single-chip microcontroller is only used to control an equipment, and execute a specific task needs to use when needing to be implemented the task of multiple equipment Multiple single-chip microcontrollers are completed, higher cost.
Summary of the invention
In view of the above situation, it is necessary to aiming at the problem that limited amount of single-chip microcontroller in the prior art control equipment, mention For a kind of task executing method and single-chip microcontroller.
A kind of task executing method is applied in single-chip microcontroller, which comprises
A task packet is obtained, and is carried out multiple subtasks in the task packet according to the attribute information of the task packet Grouping, to obtain multiple tasks group, the attribute information includes the temporal information and related information that each subtask executes;
And multiple tasks subregion is created according to the quantity of the task groups;
Multiple task groups are respectively sent in multiple task partitions, and are held in each task partition The each subtask of row.
Further, above-mentioned task executing method, wherein described that each son is executed in each task partition The step of task includes:
For each task partition, each subtask is successively accessed, when a task partition is accessed in current time When point has pending current subtask, the current subtask is executed;
Further, above-mentioned task executing method, wherein when the response letter that the current subtask is waiting facilities feedback Number when, the step of the execution current subtask after further include:
In the timeticks after the current subtask executes, judge whether to receive the response signal;
If it is not, accessing the subtask of next task partition, and judgement is when following clock beat accesses the subregion again It is no to receive the response signal.
If so, accessing next subtask.
Further, above-mentioned task executing method, wherein when the current subtask is there are when task number, the execution After the step of to the current subtask further include:
Execute the corresponding subtask of the task number.
Further, above-mentioned task executing method, wherein it is described multiple task groups are respectively sent to it is multiple described Include: after step in task partition
Detect the distribution condition of the task groups of each task partition;
The task partition for being assigned the task groups is set activation shape by switching variable by the way that the task groups are arranged State, and dormant state is set by the task partition of the unallocated task groups;
Described to be directed to each task partition, the step of successively accessing each subtask, includes:
For the task partition of each state of activation, each subtask is successively accessed.
Further, above-mentioned task executing method, wherein it is described will be more in the task packet according to the attribute information The step of a subtask is grouped include:
According to the temporal information and related information in the attribute information, associated hold the same period and simultaneously The capable subtask not conflicted is divided into same group.
A kind of single-chip microcontroller, comprising:
Grouping module, for obtaining a task packet, and will be in the task packet according to the attribute information of the task packet Multiple subtasks are grouped, and to obtain multiple tasks group, the attribute information includes the temporal information that each subtask executes And related information;
Partition creating module is used for and creates multiple tasks subregion according to the quantity of the task groups;
Sending module, for multiple task groups to be respectively sent in multiple task partitions;
Execution module, for executing each subtask in each task partition.
Further, above-mentioned single-chip microcontroller, wherein the execution module is specifically used for:
For each task partition, each subtask is successively accessed, when a task partition is accessed in current time When point has pending current subtask, the current subtask is executed;
Further, above-mentioned single-chip microcontroller, wherein when the current subtask is the response signal of waiting facilities feedback, The single-chip microcontroller further include:
Judgment module, for judging whether to receive described in the timeticks after the current subtask executes Response signal;
First implementation sub-module accesses again for accessing the subtask of next task partition, and in following clock beat Judge whether to receive the response signal when subregion.
Further, above-mentioned single-chip microcontroller, wherein when the current subtask is there are when task number, the single-chip microcontroller is also wrapped It includes:
Second implementation sub-module, for executing the corresponding subtask of the task number.
Further, above-mentioned single-chip microcontroller, further includes:
Detection module, the distribution condition of the task groups for detecting each task partition;
Setup module will be assigned the task partition of the task groups for the switching variable by the way that the task groups are arranged It is set as state of activation, and sets dormant state for the task partition of the unallocated task groups;
The execution module is specifically used for:
For the task partition of each state of activation, each subtask is successively accessed.
Further, above-mentioned single-chip microcontroller, wherein the grouping module is specifically used for:
According to the temporal information and related information in the attribute information, associated hold the same period and simultaneously The capable subtask not conflicted is divided into same group.
In the embodiment of the present invention, single-chip microcontroller is grouped each subtask of a task packet, and is existed according to grouping situation Multiple tasks subregion is created in single-chip microcontroller.And the subtask in each task groups is independently executed in each task partition respectively, The speed of performing task for improving single-chip microcontroller, efficiently solves the problems, such as multi-computer communication, realizes a single-chip microcontroller to multiple equipment Control, reduce costs.
Detailed description of the invention
Fig. 1 is the flow chart of task executing method in first embodiment of the invention;
Fig. 2 is the flow chart of task executing method in second embodiment of the invention;
Fig. 3 is the structural block diagram of single-chip microcontroller in third embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement implementation of the invention Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, of the invention Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Referring to Fig. 1, the task executing method is applied to monolithic for the task executing method in first embodiment of the invention In machine, which includes task application module, task management module and hardware configuration module, which mainly uses In addition task, meet actual application demand.Task management module is used to carry out rational management to the task of addition.Hardware is matched Module is set for configuring hardware environment, meets the application demand of the single-chip microcontroller of hardware transplanting need satisfaction different vendor.It can manage Solution, the modules of the single-chip microcontroller in the present embodiment are several conventional modules of single-chip microcontroller, can also include other moulds Block does not enumerate herein.The task executing method includes step S11~S13.
Step S11 obtains a task packet, and according to the attribute information of the task packet by multiple sons in the task packet Task is grouped, and to obtain multiple tasks group, the attribute information includes the temporal information and association that each subtask executes Information.
Single-chip microcontroller can obtain the task packet of user's addition by task application module.The task packet includes that multiple equipment is corresponding Subtask, a specific function is completed in each subtask, such as valve opening or electric pump are closed, the operation of motor, data Transmission, online, the calling etc. of other peripheral hardwares of equipment room.The attribute information of the task packet include each subtask execute when Between information and related information, which is the time of each task execution, duration etc., which refers to each Incidence relation between subtask, such as run while motor, data whiles, send, and on-line equipment while runs, It is called while his peripheral hardware.I.e. each specific task is made of different subtasks, the time that each subtask needs to be implemented Difference, the different relevances between subtask of sequencing.By completing each subtask in task packet, it can be achieved that each Response of a equipment to a certain particular task.
When it is implemented, user can send task packet to single-chip microcontroller by host computer, which is, for example, that computer is set It is standby.The host computer is connect with single-chip microcontroller, and user writes task APMB package on host computer, is sent to single-chip microcontroller.User Ke Cai With the document preparation of the TXT format task APMB package.When the single-chip microcontroller receives the task APMB package, it can be stored in list In the ROM (Read-Only Memory, read-only memory) of piece machine, it can also be stored in external reservoir, run time call to RAM File in (random access memory, random access memory).Certainly, single-chip microcontroller can also be in the feelings connecting with host computer Under condition, the task APMB package in host computer is called directly, that is, task packet is sent to single-chip microcontroller by host computer when running task RAM。
Each subtask in task packet is grouped according to the attribute information of task packet, the principle of grouping can be preparatory It is arranged, such as the stage properties and relevance of executing as needed for task, by same stage (i.e. same period) and correlation The subtask of connection is divided into same group.
It should be understood that can also be according to other group forming criterions, such as by the long subtask of task execution time and appoint Business executes time short subtask and is evenly distributed in each task groups, so that the task run progress difference of each task groups is not It is more.
Step S12 creates multiple tasks subregion according to the quantity of the task groups.
Multiple task groups are respectively sent in multiple task partitions by step S13, and in each task Each subtask is executed in subregion.
The quantity of the task groups divided according to above-mentioned steps divides multiple tasks point in the task scheduling modules of single-chip microcontroller Area, task can be individually performed in each task partition, and each subregion can be performed simultaneously different tasks.When it is implemented, task point The quantity in area be greater than or equal to the task groups being performed simultaneously quantity, that is, guarantee that each task groups can be assigned to a task In subregion.
Further, each task partition can control its active state by a switching variable in single-chip microcontroller, the work Dynamic state includes state of activation and dormant state, can indicate two states with variable 1 and 0 respectively.When certain subregion is not injected into When task groups, which is set as dormant state.
Ready-portioned task groups are respectively sent in each task partition, a task partition obtains a task groups, Each subtask is executed in each task groups.
In the present embodiment, single-chip microcontroller is grouped each subtask of a task packet, and according to grouping situation in monolithic Multiple tasks subregion is created in machine.The subtask in each task groups is independently executed in each task partition respectively, is improved The speed of performing task of single-chip microcontroller, efficiently solves the problems, such as multi-computer communication, realizes control of the single-chip microcontroller to multiple equipment, It reduces costs.
Referring to Fig. 2, for the task executing method in second embodiment of the invention, including step S21~S27.
Step S21 obtains a task packet, and according to the attribute information of the task packet by multiple sons in the task packet Task is grouped, and to obtain multiple tasks group, the attribute information includes the temporal information and association that each subtask executes Information.
User can write task APMB package by host computer, then be sent to single-chip microcontroller by host computer.Single-chip microcontroller can should Task APMB package is stored in local storage, and task APMB package can be obtained from memory when executing task.Or single-chip microcontroller exists In the case where being connect with host computer, receives the task APMB package that host computer is sent and executed.
The task APMB package includes the attribute information of the task packet and the task packet that must execute, which includes multiple sons A specific function, such as valve opening or electric pump closing etc. are completed in task, each subtask.The attribute information of the task packet The temporal information and related information, the temporal information executed including each subtask is the time of each task execution, duration It is the incidence relation referred between each subtask Deng, the related information, such as is run while motor, data whiles is sent out It send, on-line equipment while runs, other peripheral hardwares whiles calls.I.e. each specific task is made of different subtasks, The time that each subtask needs to be implemented is different, and sequencing is different, and there are relevances between subtask.By completing task packet In each subtask, it can be achieved that response of each equipment to a certain particular task.
Each task in task packet is grouped according to the attribute information of task packet, the principle of grouping can be set in advance It sets, such as the stage properties and relevance of executing as needed for task, by same stage (i.e. same period) and is associated Subtask be divided into same group.
Step S22 creates multiple tasks subregion according to the quantity of the task groups.
The quantity of the task groups divided according to above-mentioned steps divides multiple tasks point in the task scheduling modules of single-chip microcontroller Area, task can be individually performed in each task partition, and each subregion can be performed simultaneously different tasks.Task partition in the present embodiment Quantity be greater than and be equal to while being performed simultaneously the quantity of task groups, i.e. each task groups can be assigned to a task partition In.Subtask in each task partition be it is transformable, as needed, can be injected after the completion of subtask in current task area New task.
Multiple task groups are respectively sent in multiple task partitions by step S23, and for each described Business subregion, successively accesses each subtask.
Step S24 works as described in execution when a task partition is when current point in time has pending current subtask Preceding subtask.
A task groups are assigned in the present embodiment in each task partition, the task groups in each subregion are individually adjusted Degree, while running each task groups.When it is implemented, successively accessing for the subtask in each task partition.Task When access, the program pointer of task is executed from 0 position of address, and one sub- task pointer of every access moves back one section, goes to always Finally.When current point in time, which is accessed, pending subtask, the subtask is executed.
Step S25 appoints when the current subtask is the response signal of waiting facilities feedback in the pending son Business execute after a timeticks when, judge whether the response signal receives.
Step S26 accesses next subtask when receiving the response signal.
In practical applications, some subtasks execution time is long, such as waits the response signal of an equipment, then A timeticks are first carried out, judge whether current demand signal waits until, just do not jump out the executing other task partitions of the task, under One beat judges whether current demand signal waits until again, if it's not true repeats to judge always until task pointer walks downward.
Specifically, executing a timeticks code from code breakpoint, then preservation code is disconnected when executing current subtask Point exits current subtask, then executes next subtask, executes current subtask remaining generation again to next timeticks Code so recycles.Therefore, the subtask short for the time can once execute, and when time long task will be divided into multiple Clock beat executes, as long as timeticks are sufficiently fast, all tasks are as being performed simultaneously.
Step S27, when there are when task number, execute the corresponding subtask of the task number for the current subtask.
Liaison can be carried out between each subtask in each task groups, realize that each height is appointed by setting command number Connecting each other between business does not need the interference of host computer, reduces host computer programming difficulty, and easy to accomplish large-scale appoints parallel Business.Wherein, task number is a kind of data command, is used to refer to another subtask, and a certain subtask setting task number can be with Other subtasks generate connection.When the current subtask of execution is provided with task number, also executing after executing current task should The corresponding subtask of task number.
The present embodiment executes multiple tasks by a single-chip microcontroller, can be used in the application of more complicated multi-machine interaction In system.It efficiently solves the problems, such as multi-computer communication, increases reliability, reduce costs simultaneously.And by between task Task number, the problem of realizing the mutual scheduling between multitask, reduce host computer programming difficulty.
It should be understood that in other embodiments of the invention, the quantity of the task partition of foundation can be greater than task groups Quantity, in order to add new task.Each task partition by switching variable control active state (including dormant state and State of activation), the state of each task partition can default setting be dormant state, then pass through when certain subregion injects task groups and change Its active state is revised as state of activation by the switching variable for becoming the task partition.Therefore, distinguish by multiple task groups It is sent to after the step in multiple task partitions and also executes step:
Detect the distribution condition of the task groups of each task partition;
The task partition for being assigned the task groups is set activation shape by switching variable by the way that the task groups are arranged State, and dormant state is set by the task partition of the unallocated task groups.
And the step of being directed to each task partition, successively accessing each subtask, includes:
For the task partition of each state of activation, each subtask is successively accessed.
Referring to Fig. 3, for one of third embodiment of the invention single-chip microcontroller, comprising:
Grouping module 100, for obtaining a task packet, and will be in the task packet according to the attribute information of the task packet Multiple subtasks be grouped, to obtain multiple tasks group, the attribute information includes the time letter that each subtask executes Breath and related information;
Partition creating module 200 is used for and creates multiple tasks subregion according to the quantity of the task groups;
Sending module 300, for multiple task groups to be respectively sent in multiple task partitions;
Execution module 400, for executing each subtask in each task partition.
Further, above-mentioned single-chip microcontroller, wherein the execution module specific 400 is used for:
For each task partition, each subtask is successively accessed, when a task partition is accessed in current time When point has pending current subtask, the current subtask is executed;
Further, above-mentioned single-chip microcontroller, wherein when the current subtask is the response signal of waiting facilities feedback, The single-chip microcontroller further include:
Judgment module, for judging whether to receive described in the timeticks after the current subtask executes Response signal;
First implementation sub-module accesses again for accessing the subtask of next task partition, and in following clock beat Judge whether to receive the response signal when subregion.
Further, above-mentioned single-chip microcontroller, wherein when the current subtask is there are when task number, the single-chip microcontroller is also wrapped It includes:
Second implementation sub-module, for executing the corresponding subtask of the task number.
Further, above-mentioned single-chip microcontroller, further includes:
Detection module 500, the distribution condition of the task groups for detecting each task partition;
Setup module 600 will be assigned the task of the task groups for the switching variable by the way that the task groups are arranged Subregion is set as state of activation, and sets dormant state for the task partition of the unallocated task groups;
The execution module 400 is specifically used for:
For the task partition of each state of activation, each subtask is successively accessed.
Further, above-mentioned single-chip microcontroller, wherein the grouping module is specifically used for:
According to the temporal information and related information in the attribute information, associated hold the same period and simultaneously The capable subtask not conflicted is divided into same group.
The technical effect and preceding method embodiment of single-chip microcontroller provided by the embodiment of the present invention, realization principle and generation Identical, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of task executing method, which is characterized in that be applied in single-chip microcontroller, which comprises
A task packet is obtained, and is divided multiple subtasks in the task packet according to the attribute information of the task packet Group, to obtain multiple tasks group, the attribute information includes the temporal information and related information that each subtask executes;
And multiple tasks subregion is created according to the quantity of the task groups;
Multiple task groups are respectively sent in multiple task partitions, and are executed respectively in each task partition A subtask.
2. task executing method as described in claim 1, which is characterized in that described to be executed respectively in each task partition The step of a subtask includes:
For each task partition, each subtask is successively accessed, is had when a task partition is accessed in current point in time When pending current subtask, the current subtask is executed.
3. task executing method as claimed in claim 2, which is characterized in that when the current subtask is waiting facilities feedback Response signal when, the step of the execution current subtask after further include:
In the timeticks after the current subtask executes, judge whether to receive the response signal;
If it is not, accessing the subtask of next task partition, and judge whether to connect when following clock beat accesses the subregion again Receive the response signal.
If so, accessing next subtask.
4. task executing method as claimed in claim 2, which is characterized in that when the current subtask is there are when task number, After the step of execution is to the current subtask further include:
Execute the corresponding subtask of the task number.
5. task executing method as described in claim 1, which is characterized in that described to be respectively sent to multiple task groups Include: after step in multiple task partitions
Detect the distribution condition of the task groups of each task partition;
The task partition for being assigned the task groups is set state of activation by switching variable by the way that the task groups are arranged, and Dormant state is set by the task partition of the unallocated task groups;
Described to be directed to each task partition, the step of successively accessing each subtask, includes:
For the task partition of each state of activation, each subtask is successively accessed.
6. task executing method as described in claim 1, which is characterized in that it is described according to the attribute information by the task The step of multiple subtasks in packet are grouped include:
According to the temporal information and related information in the attribute information, by the same period and associated it is performed simultaneously not The subtask of conflict is divided into same group.
7. a kind of single-chip microcontroller characterized by comprising
Grouping module, for obtaining a task packet, and will be multiple in the task packet according to the attribute information of the task packet Subtask is grouped, and to obtain multiple tasks group, the attribute information includes the temporal information and pass that each subtask executes Join information;
Partition creating module is used for and creates multiple tasks subregion according to the quantity of the task groups;
Sending module, for multiple task groups to be respectively sent in multiple task partitions;
Execution module, for executing each subtask in each task partition.
8. single-chip microcontroller as claimed in claim 7, which is characterized in that the execution module is specifically used for:
For each task partition, each subtask is successively accessed, is had when a task partition is accessed in current point in time When pending current subtask, the current subtask is executed.
9. single-chip microcontroller as claimed in claim 8, which is characterized in that when the response that the current subtask is waiting facilities feedback When signal, the single-chip microcontroller further include:
Judgment module, for judging whether to receive the response in the timeticks after the current subtask executes Signal;
First implementation sub-module accesses this point for accessing the subtask of next task partition, and in following clock beat again Judge whether to receive the response signal when area.
10. single-chip microcontroller as claimed in claim 8, which is characterized in that when the current subtask is there are when task number, the list Piece machine further include:
Second implementation sub-module, for executing the corresponding subtask of the task number.
CN201810918552.9A 2018-08-13 2018-08-13 Task executing method and single-chip microcontroller Pending CN109165086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810918552.9A CN109165086A (en) 2018-08-13 2018-08-13 Task executing method and single-chip microcontroller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810918552.9A CN109165086A (en) 2018-08-13 2018-08-13 Task executing method and single-chip microcontroller

Publications (1)

Publication Number Publication Date
CN109165086A true CN109165086A (en) 2019-01-08

Family

ID=64895739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810918552.9A Pending CN109165086A (en) 2018-08-13 2018-08-13 Task executing method and single-chip microcontroller

Country Status (1)

Country Link
CN (1) CN109165086A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046809A (en) * 2019-04-02 2019-07-23 中国工商银行股份有限公司 Job scheduling method and device
CN110083442A (en) * 2019-03-18 2019-08-02 咪咕文化科技有限公司 A kind of operating method of user task, server and can storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on embedded QNX operating system
CN101290588A (en) * 2008-03-07 2008-10-22 重庆邮电大学 Micro-embedded real time task scheduling device and scheduling method
CN101387952A (en) * 2008-09-24 2009-03-18 上海大学 Single-chip multi-processor task scheduling and managing method
CN102281294A (en) * 2003-07-28 2011-12-14 索诺斯公司 System and method for synchronizing operations among a plurality of independently clocked digital data processing devices
CN103645941A (en) * 2013-12-09 2014-03-19 内蒙古科技大学 Novel wireless sensor network operation system
CN103677991A (en) * 2013-12-16 2014-03-26 重庆川仪自动化股份有限公司 Task execution method based on single chip microcomputer system framework and single chip microcomputer system framework
CN104102491A (en) * 2014-07-28 2014-10-15 航天科工深圳(集团)有限公司 Implementation method and system for parallel execution of real-time task and time-consuming task of single chip microcomputer
CN104536345A (en) * 2014-12-17 2015-04-22 万向钱潮股份有限公司 Multitask control method based on vehicle electrical control system
CN107832146A (en) * 2017-10-27 2018-03-23 北京计算机技术及应用研究所 Thread pool task processing method in highly available cluster system
CN107861811A (en) * 2017-10-24 2018-03-30 平安科技(深圳)有限公司 Mission bit stream transmission method, device and computer equipment in Workflow system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281294A (en) * 2003-07-28 2011-12-14 索诺斯公司 System and method for synchronizing operations among a plurality of independently clocked digital data processing devices
CN101290588A (en) * 2008-03-07 2008-10-22 重庆邮电大学 Micro-embedded real time task scheduling device and scheduling method
CN101267448A (en) * 2008-05-09 2008-09-17 东北大学 An intelligent protocol conversion device and method based on embedded QNX operating system
CN101387952A (en) * 2008-09-24 2009-03-18 上海大学 Single-chip multi-processor task scheduling and managing method
CN103645941A (en) * 2013-12-09 2014-03-19 内蒙古科技大学 Novel wireless sensor network operation system
CN103677991A (en) * 2013-12-16 2014-03-26 重庆川仪自动化股份有限公司 Task execution method based on single chip microcomputer system framework and single chip microcomputer system framework
CN104102491A (en) * 2014-07-28 2014-10-15 航天科工深圳(集团)有限公司 Implementation method and system for parallel execution of real-time task and time-consuming task of single chip microcomputer
CN104536345A (en) * 2014-12-17 2015-04-22 万向钱潮股份有限公司 Multitask control method based on vehicle electrical control system
CN107861811A (en) * 2017-10-24 2018-03-30 平安科技(深圳)有限公司 Mission bit stream transmission method, device and computer equipment in Workflow system
CN107832146A (en) * 2017-10-27 2018-03-23 北京计算机技术及应用研究所 Thread pool task processing method in highly available cluster system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AUSTIN.C: "《Java 2高级编程》", 31 March 2001 *
张守祥等: "《综采工作面自动化监控网络》", 30 September 2008 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083442A (en) * 2019-03-18 2019-08-02 咪咕文化科技有限公司 A kind of operating method of user task, server and can storage medium
CN110083442B (en) * 2019-03-18 2021-12-07 咪咕文化科技有限公司 User task operation method, server and storage medium
CN110046809A (en) * 2019-04-02 2019-07-23 中国工商银行股份有限公司 Job scheduling method and device
CN110046809B (en) * 2019-04-02 2021-11-19 中国工商银行股份有限公司 Job scheduling method and device

Similar Documents

Publication Publication Date Title
US8806182B2 (en) Multiple-core processor supporting multiple instruction set architectures
AU2014311463B2 (en) Virtual machine monitor configured to support latency sensitive virtual machines
CN105389243B (en) A kind of container monitors method and apparatus
US7814295B2 (en) Moving processing operations from one MIMD booted SIMD partition to another to enlarge a SIMD partition
KR101137073B1 (en) Proactive power management in a parallel computer
CN106030548B (en) Multinode maincenter for trust computing
CN105814541B (en) The method of computer equipment and computer equipment internal storage starting
Reusing Comparison of operating systems tinyos and contiki
CN101872335B (en) CPU console redirecting method and system and CPUs
JP2013512509A5 (en)
CN104714846A (en) Resource processing method, operating system and equipment
CN101819538A (en) The requests of operating systems in virtual machine is carried out in management
WO2005072444A3 (en) Intelligent memory device
CN114035842B (en) Firmware configuration method, computing system configuration method, computing device and equipment
CN109165086A (en) Task executing method and single-chip microcontroller
CN112486491A (en) Page generation method and device, computer equipment and storage medium
CN108737499A (en) server configuration method and device
CN102681941A (en) Extensible embedded simulation test system
WO2021223744A1 (en) Method for realizing live migration, chip, board, and storage medium
CN112667373A (en) Task scheduling method, device and system based on heterogeneous CPU architecture and storage medium
CN115617407A (en) Hardware driving method of embedded operating system
CN104678875B (en) A kind of frequency converter configuration method and frequency converter configure system
CN113220368A (en) Storage client resource isolation method, system, terminal and storage medium
CN106997182B (en) It is a kind of for single-chip microcontroller or the programmable control method of PC machine
CN109683971A (en) A kind of hardware driving multiplexing method of Internet of things system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108