Research on Interrupt Processing Mechanism of Embedded System Based on Deterministic Finite Automaton

Author
ShiZuo
Advisor
WangZuo
School
Chongqing University
Major
Computer Software and Theory
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2008
Downloads
54
Citations
0

Request the full text

Abstract

The interrupts are indispensable constituent in computer systems. In input/output processing, multichannel procedure, time-sharing operation, real-time processing of man-machine interface, accident processing, surveillance and track of procedures and in multi-processor systems, interrupts play a key role. An embedded system is able to perform without the support of an operating system, but the interrupt processing all there is no place not in. When an embedded system is actually in use, massive interrupt processing of amounts of interrupt signals triggered by outside interrupt sources is required. The signals, in most situations, are disordered, whereas completing of each task,asks for an ordered interrupt sequence composed by a set of interrupt signals. This kind of situation is called complex interrupt. As the existing interruption mechanism is facing vital challengs when dealing with the complex interruption., a more effective and stable interruption mechanism which is able to handle disordered and complex interrupt requests with efficiency will add huge flexibility to designing and using of embedded systems, thus enhance the working efficiency of the systems.In this paper, we target on solutions to reasonably schedule and orderly process disordered interruption signals that an embedded system received,.mainly analyzed traditional interrupt processing ways in SCMs and external interrupt controllers. We also studied the interruption processing mechanism in Linux operating system. At last, we proposed an interruption mechanism based on DFA (Deterministic Finite Automaton), which without support for multi-task operating system embedded in the system how to make a number of tasks can be orderly implementation and without the interruption of disorder signal interference.This mechanism adopted a two-step approach to get interruption signals as many as possible, then it sequentially scheduled the received signals according to working principles of DFA. In this way, we are able to deal with disordered complex interrupt requests.In Chapter2, we focused on interrupt mechanisms workig in embedded systems without support of an operating system. In this kind of embedded system, interrupt processing solely rely on the processing power of CPU or the capacity of interrupt controller. When facing complex interruptions, the system is very vulnerable to logic confusions, leading to system malfunction or even system crash. Complex interruptions also cause great distress for designers.In Chapter3, we talk about interrupt processing in Linux, including initialization process of the interruption, hardware handling of interruptions and abnormities, interrupt process and Linux soft interrupt mechanism. Some code about the interruption in Linux system is also discussed in this chapter.In the fourth chapter, we proposed a new interruption mechanism based on DFA. The new mechanism is mainly used in embedded systems without support of an operating system. The interruption mechanism introduced DFA working principles which enabled orderly completion of various tasks by disorder interruption signals managed under DFA, thus multi-tasking is better supported in actual application.

Table of contents

Abstract 4-5 ABSTRACT 5-10 1 Introduction 10-14 1.1 topics of academic and practical significance 10-12 1.1.1 CPU working in parallel with an external device 10 1.1.2 can handle exceptions 10 1.1.3 to achieve real-time processing 10 1.1.4 achieve human contact 10-11 1.1.5 user program and the operating system to achieve contact 11 1.1.6 multi -channel program parallel execution 11 1.1.7 In a multiprocessor system, realize the link between processors 11-12 1.2 research status 12-13 1.3 purpose of this study and research 13 1.4 papers contents and arrangement of 13-14 2 common embedded system interrupt management overview 14-22 2.1 microcontroller interrupt management 14-15 2.2 interrupt controller interrupt management 15-20 2.2.1 Set Priority way 15-17 2.2.2 maskable interrupt sources manner 17-18 2.2.3 end interrupt processing mode 18-19 2.2.4 Interrupt Request a way to introduce 19-20 2.3 Interrupt priority dynamic adjustment 20-22 2.3.1 of the low -priority interrupt can interrupt high-priority interrupt service routine 20 2.3.2 in the interrupt handler to set a new interrupt mask word 20-22 3 Linux interrupt handling mechanism 22-32 3.1 Overview 22-23 3.2 Linux interrupt system initialization process 23-24 3.2.1 first initializes the interrupt descriptor table 23-24 3.2.2 Second initialize the interrupt descriptor table 24 3.3 hardware interrupt and exception handling 24-26 3.4 Linux interrupt system process 26-28 3.4.1 Exception Handler analysis 26 3.4.2 External interrupt handler analysis 26-28 3.4.3 interrupts and exceptions return 28 3.5 Linux soft interrupt mechanism 28-32 4 based on finite state automata embedded interrupt mechanism 32-57 4.1 overall structure and characteristics 32-33 4.2 main data structure 33-34 4.3 half interrupt management 34-35 4.4 half interrupt management 35-48 4.4.1 Automata and interrupt management in conjunction 36-38 4.4.2 Single- tasking multi interrupted work 38-39 4.4.3 multitasking and interruption of the work 39-42 4.4.4 multitasking and interruption of special circumstances 42-48 4.5 Experiment and Analysis 48-57 4.5.1 single- task and multi- interrupt experiments 48-50 4.5.2 multitasking and interruption experiments 50-52 4.5.3 Experimental analysis 52-57 5 Summary and Outlook 57-59 5.1 research papers and summary 57 5.2 insufficient and development 57-59 Thanks 59-60 References 60-62 Appendix 62-64

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. Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
    JinPing ·Central South University ·2013 ·Master's thesis
  4. Video Surveillance System Based on Embedded Technology Research
  5. Design of Video Monitoring System Based on the Embedded
  6. The Design of Embedded Network Video Surveillance System Based on ARM9
  7. Research and implementation of remote monitor system of ship based on the technology of the Internet of things
  8. Design of Video Surveillance Software Based on Ti Dm6446Processor
    YuanWei ·Zhejiang University of Technology ·2013 ·Master's thesis
  9. Data Acquisition System of Cavern Based on Embedded Web Server
  10. Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
    LiuDaoLin ·Dalian Polytechnic University ·2008 ·Master's thesis
  11. Research on the Indoor Air Monitoring System Based on Embedded Linux
  12. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  13. Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
  14. Research on Meteorological Data Acquisition and Processing System
    ZhaoSheng ·Wuhan University of Technology ·2013 ·Master's thesis
  15. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  16. Design and Implementation of Magnetic Card Detection System Based on Embedded System
  17. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis
  18. Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
    LiShun ·Northeastern University ·2012 ·Master's thesis
  19. The Research of CANopen Protocol Based on Embedded Systems
  20. The Research and Design of Smart Home System Based on Zigbee Technology
    ZhangZhiDong ·Liaoning Normal University ·2013 ·Master's thesis