Design of Real Time Operating System Based on PIC24F MCU

Author
ZhangNa
Advisor
DuXiaoTong
School
Shandong University
Major
Detection Technology and Automation
Classification
TP316.2 Real-time operating system
Degree
Master's thesis
Year
2009
Downloads
63
Citations
3

Request the full text

Abstract

With the improvement of embedded system’s performance, embedded application is becoming increasingly wide. Traditional foreground-background software architecture is no longer able to support the more and more complicated application requirement. A lot of problems, such as long response time of tasks, high coupling between modules and difficulty to reuse code, become more and more prominent. It makes the introduction of embedded system in Real-time Operating System become urgent.Based on the background, the paper designs and implements an Embedded Real-time Operating System based on PIC24F microcontroller. The system consists of the real-time kernel and tiny TCP/IP protocol stack.The real-time kernel chiefly includes the real-time multitask scheduling, inter-task synchronization and communication, interrupt administration and time administration. The multitask scheduler adopts preemptive strategy based on priority level, which can achieve microsecond response, to support the real-time embedded system to meet performance requirements. Inter-tasks use semaphore mechanism to achieve synchronization and exclusion, and use message and mail mechanisms to achieve communication. The real-time kernel also supports interrupt nesting, which can nest three times at most. The interrupt stack is independent of task stack. In addition, the kernel provides 10ms clock beat and software timer for users.In order to meet the communication requirements of the embedded system, the paper develops a tiny TCP/IP protocol stack based on RTL8019AS Ethernet chip by clipping and modifying the Microchip TCP/IP stack - MCHPStack. This stack consists of Ethernet driver, ARP, IP, ICMP and TCP protocols. And this stack is easy to integrate with the embedded system to realize the Ethernet data transmission.At last, based on the analysis of the embedded system, a reasonable testing project is designed to evaluate this system’s real-time performance. The results show that the designed embedded real-time operating system has ideally real-time performance to meet the needs of practical applications. At present, this system has been successfully used in the energy management system in the business district of Shouguang, Shandong Province, which shows the good stability and reliability of this system.

Table of contents

Abstract 8-9 ABSTRACT 9-11 first chapter 11-17 1.1 research background and significance 11 1.2 embedded real-time operating system 11-16 1.2.1 embedded operating system development process 11-12 1.2.2 embedded Operating System development Status 12-14 1.2.3 modern embedded operating system features 14-15 1.2.4 embedded operating system development trend 15 - 16 1.3 research contents and chapters arrangements 16-17 Chapter embedded real-time operating system design and implementation 17-40 2.1 PIC24F family of microcontrollers controller 17-18 2.2 embedded operating system kernel design 18-39 2.2.1 task Manager 18-25 2.2.1.1 task control block 18-19 2.2.1.2 task status 19-20 2.2.1.3 task context and task stack 20-21 2.2 .1.4 task creation 21-22 2.2.1.5 task delay 22-23 2.2.1.6 task suspension 23 2.2.1.7 task priority changes 23 2.2.1.8 task scheduling 23-25 ?? 2.2.2 interrupt Management 25-28 2.2.2.1 critical processing area 25-26 2.2.2.2 interrupt Service Routine 26-28 2.2.3 ticks and time management 28-32 2.2.3.1 clock tick interrupt 29-30 2.2.3.2 software timer 30-32 2.2.4 synchronization and communication between tasks 32-38 2.2.4.1 semaphore mechanism 32-34 2.2.4.2 message mechanism 34-36 2.2.4.3 mailbox mechanism 36-38 < br /> 2.2.5 system initialization and startup 38-39 2.3 Chapter Summary 39-40 Chapter embedded TCP / IP protocol stack 40 -58 3.1 embedded Internet solutions 40 3.2 embedded TCP / IP protocol stack developed to streamline 40-53 3.2.1 streamlined protocol stack 42-43 3.2.2 network Interface layer 43-44 3.2.3 network Layer 44-48 3.2.3.1 ARP protocol 44-46 3.2.3.2 IP protocol 46-48 3.2.3.3 ICMP protocol 48 3.2.4 transport Layer 48-52 3.2.5 protocol stack management 52-53 3.3 protocol stack and operating system integration 53-57 3.3.1 stack tasks 53-55 3.3.2 stack tasks communication 55-57 3.4 Summary 57-58 Chapter nbsp real-time operating system performance test ; 58-64 4.1 real-time operating system performance evaluation index system 58-60 4.2 test Method 60 4.3 test results 60 - 63 4.4 Summary 63-64 Chapter Summary and Outlook 64-65 References 65-68 Acknowledgements 68-69 papers published during the study for a degree directory 69-70 thesis reviewers and the respondent Fact Sheet 70

Related dissertations

  1. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  2. The Study of Remote Video Monitor System Baced on ARM
    GuoZuo ·Hebei University of Technology ·2012 ·Master's thesis
  3. Research and Design of Intelligent Medical Infusion Monitoring System
  4. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  5. Video Surveillance System Based on Embedded Technology Research
  6. Design of Video Monitoring System Based on the Embedded
  7. The Design of Embedded Network Video Surveillance System Based on ARM9
  8. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  9. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  10. Data Acquisition System of Cavern Based on Embedded Web Server
  11. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  12. Research of Permeability Testing System for Clay
  13. Research on the Indoor Air Monitoring System Based on Embedded Linux
  14. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  15. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  16. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  17. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  18. Design and Implementation of Magnetic Card Detection System Based on Embedded System
  19. Design and Implementation of Information Acquisition System for Industry Field
    WangChongXiang ·Dalian University of Technology ·2013 ·Master's thesis
  20. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis