Transplant and application of uc/os- II in 51

Author
WangYi
Advisor
WangQingXian , OuHuaQin
School
University of Electronic Science and Technology
Major
Software Engineering
Classification
TP316.84 OS / 2 operating system
Degree
Master's thesis
Year
2012
Downloads
176
Citations
0

Request the full text

Abstract

In order to make the program good,write easy,hard maintenance decrease,systemextension facility and exchange easy,a real-time embedded operating system isnecessary in embedded system. μc/os-Ⅱ embeded operating system is a real-timeoperating system with an open soμrce code. whose program structure is strong.Most ofthe codes are written by C langrage With excellent exchangeability and portand most ofthe codes are written by C langμage.With excellent exchangability and portability.μc/os-Ⅱ is a soft middle weight system,which mainly excutes the most essemmanagement function in the operating system,such as the process building,swithing andconnunication.It is the best teaching material to understand the kernal fμnction of theoperating system. μc/os-Ⅱ embedded operating system has successfully maketransplanting come true in8-bit machine,16-bit machine and32-bit mathine.This article tells how to transplant μc/os-Ⅱ embedded operating system to the51monolithic on the basis51monolithic and how to develp LEG RGB lanterncontroller,which usesμc/os-Ⅱ embedded oprating system as softwareplatform.Firstly,this article introduces hardware system kernel,archiving system andinterrupt system of51monolithic.Secondly,It introduces the reentrant function of C51compiler and the step of51monolithic achieving transplanting,which is the keycomponent of transplanting μc/os-Ⅱ.Afer transplanting μc/os-Ⅱ to the51monolithicsuccefully,this article even tells using principle and driverof widely used12864LCD.On this foundation, this article introduces how to realize the remote controllingapplication of LED.The specific content of the complete as follow:1.The basis of operating system transplanting----the structure and storage ofhardware system,interrupt system of the51monolithic,the basic principle of μc/os-Ⅱoperating system.2.The particularity of Keil C51----the analysis of reentrant functionand simulation of the stack pointer3. Complete the specific task of base work.4.The introduction to Driver and control principle of Liquid crystal display module, Finish the synchronous test with3tasks by semaphore and the remote controlapplication of LED in μc/os-Ⅱ.

Table of contents

Summary 4-5 ABSTRACT 5-9 chap subject background 9-14 1.1 embedded operating system overview and UC / OS - ⅱ research status at home and abroad 9-10 1.2 topics the background 10-12 1.3 research 12-13 1.4 thesis structure transplant principle 13-14 chapter UC/OS- Ⅱ of 14-34 2.1 51 microcontroller hardware architecture 14-21 2.1.1 CPU register and you function 14-15 2.1.2 51 single-chip storage space 15-17 2.1.3 51 single-chip external data memory 17 2.1.4 CPU timing 17-18 2.1.5 interrupt system 18-19 2.1.6 interrupt sources and interrupt flag 19 - 20 2.1.7 interrupt Priority control 20-21 2.2 KEIL C51 editor reentrant functions 21-29 available in 2.2.1 C51 reentrant functions 21-24 2.2.2 analog stack depth analysis 24-29 2.3 function call and return the site to save and restore breakpoints mix compilation 29 2.4 KEILC51 in C and assembly language code of 29-32 2.5 Summary 32-34 Chapter UC/OS- Ⅱ on 51 transplant 34-45 3.1 OS_CPU.H file 37-38 3.2 rewritten OS_CPU_A.ASM file 38-41 3.3 rewritten OS_CPU_C.C file writing 41-42 3.4 system initialization ticking clock and interrupt function 42-44 3.5 Summary 44-45 <br / > the fourth chapter UC/OS- Ⅱ in 51 post- transplant testing and application 45-69 4.1 tasks proposed 45 4.2 hardware circuit 45 -47 4.3 12864LCD driver preparation and testing procedures 47-49 4.4 UC/OS- Ⅱ run the test 49-51 4.5 LED lights dimming remote control application 51-67 4.5.1 LED lights dimming principle 51-52 4.5.2 LED controller functions 52 4.5 .3 platform based μc/os- Ⅱ LED controller solutions to solve design 52-67 4.5.3.1 hardware design and operating principle 52-54 4.5 The overall design of the software program . 3.2 54-56 4.5.3.3 control Task design 56-57 4.5.3.4 software detailed design 57-67 <br / > 4.6 summary 67-69 Chapter summary and Outlook 69-71 5.1 transplant results 69 5.2 problems 69 5.3 embedded systems outlook 69-71 Thanks 71-72 References 72-74