The Design and Development of S08 Family’s MCU Software Simulator

Author
LiaoGuiHua
Advisor
WangYiHuai
School
Suzhou University
Major
Computer Software and Theory
Classification
TP391.9 Computer simulation
Degree
Master's thesis
Year
2007
Downloads
160
Citations
1

Request the full text

Abstract

Freescale's 8 -bit MCU widely HCS08 series ( hereinafter referred to as S08 series ) 2004 years ago after the launch of the enhanced 8 MCU has so far launched 217 different products . Software emulator for the user program to provide a completely divorced from the actual hardware virtual operating platform , provides a lot of convenience for beginners learning portal , containing interrupt the user program debugging becomes possible . Domestic the series MCU emulation support small , therefore , the development of the series MCU software emulator of great significance . In this paper, the object-oriented design ideas , from the point of view of the system resource object is divided into the the MCU system of simulation : the CPU , internal module , peripheral modules and memory modules , and peripherals simulation . Introduced the Builder design pattern used to build the MCU and CPU object , and add a user interface (UI) and debug module . General instruction system simulation is the focus of this design and one of the difficulties , to achieve a common platform-independent instruction set simulator through virtual instruction set . The register mapping the simulation is an emphasis and difficulty , from storage resources and module function mapping two angles registers mapped area of simulation . Timing mechanism in the simulation system is the focus of this design and one of the difficulties of using the CPU clock cycles as timing units , to solve the problem of non-uniform timing reference . The system also elaborated simulation technical difficulties and solutions , multi - threaded collaboration and communication technologies such as SCI simulation bit transfer simulation ; Flash the area stflash structure descriptors introduced to facilitate the interpretation and implementation of the Directive ; the peripheral modules and peripherals and provides the UI to achieve a combination of structure simulation and instruction set simulator , to facilitate the operation of the user .

Table of contents

Chinese Abstract 3-4 ABSTRACT 4-8 Chapter 1 Overview 8-18 1.1 simulation technology infrastructure 8-10 1.1.1 Basic concepts of simulation technology 8-9 1.1.2 simulation technology status, development and application of 9-10 1.2 BUILDER Design Pattern Overview 10-12 1.3 S08 Series MCU simulation software in the background 12-14 1.3.1 Overview of embedded systems and MCU 12-13 1.3.2 S08 Series MCU Overview 13 1.3.3 S08 Series MCU simulation software in the background 13-14 1.4 S08 Series MCU software simulation purpose and significance of 14 1.5 This work and structural 14-17 1.5.1 This work 14-16 1.5.2 This structure 16-17 1.6 Chapter Summary 17-18 Chapter overall design 18-23 2.1 S08 Series MCU software emulator needs analysis 18-19 2.2 technology selection and development platform of choice 19-20 2.3 overall design 20-22 2.3.1 CPU emulation 20-21 2.3.2 memory module simulation 21 2.3.3 internal module simulation 21 2.3.4 peripheral module simulation 21 2.3.5 Peripheral simulation 21-22 2.3.6 UI and debug module 22 2.4 Summary 22-23 CHAPTER 3 CPU emulation 23-40 3.1 mode selection 23-24 3.2 internal registers simulation 24-26 3.2.1 Reg class 24-26 3.2.2 relevant members of the structural design 26 3.3 instruction set simulator 26-37 3.3.1 Instruction Fetch 27-30 3.3.2 Command Routing 30-32 3.3.3 command parsing 32-33 3.3.4 Instruction Execution 33-37 3.3.5 routing instructions, instruction and instruction execution functions analytic relationship between 37 3.4 MCU class 37-39 3.4.1 MCU class structure 37-38 3.4.2 MCU resource configuration file parsing 38-39 3.4.3 MCU simulation flowchart 39 3.5 Summary 39-40 Chapter internal module simulation 40-51 4.1 Timer simulation 40-48 4.1.1 for timing simulation 40-42 4.1.2 for input capture function simulation 42-44 4.1.3 for the output compare function simulation 44-46 4.1.4 for PWM function simulation 46-48 4.2 Reset and internal interrupt simulation 48-50 4.3 Chapter Summary 50-51 Chapter peripheral modules and peripheral simulation 51-62 5.1 peripheral module simulation 51-60 5.1.1 SCI module simulation 51-55 5.1.2 GPIO module simulation 55-60 5.2 peripherals simulation 60-61 5.2.1 SPST switch emulation 60 5.2.2 LED small light simulation 60-61 5.2.3 HyperTerminal emulation 61 5.3 Chapter Summary 61-62 Chapter memory module simulation 62-73 6.1 Memory Overview 62 6.2 register map area simulation 62-65 6.2.1 register map area Class 63 6.2.2 subclass register map area part of the simulation code 63-65 6.3 RAM area simulation 65 6.4 VECTOR zone simulation 65-67 6.5 FLASH zone simulation 67-72 6.5.1 Single Block Flash operation 67-70 6.5.2 Multiple Flash area management 70-72 6.6 Summary 72-73 Chapter VII of the UI and debugging module 73-85 7.1 UI 73-75 7.2 debug module 75-84 7.2.1 debug module introduces 75 7.2.2 symbol table processing 75-79 7.2.3 dbg document outlines 79-80 7.2.4 Test 80-84 7.3 Chapter Summary 84-85 Chapter VIII Conclusion 85-87 References 87-89 participate in research projects during the master's degree and published papers 89-90 Thanks 90-92 detailed summary 92-94

Related dissertations

  1. Research and Implementation of embedded system software emulator
  2. System software and application -based RISC core
    LiuChunXiang ·Zhejiang University ·2002 ·Master's thesis
  3. TMS320DM642-based video compression platform design