基于单片机的智能信号发生器设计

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

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

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

资源描述

毕业设计(论文)设计(论文)题目:基于单片机的智能信号发生器设计下达日期:年月日开始日期:年月日完成日期:年月日指导教师:学生专业:班级:学生姓名:教研室主任:电气工程学院1基于单片机的智能信号发生器设计摘要本系统是基于STC89C51单片机的数字式低频信号发生器。通过按键控制可产生三角波、锯齿波、方波和正弦波四种波形,并实时显示输出波形的类型和频率。采用STC89C51单片机作为控制核心,外围采用数字/模拟转换电路(DAC0832)、运放电路(LM358)、按键和LCD液晶显示电路等。其设计简单、性能优好,可用于多种需要低频信号的场所,具有一定的实用性。本文介绍的是利用STC89C51单片机和数模转换器件DAC0832产生所需不同信号的低频信号源,其信号幅度和频率都是可以按要求控制的。文中简要介绍了DAC0832数模转换器的结构原理和使用方法,单片机STC89C51的基础理论,以及与设计电路有关的各种芯片。文中着重介绍了如何利用单片机控制D/A转换器产生上述信号的硬件电路和软件编程。各种各样的信号是通信领域的重要组成部分,其中三角波、锯齿波、方波和正弦波都是较为常见的信号。在科学研究及教学实验中常常需要这几种信号的发生装置。为了实验、研究方便,研制一种灵活适用、功能齐全、使用方便的信号源是十分必要的。本次关于产生不同低频信号的信号源的设计方案,不仅在理论和实践上都能满足实验的要求,而且具有很强的可行性。该信号源的特点是:体积小、价格低廉、性能稳定、实现方便、功能齐全。关键词单片机,D/A转换,信号发生器,运放器2DESIGNOFINTELLIGENTSIGNALGENERATORBASEDONSINGLECHIPABSTRACTWaveformthesystemisadigitalsignalgeneratorbasedonsinglechipcomputer,STC89C51isusedasacontrolmicrocontrollercore.Throughthekeycontrolcangeneratetrianglewave,saw,squarewaveandsinewaveoffourkindsofwaveforms,atthesametime,thetypeandfrequencyoftheoutputwaveformisdisplayedinrealtime.IsusedSTC89C51singletabletsmachineascontrolcore,andinperimeteruseddigital/simulationconversioncircuit(DAC0832),andoperationalamplifiercircuit(LM358),andpressandLCDdisplaylampcircuit.Itsdesignissimple,performanceisgood,thesystemcanbeusedforasignalsoureinthelow-frequencysignalsoure.Itisverypractical.ThispaperintroducesthelowfrequencysourcesofdifferentsignalsthatareproducedbySTC89C51andDAC0832.Itssignalrangeandfrequencycanbecontrolledbyrequirement.ThispaperbrieflyintroducesthestructureprincipleandusageofDAC0832,thebasictheoryofSTC89C51andvariouschipswhichrelevanttodesigncircuit.thispaperemphasizedhowtouseSCMtocontrolthehardwarecircuitandsoftwareprogramofthesignalsabovewhichproducedbyDAC0832.Varioussignalsareanimportantpartofcorrespondentarea.Thetrianglewave,sawtoothwave,squarewaveandsinewavearemorecommonsignals.Inscienceresearchandteachingexperiment,weoftenneedtheoccurrenceequipmentofthesesignals.Inordertomaketheexperimentandresearcheasier,todevelopasuitable,fullfunctionalandeasilyusedsignalssourceisessential.Thissignalsourcedesignplanconcernsonproducingdifferentlowfrequencysignals,notonlymeettherequestofexperimentintheoryandinpractice,butalsohavestrongfeasibility.Thetraitofthissignalsourceis:smallvolume,lowprice,stablefunction,easilyachievable,andfullfunction.KEYWORDSmicrocontroller,D/Aconversion,signalgenerator,amplifiercircuit目录摘要..........................................................................................................................................1ABSTRACT..............................................................................................................................21绪论........................................................................................................................................11.1课题研究背景............................................................................................................11.2波形介绍....................................................................................................................21.2.1正弦波............................................................................................................21.2.2方波................................................................................................................31.2.3锯齿波............................................................................................................31.2.4三角波............................................................................................................42系统设计................................................................................................................................52.1系统方案的选择........................................................................................................52.2控制芯片的选择........................................................................................................53系统硬件设计........................................................................................................................73.1基本原理....................................................................................................................73.2单片机结构简介........................................................................................................73.2.1STC89C51的基本特性...................................................................................73.2.2STC89C51的资源分配.................................................................................123.3各部分电路原理......................................................................................................123.3.1系统按键功能设计......................................................................................123.3.2系统显示功能设计......................................................................................143.3.38位DA转换器DAC0832原理.....................................................................173.3.4LM358工作原理...........................................................................................213.4本章小结............................................................

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

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

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

×
保存成功