1西南科技大学高等教育自学考试毕业论文摘要本方案主要以单片机为核心,主要分为时基电路,逻辑控制电路,放大整形电路,闸门电路,计数电路,锁存电路,译码显示电路七大部分,设计以单片机为核心,被测信号先进入信号放大电路进行放大,再被送到波形整形电路整形,把被测的正弦波或者三角波整形为方波。利用单片机的计数器和定时器的功能对被测信号进行计数。编写相应的程序可以使单片机自动调节测量的量程,并把测出的频率数据送到显示电路显示。本设计以89C51单片机为核心,应用单片机的算术运算和控制功能并采用LED数码显示管将所测频率显示出来。系统简单可靠、操作简易,能基本满足一般情况下的需要。既保证了系统的测频精度,又使系统具有较好的实时性。本频率计设计简洁,便于携带,扩展能力强,适用范围广。[关键词]单片机:运算;频率计;LED数码管AbstractTheprogrammainlymicrocontrollerasthecore,aredividedintotime-basecircuit,thelogiccontrolcircuit,amplifiershapingcircuit,thegatecircuit,thecountingcircuit,latchcircuit,decodingcircuitmostofthesevenshows,designamicrocontrollerasthecore,themeasuredsignalthefirstamplifiertoamplifytheincomingsignal,andthenwassenttothewaveformshapingcircuitsurgery,themeasuredsinewaveortrianglewaveshapingasasquarewave.Counterandtimermicrochipfeaturesofthesignalcount.WritethecorrespondingprogramcanautomaticallyadjustthemeasurementrangeofSCM,andthefrequencyofthemeasureddatatothedisplaycircuitdisplays.Thedesignofthe89C51microcontrollercore,microcontrollerapplicationsandcontrolfunctionsandarithmeticoperationswithLEDdigitaldisplaytubetothemeasuredfrequencyisdisplayed.Systemissimple,reliable,easytooperateandcanbasicallymeetthegeneralneeds.Bothtoensuretheaccuracyofthesystemfrequencymeasurement,butalsothesystemhasgoodreal-time.Thefrequencymeterdesignissimpleandeasytocarry,expansioncapability,wideapplication.[Keywords]microcontroller,operation,frequencymeter,LEDdigitaltube2西南科技大学高等教育自学考试毕业论文目录摘要..............................................................1概述............................................................1第一章绪论........................................................21.1课题背景.....................................................21.2课题研究的目的和意义........................................21.4数字频率计设计的任务与要求...................................2第二章数字频率计总体方案设计......................................31.1方案比较.....................................................31.2方案论证.....................................................41.3方案选择.....................................................4第三章数字频率计的硬件系统设计.....................................53.1数字频率计的硬件系统框架....................................53.2数字频率计的主机电路设计....................................53.3数字频率计的信号输入电路设计.................................83.4数字频率计显示电路的设计.....................................93.5数字频率计的计数电路的设计..................................123.6数字频率计电源模块的设计....................................15第四章数字频率计软件系统设计......................................164.1软件设计规划...............................................164.1.1信号处理..............................................164.1.2中断控制..............................................164.2.1定时器/计数器.........................................174.2.2定时工作方式0.........................................184.3程序流程图设计...................