基于单片机的多路专用定时器的设计.pdf
勿以恶小而为之,勿以善小而不为。——刘备
基于单片机的多路专用定时器的设计
中文摘要
随着社会的发展,定时器在日常生活、工业控制、交通灯管理、检测、报警等方面的
应用越来越广泛,同时人们对定时器的要求也越来越高。本课题设计一个基于STC89S52
构成的实用定时器,这在某些应用中具有一定的实用价值。
本课题设计了一个基于STC89S52的定时器,首先介绍了设计内容及要求,介绍了定
时器的设计思路以及功能模块的划分,并对各模块实现的具体功能进行了说明。然后结合
框图,介绍了定时器的工作原理,之后详细介绍了定时器具体单元电路的设计与分析。
该定时器除具有基本的定时功能外,还具有定时时间连续可调、倒计时显示和定时开
关功能。它造价低,功能全,整体功能性价比高,配以小键盘和LED显示器,它适应各
种场合的定时预警之用。而且设计巧妙,体积小,功能强,计时范围大,用途广泛,操作
携带方便,是一种较理想的定时工具。
关键词:定时器;STC89S52;连续可调;倒计时显示
勿以恶小而为之,勿以善小而不为。——刘备
Multi-specifictimerbasedonMCU
ABSTRACT
Withthedevelopmentofsociety,thetimerinourdailylives,industrialcontrol,traffic
lightsmanagement,detection,alarmandsoon,whilepeopleonthetimerthereareincreasingly
highrequirements.ThedesignofasubjectwithapracticalSTC89S52timer,whichinsome
applicationshassomepracticalvalues.
Thispaperfirstintroducedthedesignofthecontentandrequirementsonthedesignofthe
timerandthedelineationoffunctionalmodules,eachmoduleandthespecificfunctionsofthe
note.Thenwithdiagram,ontheprincipleofthetimer,afterdetailsofthespecificunittimer
circuitdesignandanalysis.
Thetimerinadditiontoabasicfunctionofthetiming,butalsowithadjustabletiming
consecutivetime,thecountdowndisplayandregularlyswitchingfunction.itislowcost,
full-featured,cost-effectiveoverallfunction,togetherwithasmallkeyboardandLEDdisplay,
itisadapttoavarietyofoccasionsforuseinvarietiesofwarning.Andcleverlydesigned,small,
strongfunction,widetime