| 3,377 | 3 | 29 |
| 下载次数 | 被引频次 | 阅读次数 |
随着科技的进步与发展,电子产品在我们的生活中随处可见,各类电子产品以其方便、精准、稳定的特点越开越被人们所广泛应用。本文是围绕AT89C51单片机进行的抢答器设计。使用MAX7219芯片驱动数码管的方式驱动LED数码管显示,采用C51语言编写程序,整个程序采用模块化设计,通过主函数对各子程序的调用来实现。子程序主要包括:键盘扫描部分、时间显示部分、MAX7219芯片初始化与命令写入部分、定时器中断部分,通过硬件和软件的相互配合已达到设计要求。
Abstract:With the progress and development of science and technology, electronic products can be seen everywhere in our life. All kinds of electronic products are more and more widely used by people with their convenient,accurate and stable characteristics.This paper focuses on the responder design based on AT89 C51 SCM, driving LED digital tube display with MAX7219 chip drive digital tube and using C51 language for programming. Modular design is applied to the entire program, which is implemented through main function's calling on subroutine. The subroutine mainly includes keyboard scanning, time display, MAX7219 chip initialization and command writing. The interrupt part of timer has reached the design requirement through the mutual cooperation between hardware and software.
[1] 张迎新.单片机初级教程[M].北京:北京航空航天大学出版社,2015:73-75
[2] 高卫东.51单片机原理与实践[M].北京:北京航空航天大学出版社,2008:97-98
[3] 张毅刚 .单片机原理及应用[M].北京:高等教育出版社,2004:66-68
基本信息:
DOI:10.19576/j.issn.1008-5424.2019.05.010
中图分类号:TH89;TP368.1
引用信息:
[1]赵卫星.基于AT89C51单片机八位抢答器的设计[J].黄河科技学院学报,2019,21(05):39-42.DOI:10.19576/j.issn.1008-5424.2019.05.010.
2019-09-10
2019-09-10