Research and Implementation of an RTOS Based on 8-Bit MCU

Author
CaoYiPeng
Advisor
PanZhuoJin
School
Shenyang Institute of Aeronautical College
Major
Applied Computer Technology
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2009
Downloads
44
Citations
0

Request the full text

Abstract

Nowadays, two methods are adopted by the researchers who develop the 8-bit MCU’s applications, one is to run program on the chip directly, and another is to add simple interrupt routines to cycle structure. Nevertheless, with the enhancement of capability of the 8-bit MCU and the complexity of program in embedded systems, the known design methods can’t satisfy the current requirements of the realistic applications. Therefore, real-time operating system is introduced into applications, which can accomplish resource management and task scheduling, boost up the stability of the system and reduce the developers’ workload.Firstly, relative knowledge, the key features and the basic functions of embedded real-time operating system are introduced. Secondly, some main design and implementation details ofμCRTOS, such as task management, interrupt management, time management, synchronization and communications between the tasks and memory management are described. Task management is the core ofμCRTOS. A new mix strategy of task scheduling is proposed based on analysis of the existed strategies of task scheduling. This strategy divides the tasks into preemptive group and non-preemptive group in order to reduce the time of switching tasks which can’t be differentiated in urgent degree.μCRTOS uses semaphore and message queue mechanism to realize the synchronizations and communications between tasks. And the memory allocation and release in memory management are designed in order to satisfy the real-time requirements of the embedded system. Finally, the test scheme ofμCRTOS is proposed and test results are presented.KeilμVision2 is selected as the software development environment for the design ofμCRTOS, and MCS-51 is used as the hardware platform for the system validation. The test results show thatμCRTOS is stable, and the anticipative goals are achieved.

Table of contents

Abstract 6-7 Abstract 7-11 Chapter 1 Introduction 11-16 1.1 Embedded Real Time Operating System Overview 11-14 1.1.1 embedded systems Introduction 11-12 1.1.2 Embedded Real Time Operating System Introduction 12-13 1.1.3 embedded real-time operating system development status 13-14 1.2 research background, objectives and content of 14-15 1.2.1 research background and objectives of 14 1.2.2 subject research content and work 14-15 1.3 thesis chapters arrangements 15-16 Chapter 2 Embedded Real Time Operating System 16-31 2.1 RTOS kernel 16-19 2.2 RTOS characteristics 19-24 2.2.1 real-time 19-22 2.2.2 Reliability 22-23 2.2.3 can be cut sex 23 2.2.4 portability 23-24 2.2.5 performance 24 2.3 RTOS basic functions 24-31 2.3.1 Task Manager 24-25 2.3.2 Interrupt Management 25-27 2.3.3 Time Management 27-28 2.3.4 task synchronization and communication between 28-31 Chapter 3 ΜCRTOS system design 31-43 3.1 key technical issues 31-33 3.2 task management design 33-36 3.2.1 Task Status 33-35 3.2.2 task scheduling 35-36 3.3 interrupt management, design 36-39 3.3.1 interrupt handling 37-38 3.3.2 interrupt communication 38-39 3.4 time management, design 39-40 3.5 between tasks synchronization and communication 40-42 3.5.1 semaphore 41 3.5.2 Message Queuing 41-42 3.6 memory management design 42-43 4 Chapter ΜCRTOS of the realization of 43-68 4.1 Task Manager to achieve 43-53 4.1.1 task-related data structures 43-44 4.1.2 task the realization of the correlation function 44-53 4.2 interrupt management to achieve 53-55 4.3 time management module to achieve 55-59 4.4 semaphore 59-60 4.4.1 semaphore data structure 59 4.4.2 semaphore realization of the correlation function 59-60 4.5 Message Queuing 60-65 4.5.1 with the message queue data structure 62 4.5.2 message queue implementation of the correlation function 62-65 4.6 memory management 65-67 the 4.7 ΜCRTOS core is the size of 67-68 Chapter 5 ΜCRTOS the tests 68-74 5.1 hardware test platform 68 5.2 system testing 68-73 5.2.1 task scheduling tests 69-71 5.2.2 semaphore test 71-73 5.3 comparison test 73-74 conclusions 74-75 References 75-77 thank 77-78 during the study for master (including recruitment), academic 78

Related dissertations

  1. The Design of MIS Real-Time Control System
    LvYuJun ·Henan University of Technology ·2012 ·Master's thesis
  2. The Porting and Testing of the Embeded Operating System μCOS
    JiaZhiQiang ·Taiyuan University of Technology ·2004 ·Master's thesis
  3. Study on Uniform Software Platform of the 3rd Mobile Communication System TD-SCDMA
  4. Task Scheduling and Process Control of Serial Production Line Coupled with Transmission and Station
    ZhaoYue ·Shenyang University ·2013 ·Master's thesis
  5. Parallel Genetic Algorithm and Application Research of Task Scheduling in Grid
    LiuWenJuan ·Hebei University of Engineering ·2013 ·Master's thesis
  6. Research on Task Scheduling and Communication Mechanisms Based on RTEMS
    LiuJianDong ·Harbin Engineering University ·2013 ·Master's thesis
  7. Random Task-oriented User Utility Optimization Model in the Cloud Environment
    ZhuMin ·Hunan University ·2013 ·Master's thesis
  8. Design and Implementation of Crawler Subsystem of Alipay Merchant Risk Monitoring System
    QianXuanTong ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Acceleration Strategy of Regular Patch-based Texture Synthesis
    TaoJing ·Liaoning Normal University ·2012 ·Master's thesis
  10. Researches on Optimization of Resource Allocation for MapReduce Scheduling
    HanHaiZuo ·South China University of Technology ·2013 ·Doctoral dissertation
  11. Design and Implementation of3D Animation Making and Management System
    LiBaiDong ·Shandong University ·2013 ·Master's thesis
  12. Research on the Scheduling Algorithms in Real-Time Multimedia Systems
  13. The Optimization Model of Grid Resource and Task Scheduling Strategy Based on Market Mechanisms
    ChenNa ·Northeastern University ·2012 ·Master's thesis
  14. Task Scheduling and Synchronization Controlling in a BSP-based Large Scale Graph Processing System
    YuanFang ·Northeastern University ·2012 ·Master's thesis
  15. Research on Energy-efficient Real-time Task Scheduling Algorithm Based on Multi-core Processors
    WangBin ·Harbin Engineering University ·2013 ·Master's thesis
  16. The Improvement of Recovery Mechanisms and Task Scheduling Based on Mapreduce
    ZhangZuo ·Tianjin University of Technology ·2013 ·Master's thesis
  17. Research on Clustering-based Task Scheduling of Ad Hoc Network
    LiuZhongHou ·Harbin Engineering University ·2013 ·Master's thesis
  18. A Task Scheduling System Model Based on Parallel Resource Attribute Selection
  19. Research and Implementation of Task Scheduling Algorithm for Cloud Computing
    WangDengKe ·Northwest Normal University ·2013 ·Master's thesis
  20. The Research for Resoure Scheduling Strategy and Simulation Analysis in Cloud Computing
    WangMei ·Zhejiang Normal University ·2013 ·Master's thesis