没有合适的资源?快使用搜索试试~ 我知道了~
单片机课程设计led流水灯设计报告.doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
14 浏览量
2022-07-08
04:23:48
上传
评论
收藏 97KB DOC 举报
单片机课程设计led流水灯设计报告
资源推荐
资源详情
资源评论









the Department during a visit to the camp, a few shells of explosions were heard in the distance. Back to Headquarters, Zhu Xi staff was informed by the Department to strengthen alert, watch, place to rest, for night operations. Near 9 o'clock, attack the elves have on the formation of Zhong Jia DUN encirclement. Southeast corner of sudden intense machine gunfire were heard, energize sent a platoon of Shao and attacked the enemy, fighting more hotly, gunfire was tight for a while. Troops were the shock seemed a bit out the chain of command. Offensive Zhong Jia DUN elves, planes covered in the air, river patrol boats, with the, to heavily guard the way to the village of only access--a stone bridge and a path. Under heavy fire against the enemy troops has been disrupted, Zhu Xi himself Despite repeated organizing death squads under the, but terrain unfavorable, enemy fire is too strong, paid a very high casualties and tremendous power again, and finally failed. Second head of mission and Deputy Commander Wang Hesong remnants kill one and five Fan Chunsheng, head of rates of Hades and survive. Qiu Acai Commander Zhu Xi in local farmers risking death save, Ling bin to swim across the river and escaped alone, Yuhang is in court the headquarters report of Jiangsu Zhong Jia DUN bloody situation. Zhu Xi organized forces to break through at the same time, Wen Yongzhi instructed to rate the Department staff retreat. But under the enemy's army arrives, this tiny place where withdrawal? yellow around the rice fields, and everywhere is the devil, mulberry has nowhere to hide in the Woods in the fall. In desperation, temperature a few people from the Department to the local people, and House of a rich family. Officer Xie Chengji, see the living room hangs a plaque, after hiding
目 录
一、前 言……………………………………………………………
(1)
1.1 课题简介………………………………………………………… (1)
1.2 设计目的…………………………………………………………… (1)
二、总体设计……………………………………………………………(2)
2.1 设计思路…………………………………………………………… (2)
2.2 原件清单…………………………………………………………… (2)
三、硬件设计……………………………………………………………
(3)
3.1AT89C51…………………………………………………………… (3)
3.2 系统框图 ……………………………………………………………(5)
3.3 程序框图 ……………………………………………………………(5)
四、软件设计……………………………………………………………(5)
4.1 硬件设计…………………………………………………………… (6)
4.2 单片机时钟电………………………………………………………(6)
4.3 复位电路 ……………………………………………………………(6)
4.4 控制电路 ……………………………………………………………(7)
4.5 工作电路 ……………………………………………………………(7)
五、软件调试……………………………………………………………(8)
5.1 设计要求 ……………………………………………………………(8)
5.2 软件的流程图………………………………………………………(9)
5.3 程序设计 ……………………………………………………………(9)
六、软件调试……………………………………………………………(11)
七、心得体会……………………………………………………………(12)
八、参考文献……………………………………………………………(13)

