【asp精品源码栏目提醒】:网学会员鉴于大家对asp精品源码十分关注,论文会员在此为大家搜集整理了“【精品】基于单片机的时钟电路设计 - 电子电信”一文,供大家参考学习
基于单片机的时钟电路设计 摘 要 单片机自 20 世纪 70 年代问世以来,以其极高的性能价格比,受到人们的重视和关注,51 单片机是各单片机中最为典型和最有代表性的一种。
本次设计以 AT89C51 芯片为核心,辅以必要的外围电路,设计了一个简易的电子时钟,它由 5V 直流电源供电。
在硬件方面,除了 CPU 外,使用四个七段数码管来进行显示,数码管采用的是动态扫描显示。
通过数码管能够比较准确显示时、分LED 一闪一灭显示秒,设计方面采用汇编语言编程,整个电子钟系统能完成时间的显示、复位等功能。
通过这次设计让我更深入了解单片机基本电路、如何控制和定时器和中断编程的基本方法,从而锻炼了我学习、设计和开发软、硬件的能力。
关键词:AT89C51 ;单片机 ;数码管 Based on single-chip clock circuit design Abstract Author : WangHongkun Tutor: WenHongcang Because of its extremely high performance-price ratio the single-chip computer hasbeen paid great attention to ever since it came out in 1970s of 20th Century and hagainedextensive applicable field and fast development.Among all kinds of SCCs 51 SCCrepresentative one. This design adopting AT89C51 chip as the core part with some necessary periphcircuitsis a simple electronic clock which uses 5V DC as the power supply. In hardware besides CPUfour seven-segment LED digi-tubes are used for display which work in a dynamicallscdisplaymode and driven by 74SL14 chip.The LEDS can accurately indic ate hour and minute andassembly language.The whole electronic clock system has functions of time disadjustmentbell-setting and reset etc. This design enables me to have greater insight into the basic circuit of SCC and thbasicmethods of timer control and interruption programming so that is a training of my abilearningdesigning and developing software and hardward.keywords: AT89C51 SCM Digital 目录1 绪论....………………………………………………………………………..…...1 1.1 选题的目的和意义……………………………………………………………….…1 1.2 单片机的应用………………………………………………………………3 1.3 单片机数字时钟的总体设计方案…………………………………………32 硬件分析………………………………………………………………………….6 2.1 单片机的选用………………………………………………………………6 2.1.1 AT89C51 的主要性能参数…………………………………………………..6 2.1.2 引脚说明……………………………………………………………...7 2.1.3 复位电路……………………………………………………………...8 2.2 数码管的选择………………………………………………………………8 2.2.1 数码管的主要特点…………………………………………………...8 2.2.2 驱动方式……………………………………………………………...9 2.2.3 性能检测……………………………………………………………...93 系统设计………………………………………………………………………...11 3.1 分析论证…………………………………………………………………..11 3.2 电路组成及工作原理……………………………………………………..11 3.3 显示模块…………………………………………………………………..11 3.4 运算模块…………………………………………………………………..11 3.5 显示的原理………………………………………………………………..12 3.6 主要程序分析设计………………………………………………………..13 3.7 程序流程图…………………………………………………………..……144