资源描述:
《多功能信号发生器的设计与实现》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、多功能信号发生器的设计与实现2016年6月2日王振华(陕西理工学院物理与电信工程学院电子信息工程专业,2012级3班,陕西汉中723000)指导教师:梁芳[摘要]本文介绍的是利用STC12C5A60S2单片机和数模转换器件DAC0832产生所需不同信号的低频信号源,其信号幅度和频率都是可以按要求控制的。文中简要介绍了DAC0832数模转换器的结构原理和使用方法,STC12C5A60S2的基础理论,以及与设计电路有关的各种芯片。着重介绍了如何利用单片机控制D/A转换器产生上述信号的硬件电路和软件编程。信号频
2、率幅度也按要求可调。本设计核心任务是:以STC12C5A60S2为核心,结合D/A转换器和DAC0832等器件,用仿真软件设计硬件电路,用C语言编写驱动程序,以实现程序控制产生正弦波、三角波、方波、三种常用低频信号。可以通过键盘选择波形和输入任意频率值。[关键词]单片机;LCD1602;信号发生器;DAC0832IDesignandimplementationofmultifunctionsignalgeneratorAuthor:ZhenhuaWang(Grade12,Class03,MajorinEl
3、ectronics&Informationengineering,Physics&TelecommunicationsengineeringDept.,ShaanxiUniversityofTechnology,Hanzhong723000,Shaanxi)Tutor:FangLiangAbstract:ThisarticledescribestheSTC12C5A60S2microcontrolleranddigitaltoanalogconverterDAC0832toproducet
4、hedesiredsignalofthelowfrequencysignalsource,thesignalamplitudeandfrequencycanbecontrolledasrequired.ThearticlebrieflydescribesthestructureofprinciplesanduseoftheDAC0832digital-to-analogconverter,theSTC12C5A60S2basictheoryanddesignofcircuitsavarietyofchip
5、s.ThepaperfocusesonhowtousemicrocontrollertocontroltheD/Aconvertertoproducethehardwareandsoftwareprogrammingoftheabovesignals.Thesignalfrequencyrangeisalsoadjustableasrequired.Thecoreofthedesigntasksare:STC12C5A60S2astheD/AconverterandDAC0832devices,circu
6、itsimulationsoftware,designhardwaredriverswritteninC,inordertoachieveprocesscontroltoproducesinewave,trianglewave,squarewave,threecommonlyusedlow-frequencysignals.Waveformsandenteranyfrequencyvaluecanbeselectedviathekeyboard.KeyWords:onSTC12C5A60S2functio
7、nwaveformgeneratorDAC0832squarewave,trianglewave,sinewave,sawtoothwaveII陕西理工学院毕业设计目录1引言..................................................11.1目的和意义............................................11.2研究概况及发展趋势....................................11.3本系统主要功能.....
8、...................................22.总体方案论证与设计....................................32.1主控模块的选型和论证..................................32.2显示模块的选型和论证..................................32.3信号产生模块的选型和论证....................