Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for realizing parallel execution of real-time tasks and time-consuming tasks of single-chip microcomputer

A technology for real-time tasks and implementation methods, which is applied in concurrent instruction execution, machine execution devices, program control devices, etc., and can solve the problems of error-prone state transition, high error correction and maintenance costs, occupation of memory and processor resources, etc. Avoid loss of calling context, clear software development process, and no performance loss

Active Publication Date: 2017-07-14
深圳航天工业技术研究院有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved by the present invention is to avoid the situation that the single-chip microcomputer software of the RTOS cannot be used in the prior art, and the existing real-time and time-consuming task execution needs to take up additional memory and processor resources, complicated synchronous processing, or program logic Complexity, error-prone state transitions, high error correction and maintenance costs, etc., and a method for parallel execution of real-time tasks and time-consuming tasks in single-chip microcomputers is proposed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for realizing parallel execution of real-time tasks and time-consuming tasks of single-chip microcomputer
  • Method and system for realizing parallel execution of real-time tasks and time-consuming tasks of single-chip microcomputer
  • Method and system for realizing parallel execution of real-time tasks and time-consuming tasks of single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Below in conjunction with each accompanying drawing, embodiment is described in further detail:

[0030] see Figure 4 , a system for realizing parallel execution of real-time tasks and time-consuming tasks of a single-chip microcomputer, including a time-consuming task module, a real-time task module and an interrupt task module, the time-consuming task module is located at the top of the system, and the real-time task module is located at the middle layer of the system , the interrupt task module is located at the bottom of the system. In this way, by clearly dividing the task hierarchy, real-time tasks and time-consuming tasks can be executed in parallel in single-threaded mode, and the chaotic situation of splitting time-consuming tasks followed by mixed scheduling of real-time tasks can be avoided.

[0031] Specifically, the real-time task module includes a sequentially connected timing task submodule for updating the timing task counter, a sending packet submodul...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to a method and system for realizing parallel execution of real-time tasks and time-consuming tasks of a single-chip microcomputer, comprising the steps of: packaging all real-time tasks into a real-time task calling function, and calling all real-time tasks sequentially in the realization of the real-time task calling function Once; the time-consuming task is divided into several execution steps, corresponding to at least one call of the real-time task call function is implanted in each execution step. The invention has the following technical effects: it does not affect the readability of the program flow, and conveniently realizes the skill of realizing parallel operation in the single-thread mode, and completely retains the call stack, which is suitable for locating the fault source during debugging.

Description

technical field [0001] The invention relates to the program operation management of the single-chip microcomputer, in particular to the coordination of the real-time task and the time-consuming task of the single-chip microcomputer. Background technique [0002] Real-time tasks refer to tasks that cannot be blocked, cannot be delayed, and respond in a timely manner. They usually include communication protocol message processing, timing tasks, and dog feeding. Such task processing functions are very fast and the running time is short. Time-consuming tasks refer to tasks that have internal processing logic, have a specific execution order, and take a long time to complete. This type of task belongs to the application level and does not require real-time performance, but the order of execution must be guaranteed. [0003] In the existing single-chip environment, two methods are usually used to realize the parallel execution of real-time tasks and time-consuming tasks. One uses...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44G06F9/38
Inventor 胡柏华
Owner 深圳航天工业技术研究院有限公司