1、 本科毕业论文(设计)本科毕业论文(设计) 题题 目:目: 基于单片机的简易灯光时钟设计基于单片机的简易灯光时钟设计 专专 业:业: 电子信息电子信息工程工程 2014年 5 月 6 日 I 摘要摘要 本文介绍了一个基于单片机的简易灯光时钟的设计,它具有显示年、月、日、 时钟、分钟和秒、星期的显示功能,还具有闰年补偿等功能,时钟芯片采用的是 DS1302,DS1302 能存储时间信息,并且可以掉电保存。单片机通过读取 DS1302 的信息后通过 LCD1602 显示在液晶屏幕上面。本设计包含 4 个按键,编号分别为 1、2、3、4,每个按键的功能分别为功能选择、光标移动、加按键以及减按键, 可
2、以设置闹钟,当 DS1302 上面的时间跟单片机所设定的闹钟时间一致后,单片 机可以驱动蜂鸣器进行闹铃提醒。除此之外,系统还附带整点报时,以及任何时 候通过按键语音报时功能。 关键词关键词:单片机;单片机; LCD1602;蜂鸣器;蜂鸣器;DS1302;闹钟;语音报时;闹钟;语音报时; II AbstractAbstract This paper is aim to introduce a design which is based on simple chip microcomputer clock. It owns two main functions, namely, showing t
3、ime, including year, month, day, hour, minute and second; and compensation of the leap year. The chip of this design is called DS1302, which can save time information even when the electricity was cut down accidently. The Single-Chip Microcomputer is also capable of reading the information on DS1302
4、 and reflects the data on the LCD screen through the LCD1602. The design includes four buttons, numbered 1,2,3,4, respectively, each button function selection, cursor movement, plus buttons and minus buttons, you can set the alarm. The Microcontroller can drive the buzzer to make the clock alarming
5、when the time on these two equipments the same are. Besides, the basic functions in this microcontroller, such as: Chime on every hour and the time speaking by telephone, are also included in this design. Key wordsKey words: : chip microcomputer, LCD1602, buzzer, DS1302, alarm clockchip microcompute
6、r, LCD1602, buzzer, DS1302, alarm clock. . 目录目录 摘要摘要 I I ABSTRACTABSTRACT IIII 第一章第一章 绪论绪论 1 1 1.1 目的和意义 1 1.2 本系统实现的主要功能 1 第二章第二章 总体方案论证与设计总体方案论证与设计 2 2 2.1 主控模块的选型和论证 2 2.2 显示模块的选型和论证 2 2.3 时钟芯片的选型和论证 2 2.4 温度检测模块的选型和论证 3 2.5 整点报时模块的选型和论证 3 2.6 电源模块 3 2.7 系统整体设计概述 3 第三章第三章. .系统硬件电路设计系统硬件电路设计 5 5 3.1 主控模块 5 3.1.1 单片机的最小系统设计 5 3.2 LCD 液晶显示器简介 6 3.2.1 液晶原理介绍 6 3.2.2 液晶模块简介 6 3.2.3 液晶显示部分与 STC89C52 的接口 . 6 3.3 键盘模块设