基于单片机的4x4光立方课程设计..doc
文本预览下载声明
JIUJIANG UNIVERSITY
单片机课程设计报告
题 目 光立方
院 系 电子工程学院
专 业 自动化
姓 名 宋建军
学 号 22
班级学号 A1032
组 员 吴小康、文坛
指导教师 丁文斌
目 录
一 、摘要 3
设计目的与要求 4
2.1设计目的 4
2.2设计要求 4
三、硬件方案设计 4
3.1单片机资源分配情况 5
3.2复位电路 5
3.3时钟电路 5
3.4系统的工作原理图 6
3.5焊接实物图 10
软件设计 11
4.1系统框图 11
4.2程序流程图 11
4.3程序 13
五、心得体会 17
六、参考文献 17
摘要
当今社会,随着电子行业的不断发展,单片机凭借着其极高的性能价格比,受到人们的重视和关注,应用广泛,发展迅猛。单片机体积小,质量小,抗干扰能力强,对环境要就不高,价格低廉,灵活性好,已广泛的应用在工业自动化、通信、自动检测、信息家电、电力电子航空航天等各个方面。成为现代生产和生活中不可缺少的一部分。
对于大三的我们来说,学习单片机也好久了,对单片机有了大体的了解,此次单片机课程设计,我们采用的是STC89C52RC系列的单片机,利用此单片机来控制一个“光立方”。光立方顾名思义就是一个立方体,我们采用的是8*8*8的模式,将LED灯分成八层,利用程序来编写各种不同的效果来控制LED的亮灭,最终使得整个立方体展现不同的造型和图案,使其变得美轮美奂,绚丽多彩。
ABSTRACT
In todays society, with the continuous development of electronic industry, single-chip microcomputer with its extremely high cost performance, is peoples attention and concern, wide application, is developing rapidly.SCM small size, small quality, strong anti-jamming capability, the environment is not high, low price, good flexibility, has been widely used in industrial automation, communications, automatic detection, information home appliances, power electronics, aerospace and other aspects.Become an indispensable part of modern production and life.For those of us in our junior year, learn microcontroller for a long time, also have the general knowledge of MCU, the MCU course design, we adopt is STC89C52RC series microcontroller, using the single chip microcomputer to control a light cube.Light cube as the name suggests is a cube, we adopt the 8 * 8 * 8 patterns, leds can be divided into eight steps, using the program to write a variety of different effect to control the LED light, LED the whole cube show different modelling and design, make its become beautiful, colorful.
设计目的与要求
2.1设计目的
⑴.进一步掌
显示全部