节点文献

单片机系统仿真

The Simulation of the Single Chip Microcomputer System

【作者】 刘文秀

【导师】 程桂芬;

【作者基本信息】 沈阳工业大学 , 控制科学与工程, 2004, 硕士

【副题名】对用户的软、硬件系统运行过程仿真

【摘要】 单片机系统仿真软件是面向各大中专院校的师生而研制开发的。它完全依靠软件手段来开发单片机的应用软件,无需任何单片机硬件设备。该仿真软件能在通用计算机上实现对单片机的硬件模拟、指令模拟和运行状态的模拟,集编程、修改、运行等功能于一体。单片机系统仿真软件对大专院校的单片机教学起到很重要的辅助作用。使用单片机系统仿真软件不仅可以充分利用现有丰富的通用机资源提高实验效率,而且,只需对软件开发系统的部分程序稍作修改,便可升级为新的单片机软件开发系统以满足教学和工程设计的要求。 本课题包括两部分:第一部分是利用人工智能专家系统知识,自动生成用户所需的硬件电路;第二部分是根据硬件和用户所编写的汇编语言程序,仿真系统(硬件和汇编语言程序)的运行过程,实现对固定电路的仿真。本文重点介绍第二部分即对单片机应用系统硬、软件两部分的仿真。 本论文首先从离散事件系统仿真原理出发,通过四种仿真策略的比较,确定采用进程交互法实现仿真钟的管理。并以此确定整个程序的时间管理。 然后,本文介绍了单片机系统仿真软件的功能。它是以Windows为操作平台,利用VB6.0的可视化界面、事件驱动原理、各种控件及数据库编程知识,开发的仿真软件。经过编程及调试,基本上实现了主要的单片机实验的仿真。其中包括数据存储器、程序存储器、键盘的输入、数码管的输出、数模转换器、模/数转换器、并行口、串行口等等的仿真。 最后,在软件工程的指导下,介绍了软件的结构和设计过程;论述了整个系统的程序设计思想和实现方法,编写了实现课题要求的软件及调试方法。

【Abstract】 The simulation software of the single chip microcomputer system was developed for the students who are studying in the university. It developed the single chip microcomputer’s internet applications by software means completely, and did not need any hardware equipment. This software could realize the simulation of the single chip microcomputer hardware, injunction simulation and function estate simulation on the ordinary computer, and incorporated program, modification, function ,etc. The simulation software of the single chip microcomputer system has important assistant function for the teaching of single chip microcomputer in the university. We can not only make the best of abundant ordinary computer resource to improve experiment efficiency, but also need merely modify partial program of software exploitation system then it will become the new software exploitation system to satisfy teaching and engineer designing demand.The topic included two parts. Firstly, it utilized artificial intelligent expert system information to create hardware circuits user want to need. Secondly, the running states of the system (peripheral circuits and inputted-assemble-language) according to the inputted-assemble-language instructions needed to be displayed, and realized the simulation of the fixed circuit. The second part was mainly introduced in this paper.This paper firstly introduces the theory of the discrete event system simulation, and compares the four simulation tactics with each other, and then makes sure to use tenor alternation method to manage simulation clock. And confirms the whole program’s time manage.Secondly, this paper introduces the software function. Under the Windows condition, we utilize VB6.0’s visual interface, event drive elements, various control and data-base program to exploit the simulation software of the single chip microcomputer system. By programming and debugging the simulation software of the single chip microcomputer system , we can realize the experiments simulation of the single chip microcomputer, including data memorizers,Lastly, under the software engineering’s guidance, this paper introduces the software’s structure and design process. It discusses the whole system’s program design ideas and realization method, and compiles the software of this topic and debugging method.

  • 【分类号】TP391.9
  • 【被引频次】1
  • 【下载频次】669
节点文献中: 

本文链接的文献网络图示:

本文的引文网络