流水灯控制系统设计

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

微机原理课程设计

目录

第1章方案的论述以及与最终方案的确定·····································- 1 -

1.1第一种方案的论述 (1)

1.2第二种方案的论证 (1)

1.3第三种方案的论述 (1)

1.4最终方案的确定 (1)

第2章硬件设计 .................................................................................- 2 -2.1总体方案设计分析 .. (2)

2.2系统逻辑框图 (2)

2.3主要元器件简介 (2)

2.3.1 8086CPU ················································································································ - 2 -

2.3.2 地址锁存器74LS373的内部电路与工作原理····················································· - 4 -

2.3.3 可编程外围接口芯片8255A的简介···································································· - 5 -第3章软件设计 ·················································································- 9 -

3.1程序流程设计 (9)

3.1.1 主程序流程··········································································································· - 9 -

3.1.2 程序流程图········································································································· - 10 -

3.1.3 系统硬件连接图 ································································································· - 11 -

3.1.4 源程序设计(附录) ............................................................................................... - 11 -3.2设计最终理想结果及原理 (11)

3.2.1 左向移动流水灯 ································································································· - 11 -

3.2.2 右向移动流水灯 ································································································· - 11 -设计心得 ·····························································································- 12 -参考文献 ·····························································································- 13 -附录······································································································- 14 -

- 1 -

微机原理课程设计

第1章方案的论述以及与最终方案的确定

1.1 第一种方案的论述

第一种方案,使用AT89C51单片机实现流水灯闪烁设计。AT89C51单片机是美国ATMEL公司生产的低电压、高性能CMOS 8位单片机,具有丰富的内部资源:4kB闪存、128BRAM、32根I/O口线、2个16位定时/计数器、5个向量两级中断结构、2个全双工的串行口,具有4.25~5.50V的电压工作范围和0~24MHz工作频率,使用AT89C51单片机时无须外扩存储器。因此,方案一中设计的流水灯实际上是一个带有八个发光二极管的单片机最小应用系统,即由发光二极管、晶振、复位、电源等电路和必要软件组成的单个单片机。

1.2 第二种方案的论证

第二种方案,我们使用了AT89C51单片机与8255A芯片一起实现了流水灯闪烁的设计。74LS373是常用的地址锁存器芯片,它是一个是带三态缓冲输出的8D 触发器,在单片机系统中为了扩展外部存储器,通常需要一块74ls373芯片。我们了解到74ls373是常用的地址锁存器芯片,它是一个是带三态缓冲输出的8D 触发器,在单片机系统中为了扩展外部存储器,通常需要一块74ls373芯片。1.3 第三种方案的论述

第三种方案,使用8086 CPU芯片并行8255A芯片一起实现了流水灯闪烁的设计,同时还使用了地址锁存器74LS373芯片。从前两种方案中,我们分别熟悉与掌握了地址锁存器74LS373芯片和8086CPU。在方案中,当8086CPU的引脚ALE 处于下降沿时将8086CPU输出的地址信息进行锁存,以定义8255A的工作方式。在方案中,我们将详细地介绍8255A的内部电路、功能特点、工作原理以及在电路中的功能扩展与应用,这也是我们这次课程设计中一个需要重点掌握的芯片。

1.4 最终方案的确定

通过课程设计的要求和以上的论证,我们决定采用第三种方案,即以8086CPU为核心、并行接口芯片8255A和3个逻辑电平开关设计多路流水灯控制程序。

- 1 -

相关文档
最新文档