
多功能旋转LED时钟的设计与实现--毕业论文.doc
41页本本科科毕毕业业设设计计 ((论论文文))题目 多功能旋转 LED 时钟的设计与实现 学 院 电气与自动化工程学院 多功能旋转多功能旋转 LED 时钟的设计与实现时钟的设计与实现摘摘 要要近年来,单片机在各个领域得到了广泛的应用,由单片机控制的 LED 屏也逐渐深受人们的欢迎最初,LED 用作仪器仪表的指示光源,后来在大面积显示屏中得到了广泛使用,产生了很好的经济效益和社会效益本文具体介绍了多功能 LED 屏时钟的设计与实现,并详细说明其软硬件构成及原理时钟系统以 STC12C5A60S2 单片机作为核心控制器,读取 DS1302 芯片的时间数值,经单片机编译,将时间(年/月/日/时/分)显示在 LED 屏上时钟上 5 个按键可以设置闹钟,当闹钟时间到,则会响起音乐每到整点,时钟会进行整点报时本设计的主要特色创新是利用 4 个水银开关呈菱形摆放,当时钟垂直地面放置时,根据不同的水银开关导通组合,可以判断出时钟所处的方向,从而使时钟具有类似重力感应的功能,将时钟旋转摆放时,始终能够自上而下显示时钟经过反复实验与长期实践,证明该系统设计方案是可行的。
关键词:LED 屏 STC12C5A60S2 DS1302 水银开关 语音报时IDesign and Implementation of Multifunctional Rotatable LED Clock AbstractIn recent years, the microcontroller has been used widely in various fields,LED screen controlled by the microcontroller was welcomed by the people gradually.Initially, LED is used as an indication light source of instrumentation, Later, has been widely used in the large area display, resulting in a good economic and social benefits.This article describes an approach based on the specific design and imple mentation of 51 single multifunction LED screen clock, and details of its hardware and software configuration and principle.This article describe an design and implementation of Multifunctional LED Screen Clock based on single multifunction specifically, and details of its hardware and software configuration and principle. Clock system uses MCU STC12C5A60S2 as the core controller, reads the time value by DS1302 chip, the time(year/month/day/hour/minute/second) displayed on the LED screen after 51 single compilation.There are five keys on the clock to set alarm time.The music will sound when the alarm time is coming . The clock will chime on every hour.Important feature innovation of this design is the use of four mercury switches placed as diamond-shaped.When the clock is placed perpendicular to the ground,Depending on the composition of the mercury switch is turned on, we can determine the direction of the clock . so that the clock has a similar gravity sensing function,When the clock rotating display can always shows the time from top to bottom.Proved that the system design is feasible,after repeated experiments and long-term practice.Key words::LED screen ; STC12C5A60S2 ; DS1302 ; mercury switch ; voice broadcast II目 录1.绪论.........................................................................................................................................11.1 研究背景及意义...................................................................................................................11.2 系统的研究目标...................................................................................................................11.3 论文的章节安排...................................................................................................................22. 系统硬件设计........................................................................................................................32.1 系统硬件整体设计...............................................................................................................32.2 单片机最小系统设计...........................................................................................................32.2.1 STC12C5A60S2 单片机简介.........................................................................................32.2.2 时钟电路设计 .................................................................................................................42.2.3 复位电路设计 .................................................................................................................42.3 按键及水银开关模块设计...................................................................................................52.3.1 按键模块 ........................................................................................................................52.3.2 水银开关模块 ................................................................................................................62.4 时钟模块设计.......................................................................................................................72.5 LED 屏模块设计...................................................................................................................82.5.1 74HC573 锁存器.............................................................................................................92.5.2 LED 屏模块...................................................................................................................102.6 语音模块设计......................................................................................................................113.系统软件设计......................................................................................................................133.1 系统软件总体设计.............................................................................................................133.2 初始化设计.........................................................................................................................143.2.1 系统初始化设计 ...................................。