如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
课程设计(论文)说明书题目:方波发生器的设计院(系):专业:电子信息工程学生姓名:学号:指导教师:职称:20年月日摘要本次课程设计以AT89S51单片机为核心器件,外围采用按键作为控制以及LCD1602作为显示器所设计的方波发生器。该方波发生器能实现0-1kHz频率范围、占空比可调的方波输出。其核心技术为单片机并行端口的应用、单片机定时器中断应用和数字分离的ASCII码液晶显示技术。采用8个独立的按键组成控制模块,操作方便,按键控制模式可以通过程序进行设定;显示模块则由液晶屏1602构成,能显示出实时输出方波的频率及占空比,直观明了。设计过程中遇到的问题是输出方波的频率、占空比与液晶显示数据存在误差,通过不断调试程序,合理编写中断服务程序来修正误差提高精确度,达到设计要求。该方波发生器具有线路简单、结构紧凑、价格低廉、性能优越等优点。关键词:方波发生器;AT89S51单片机;键盘;LCD1602AbstractThecoursedesignAT89S51microcontrollerasthecoredevice,theexternaluseofbuttonsasacontrolandLCD1602displaysaredesignedasasquarewavegenerator.Thesquarewavegeneratortoachieve0-1kHzfrequencyrange,adjustabledutycyclesquarewaveoutput.Thecoretechnologyfortheapplicationofsinglechipparallelport,SCMapplicationsanddigitaltimerinterruptASCIIcodeseparateliquidcrystaldisplaytechnology.8-independentcomponentcontrolmodulebuttons,easytooperatekeycontrolmodecanbesetthroughtheprogram;displaymoduleconstitutedbytheLCD1602,canshowreal-timeoutputfrequencyanddutycyclesquarewave,intuitiveandclear.Problemsencounteredinthedesignprocessistheoutputsquarewavefrequency,dutycycleandLCDdisplaydataerrorsexist,throughcontinuouscommissioningprocess,areasonablewriteinterruptserviceroutinetocorrecttheerrortoimproveaccuracy,tomeetthedesignrequirements.Thesquarewavegeneratorhasasimplecircuit,compact,lowcost,superiorperformanceadvantages.Keywords:Squarewavegenerator;AT89S51microcontroller;keyboard;liquidcrystal1602目录引言……………………………………………………………………………………………………………………………………………………41概述……………………………………………………………………4………………………………………………………………………………………………………………………………………1.1设计内容………………………………………………………………4………………………………………………………………………………1.2设计的基本要求…………………………………………………………4…………………………………………………………4…………………2方波了生器设计方案…………………………………………………4…………………………………………………4…………………………………………………2.1方案介绍………………………………………………………………4……………………………………………………………………………………2.2方波发生器的原理与功能………………………………………………5……………………………………………………3系统的硬件设计………………………………………………………5………………………………………………………5………………………………………………………3.1单片机最小系统…………………………………………………………5……