攀枝花学院本科毕业设计(论文)基于STM32的信号发生器学生姓名:钟尚儒学生学号:201310501084院(系):电气信息工程学院年级专业:2013级电子信息工程2班指导教师:郝小江助理指导教师:二〇一七年六月攀枝花学院本科毕业设计(论文)摘要I摘要随着电子产品的发展,单片机处理器的应用已经广泛的应用在日常生活中每个角落。特别是在信号发生器中的应用,信号发生器在各行各业中发挥着重要的作用,具有非常重要的意义,现实中接触比较多的是教学实践中,由于很多学校的研究经费有限,不能购买精密的昂贵器材等原因,急需要设计出一款智能化,低成本的信号发生器,可以输出三角波、方波和正弦波等波形。在本文中根据现实的需求设计出一款基于STM32F103Cx的信号发生器系统,整体设计由处理器模块、电源电路模块、AD9833电路模块、按键电路模块、数字显示模块几部分组成。处理器模块采用STM32F103Cx芯片作为该系统的核心处理模块,采用LCD1602液晶显示器作为该系统的显示模块,按键方案采用独立按键的方式更加容易控制设置输出数据,电源接口采用USB方式,使用更加方便。该设计系统采用altiumdesigner等软件完成PCB版的设计,然后进行焊接和测试等,采用keil软件进行编写软件程序,完成波形的输出等,最后经过软硬件设计出可输出三种波形:三角波、方波和正弦波。该系统的设计具有简单和性能优良等优点,最后经过软硬件的调试之后,各项功能和性能都满足设计的要求。关键词:STM32F103Cx单片机,AD9833电路模块,液晶显示器1602,DDS信号发生器攀枝花学院本科毕业设计(论文)ABSTRACTIIABSTRACTAbstract:Withthedevelopmentofelectronicproducts,theapplicationofsingle-chipprocessorhasbeenwidelyusedineverycornerofdailylife.Especiallyintheapplicationofsignalgenerator,thesignalgeneratorinallwalksoflifeplayanimportantrole,hasaveryimportantsignificance,therealityofcontactwithmoreteachingpractice,becausemanyschoolsofresearchfundingislimited,notThepurchaseofsophisticatedequipmentandotherreasons,theurgentneedtodesignanintelligent,low-costsignalgenerator,youcanoutputtriangularwave,squarewaveandsinewaveandotherwaveforms.Inthispaper,accordingtotheactualneedsofadesignbasedonSTM32F103Cxsignalgeneratorsystem,theoveralldesignbytheprocessormodule,powercircuitmodule,AD9833circuitmodule,keycircuitmodule,digitaldisplaymodulecomposedofseveralparts.ProcessormoduleusingSTM32F103Cxchipasthecoreofthesystemprocessingmodule,theuseofLCD1602LCDdisplayasthesystem'sdisplaymodule,thekeyprogramusingaseparatekeywayeasiertocontroltheoutputdataoutput,powerinterfaceusingUSBway,theuseofmoreconvenient.ThedesignsystemusesaltiumdesignerandothersoftwaretocompletethePCBversionofthedesign,andthenweldingandtesting,theuseofkeilsoftwaretowritesoftwareprogramstocompletetheoutputofthewaveform,andfinallythroughthehardwareandsoftwaredesigncanoutputthreewaveforms:triangularwaveWaveandsinewave.Thedesignofthesystemissimpleandexcellentperformance,etc.,andfinallyafterthehardwareandsoftwaredebugging,thefunctionsandperformancetomeetthedesignrequirements.Keywords:STM32F103Cxsingle-chip,AD9833circuitmodule,liquidcrystaldisplay1602,DDSSignalgenerator攀枝花学院本科毕业设计(论文)绪论1目录摘要.........................................................................................................................................................IABSTRACT..............................................................................................................................................II第一章绪论........................................................................................................................................21.1课题背景与研究意义............................................................................................................21.2国内外研究现状和发展趋势................................................................................................41.3本文研究的主要内容.............................................................................................................6第二章系统方案设计..................................................................................................................72.1DDS的基本原理.......................................................................................................................72.2处理器方案..............................................................................................................................82.3显示方案................................................................................................................................102.4按键方案................................................................................................................................102.5方案确立................................................................................................................................11第三章硬件设计方案..................................................................................................................123.1系统总体设计.......................................................................................................................123.2处理器模块............................................................................................................................133.3AD9833电路模块...................................................................................................................133.4按键电路模块.......................................................................................................................143.5电源模块................................................................................................................................153.6显示模块电路.......................................................................................................................163.7本章总结................................................................................................................................17第四章软件设计方案................................................................................