单片机控制的霓虹灯控制器讲解

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

单片机控制的霓虹灯控制器

学生:xxx 指导教师:xxx

内容摘要:本设计采用AT89C51单片机实现对霓虹灯的控制。系统的设计由霓虹灯的硬件电路设

计和软件设计两部分组成。硬件设计分为发光二极管的设计、复位电路、时钟电路、按键设计、外设接口设计五个模块组成,按键主要功能是实现人为控制霓虹灯,实现单片机控制显示不同的图案以及想要的各种花样闪烁,并能实现各种闪烁模式的互相切换。软件部份是运用Keil软件基于C语言进行编写的程序。该系统具有电路结构简单、易操作等优点,具有较强的实用价值。并且有较强的实用性,操作简单,扩展功能强。如需要增加功能可方便更改程序,灵活性强。

关键词:单片机发光二极管花样闪烁霓虹灯

the neon light controller based on single chip Abstract: This design uses AT89C51 single-chip microcomputer to realize the control

of neon lights. The design of the controller i ncluding the hardware circuit design and software design of the neon lights two parts. Hardware design is divided into the light emitting diode design ,reset circuit ,clocking circuit design , key design and peripheral interface design. The main function of Keys is to realize the anthropogenic control of neon lights, realize single-chip microcomputer control display different pattern and want all kinds of pattern flicker, and can realize all kinds of scintillation mode switch to each other. The software part is to use Keil software based on C language program.It has strong practicality, simple operation, and the function expended is strong.If we need to increase the function ,it will be easily changed procedures, and it has high adaptability.

Keywords: single-chip light emitting diode flicker neon lights

目录

前言 -------------------------------------------------------------------------------- 5 1 霓虹灯的设计 ------------------------------------------------------------------- 5

1.1 设计任务 ------------------------------------------------------------------ 5

1.2 总体设计方案 ------------------------------------------------------------- 6

1.2.1 单片机芯片的选择--------------------------------------------------- 6

1.2.2 接口设计 ------------------------------------------------------------ 6

1.2.3 方案设计 ------------------------------------------------------------ 6

2 设计原理 ------------------------------------------------------------------------ 6

2.1 单片机AT89C51 ---------------------------------------------------------- 6

2.2 芯片PL2303HX ----------------------------------------------------------- 8

3 霓虹灯的硬件设计--------------------------------------------------------------- 9

3.1 复位控制电路 ------------------------------------------------------------- 9

3.2 时钟电路 ----------------------------------------------------------------- 10

3.3 发光二极管的设计-------------------------------------------------------- 10

3.4 外设USB接口 ----------------------------------------------------------- 11

3.5 按键设计 ------------------------------------------------------------------ 12

4 霓虹灯的软件设计-------------------------------------------------------------- 12

4.1 延时函数 ----------------------------------------------------------------- 12

4.2 按键控制程序 ------------------------------------------------------------ 13

4.3 霓虹灯控制程序 ---------------------------------------------------------- 14

5 结束语 ------------------------------------------------------------------------- 15

相关文档
最新文档