好文档 - 专业文书写作范文服务资料分享网站

电子钟毕业设计课题

天下 分享 时间: 加入收藏 我要投稿 点赞

河南科技学院新科学院 电气工程系电子课程设计报告

单片机时钟的设计

学生姓名: 石 豪 时 间: 2014.12.8-2014.12.2 所在班级: 129班 指导老师: 陈 艳 峰

2014年12月23号

基于单片机控制的时钟控制器

一. 设计要求 (一)基本功能

1. 显示: 可以显示时、分和秒

2. 调时功能:时(0-24)、分和秒(0-60)可以连续可调 (二)性能:时间日误差< 2秒 (三)扩展功能

1.增加整点报时功能 2.增加闹钟任意设定功能 二.计划完成时间 三周

1.第一周完成软件和硬件的整体设计,同时按要求上交设计报告一份。

2.第二周完成软件的具体设计和硬件的制作。 3.第三周完成软件和硬件的联合调试。

目录

ABSTRACT .................................................................................................................... II 1. 引言 ............................................................................................................................. 1 2.关于单片机 ................................................................................................................... 2

2.1单片机的发展 .................................................................................................... 2 2.2 AT89S52单片机 ................................................................................................ 3

2.2.1 AT89S52单片机引脚功能 ....................................................................... 4 2.2.2 AT89S52单片机硬件结构的特点 ............................................................ 5 2.2.3 AT89S52单片机的硬件原理 ................................................................... 7

3. 系统的硬件设计 ......................................................................................................... 9

3.1 控制部分电路的设计 ....................................................................................... 9

3.1.1 时钟模块 .................................................................................................. 9 3.1.2 音乐模块 .................................................................................................. 9 3.1.3 复位模块 .................................................................................................. 9

4. 系统电路的制作与调试 ........................................................................................... 10

4.1 电路硬件焊接制作 ......................................................................................... 10 4.2 调试的主要方法 ............................................................................................. 10 4.3 系统调试 ......................................................................................................... 11

4.3.1 硬件调试 ................................................................................................ 11 4.3.2 软件调试 ................................................................................................ 11 4.3.3 联机调试 ................................................................................................ 11 4.3.4调试中遇到的问题及解决方法 ............................................................. 11

结 论 ...................................................................................................................... 13 参考文献 ........................................................................................................................ 14 附录1 数字钟电路图 ................................................................................................. 16 致 谢 .......................................................................................................................... 25

单片机时钟设计 MCU clock design

摘 要

基于单片机的定时和控制装置在许多行业有着广泛的应用,而数字钟是其中最基本的,也是最具有代表性的一个例子。

在基于单片机系统的数字钟电路中,除了基本的单片机系统和外围电路外,还需要外部的控制和显示装置。本电路主要以单片机AT89S52为核心而设计的,通过单片机对信息的分析与处理,控制外围设备。系统由复位模块、时钟模块、及显示模块共三个模块组成。

本设计以单片机AT89S52为切入点,通过使用AT89S52的内部的可编程定时器/计数器,结合对外接晶振的调节来确定一个合适的振荡周期,从而确定出内部的机器周期。再通过对内部中断程序的设置来设计出时钟程序,即设计出了电子时钟的核心。然后在核心电路的基础上设计出了相应的扩展电路,使本设计更加实用。

关键词:单片机;数码显示

ABSTRACT

Based on single-chip timing and control device has been widely used in many industries, and digital clock is one of the most basic, an example is also the most representative.

In the digital clock circuit based on single chip microcomputer system, in addition to the basic single chip microcomputer system and peripheral circuit, also need external control and display unit. This circuit is designed with single-chip microcomputer AT89S52 as the core, through the single chip microcomputer to the analysis and processing of information, control the peripheral equipment. System by the reset module, clock module, and display module, a total of three modules.

This design with MCU AT89S52 as the breakthrough point, through the use of AT89S52 internal programmable timer/counter, combined with the regulation of foreign pick crystals to determine an appropriate period of oscillation, so as to determine the internal machine cycle. Travel through the set of internal interrupt program to design a clock procedures, the core of the design out of the electronic clock. Then on the basis of the core circuit designed the corresponding extension circuit, make the design more practical.

Key Words:Micro control unit; LED shows

电子钟毕业设计课题

河南科技学院新科学院电气工程系电子课程设计报告单片机时钟的设计学生姓名:石豪时间:2014.12.8-2014.12.2所在班级:129班指导老师:陈艳峰
推荐度:
点击下载文档文档为doc格式
3n7di8u6yq2i4cx3q5al1oirv327wf00plj
领取福利

微信扫码领取福利

微信扫码分享