1、 - I - 目目 录录 摘摘 要要 ABSTRACT II 课程说明课程说明1 1.1 国内单片机实验室建设发展综述国内单片机实验室建设发展综述 .1 1.2 单片机仿真软件综述单片机仿真软件综述 2 1.3 课程设计任务任务课程设计任务任务 4 方案设计方案设计4 2.1 硬件配置方案硬件配置方案 .4 2.2 软件配置方案软件配置方案 .5 2.3 Proteus 实验室完成实验内容实验室完成实验内容 8 基于基于 PROTUES 的的仿真实验的的仿真实验 . 10 3.1、基础性实验、基础性实验-跑马灯设计跑马灯设计 . 10 3.1.1 跑马灯的硬件设计 . 10 3.1.2 跑马灯
2、的软件设计 . 14 3. 2.1 万年历设计 19 3.2.2 调试与仿真 . 20 参考文摘参考文摘. 22 总结总结. 24 附录附录. 25 跑马灯的程序清单跑马灯的程序清单 25 万年历的程序清单万年历的程序清单 25 - II - 摘摘 要要 微机系统是大二学的课程,通过这门课学会了汇编语言。微机系统的核心是硬件 仿真,硬件方正的重点是单片机。单片机的种类繁多,在我们学校由于实验室的 限制,没有条件在包括所有种类的单片机仿真 设备。本文提出基于 Proteus 软 件的单片机实验室建设方案,它能很好的解决上述问题。 数字单片机实验室是采用 Proteus 和 Keil 仿真软件为核
3、心来构建的。该数字实 验室能 完成中断、定时、单片机扩展、串行口通信和 A/D 转换等教学实验。 并给出相应的小实例说明 Proteus 的基本使用方法、仿真实验的一般流程,并在 此基础上实现复杂的 Proteus 仿真实验项目,如跑马灯仿真实验和万年历仿真实 验。 该方案以软件为核心,通过配置有限的硬件设备,很好地解决了传统单片机实验 室资金和设备维护问题,我们通过仿真实验,可以熟悉单片机系统的开发方法, 即使不真正接触单片机或者相应的芯片,也能够熟悉各种芯片,并且对进一步培 养自己的综合分析能力、排除故障能力和开发、创新能力具有重要的意义。 关键词关键词:单片机; Proteus 软件;
4、Keil软件; 数字实验室 - II - Abstract The computer system is a sophomore science courses, and pass this course to learn assembly language. The core of the computer system is a hardware emulation hardware Founders focus is the microcontroller. A wide range of SCM, in our school due to laboratory limitations,
5、 no conditions, including all types of single-chip simulation equipment. In this paper, the Proteus software-based MCU laboratory building program, it is good to solve the above problem.Digital MCU laboratory is the use of the Proteus and Keil, simulation software as the core to build. The digital l
6、aboratory to complete the interrupt, timer, microcontroller expansion of the teaching experiment of the serial port communication and A / D conversion. And give a small example illustrates the basic use of the Proteus, the general process of simulation, and Proteus simulation project on this basis, such as the the Marquee simulation and calendar of simulation experiments.Software, the program through the allocation of limited hardware, a good solution to the traditional MCU labo