天天看点

数字钟液晶显示年月日,时间,闹钟,温度c语言程序,基于89C52单片机数字钟设计

内容介绍

原文档由会员 莎士比亚 发布

正文DOC格式共93页 附ddb文件1个

摘 要

数字钟在日常生活中最常见,应用也最广泛。本文主要就是设计一款数字钟,以89C52单片机为核心,配备液晶显示模块、时钟芯片、温度传感器等功能模块。数字钟采用12/24小时制方式显示时间,定时信息,遥控止闹,AM、PM提示以及年月日显示等功能。同时还能对温度、电压等进行测量。

文章的核心主要从硬件设计和软件编程两个大的方面。硬件电路设计主要包括中央处理单元电路、时钟电路、人机接口电路、信号处理电路、执行电路等几部分组成。软件用C语言来实现,主要包括主程序、键盘扫描子程序、温度测量子程序、电压测量子程序、时间设置子程序等软件模块。

关键词 单片机 液晶显示器模块 数字钟 数据采集

Abstract

The digital clock is most common in the daily life,using is also most widespread.This article mainly designs a section digital clock,Take the 89C52 one-chip computer as the nucleus,provides the liquid crystal display module,clock chip, temperature sensor functions module and so on.The digital clock uses 12/24 hour system way demonstration time,timeing information.The remote control stops noisily.AM, PM prompt,as well as year, month and day demonstration functions and so on.Simultaneously also can carry on the survey to the temperature,voltage and so on.

This article nucleus mainly includes the hardware design and software program two big aspects.The hardware circuit design mainly includes central processing element electric circuit,clock electric circuit,man-machine connection electric circuit,signal processing electric circuit,carring out the electric circuit several parts and so on.Software programs the realization with the C language.Mainly includes the main program,keyboard scanning subroutine,temperature survey subroutine,voltage survey subroutine,time establishment subroutine software module and so on.

Keyword One-chip computer Liquid-crystal display module Digital clock Data acquisition

摘 要 I

Abstract II

第一章 绪论 1

第二章 方案设计与论证 2

2.1 主功能设计 2

2.1.1 时钟电路设计 2

2.1.2 闹钟电路设计 2

2.2 辅助功能设计 3

2.2.1 温度测量电路设计 3

2.2.2 电压与电网频率测量电路设计 3

第三章 硬件设计 4

3.1 单片机外围电路 4

3.1.1 振荡电路 4

3.1.2 复位电路 5

3.2 时钟电路 7

3.3 温度测量电路 8

3.4 电压与电网频率测量 10

3.4.1 电压的衰减电路 11

3.4.2 电压测量电路 13

3.4.3 电网频率测量电路 16

3.5 A/D转换电路 21

3.6 音乐闹钟电路 24

3.7 遥控部分 25

3.8 键盘与显示电路 26

3.8.1 键盘部分 26

3.8.2 显示部分 29

3.9 电源设计 31

3.10 通信部分 32

第四章 软件实现 34

4.1 编译器介绍 34

4.2 软件编程思想 35

4.3 辅助芯片介绍 36

4.3.1 液晶显示器(LCD)指令介绍 36

4.3.2 时钟芯片(DS12C887)介绍 38

结论 40

致谢 41

参考文献 42

附录 1 43

附录 2 56

附录 3 72

继续阅读