基于单片机的智能定时器

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

成绩

课程设计说明书

课程设计名称:微机控制与接口技术课程设计题目:智能定时器

专业:袁世斌

学号:***************

**教师:***

日期:2013年12月13日

摘要

本次设计以AT89C51芯片为核心,辅以必要的外围电路,设计了一个简易的电子时钟,它由5V直流电源供电。在硬件方面,除了CPU外,使用四个七段LED数码管来进行显示,LED采用的是动态扫描显示。通过LED能够比较准确显示时、分。三个简单的按键实现对时间的调整。软件方面采用汇编语言编程。整个电子钟系统能完成时间的显示,调时,定时闹钟,报警等功能。

本设计是以ATMEL公司的AT89C51单片机芯片为系统核心的智能定时控制器设

计,论文具体描述了设计的系统硬件和软件的具体实现过程。智能定时控制器在硬件、软件设计上均采用模块化的方法,使得在设计和调试方面取得很大的方便。论文重点阐述

了数字钟硬件中MCU模块、按键模块、显示模块等相关模块的模块化设计及制作;软件同样采用模块化的设计,包括中断模块、时间调整模块等设计,并采用简单流通性强的C

语言编写实现。本设计实现了年、月、日及时、分、秒的显示和时间修改的功能。通过对比实际的智能定时控制器,查找出误差的来源,确定调整误差的方法,尽可能的减少误差,使得系统可以达到实际智能定时控制器的允许误差范围内,取得了设计的预期效果。

关键词:AT89C51 数码管模块化数字钟

abstract

This design USES AT89C51 chip as the core, supplemented by necessary peripheral circuit, design a simple electronic clock, it consists of 5 v dc power supply.In terms of hardware, in addition to the CPU, using four seven-segment LED digital tube display, LED using a dynamic scanning display.Through to compare accurate LED display, points.Three simple button realize adjustment of time.Software using assembly language programming.Can finish the whole electronic clock system time display, adjustment, timing alarm clock, alarm, etc.

This design is based on AT89C51 chip as the core of the system of ATMEL company smart timing controller design, the paper describes the design of system hardware and software of the concrete implementation process.Smart timing controller in hardware, software design adopt modular approach, made in the design and debugging has made a lot of convenience.Paper expounds the digital clock hardware of MCU module, keys module, display module and other related modules of modular design and production;Software also adopts modular design, including the interrupt module, time adjust module design, and USES the

simple liquidity strong C language to achieve.This design has realized the years, months, days, minutes and seconds in time display and the function of the time change.By comparing the actual smart timing controller, find out the source of the error, determine the method of adjusting error, reduce errors, makes the system can achieve the actual intelligence within the scope of permissible error time controller, design the expected results have been achieved. Keywords:AT89C51 digital tube modular digital clock

目录

1前言 (3)

2总体设计方案设计 (5)

2.1要求功能 (5)

2.2.单片机芯片 (5)

2.3显示模块 (5)

2.4时钟芯片的选择 (6)

2.5电路设计方案确定 (6)

3硬件电路设计 (7)

3.1硬件系统设计的概述 (7)

3.2 AT89C51单片机 (8)

3.3单片机的定时/中断系统 (9)

3.4 显示系统 (11)

相关文档
最新文档