基于STC89C52单片机的多功能秒表设计.docx

  1. 1、本文档共26页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于STC89C52单片机的多功能秒表设计 摘要 本次设计的内容是以STC89C52单片机为控制核心的秒表。设计的主要内容为计时器 从OO?99秒的计时,每秒种自动加1,另外还设置有暂停键和复位键等按键,在任何情况 下都可以实现暂停和复位功能。利用单片机定时器/计数器定时和记数的原理,结合显示 电路、LED数码管以及外部中断电路来设计的计时器。此次设计将软、硬件有机地结合起 来,使得系统能够实现2位LED数码管显示,显示时间为00?99秒,同时计时精度为1 秒,并且能够正确地进行计时。其中软件系统采用C语言编写程序,包括显示子程序、中 断服务、外部中断服务子程序和复位子程序等。 关键词:单片机;数码管;C语言; Abstract This design content for the stopwatch with AT89C52 single-chip computer as the core. Design of the main characteristics of the timer timing from 00 to 99 seconds, automatically add 1 every second, and also set a pause button and reset button, under any circumstances can suspend and reset. Use of single-chip timer/counter timing and number of principles, combined with the display circuit, LED digital tube circuit to design the timer and external interrupt. The software and hardware organically, enables the system to realize the two LED display, display time is 00 ?99 seconds, timing accuracy for one second, time properly. Software system using C language program, including display program, interrupt service, external interrupt service routine, reset the program, etc. Keywords : MCU; LED; C language; PAGE PAGE # TOC \o 1-5 \h \z \o Current Document 摘要 I Abstract II 1弓I 言 -1 - 1 - 1研究背景 - 1 - \o Current Document 1.2研究的意义与方法 -1 - \o Current Document 2电路方案论证 -2 - \o Current Document 2.1单片机芯片的选择方案和论证: -2 - 2. 1. 1 采用 STC89C51 单片机 -2 - 2. 1.2 采用 STC89C52 单片机 -2 - \o Current Document 2. 2显示模块选择方案和论证: -2 - 2. 1 米用 LED 液晶显K屏 -2 - 2. 2采用LED数码管显示 -3 - 3 小结 -3 - \o Current Document 3系统硬件电路设计 -3 - 1 STC89C52 芯片 -3 - 1. 1 概述 -3 - 1.2 STC89C52 主要特性 -3- 1.3 STC89C52 管脚说明 -4 - \o Current Document 3.2 LED数码管显示器概述 -5 - \o Current Document 数码管的分类 -5- \o Current Document 数码管的连接方法 -5- \o Current Document 3. 3总体设计方案 -6 - \o Current Document 4部分电路设计 -7 - 3.4. 1晶振电路 -7- \o Current Document 3.4.2按键部分电路接线 -7- 3.4. 3显示电路 -8 - 3.4.4复位电路 -8 - \o Current Document 4系统程序的设计 -9 - 4.1主程序设计 -9 - \o Current Document 2定时器TO子程序设计 -10 - 5联调与调试 -10 - 1仿真调试 -

文档评论(0)

瞎闹呢 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档