简易数字频率计的设计_毕业设计论文
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
简易数字频率计的设计
摘要
本文对基于单片机的数字频率计系统进行了研究。
首先在绪论中介绍了本课题的课题背景、研究意义及完成的功能。本系统是以单片机的基本语言C语言来进行软件设计,51的编程语言常用的有二种,一种是汇编语言,一种是C 语言。汇编语言的机器代码生成效率很高但可读性却并不强,复杂一点的程序就更是难读懂,而C 语言在大多数情况下其机器代码生成效率和汇编语言相当,但可读性和可移植性却远远超过汇编语言,而且C 语言还可以嵌入汇编来解决高时效性的代码编写问题。综合以上C 语言的优点,我在编写本系统程序时选择了C 语言。正文中首先介绍了系统的总体设计思路,然后简单描述系统硬件工作原理,且附以系统硬件设计框图;接着具体描述了系统的软、硬件设计,仿真结果,误差分析;最后对本次设计做出了简单的总结、并且提出一些教学建议,文档还附上了本次系统设计的电路原理图、PCB图及元器件清单。
本文撰写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。
关键词:单片机;编程;系统设计
ABSTRACT
In this paper, based on single chip digital frequency meter systems were studied.
First described in the introduction the subject of this topic background, research significance and complete functions. The system is based on SCM's basic language C language for software design, programming language commonly used in 51 there are two, one is in assembly language, one is the C language. Assembly language code generation highly efficient machine readable, but they are not strong, complex process that is even more difficult to read, while the C language, in most cases, the efficiency of its machine code generation and assembly language equivalent, but readable and portability is far more than assembly language, but can also be embedded in C language compilation to solve the time-sensitive nature of coding problems. To sum up the advantages of C language, I am in the preparation of the system selected C language program. First introduced the system in the body of the overall design idea, and then a brief description of system hardware works, and attached to the system hardware design block diagram; then specifically describes the system's software and hardware design, simulation results, error analysis; Finally, to make this design a simple summary, and some teaching suggestions, the document is also attached to this sub-system design, circuit schematics, PCB drawings and parts lists.
This article written by the leading idea is that hardware and software combined with hardware-based, to the preparation of various functional modules.
Keywords: microcontroller; programming; system design
目录
1 设计课题任务、功能要求说明及总体方案介绍 (4)
1.1 设计课题任务 (4)
1.2 功能要求说明 (4)
1.3 设计课题总体方案介绍及工作原理说明 (4)
2 设计课题硬件系统的设计 (6)
2.1 设计课题硬件系统各模块功能简要介绍 (6)
2.2 设计课题电路原理图、PCB图、元器件布局 (6)
2.3 设计课题元器件清单 (6)
3 设计课题软件系统的设计 (7)
3.1 设计课题使用单片机资源的情况 (7)
3.2 设计课题软件系统各模块功能简要介绍 (7)
3.3 设计课题软件系统程序流程框图 (8)
3.4 设计课题软件系统程序清单 (9)
4 设计结论、仿真结果、误差分析、教学建议 (15)
4.1 设计课题的设计结论及使用说明 (15)
4.2 设计课题的仿真结果 (15)
4.3 设计课题的误差分析 (17)
4.4 设计体会 (17)
4.5 教学建议 (17)
参考文献 (18)
鸣谢 (19)
附录1:元器件清单 (20)
附录2:电路原理图 (21)
附录3:元器件布局图 (22)
附录4: PCB图 (23)