摘要:随着社会的不断发展和进步,数字时钟已经变成人们日常生活中的必要品,而单片机的应用也日渐广泛。
本课题是以单片机AT89C51为系统的核心控制芯片,通过一定的电路,构成多功能数字时钟。其功能是时间显示,手动校时,温度显示,闹钟。设计通过编程,实现四项功能。主要由单片机控制电路,温度传感器电路,显示电路,闹钟电路以及校时电路四个模块组成。具体是通过时钟芯片DS1302来计算时分秒年月日,以及利用芯片DS18B20来感知当前的温度,最终通过显示器LCD1602实时来呈现当前的时间和温度,也可以通过手动按键来调节时间,设置闹钟。本数字时钟读数方便,设置闹钟,具有很高的实际使用价值。76379
毕业论文关键词:AT89C51,数字时钟,温度测量,闹钟,多功能;
Abstract:With the continuous development and progress of society, digital clock has become a necessary product in people's daily life, and the application of SCM (Single Chip Micyoco) is also increasingly widespread。
In this study, a novel multi-function digital clock is designed with circuits, by selecting SCM AT89C51 system as the core of the control chip。 Four functions are realized by programming, such as time display, manual calibration, temperature display and alarm clock。 The clock mainly consists of several models, including single-chip control circuit, temperature sensor circuit, display circuit, alarm clock circuit and the circuit for time calibration。 In particular, the time is calculated by clock chip DS1302, and the current temperature by DS18B20 chip。 Finally, the real time current time and temperature are displayed with a LCD1602 display。 Besides, the adjustment of time and the set of alarm can be realized by a manual button。 The digital clock is convenient to read with alarm function, demonstrating significant practical application value。
Keywords:AT89C51,digital clock, temperature measurement ,alarm clock, multi-function
目 录
1 绪论 5
1。1 课题的研究背景 5
1。2 课题的研究意义 5
1。3 课题的设计主要工作 5
1。4 课题论文结构 6
2 系统整体设计方案及论证 6
2。1 单片机的选型 6
2。2 系统方案选择和论证 6
2。3 多功能数字时钟设计框架 7
2。4 模块各部分功能实现 7
2。5 工作原理 8
3 主要元器件芯片 8
3。1 单片机AT89C51 8
3。2 时钟芯片DS1302 9
3。3 温度传感器DS18B20 11
3。4 液晶显示屏LCD1602 13
4 系统各模块设计 14
4。1 最小系统 14
4。2 时钟模块 15
4。3 温度传感器模块 16
4。4 液晶显示屏模块 16
4。5 按键模块 16
4。6 蜂鸣器模块