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

Implementation method of preemptive multi-task real-time operating system for miniature single-chip microcomputer

A technology of a real-time operating system and an implementation method, which is applied in the field of preemptive multi-task real-time operating system implementation, can solve the problems of large space occupation, poor real-time performance, small amount of code and real-time performance, and achieve the effect of less storage resources and good real-time performance

Pending Publication Date: 2022-01-07
NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the problem that the existing embedded operating system takes up a lot of space and has poor real-time performance when it is implanted into a micro-single-chip microcomputer, and proposes a method for realizing a preemptive multi-task real-time operating system for a micro-single-chip microcomputer. Smaller, better real-time, can provide task scheduling, semaphore management, interrupt service and other functions

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
  • Implementation method of preemptive multi-task real-time operating system for miniature single-chip microcomputer
  • Implementation method of preemptive multi-task real-time operating system for miniature single-chip microcomputer
  • Implementation method of preemptive multi-task real-time operating system for miniature single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0038] Such as Figure 1-3 As shown, a method for implementing a preemptive multi-task real-time operating system for a micro-single-chip microcomputer, including an operating system establishment process and an operating system scheduling process. Among them, the establishment of the operating system includes the following steps:

[0039] (1) Determine the priority of each task according to the use requirements of the system, mainly based on the real-time performance required by the task, and tasks with high real-time requirements have higher priority;

[0040] (2) Allocate storage space for each task and establish an entry function. The storage space is mainly used to store task operation parameters. When the task is delayed, the operation parameters are stored in the storage space, and the subsequent tasks can be directly restored when runn...

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 invention discloses an implementation method of a preemptive multi-task real-time operating system for a miniature single-chip microcomputer, and belongs to the technical field of single-chip microcomputers. The method comprises a process of establishing an operating system and a process of scheduling the operating system, the operating system is mainly composed of tasks, the establishment of the operating system and the scheduling of the operating system are in a successive relationship, and the establishment of the operating system needs the steps of task priority determination, task entry function creation, configuration interruption and the like. The preemptive mode is mainly realized through scheduling of the operating system, and the scheduling of the operating system is mainly realized through interruption generated by a system timer and matching with a delay table and a ready table of a task. The miniature single-chip microcomputer operating system has the advantages of being small in occupied space and good in portability.

Description

technical field [0001] The invention relates to the technical field of single-chip microcomputer programming, in particular to a method for realizing a preemptive multi-task real-time operating system for micro single-chip microcomputers. Background technique [0002] With the development of single-chip microcomputer technology, single-chip microcomputers have been widely used in various fields of daily production. Single-chip microcomputer adopts miniaturization design, integrates CPU, memory, general-purpose I / O and interrupt system, and is usually used as the control core of the system. In order to realize the control effectively, the software development aiming at the one-chip computer is multitasking usually, and the requirement to real-time performance is very high. The operating system can provide services such as multi-task scheduling and interrupt management. Therefore, implanting the operating system in the microcontroller can meet the control requirements of the ...

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 Applications(China)
IPC IPC(8): G06F9/48G06F9/50G06F9/448
CPCG06F9/4881G06F9/5038G06F9/449
Inventor 陈震程志洪朱永强张润东李发铭谢佳熙
Owner NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP