作息时间控制器(基于51单片机和DS1302的时钟) 共28 页 课程设计(论文) 题目: 作息时间控制器 院(系): 电子工程与自动化学院 专业: 测控技术与仪器 学生姓名: 吉哲 学号: 0900820413 指导教师: 徐翠锋 职称: 2012年12月27日 共28 页 摘要 本次作息时间控制器设计是采用AT89S52单片机作为系统的核心元件,在其最小系统基础上与DS1302时钟芯片配合,四个独立按键控制,六位七段数码管显示,无源蜂鸣器发声。单片机最小系统作为核心处理和控制单元;时钟芯片用来实现实时时间的精准输出和闹钟信息的存储,并可用纽扣电池供电以保持时间的连续运行;独立按键用于进行时间及闹钟的设定;数码管用于显示时间及闹钟信息;蜂鸣器用于在达到设定的时间后进行及时提醒。 关键词:时间控制;AT89S52;单片机;DS1302;时钟芯片;闹铃; 定时报警 Abstract This work and rest time controller design is to use AT89S52 SCM as the core of the system components, in its minimum system with DS1302 clock chip based on coordination, four independent key control, six seven period of digital tube display, passive buzzer sound. Single chip puter minimum system as the core processing and control unit; Clock chip to realize real-time time accurate output and alarm information storage, and use button batteries to keep continuous operation time, Independent key for time and alarm clock Settings; Digital tube is used to display the time and alarm information; Buzzer to reach a set time for timely remind. Key words:Time control; AT89S52 devices; SCM; DS1302; Clock chip; Alarm; Timing alarm 共28 页 目录 引言........................................................... 1 1 课程设计任务及要求.......................................... 1 2 硬件设计.................................................... 1 总体设计思路及系统框图.............................................. 1 中央处理控制器...................................................... 2 晶振电路............................................................ 3 时钟信号产生电路.................................................... 3 显示电路............................................................ 4 控制电路............................................................ 6 闹铃电路............................................................ 8 电源及下载电路...................................................... 8 3 程序设计.................................................... 9 主程