1、 编号: 课程设计说明书课程设计说明书 题 目: 基于单片机的数字时钟基于单片机的数字时钟 院 (系) : 信息与通信学院 专 业: 电子信息工程 学生姓名: 学 号: 指导教师: 2013 年 12 月 03 日 摘 要 电子时钟是一种非常广泛日常计时工具, 对现代社会越来越流行。 它可以实现对年、 月、日、星期、时、分、秒进行计时等多种功能。数字时钟采用直观数字显示,还具有 时间校准等功能。该电路采用AT89S52单片机作为核心,功耗小,能在3V的低压工作, 电压可选用3-5V电压供电。 本系统硬件部分由AT89S52单片机、1062液晶显示器、键盘、蜂鸣器系统等部分构 成。软件部分在ke
2、il环境下用C51语言编写,包括时间显示、时间校对。 基于单片机技术原理,以单片机芯片AT89C52作为核心控制器,通过硬件电路的制 作以及软件程序的编制,设计制作出一个简易数字时钟系统。单片机扩展的LCD显示器 用来显示秒、分、时、星期、日、月、年计数单元中的值。整个设计包括两大部分:硬 件部分和软件部分,以单片机为核心,配以一定的外围电路和软件。硬件是整个系统的 基础,软件部分则要合理、充分地支持和使用系统的硬件,从而完成系统所要完成的任 务。 关键词:单片机AT89S52;液晶显示1602;按键 Abstract Electronic clock is a very extensive
3、daily timing tool , more and more popular in modern society . It can be achieved on the year, month , date, day , hour, minute , seconds chronograph and other functions . Intuitive digital display digital clock , also has a time calibration functions. This circuit uses AT89S52 microcontroller as the
4、 core , low power consumption , can work in low-voltage 3V voltage can choose 3 5V voltage supply. The hardware of the system by the AT89S52 microcontroller , some 1062 LCD monitor, keyboard , buzzer systems and other accessories. Software part in keil environment with C51 language, including the ti
5、me display, time proofreading. Based on the principle of single-chip technology , chip AT89C52 microcontroller as the core controller , and a software program produced by the preparation of the hardware circuit , designed to create a simple digital clock system. Single-chip LCD display is used to di
6、splay the extended seconds, minutes , hours, day, date, month, year counting unit value. The whole design consists of two parts: hardware and software components , microcontroller as the core , with some peripheral circuits and software. Hardware is the foundation of the entire system, the software part will have reasonable and adequate to support the use of systems and hardware ,thus completing the system to complete the task . Keyw