河南科技大学本科毕业设计(论文)基于单片机的波形发生器摘要随着电子技术的发展,电子产品越来越走进人们的生活,在电子产品的生产应用和调试检验中经常需要产生一定频率的仿真信号用于驱动仪表或仪器,同时,在教学实验中也有很多的应用。所以,从实用性、可靠性及经济性上考虑,设计一种基于单片机新型的、性能稳定的波形发生器是十分必要的。本论文详细的阐述了基于单片机的波形发生器的设计,着重就硬件电路以及应用软件的设计进行了研究,对总体设计思路进行了阐述,介绍了芯片的选择,外围电路设计及主要流程图。在熟悉单片机和数模转换芯片工作原理和应用方法的基础上,设计了各个模块的接口电路,并分析了各模块的主要功能。在硬件电路的基础上对个部分对应的软件也进行了设计。本文设计的波形发生器可以产生多种波形,成本低廉且操作简洁方便。波形由软件产生各种数据再经过D/A转换后输出,除了能产生所要求的正弦、三角、方波、锯齿等多种波形外,并可根据实际情况的需要在波形存储器中写入不同的波形可以随时添加。并有键盘输入和显示,显示部分采用LED设计,主要显示输出频率,此方案产生的最大频率大约10KHz。可满足精度误差要求达到5%的,可满足多种低频信号源的使用场所。在各大专院校及其他行业具有很广泛的应用前景和推广价值。关键词:单片机,波形发生器,数模转换,波形存储,频率I河南科技大学本科毕业设计(论文)THESCMWAVEFORMGENERATORABSTRACTAlongwithelectronictechnology'sdevelopment,theelectronicproductsenterpeople'slifemoreandmore,theproductionofelectronicproductstestinganddebuggingoftenneedtohaveacertainfrequencysignalforthesimulation-driveninstrumentsorequipment,simultaneously,alsohasmanyapplicationsintheteachingexperiment.Therefore,consideredtheusability,thereliabilityandtheefficiency,designsanewkindwavegeneratorwhichisbasedonthemicrocontrollerandhavethestableperformanceisverynecessary.ThispaperelaboratsonthedetailsoftheSingleChipMicrocontrollerwaveformgenerator'sdesign,focusedonhardwareandsoftwareforthedesign.Andtheoveralldesignideaswereexpounded.ITintroducedthechipchoice,theperipheralcircuitdesignandthemainflowchart.BasedontheunderstandofmicrocontrollerandD/Aconverterchip,Idesigntheinterfacecircuitandanalysethemainfunctionsofeachmodule.Onthehardwarecircuitsonthebasisofthecorrespondingpartsofthesoftwarehavealsocarriedoutdesign.Inthispaper,thedesignofthewaveformgeneratorcanproduceavarietyofwave,low-costoperationsimpleandconvenient.Waveformdatageneratedbythesoftware,thenthroughanotherD/Aconverteroutputs.Inadditiontoproducetherequiredsine,triangle,squareandsawtoothwaveform,accordingtoactualneedsthiswaveformgeneratoralsocanproduceotherwaveform.Andakeyboardinputanddisplay,thedisplayadoptLED,maindisplayoutputfrequency.Themaximumfrequencyofthisdesignisaboat10KHz.Tomeettherequirementsofprecisionoferrorof5percent,andtomeetavarietyofsourcestouselow-frequencysignalsplaces.Havetheverywidespreadapplicationprospectandpromotedvalueinvariousuniversities,II河南科技大学本科毕业设计(论文)collegesandinstitutesandotherprofessionsKEYWORDS:SingleChipMicrocontroller,WaveformGenerator,D/A,Amplitude,FrequencyIII河南科技大学本科毕业设计(论文)目录前言...........................................................................................1第1章绪论.............................................................................3§1.1课题的研究目的和意义......................3§1.2多种波形发生器国内外现状.......3§1.3主要研究内容...................................................4第2章总体系统方案设计.................................6§2.1波形发生方案选择..............