您好,欢迎来到佳博论文网!

单片机电子时钟设计

论文编号:ZD931论文字数:10165,页数:38

摘 要

单片机,是集CPU ,RAM ,ROM ,计数和多种接口于一体的微控制器。自20世纪70年代问世以来,以其极高的性能价格比,受到人们的重视和关注。它体积小、重量轻、抗干扰能力强、环境要求不高、价格低廉、可靠性高、灵活性好、开发较为容易,广泛应用于智能生产和工业自动化上。随着科技的发展和社会的进步,人们对数字钟的要求也越来越高,多功能数字钟不管在性能还是在样式上都发生了质的变化。因此本系统采用单片机作为数字钟的核心控制器,读取时钟芯片的值和温度传感器传来的值,并通过显示器显示出来,而且,可以通过按键电路给单片机执行信号,给时钟芯片赋初值,设置闹钟。采用AT89S52作为主控单片机,时钟模块选用DS12C887作为时钟芯片,显示模块选用LCD1602,设置部分选用按键电路。

关键字:单片机 数字时钟 DS12C887引脚 时钟芯片 液晶1602

Abstract

The single-chip microcomputer, collects CPU, RAM, ROM, the counting and many kinds of connections in a body. It has been published since the 70’s of 20th century and has high performance, so it attracts lots of people’s attention.Its volume is small,the weight is light,the capacity of resisting disturbance is strong,the environmental challenge is not high,the price is not expensive and the development is easy,for that,it is widely used in the intelligent production and the industrial automation.with the technological development and social progress, people are demanding more and more digital clock high, whether in the performance of multi-function digital clock or in the style of both undergone a qualitative change. Therefore, this system uses the microcontroller as the core controller, digital clock, read clock chip value and the value coming from temperature sensors and displayed through the display, and that the circuit to the microcontroller through the implementation of key signal, the initial value assigned to the clock chip , set the alarm clock. Using AT89S52 microcontroller as a master clock module selected as a clock chip DS12C887, display module selection LCD1602, part of the selection button to set the circuit.

Keywords: single-chip Microcomputer Digital Clock clock chip DS12C887 Pin LCD1602

目 录

摘 要II

Abstract III

第一章 绪 论1

1.1 引言1

1.2 系统任务与实现2

1.3 芯片的选择3

1.3.1 单片机的选择3

1.3.2 时间芯片的选择3

1.3.3 显示器的选择4

第二章 AT89C51单片机介绍5

2.1 AT89C51简介5

2.2 AT89C51的主要特性5

2.3 AT89C51的管脚说明6

第三章 时间芯片DS12C887介绍9

3.1 器件特性9

3.2 引脚功能及结构9

3.3 应用12

第四章 硬件设计14

4.1 电子时钟系统的结构14

4.1.1 中央处理单元14

4.1.2 时钟部分14

4.1.3 LCD液晶显示部分14

4.1.4 报警部分14

4.1.5 按键设置部分14

4.2 硬件电路总体设计15

4.2.1 字符显示15

4.2.2 与单片机的接口17

4.3 1602LCD液晶屏18

4.4 报警电路18

4.5 按键设置电路19

第五章 软件设计21

5.1 系统主程序21

第6章 结 论30

致 谢31

参考文献32

附录 33

单片机电子时钟设计......