资源描述:
《简易数字频率计的设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、摘要本文对基于单片机的数字频率计系统进行了研究。首先在绪论中介绍了本课题的课题背景、研究意义及完成的功能。本系统是以单片机的基本语言C语言来进行软件设计,51的编程语言常用的有二种,一种是汇编语言,一种是C语言。汇编语言的机器代码生成效率很高但可读性却并不强,复杂一点的程序就更是难读懂,而C语言在大多数情况下其机器代码生成效率和汇编语言相当,但可读性和可移植性却远远超过汇编语言,而且C语言还可以嵌入汇编来解决高时效性的代码编写问题。综合以上C语言的优点,我在编写本系统程序时选择了C语言。正文中首先介绍了系统的总体设计思路,然后简单描述系统硬件工
2、作原理,且附以系统硬件设计框图;接着具体描述了系统的软、硬件设计,仿真结果,误差分析;最后对本次设计做出了简单的总结、并且提出一些教学建议,文档还附上了本次系统设计的电路原理图、PCB图及元器件清单。本文撰写的主导思想是软、硬件相结合,以硬件为基础,来进行各功能模块的编写。关键词:单片机;编程;系统设计ABSTRACT23Inthispaper,basedonsinglechipdigitalfrequencymetersystemswerestudied.Firstdescribedintheintroductionthesubjectoft
3、histopicbackground,researchsignificanceandcompletefunctions.ThesystemisbasedonSCM'sbasiclanguageClanguageforsoftwaredesign,programminglanguagecommonlyusedin51therearetwo,oneisinassemblylanguage,oneistheClanguage.Assemblylanguagecodegenerationhighlyefficientmachinereadable,bu
4、ttheyarenotstrong,complexprocessthatisevenmoredifficulttoread,whiletheClanguage,inmostcases,theefficiencyofitsmachinecodegenerationandassemblylanguageequivalent,butreadableandportabilityisfarmorethanassemblylanguage,butcanalsobeembeddedinClanguagecompilationtosolvethetime-se
5、nsitivenatureofcodingproblems.TosumuptheadvantagesofClanguage,IaminthepreparationofthesystemselectedClanguageprogram.Firstintroducedthesysteminthebodyoftheoveralldesignidea,andthenabriefdescriptionofsystemhardwareworks,andattachedtothesystemhardwaredesignblockdiagram;thenspe
6、cificallydescribesthesystem'ssoftwareandhardwaredesign,simulationresults,erroranalysis;Finally,tomakethisdesignasimplesummary,andsometeachingsuggestions,thedocumentisalsoattachedtothissub-systemdesign,circuitschematics,PCBdrawingsandpartslists.Thisarticlewrittenbytheleadingi
7、deaisthathardwareandsoftwarecombinedwithhardware-based,tothepreparationofvariousfunctionalmodules.
Keywords:microcontroller;programming;systemdesign23目录1设计课题任务、功能要求说明及总体方案介绍41.1设计课题任务41.2功能要求说明41.3设计课题总体方案介绍及工作原理说明42设计课题硬件系统的设计62.1设计课题硬件系统各模块功能简要介绍62.2设计课题电路原理图、PCB图、元器件布局62.
8、3设计课题元器件清单63设计课题软件系统的设计73.1设计课题使用单片机资源的情况73.2设计课题软件系统各模块功能简要介绍73.3设计课题软件系统程