《基于单片机的数字钟设计-职业学院电子信息工程技术毕业论文设计》由会员分享,可在线阅读,更多相关《基于单片机的数字钟设计-职业学院电子信息工程技术毕业论文设计(32页珍藏版)》请在金锄头文库上搜索。
1、安徽工贸职业技术学院毕业设计(论文)1A n h u i Vo c a ct i o n a l & Te ch n i ca l C o l leg e of In d u s t r y & Tr a d e毕 业 论 文基 于 单 片 机 的 数 字 钟 设 计 ;Digital clock design based on SCM所 在 系 院 安 徽 工 贸 职 业 技 术 学 院专 业 班 级 : 电 子 信 息 工 程 技 术 ( 1) 班学 生 学 号 : 2009240137学 生 姓 名 : 刘 证指 导 教 师 : 徐 艳 霞 白 志 青2012 年 2 月 9 日安徽工贸
2、职业技术学院毕业设计(论文)2基 于 单 片 机 的 数 字 钟 设 计摘 要20 世 纪 末 , 电 子 技 术 获 得 了 飞 速 的 发 展 , 在 其 推 动 下 , 现 代 电 子 产 品 几 乎 渗 透 了 社会 的 各 个 领 域 , 有 力 地 推 动 了 社 会 生 产 力 的 发 展 和 社 会 信 息 化 程 度 的 提 高 , 同 时 也 使 现 代电 子 产 品 性 能 进 一 步 提 高 , 产 品 更 新 换 代 的 节 奏 也 越 来 越 快 。现 代 生 活 的 人 们 越 来 越 重 视 起 了 时 间 观 念 , 可 以 说 是 时 间 和 金 钱 划 上
3、 了 等 号 。 对 于 那些 对 时 间 把 握 非 常 严 格 和 准 确 的 人 或 事 来 说 , 时 间 的 不 准 确 会 带 来 非 常 大 的 麻 烦 , 所 以 以数 码 管 为 显 示 器 的 时 钟 比 指 针 式 的 时 钟 表 现 出 了 很 大 的 优 势 。 数 码 管 显 示 的 时 间 简 单 明 了而 且 读 数 快 、 时 间 准 确 显 示 到 秒 。 而 机 械 式 的 依 赖 于 晶 体 震 荡 器 , 可 能 会 导 致 误 差 。数 字 钟 是 采 用 数 字 电 路 实 现 对 “ 时 ” 、 “ 分 ” 、 “ 秒 ” 数 字 显 示 的 计
4、 时 装 置 。 数 字 钟 的 精度 、 稳 定 度 远 远 超 过 老 式 机 械 钟 。 在 这 次 设 计 中 , 我 们 采 用 LED数 码 管 显 示 时 、 分 、 秒 ,以 24小 时 计 时 方 式 , 根 据 数 码 管 动 态 显 示 原 理 来 进 行 显 示 , 用 12MHz 的 晶 振 产 生 振 荡 脉冲 , 定 时 器 计 数 。 在 此 次 设 计 中 , 电 路 具 有 显 示 时 间 的 其 本 功 能 , 还 可 以 实 现 对 时 间 的 调整 。 数 字 钟 是 其 小 巧 , 价 格 低 廉 , 走 时 精 度 高 , 使 用 方 便 , 功
5、能 多 , 便 于 集 成 化 而 受 广 大消 费 的 喜 爱 , 因 此 得 到 了 广 泛 的 使 用 。关 键 词 : 数 字 电 子 钟 单 片 机AbstractAt the end of the 20th century, electronic technology has experienced rapid growth, themodern electronic products, almost permeated the various sectors of society, and promoted thedevelopment of social productive
6、forces and the social informatization level, but also improvethe modern electronic products to further improve the performance, product update rhythm alsomore and more quickly.Modern life of people pay more and more attention to the concept of time, money and timeon the hospital. For those in time a
7、nd accurately grasp the very strict about or inaccurate, timewill bring great trouble, so as to displays clock digital tube than the pointer clock showed a lot ofadvantages. Digital pipe display time is simple and accurate readings, time to seconds. Andmechanical dependent on crystal oscillators, ma
8、y cause errors.A digital clock is used in digital circuit , points and second digital display timer. Adigital clock accuracy and stability than old mechanical clock. In this design, we adopt LEDdigital display tube, minutes and seconds, when in 24 hours time, according to the principle ofdynamic dis
9、play of digital tube to show, with the crystals 12MHz produce oscillation pulses,timer count. In this design, the circuit has its time, still can realize the function of the time. Adigital clock is its small, inexpensive, high precision, easy to use and when, the function is much,facilitate integrat
10、ion by vast consumption, so it has been widely used.K ey words: digital electric clock microcontroller安徽工贸职业技术学院毕业设计(论文)3目 录摘 要 ( 中 文 ) 摘 要 ( 英 文 ) 引 言 4第 一 章 整 体 设 计 方 案 51.1 单 片 机 的 选 择 51.2 单 片 机 的 基 本 结 构 6第 二 章 数 字 钟 的 硬 件 设 计 112.1 最 小 系 统 设 计 112.2 LED显 示 电 路 132.3 键 盘 控 制 电 路 15第 三 章 数 字 钟 的
11、 软 件 设 计 173.1 系 统 软 件 设 计 流 程 图 173.2 数 字 电 子 钟 的 原 理 图 213.3中 断 子 程 序 223.4 延 时 子 程 序 223.5 主 程 序 和 定 时 器 中 断 子 程 序 223.6 LED显 示 子 程 序 233.7 按 键 控 制 子 程 序 25第 四 章 系 统 仿 真 284.1 PROTUES软 件 介 绍 284.2 电 子 钟 系 统 PROTUES仿 真 28第 五 章 调 试 与 功 能 说 明 295.1 系 统 性 能 测 试 与 功 能 说 明 295.2 系 统 时 钟 误 差 分 析 295.3 软 件 调 试 问 题 及 解 决 29结 论 30致 谢 31参 考 文 献 32安徽工贸职业技术学院毕业设计(论文)4引 言20世 纪 末 , 电 子 技 术 获 得 了 飞 速 的 发 展 , 在 其 推 动 下 , 现 代 电 子 产 品 几 乎 渗 透 了 社 会的 各 个 领 域 , 有 力 地 推 动 了 社 会 生 产