河北建筑工程学院 单片机原理及应用课程设计
the Department during a visit to the camp, a few shells of explosions were heard in the distance. Back to Headquarters, Zhu Xi staff was informed by the Department to strengthen alert, watch, place to rest, for night operations. Near 9 o'clock, attack the elves have on the formation of Zhong Jia DUN encirclement. Southeast corner of sudden intense machine gunfire were heard, energize sent a platoon of Shao and attacked the enemy, fighting more hotly, gunfire was tight for a while. Troops were the shock seemed a bit out the chain of command. Offensive Zhong Jia DUN elves, planes covered in the air, river patrol boats, with the, to heavily guard the way to the village of only access--a stone bridge and a path. Under heavy fire against the enemy troops has been disrupted, Zhu Xi himself Despite repeated organizing death squads under the, but terrain unfavorable, enemy fire is too strong, paid a very high casualties and tremendous power again, and finally failed. Second head of mission and Deputy Commander Wang Hesong remnants kill one and five Fan Chunsheng, head of rates of Hades and survive. Qiu Acai Commander Zhu Xi in local farmers risking death save, Ling bin to swim across the river and escaped alone, Yuhang is in court the headquarters report of Jiangsu Zhong Jia DUN bloody situation. Zhu Xi organized forces to break through at the same time, Wen Yongzhi instructed to rate the Department staff retreat. But under the enemy's army arrives, this tiny place where withdrawal? yellow around the rice fields, and everywhere is the devil, mulberry has nowhere to hide in the Woods in the fall. In desperation, temperature a few people from the Department to the local people, and House of a rich family. Officer Xie Chengji, see the living room hangs a plaque, after hiding
1
第一章 前言
1.1 课题简介
单片机全称叫单片微型计算机(Single Chip Microcomputer),是一种集成在电路芯
片,是采用超大规模集成电路技术把具有数据处理能力的中央处理器 CPU 随机存储器
RAM、只读存储器 ROM、多种 I/O 口和中断系统、定时器/计时器等功能(可能还包括
显示驱动电路、脉宽调制电路、模拟多路转换器、A/D 转换器等电路)集成到一块硅
片上构成的一个小而完善的计算机系统。
目前单片机渗透到我们生活的各个领域,几乎很难找到哪个领域没有单片机的踪迹。
导弹的导航装置,飞机上各种仪表的控制,计算机的网络通讯与数据传输,工业自动
化过程的实时控制和数据处理,广泛使用的各种智能 IC 卡,民用豪华轿车的安全保
障系统,录像机、摄像机、全自动洗衣机的控制,以及程控玩具、电子宠物等等,这
些都离不开单片机。更不用说自动控制领域的机器人、智能仪表、医疗器械以及各种
智能机械了。单片机广泛应用于仪器仪表、家用电器、医用设备、航空航天、专用设
备的智能化管理及过程控制等领域,大致可分如下几个范畴: 1.在智能仪器仪表上
的应用 :,例如精密的测量设备 2.在工业控制中的应用 :用单片机可以构成形式多
样的控制系统、数据采集系统。例如工厂流水线的智能化管理,电梯智能化控制、各
种报警系统,与计算机联网构成二级控制系统等。 3.在家用电器中的应用可从手机,
电话机、小型程控交换机、楼宇自动通信呼叫系统、列车无线通信、再到日常工作中
随处可见的移动电话,集群移动通信,无线电对讲机等。 5.单片机在医用设备领域
中的应用 :例如医用呼吸机,各种分析仪,监护仪,超声诊断设备及病床呼叫系统
等等。 6.在各种大型电器中的模块化应用 :如音乐集成单片机,看似简单的功能,
微缩在纯电子芯片中(有别于磁带机的原理),就需要复杂的类似于计算机的原理。
本设计着重在于分析计算器软件和开发过程中的环节和步骤,并从实践经验出发对计
算器设计做了详细的分析和研究。本系统就是充分利用了 8051 芯片的 I/O 引脚。系
统以采用 MCS-51 系列单片机 Intel8051 为中心器件来设计 LED 流水灯系统,实现 8
个 LED 霓虹灯的左、右循环显示,并实现循环的速度可调。
1.2 设计目的
1.学习基本理论在实践中综合运用的初步经验,掌握电路设计的基本方法、设计步骤,
培养综合设计与调试能力。
2.掌握汇编语言程序设计方法。
3.培养实践技能,提高分析和解决实际问题的能力。
1.3 设计任务及要求

