湖北工业大学理学院2015届毕业设计(论文)毕业论文(设计)姓名付磊学号1111121220所在学院理学院专业班级11信科2班选题基于单片机的计数器设计指导教师徐斌日期2015年5月4日I湖北工业大学理学院2011届毕业设计(论文)I湖北工业大学理学院2011届毕业设计(论文)摘要近年来随着科技的飞速发展,单片机技术开始应用于各行各业,相应电子产品朝着更专业更高效的趋势发展,愈来愈多的工厂流水线上的产品生产和各种公共区域都需要进行自动计数。基于单片机的计数器有直观和计数精确的优点,目前已经广泛应用在各种行业中。众所周知,计数器是一种重要的时序逻辑电路,广泛应用于各类数字系统中。本文以AT89C51单片机和各种元器件为硬件基础,借助Keil软件实现对C语言的编译以适用单片机的运行环境,在此之前我们要熟悉单片机方面的知识,特别是要对单片机的各引脚功能和内部结构充分了解,同时要掌握关于单片机的C语言编程,最后软硬件结合完成计数器的设计。在设计过程中不仅运用Proteus仿真软件设计电路图,避免了焊接实物,还要在单片机开发板上,对程序进行试运行,看在实际硬件上是否能够实现所期望的功能,最终设计出一款拥有三位数的计数和进制转换功能的计数器。整个设计方案既省时又高效,节省了设计成本。关键字:单片机AT89C51编译keil软件Proteus仿真单片机开发板II湖北工业大学理学院2011届毕业设计(论文)AbstractRecently,withtherapiddevelopmentoftechnology,theSCMtechnologyisbeingappliedinvariousindustries,andtheelectronicproductstrendtobemoreprofessionalandmoreefficient.moreandmoreofthepipelineofproductsandavarietyofbusinessoccasionsneedtoautomaticallycount.BasedonSCMproductsconstituteautomaticcounterhastheadvantagesofintuitiveandaccuratecount,nowinavarietyofcommonlyusedinindustry.Inthispaper,thehardwareincludesAT89C51andvariouscomponents.WiththehelpoftheKeilsoftware,ClanguageiscompiledtosuittheoperatingenvironmentoftheSCM.BeforeweshouldbefamiliarwiththeknowledgeofSCM,specificallymasteringfullythevariouspinfunctionsandtheinternalstructure,aswellasClanguage.Finally,thecountwillbefinished,basedonthecombinationofhardwareandsoftware.Inthedesignprocess,notonlyapplyingtheProteusofsimulationsoftwaretodesigntheschematics,avoidingweldingthematerial,butalsotestingtheprograminthedevelopmentboardoftheSCMtoachievetheexpectedgoal,onlyinthisway,wecancompletethecountwiththefunctionsofathree-digithexadecimalcountingandconversion.Theprojectisbothtime-savingandefficient,savingthecostofdesign.Keyword:SCMAT89C51CompileThesoftwareofKeilProteusSimulationthedevelopmentboardoftheSCMIII湖北工业大学理学院2011届毕业设计(论文)目录摘要....................................................................................................................................................................IAbstract.................................................................................................................................................................II第一章绪论.......................................................................................................................................................11.1选题背景...............................................................................................................................................11.1.1数字单片机的技术发展............................................................................................................11.1.2以单片机为核心的嵌入式系统...................................................................................................21.2本研究课题的发展趋势................................