全球旧事资料 分类
基于单片机的电子闹钟设计
作者姓名:谢

专业名称:通信工程指导教师:赵杰讲师
f摘

单片机自20世纪70年代问世以来,以其极高的性能价格比,受到人们的重视和关注,应用很广、发展很快。而51单片机是各单片机中最为典型和最有代表性的一种。本设计以AT89C51芯片为核心,辅以必要的外围电路,设计了一个结构简单,功能齐全的电子时钟,它由5V直流电源供电。在硬件方面,除了CPU外,使用八个七段LED数码管来进行显示,LED采用的是动态扫描显示,使用74LS245芯片进行驱动。通过LED能够较为准确地显示时、分、秒。四个简单的按键实现对时间的调整。软件方面采用C语言编程。整个电子钟系统能完成时间的显示、调时、校时和三组定时闹钟的功能。选用单片机最小系统应用程序添加比较程序、时间调整程序及蜂鸣程序,通过时间比较程序触发蜂鸣,实现闹钟功能,完成设计所需求的软件环境。介绍并使用Keil单片机模拟调试软件,测试程序的可行性并用Proteus进行仿真。关键词:单片机定时器中断闹钟LED
I
fABSTRACT
Becauseofitsextremelyhighperforma
cepriceratiothesi
glechipcomputerSCChasbee
paidgreatatte
tio
toeversi
ceitcameouti
1970sof20thCe
turya
dhasgai
eda
exte
siveapplicablefielda
dfastdevelopme
tAmo
gallki
dsofSCCS51SCCisthemosttypicala
dreprese
tativeo
eThisdesig
adopti
gAT89C51chipasthecorepartwithsome
ecessaryperipheralcircuitsisasimpleelectro
icclockwhichuses5VDCasthepowersupplyI
hardwareaspectbesidestheCPUeightseve
segme
tLEDdigitubesareusedfordisplaywhichworki
ady
amicallysca
i
gdisplaymodea
ddrive
by74SL245chipTheLEDSca
accuratelyi
dicatehour、mi
utea
dseco
dFourbutto
sca
beusedtoadjustthetimeWhilei
thesoftwareaspecttheprogrammi
gla
guageisCla
guageThewholeelectro
icclocksystemhasfu
ctio
softimedisplayadjustme
t、timi
ga
dthreegroupsofalarmfu
ctio
ChoosethesmallestSCMsystemapplicatio
saddCompariso
procedurestimetoadjustproceduresa
dfai
tbuzzi
gproceduresThroughrelativelyfai
tbuzzi
gtriggerprocedurestoachievealarmclockfu
ctio
Completedthedesig
eedsofthesoftwaree
viro
me
tKeili
troduceda
dtheuseofSCMsoftwaresimulatio
debuggi
gtesti
gthefeasibilitya
dproteusbysimulatio

Keywords:si
gleslicemachi
e,i
fixedtimemachi
e,breakoff,alarmclock,
LED
II
f目


要I
ABSTRACTr
好听全球资料 返回顶部