1、 单片机原理及接口技术单片机原理及接口技术 课程设计说明书课程设计说明书 设计课题:设计课题:秒表的设计秒表的设计 物理与电气工程学院物理与电气工程学院 二一二年十二月二一二年十二月 第 2 页 共 21 页 摘要摘要 二十世纪跨越了三个“电”的时代,即电气时代、电子时代和现已进入的电脑时代。 本文来自毕设资料网()但是,实际工作中并不是任何需要计算机的场合都要求计算机有很高的性能,一个控制电 冰箱温度的计算机难道要用 P4 吗?应用的关键是看是否够用,是否有很好的性能价
2、格比。 单片机又称单片微控制器,它不是完成某一个逻辑功能的芯片,而是把一个计算机系统集 成到一个芯片上。概括的讲:一块芯片就成了一台计算机。它的体积小、质量轻、价格便 宜、为学习、应用和开发提供了便利条件。自从 1976 年问世以来,单片机获得了巨大的 发展。现在比较流行的单片机是美国 Intel 的 MCS51/96 以及 Motorola 的 MC 系列,Zilog 的 Z8 系列,同时还有更多新型的、功能更强的单片机不断出现。 &nbs
3、p; A Abstractbstract:Twentieth century across the three “power” of the era, that the age of electricity, the electronic age and has now entered the computer age. However, the actual work where the computer is not any need to require a high performance computer, a co
4、ntrol fridge temperature P4 computer do you use? The key is to see whether the application of adequate, whether there is a very good cost performance. Single chip, also known as single-chip microcontroller, it is not the completion of a logic function of the chip, but a computer system integrated in
5、to a chip. Speaking in general terms: a single chip into a computer. Its small size, light weight, cheap, for learning, application and development of facilities provided. Since its inception in 1976, SCM was a great development. SCM is now more popular in the United States, and Motorola, Intels MCS
6、51/96 MC series, Zilogs Z8 series, as well as more new, more powerful microcontrollers continue to emerge. 关键字关键字:单片机,秒表,系统设计。 第 3 页 共 21 页 目录目录 摘要摘要 . 2 目录目录 . 3 一、课程设计的性质、目的和意义一、课程设计的性质、目的和意义. 4 1 1课程设计的性质:课程设计的性质:. 4 2 2课程设计的目的和任务:课程设计的
7、目的和任务:. 4 二、内容和要求二、内容和要求 . 4 1 1设计题目设计题目 . 4 2 2设计内容设计内容 . 4 3 3设计要求设计要求 . 4 三、设计方案三、设计方案 . 4 1.1.设计方案的选择设计方案的选择. 4 1.1 1.1 计时方案计时方案. 4 1.21.2 显示方案显示方案 4 2.2.硬件部分硬件部分 . 7 2.1 STC89C52RC2.1 STC89C52RC 单片机介绍单片机介绍 7 2.2 2.2 总仿真电路原理图,如图总仿真电路原理图,如图 1.51.5 所示所示. 7 3.3. 软件部分软件部分 . 9 3.13.1 主程序主程序 9 3.2 3.2 定时器定时器 T0T0 中断服务程序中断服务程序. 9 3.33.3 定时器定时器 T1T1 中断服务程序中断服务程序 9 3.43.4 外部