科技大学毕业设计I基于单片机的电烤箱控制系统设计学生:裴强强指导教师:刘畅内容摘要:随着社会的不断发展,人们改造自然的能力也在不断的提高。机器的诞生,为我们减少了部分或者全部的脑力劳动和体力劳动。电子技术的诞生更是带来了翻天覆地的变化。机电控制系统成为机械技术与微电子技术集成的共性关键技术。人们通过它可以使机械完全按照自己的意愿来执行。随着机电控制技术的发展,主要体现出了单片机和PLC两种控制方式。本设计采用单片机控制。单片机在日常生活中的运用越来越广泛。温度控制在工业生产中经常遇到。从石油化工到电力生产,从冶金到建材,从食品到机械都要对温度进行控制.甚至在有些产品生产过程中温度的控制直接影响到产品的质量。单片机温度控制无论是现在还是未来都会起到重要作用。本文介绍了以AT89C51单片机为核心的电烤箱温度控制系统。电烤箱的温度控制系统有两个部分组成:硬件部分和软件部分。其中硬件部分包括:单片机电路、传感器电路、放大器电路、转换器电路、以及键盘和显示电路。软件部分包括:主程序、运算控制程序、以及各功能实现模块的程序。文章最后对本设计进行了总结。对温度控制系统的发展提出了几点建议。关键词:单片机温度电烤箱控制科技大学毕业设计IISingle-chipbasedontheoven’stemperaturecontrolsystemdesignAbstract:Withthecontinuousdevelopmentofsociety,people'sabilitytotransformnatureoftheadvancehasbeen.Thebirthofthemachineforustoreducesomeorallofthementalandphysical.Thebirthofelectronictechnologyhasbroughtevenmoreearth-shakingchanges.Electricalandmechanicalengineeringcontrolsystemsbecomeintegratedwiththemicroelectronictechnologycommonkeytechnologies.Peoplecanmakethroughitsmachineryinfullaccordancewiththewishesoftheirowntoimplement.Withthedevelopmentofelectricalandmechanicalcontroltechniques,mainlyreflectingthetwotypesofsingle-chipcomputerandPLCcontrol.Thedesignusesasingle-chipcontrol.Single-chipmicrocomputeruseintheirdailylivesmoreandmorewidely.Temperaturecontrolinindustrialproductionareoftenencountered.Chemicalsfromoiltoelectricityproduction,Orevensomeproductsintheproductionprocesscontroloftemperaturedirectlyaffectsthequalityoftheproduct.Single-chiptemperaturecontrolbothnowandwillplayanimportantroleinthefuture.ThispaperintroducestheAT89C51single-chipmicrocomputerasthecoreoftheoventemperaturecontrolsystem.Hardwarecomponentswhichinclude:Single-chipcircuit,sensorcircuit,amplifiercircuit,convertercircuit,aswellasthekeyboardanddisplaycircuit.Softwareinclude:themainprogram,operatorcontrolprocedures,aswellastherealizationofthefunctionalmodulesoftheprogram.Finally.Keywords:MicrocontrollerTemperatureElectricovensControl科技大学毕业设计III目录前言................................................................11概述.............................................................11.1技术指标.......................................................11.2控制方案.......................................................22硬件部分设计.......................................................22.1单片机电路设计.................................................22.1.1中央处理器CPU.............................................22.1.2运算器.....................................................32.1.3AT89C51单片机引脚功能.....................................42.1.4引脚功能...................................................52.1.5控制线.....................................................62.1.6AT89C51单片机的存储器结构.................................62.1.7AT89C51单片机的并行I/O端口...............................62.1.8AT89C51单片机时钟电路及时序...............................72.1.9复位电路...................................................72.1.10AT89C51单片机的指令系统..................................82.2传感器电路设计.................................................82.2.1传感器概述.................................................82.2.2传感器的基本特性...........................................92.2.3热电阻的测量电路及应用...................................102.3A/D转换电路设计..............................................112.3.1逐次逼近型A/D转换器ADC0809..............................112.4放大器电路设计................................................132.4.1交流放大器电路............................................142.4.2直流放大器电路............................................172.4.3运算放大器电路............................................172.4.4集成运算放大器概述........................................182.5键盘及显示电路的设计..........................................182.5.1键盘接口电路..............................................18科技大学毕业设计IV2.5.2LED显示器接口电路........................................202.6抗干扰电路设计................................................212.6.1电磁干扰的形成因素........................................212.6.2.干扰的分类................................................212.6.3单片机应用系统电磁干扰控制的一般方法.....................212.6.4硬件抗干扰措施............................................223软件部分设计.....................................................233.1工作流程......................................................233.2功能模块......................................................233.3资源分配......................................................243.4功能软件设计..................................................243.4.1键盘管理模块..............................................243.4.2显示模块..................................................273.4.3温度检测模块..............................................283.4.4温度控制模块..............................................303.4.5温度越限报警模块..........................................313.4.6主程序和中断服务子程序...................................334结论............................................................35附录...............................................................36参考文献............................................................37科技大学毕业设计1基于单片机的电烤箱控制系统设计前言随着社会的不断发展,人们对机械的应用也越来越广,进而人们对机械运动的控制要求亦越来越高。机电控制实现了以电气来控制机械。单片机的出现使机电控制技术突飞猛进。单片机出现的历史并不长,但发展迅猛。自1975年美国德克斯仪器公司首次推出8位单片机TMS-1000后才开始