内容发布更新时间 : 2024/12/26 22:11:48星期一 下面是文章的全部内容请认真阅读。
Southwest university of science and technology
《电子设计基础》
课程设计
设计题目: 基于AT89S52的流水灯状态
控制与数码管显示系统
学院名称: 学生姓名: 学生学号: 专业班级:
2015年7月12日
基于AT89S52的流水灯状态控制
与数码管显示系统
摘 要
单片机[1](Microcontrollers)是一种集成电路芯片,是采用超大规模集成电路技术把具有数据处理能力的中央处理器CPU、随机存储器RAM、只读存储器ROM、多种I/O口和中断系统、定时器/计数器等功能(可能还包括显示驱动电路、脉宽调制电路、模拟多路转换器、A/D转换器等电路)集成到一块硅片上构成的一个小而完善的微型计算机系统,在工业控制领域广泛应用。从上世纪80年代,由当时的4位、8位单片机,发展到现在的300M的高速单片机。
本次设计是基于AT89S52芯片所设计的5种LED流水灯电路,通过对AT89S52单片机写入C语言程序实现了对8个发光二极管流水灯的控制功能,并通过AT89S52的外部中断功能实现对流水灯状态和闪烁频率的切换,同时于4位数码管上显示流水灯状态信息。在进行课题设计的过程中,学习并掌握了AT89S52单片机的功能原理以及对其的C语言编程方法,了解了生活中霓虹灯的大致由来。
关键词:AT89S52芯片;流水灯;定时器中断;数码管;
Running light control and digital display system
based on AT89S52
Abstract
MCU [1] (Microcontrollers) is a kind of integrated circuit chip, is the use of ultra large scale integrated circuit technology to a data processing capability of the central processing unit (CPU), random access memory ram, ROM and variety of I / O port and interrupt system, timer / counter and function (possibly also comprises a display drive circuit, pulse width modulation circuit, analog multiplexer, a / D converter circuit) integrated into a piece of silicon constitute a small and to improve the micro computer system, is widely used in industrial control. From the last century 80's, from the 4, 8 bit microcontroller, to the present 300M of the high-speed microcontroller.
The design is based on AT89S52 chip machine design of five LED water lamp circuit through of AT89S52 write C language program to achieve the eight light-emitting diode light water control function and by AT89S52 external interrupt function realizes the switching of light water state and flicker frequency, also with four digital tube display light water state information. In the process of the design of the subject, learning and mastering the functional principle of AT89S52 microcontroller and its C language programming method, understand the life of neon lights.
Key words: AT89S52 chip;Running light;Time interrupt;Digital tube;