基于单片机的信号发生器讲解

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

哈尔滨理工大学毕业设计题目:信号发生器的设计院、系:荣成学院电气工程系姓名:李鲁楠指导教师:李全利系主任:王哈力2014年6月10日哈尔滨理工大学学士学位论文I基于单片机的信号发生器设计摘要信号发生器是指电子测量中作为激励源使用的信号来源,它是生产线、教学科研、电子测试以及模拟仿真等领域与行业的重要测试仪器。本文首先简要介绍了信号发生器的研究现状及发展状况,对信号发生器的工作原理进行了阐述,在此基础上给出了系统设计的硬件和软件方案,并对各模块进行了详细的描述。本文以AT89S52单片机为信号发生芯片,外加若干电路生成频率和幅度可调的正弦波、方波、三角波及正弦三角组合波形。信号发生器的硬件电路部分主要包括电源电路、单片机及其外围电路、人机交互接口电路、DAC模块、放大电路等。软件部分主要有系统的主程序设计,外设模块驱动程序设计、信号测量和参数校正算法的实现。本设计的输出信号,其波形用键盘选择,其频率和幅度可以通过手动调节也可以通过键盘输入,当前信号波形的有关参数可以用LCD显示输出。通过硬件和软件的调试,输出信号的频率范围为0.1Hz~10MHz,幅度能够达到4V,达到了设计目标。关键词信号发生器;AT89S52;哈尔滨理工大学学士学位论文IDesignofSignalGeneratorbasedonSingleChipAbstractThesignalgeneratorisasignalsourceusedasanexcitationsourceforelectronicmeasurements.Itisanimportanttestequipmentfortheproductionline,teachingandresearch,electronictestandsimulation.Thispaperbrieflyintroducesthehistoryandresearchstatusofthesignalgenerator,followedbytheprincipleexplanationofthesignalgenerator.Basedontheabove,thedesignschemesofhardwareandsoftwarearegivenandeachmoduleisdescribedindetail.InthispaperAT89S52isusedasasignalgeneratingchip,andcertaincircuitsareadded.Itcangeneratesinewave,squarewave,trianglewave,andthecombinationwaveformofsineandtrianglewavewithadjustablefrequencyandamplitude.Thehardwarecircuitsmainlyincludethepowersupply,MCUanditsperipherals,human-computerinterface,DACmodule,amplifierandsoon.Thesoftwaredesignincludesthemainprocedure,driversforeachperipheralmodule,signalmeasurementandparametercalibrationalgorithm.Fortheoutputsignal,itswaveformisselectedbythekeyboard;itsfrequencyandamplitudecanbeadjustedmanuallyorinputusingthekeyboard;therelevantparametersofthecurrentwaveformcanbedisplayedonLCD.Bythehardwareandthesoftwaredebug,thefrequencyrangeis100Hz~10MHz,theamplitudecanreach4V.Onthewholethedesigngoalsareachieved.KeywordsSignalGenerator,AT89S52;哈尔滨理工大学学士学位论文II目录摘要..............................................................................................................IAbstract................................................................................错误!未定义书签。第1章绪论.......................................................................................................11.1信号发生器的现状.......................................................................................11.2信号发生器的几个发展阶段.......................................................................21.3单片机在低频信号发生器的应用及作用...................................................3第二章系统设计................................................................................................42.1系统方案的比较...........................................................................................42.1.1选题论证............................................................................................42.1.2方案选择............................................................................................42.2芯片选择模块...............................................................................................42.3系统设计要求及参数...................................................................................5第三章硬件电路的设计....................................................................................63.1系统框图.......................................................................................................63.2资源分配........................................................................................................63.3AT89S52功能特性概述..............................................................................63.4各部分电路原理..........................................................................................123.4.1DAC0832芯片原理...........................................................................123.4.2LM324工作原理...............................................................................15第四章软件设计...............................................................................................164.1设计思想......................................................................................................164.2主程序设计..................................................................................................174.3方波程序设计..............................................................................................184.4三角波程序设计..........................................................................................194.5锯齿波程序设计..........................................................................................204.6正弦波程序设计..........................................................................................21第五章仿真模拟及其电路板制作...................................................................225.1ProteusISIS软件的应用及介绍...............................................................225.2Keil软件的应用介绍...............................................................................235.3仿真电路图................................................................................................245.4仿真结果....................................................................................................245.5ProteusISIS制版.......................................................................................26参考文献.......

1 / 39
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功