the Department during a visit to the camp, a few shells of explosions were heard in the distance. Back to Headquarters, Zhu Xi staff was informed by the Department to strengthen alert, watch, place to rest, for night operations. Near 9 o'clock, attack the elves have on the formation of Zhong Jia DUN encirclement. Southeast corner of sudden intense machine gunfire were heard, energize sent a platoon of Shao and attacked the enemy, fighting more hotly, gunfire was tight for a while. Troops were the shock seemed a bit out the chain of command. Offensive Zhong Jia DUN elves, planes covered in the air, river patrol boats, with the, to heavily guard the way to the village of only access--a stone bridge and a path. Under heavy fire against the enemy troops has been disrupted, Zhu Xi himself Despite repeated organizing death squads under the, but terrain unfavorable, enemy fire is too strong, paid a very high casualties and tremendous power again, and finally failed. Second head of mission and Deputy Commander Wang Hesong remnants kill one and five Fan Chunsheng, head of rates of Hades and survive. Qiu Acai Commander Zhu Xi in local farmers risking death save, Ling bin to swim across the river and escaped alone, Yuhang is in court the headquarters report of Jiangsu Zhong Jia DUN bloody situation. Zhu Xi organized forces to break through at the same time, Wen Yongzhi instructed to rate the Department staff retreat. But under the enemy's army arrives, this tiny place where withdrawal? yellow around the rice fields, and everywhere is the devil, mulberry has nowhere to hide in the Woods in the fall. In desperation, temperature a few people from the Department to the local people, and House of a rich family. Officer Xie Chengji, see the living room hangs a plaque, after hiding
2
1.彩灯用 8 个发光二极管代替。
2.电路具有控制彩灯点亮右移、左移、全亮及全灭等功能(用按键切换彩灯状态)
3、彩灯两点移动时间间隔为 0.5 秒。
二 、总体设计思路
2.1 设计思路
本课题使用 AT89C51 单片机时无须外扩存储器。因此,本流水灯实际上就是一个
带有八个发光二极管的单片机最小应用系统,即为由发光二极管、晶振、复位、电源
等电路和必要的软件组成的单个单片机。
如果要让接在 P1.0 口的 LED1 亮起来,那么只要把 P1.0 口的电平变为低电平就
可以了;相反,如果要接在 P1.0 口的 LED1 熄灭,就要把 P1.0 口的电平变为高电平;
同理,接在 P1.1~P1.7 口的其他 7 个 LED 的点亮和熄灭的方法同 LED1。因此,要实
现流水灯功能,我们只要将发光二极管 LED1~LED8 依次点亮、熄灭,8 只 LED 灯便
会一亮一暗的做流水灯了。同样的道理,可以让 8 个灯左移点亮,全亮、全灭。
在此我们还应注意一点,由于人眼的视觉暂留效应以及单片机执行每条指令的时
间很短,我们在控制二极管亮灭的时候应该延时一段时间,否则我们就看不到“流水”
效果了。
在此基础上,增加外扩设备,利用 74LS373 和 8255 扩展成 24 个 LED 灯循环显示。
2.2.原件清单
元件名称
型号
数量/个
用途
单片机
AT89S51
1
控制核心
晶振
12MHZ
1
晶振电路
电容
30pF
2
晶振电路
电阻
Respack8
8
上位电阻
电阻
10k
4
开关电阻
电阻
10k
1
复位电路
电源
+5v
1
提供电源
拨码开关
BUTTON
4
发出信号
数码管
7SEG-MPX1-CC
8
显示电路
剩余13页未读,继续阅读
资源评论


老帽爬新坡
- 粉丝: 53
- 资源: 2万+
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


会员权益专享
最新资源
- Relation-Aware-Global-Attention-Networks-master源码
- TensorRT8.6 计算机视觉模型部署与加速课程
- 04.第13讲一阶微分方程的求解04.mp4
- 03.第13讲一阶微分方程的求解03.mp4
- sql 合并 ,自动生成添加语句工具
- 02.第13讲微分方程的概念02.mp4
- 个人开发STDF文件解析软件 STDF TOOL (全功能)
- 详解PyTorch中的ModuleList和Sequential
- 定时器(TIM)和通用输入/输出(GPIO) 实现功能:定时器每20ms扫描一次按键,按键配置LED亮灭
- 01.第11讲&多元函数微分学01.mp4
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
