内容发布更新时间 : 2024/12/25 2:04:07星期一 下面是文章的全部内容请认真阅读。
海 南 大 学
《单片机原理与应用技术》
课程设计报告书
题目:基于AT89C52LED点阵显示电子钟的制作 学院: 班级: 姓名: 学号: 指导教师:
完成日期:2015年6月25日
基于AT89C52LED点阵显示电子钟的制作
摘要:介绍了基于AT89C51为控制器的LED点阵显示屏的设计,包括硬件设计和软件设计两部分。系统硬件部分由单片机、行驱动电路、列驱动电路、上位PC机,RS-232通讯接口等部分组成;软件设计采用动态显示模式的16×16点阵显示屏,LED点阵模块选用8×8基础模块,每4块排列构成一个16×16的点阵屏。并且可以对其进行设置。基于AT98C52单片机的LED点阵显示电子钟具有结构简单,性能靠,价格低和灵活等优点,因此得到了广泛应用。利用单片机来设计的系统,既能实现系统所需的功能,也可以满足计数的准确性、迅速性,并且电路简单、操作简单、通用性强。 关键词:单片机;LED点阵;电子钟
Abstract: The design of LED dot matrix display based on AT89C51 is introduced, which includes two parts, hardware design and software design. System hardware is composed of a single chip computer, drive circuit, a column driver circuit, PC, RS-232 communication interface parts; software design using a dynamic display 16 * 16 dot matrix display, LED dot matrix module selection of 8 * 8 basic module and arranged in each of four blocks constitute a 16 * 16 dot matrix screen. And can be set up. Based on AT98C52 microcontroller LED dot matrix display electronic clock has the advantages of simple structure, performance, low price and flexible, so it has been widely used. The use of single-chip microcomputer to design the system, both to achieve the system functions, but also to meet the accuracy of the count, and fast, simple operation, simple operation, general.
基于AT89C52LED点阵显示电子钟的制作
目录:
一、 绪论.................................................................................................................................... - 1 -
1.1:前言 ............................................................................................................................. - 1 - 1.2:设计任务和要求 ......................................................................................................... - 1 - 1.3:工艺要求 ..................................................................................................................... - 2 - 二、 系统方案 ............................................................................................................................ - 2 -
2.1:方案一 ......................................................................................................................... - 2 - 2.2:方案二 ......................................................................................................................... - 3 - 三、 器件介绍 ............................................................................................................................ - 3 -
3.1:STC89C52 ................................................................................................................... - 3 - 3.2:LED点阵 .................................................................................................................... - 4 - 3.3:74LS373 ...................................................................................................................... - 7 - 3.4:74LS245 ...................................................................................................................... - 7 - 3.5:74LS138 ...................................................................................................................... - 8 - 3.6:74LS04 ........................................................................................................................ - 9 - 3.7:74LS30 ........................................................................................................................ - 9 - 四、 系统的硬件设计 ................................................................................................................ - 9 -
4.1:晶振电路 ................................................................................................................... - 10 - 4.2:复位电路 ................................................................................................................... - 11 - 4.3:按键电路 ................................................................................................................... - 12 - 4.4:显示电路 ................................................................................................................... - 12 - 五、 软件设计及程序分析 ...................................................................................................... - 13 - 六、 仿真与测试 ...................................................................................................................... - 16 - 七、 实验.................................................................................................................................. - 17 - 八、 结论.................................................................................................................................. - 18 - 九、 感谢.................................................................................................................................. - 19 - 参考文献:................................................................................................................................ - 19 -
附件一:C51源代码 ......................................................................................................... - 19 - 附件二:PCB原理图 ......................................................................................................... - 24 - 附件三:PCB板图 ............................................................................................................. - 25 -