Design and implementation of embedded development platform based μC/OS- Ⅱ
- Author
- ZhangSiQi
- Advisor
- DuQingZhen
- School
- Northwestern Polytechnical University
- Major
- Mechanical and Electronic Engineering
- Classification
- TP368.1 Microprocessor
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 319
- Citations
- 8
Abstract
Embedded system combines a variety of technologies of microelectronics, computer software / hardware, communications and electronic engineering, are widely used in aviation, aerospace, instrumentation, industrial control, home appliances, information appliances and 3C (Computer, Communication Control) and other fields is the primary means of integrated innovation. Embedded operating system RTOS (Real-Time Operation System) programming has obvious advantages than traditional programming, more and more occasions to get a wide range of applications, research and development the fieldbus function of embedded The real-time operating system development platform has the important practical significance. Firstly, starting from the basic concepts of embedded systems, a simple overview of the need to use RTOS embedded system, RTOS development status quo and development trend, and then analyzes the μ C/OS- Ⅱ operating system kernel structure, such as: task scheduling, time management, communication mechanisms, and memory management. On this basis, and with the data processing ability of the 8-bit microcontroller the Z84C15 development machine for the control object to the preemptive kernel μ C/OS- Ⅱ embedded operating system, Borland C 4.5 compiler environment structures an embedded operating system hardware and software development platform, and complete support package BSP (Board Support Package) based on the part of the board-level μ C/OS- Ⅱ development, including the design of the data queue (Data Queue), serial input I / O controller SIO (Serial Input / Output Controller) driver design, microcontroller CAN (Controller Area Network), LAN the fieldbus driver design. Design development platform, through the the experimental board communications program development platform and design debugging, validation data queue design, the SIO driver design and CAN bus driver correctness. This development process is simple and convenient, reflects the advantage of the development of embedded operating system platform, designed to achieve the expected. The platform embedded developers can be avoided on the Z84C15 repetitive design, shorten the development cycle. Also enables embedded developers freed from complicated CPU and hardware control, so as to focus on application development and improve development efficiency. The paper concluded that the μ C/OS- Ⅱ operating system defects, such as clock interrupt latency, memory and task stack waste and improvement program, provides valuable recommendations for the next step in the research.
Table of contents
Abstract 3-4
Abstract 4-5
directory 5-7
first chapter 7-10 <br / > 1.1 Introduction 7
1.2 embedded system development and status 7-8
1.3 topics of the background and significance 8-9
1.4 main research content and structure of the paper 9-10
Chapter II embedded operating system theory and μC/OS- Ⅱ kernel structure 10-29
2.1 embedded operating system 10-11
2.1.1 embedded operating system 10-11
2.1.2 real-time operating system 11
2.1.3 timeshare system 11
2.2 embedded systems and front desk systematic comparisons 11-13
2.3 embedded operating system μC/OS- Ⅱ Introduction 13-14
2.4 μC/OS- Ⅱ architecture 14-27
2.4.1 task Manager 14-20
2.4.2 beat the clock and time management 20-21
2.4.3 inter-task communication and synchronization 21-25
2.4.4 memory Management 25-27
2.5 μC/OS- Ⅱ initialization and startup tasks 27-29
2.5.1 μC/OS- Ⅱ initialization 27-28
2.5.2 task start 28 - 29
Chapter μC/OS- Ⅱ in Z84C15 MCU Porting 29-46
3.1 μC/OS- Ⅱ transplant implementation requires 29-30 <br / > 3.2 development Tool Selection 30-32
3.3 file OS_CFG.H transplant 32-33
3.4 file OS_CPU.H transplant 33-35 <br / > 3.5 file OS_CPU_C.C transplant 35-36
3.6 file OS_CPU_A.ASM transplant 36-41
3.6.1 functions OSStartHighdy () transplantation 36-38
3.6.2 functions OSCtxSw () transplantation 38-39
3.6.3 functions OSIntCtxSw () transplantation 39-40
3.6. 4 function OSTickISR () transplantation 40-41
3.7 test porting code 41-46
3.7.1 compiler environment debugging 42-43 <br / > 3.7.2 test the code associated with the processor 43-46
Chapter IV of Z84C15 microcontroller based μC/OS- Ⅱ BSP development 46-70
4.1 data Queue design 46-52
4.1.1 functions for use 46-48
4.1.2 data Structures 48
4.1.3 establishment of data queue 48-50
4.1.4 FIFO mode data into the team 50-51
4.1.5 LIFO mode data into the team 51
4.1.6 data from the team 51
4.1.7 Clear data queue 51-52
4.1.8 to obtain data queue status 52
4.2 SIO driver design 52-60
4.2.1 SIO overall structure and register structure 53-55
4.2.2 functions for use 55
4.2.3 SIO communication mechanisms 55-60
4.3 CAN BUS driver design 60-70
4.3.1 Overview 60-61
4.3.2 system hardware structure 61-62
4.3.3 communication mechanism 62-63
4.3.4 CAN communication process design 63-70
Chapter μC/OS- Ⅱ improvements 70-73
5.1 clock interrupt improvement 70-71
5.1.1 clock interrupt inadequate analysis 70-71 < br /> 5.1.2 clock management system improvement program 71
5.2 improved memory management 71-72
5.2.1 memory Management inadequate analysis 71 -72
5.2.2 memory management for solutions 72
5.3 task stack improvements 72-73
Chapter VI conclusions and Prospects 73 -74
6.1 Conclusion 73
6.2 Prospects 73-74
References 74-77
during my study published papers 77-78
Thanks 78-79
Related dissertations
- The Research of Automotive Real-time OS Based on μC/OS-Ⅱ
- Research and Development of Embedded Calibration Instrument of Power Measurement
- Task Scheduling and Process Control of Serial Production Line Coupled with Transmission and Station
- Parallel Genetic Algorithm and Application Research of Task Scheduling in Grid
- Research on Task Scheduling and Communication Mechanisms Based on RTEMS
- Random Task-oriented User Utility Optimization Model in the Cloud Environment
- Design and Implementation of Crawler Subsystem of Alipay Merchant Risk Monitoring System
- Acceleration Strategy of Regular Patch-based Texture Synthesis
- Researches on Optimization of Resource Allocation for MapReduce Scheduling
- Design and Implementation of3D Animation Making and Management System
- Research on the Scheduling Algorithms in Real-Time Multimedia Systems
- The Optimization Model of Grid Resource and Task Scheduling Strategy Based on Market Mechanisms
- Task Scheduling and Synchronization Controlling in a BSP-based Large Scale Graph Processing System
- Research on Energy-efficient Real-time Task Scheduling Algorithm Based on Multi-core Processors
- The Improvement of Recovery Mechanisms and Task Scheduling Based on Mapreduce
- Research on Clustering-based Task Scheduling of Ad Hoc Network
- A Task Scheduling System Model Based on Parallel Resource Attribute Selection
- Research and Implementation of Task Scheduling Algorithm for Cloud Computing
- The Research for Resoure Scheduling Strategy and Simulation Analysis in Cloud Computing
- The cloud resource scheduling process oriented perception