如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
题目:基于单片机的函数信号发生器设计与仿真专业:应用电子技术班级:09224学号:09姓名:指导老师:高燕成都工业学院二〇一二年六月I论文摘要本文主要用AT89C51单片机与DAC0832构成的函数信号发生器,可产生方波、三角波、正弦波,具有线路简单、结构紧凑、性能优越等特点。本函数信号发生器可以由程序控制改波形的周期,以及不同波形的切换。用ADC0809实时对其波形电压测量。输出波形的幅值可以在0—5V可以调节。对于输出电压的控制,主要是用UA741放大器对其信号放大来实现的。输出波形幅值的大小,由ua741接负反馈电阻来调节,从而达到了输出波形幅值在0-5V可调。对于显示部分,本设计采用四位共阳数码管实时显示当前波形的频率,以及在按键的切换下可以显示测量的波形的电压幅值。文章给出了源代码,并通过proteus软件仿真测试,然后画出PROTEL原理图和PCB板图。对应着PCB板图焊接实物电路,并下载程序做硬件调试。用示波器观察其波形。最终其性能指标达到了设计要求。关键词:单片机;DAC0832;ADC0809;放大器;信号发生器。IIAbstractThisarticlemainlybasedeontheAT89C51microcontrollerandtheDAC0832functionofsignalgeneratorproducesasquarewave,trianglewave,sinewave,withsimplelines,compactstructure,superiorperformancecharacteristics.Signalgeneratorofthefunctioncanbechangedbytheprogramcontrolperiodofthewaveform,andwaveformswitching.UsingADC0809real-timetoitswaveformvoltagemeasurement.Theamplitudeoftheoutputwaveformcanbeadjustedinthe0-5V.Forthecontrolofoutputvoltage,toachievetheUA741amplifieronsignalamplification.Thesizeoftheoutputwaveformamplitudeua741tothenegativefeedbackresistortoregulatesoastoachievetheoutputwaveformamplitudeinthe0-5Vadjustable.Displaysection,thedesignusesfourcommonanodedigitaltubereal-timedisplayofthefrequencyofthecurrentwaveformandthevoltageamplitudeofthemeasuredwaveformcanbedisplayedinthekeyswitch.Thearticlegivesthesourcecode,proteussoftwaresimulationtesting,andthendrawthethePROTELschematicandPCBplans.CorrespondstothePCBplanstoweldthephysicalcircuit,anddownloadtheprogramtodohardwaredebugging.Observethewaveformwithanoscilloscope.Ultimately,itsperformancemeetsthedesignrequirements.KeyWords:Microcontroller;DAC0832;ADC0809;amplifier;signalgenerator.III目录第一章绪论............................................................................................................11.1单片机概述..................................................................................