毕业论文-基于at89c51单片机的led简易彩灯控制系统设计内容摘要:
teTemp=1。 break。 case 0xFD:state=2。 stateTemp=2。 break。 case 0xFB:state=3。 stateTemp=3。 break。 case 0xF7:state=4。 stateTemp=4。 break。 default:break。 } } void _int()interrupt 2 using 2 { if(flag==0) { state=5。 flag|=1。 } else { 海口经济学院信息工程学院 17 state=stateTemp。 flagamp。 =0。 } } void main() { IT1=1。 IE|=0x86。 TMOD= 0x21。 TH0 = 0xBE。 TL0 = 0xE5。 ES = 0。 //禁止串口中断 TR0 = 1。 //开启定时器 0,开始定时 while(1) { switch(state) { case 1:fun1()。 break。 case 2:fun2()。 break。 case 3:fun3()。 break。 case 4:fun4()。 break。 case 5:P0=0xFF。 P2=0xFF。 break。 default:break。 } } } 海口经济学院信息工程学院 18 四、 结论 该设计是以 AT89C51 单片机为主控芯片 ,与发光二极管、晶振电路、复位电路和电源电路组成,通过程序控制彩灯流水花样。 本文所给程序实现的功能比较简单,旨在抛砖引玉,可以在此基础上扩展成更复杂的彩灯控制,比如键盘控制流水花样、控制流水灯显示数字或图案等等。 通过花样彩灯的制作,给我最大的体会是对一个程序整体的把握和控制,只有将子程序有效的结合起来,才能完成设计的目的。 另外,在程序的调试过程中,我也遇到了很多意想不到的困难,在老师的帮助和自己的不懈努力下,我对伟福这款仿真软件有了更深的认识,将困难一一克服 ,使程序编译成功,仿真实现。 海口经济学院信息工程学院 19 参考文献 : [1]王幸之 钟爱琴 . AT89系列单片机原理与接口技术 [M].北京: 北京航空航天大学出版社 , 2020. [2]谭浩强 .C程序设计(第二版) [M].北京: 清华大学出版社 , 1999. [3]赵亮 .单片机 C语音编程与实例 [M].北京: 人民邮出版社 , 2020. [4]房小翠、王金凤 .单片机实用系统设计技术 [M].北京: 国防工业出版社, 1999. [5]康华光 .电子技术基础数字部分(第四版) [M].北京: 高等教育出版社 , 1998. [6]张毅刚 .单片机原理及应用 [M].北京: 高等教育出版社 , 2020. [7]李广第,朱月秀,王秀山 .单片机基础 [M].北京: 北京航空航天大学出版社 , 2020. [8]杨振江 .A/D、 D/A转换器接口技术与实用电路 [M].西安: 西安电 子科技大 学出版 海口经济学院信息工程学院 20 为你提供优秀的毕业论文参考资料,请您删除以下内容, O(∩ _∩ )O 谢谢。 A large group of tea merchants on camels and horses from Northwest China39。 s Shaanxi province pass through a stop on the ancient Silk Road, Gansu39。 s Zhangye city during their journey to Kazakhstan, May 5, 2020. The caravan, consisting of more than 100 camels, three horsedrawn carriages and four support vehicles, started the trip from Jingyang county in Shaanxi on Sept 19, 2020. It will pass through Gansu province and Xinjiang Uygur autonomous region, and finally arrive in Almaty, formerly known as AlmaAta, the largest city in Kazakhstan, and Dungan in Zhambyl province. The trip will cover about 15,000 kilometers and take the caravan more than one year to plete. The caravan is expected to return to Jingyang in March 2020. Then they will e back, carrying specialty products from Kazakhstan A small art troupe founded six decades ago has grown into a household name in the Inner Mongolia autonomous region. In the 1950s, Ulan Muqir Art Troupe was created by nine young musicians, who toured remote villages on horses and performed traditional Mongolian music and dances for nomadic families. The 54yearold was born in Tongliao, in eastern Inner Mongolia and joined the troupe in says there are 74 branch troupes across Inner Mongolia and actors give around 100 shows every year to local nomadic people. I can still recall the days when I toured with the troupe in the early 39。 80s. We sat on the back of pickup trucks for hours. The sky was blue, and we couldn39。 t help but sing the folk songs, Nasun says. The vastness of Inner Mongolia and the lack of entertainment options for people living there, made their lives lonely. The nomadic people were very excited about our visits, Nasun recalls. We didn39。 t have a formal stage. The audience just sat on the grass. Usually, the performances became a big party with local people joining in. For him, the rewarding part about touring isn39。 t just about sharing art with nomadic families but also about gaining inspiration for the music and dance. Ulan Muqir literally translates as red burgeon, and today39。 s performers of the troupe still tour the region39。 s villages and entertain nomadic families, but their fame has s pread around the world. On May 16 and 17, nearly 100 singers and dancers from the troupe performed at Beijing39。 s Poly Theater. Their show, titled Ulan Muqir on the Grassland, depicted the history and development of the art troupe. Being from the region allowed me to embrace the culture of Inner Mongolia and being a member of the troupe showed me where I belonged, Nasun, the art troupe39。 s president, who is also a renowned tenor, tells China Daily. During a tour in 1985, he went to a village and met an elderly local man, who told him a story about his friendship with a solider from Shenyang, capital of Northeast China39。 s Liaoning province, decades ago. The solider gave the old man a handmade saddle when they bid farewell. The story inspired Nasun to write Carved Saddle, a song that later became one of his most popular numbers. Now, every year, Nasun recruits young singers a。毕业论文-基于at89c51单片机的led简易彩灯控制系统设计
相关推荐
机在计算机外围设备中的应用:单片机广泛应用于打印机、绘图机等多种计算机的外围设备,特别是用于智能终端,可大大减轻主机负担,提高系统的运行速度。 ⑥ 单片机在家用电器中的应用:单片具有体积小、重量轻、价格便宜等特点,所以家电产品中配上微电脑后,使其身价百倍,功能更强,使用方便,灵活,深得用户欢迎。 ⑦ 单片机在通信中的应用:单片机广泛应用于移动通信领域,使移动电话的功能更强大,操作更方便。 节
EPROM 的存储内容如表 所示。 哈尔滨广厦毕业设计 12 表 四相步进电机八拍工作方式存储状态表 地址 内容 D C B A 励磁状态 00H 01H 0001 A 01H 03H 0011 AB 02H 02H 0010 B 03H 06H 0110 BC 04H 04H 0100 C 05H 0CH 1100 CD 06H 08H 1000 D 07H 09H 1001 DA 08H
{ display[5]=0x0a。 flag2=0。 } }//最高位为 0 时都不显示 } // // /**************主函数 ****************/ main() { double templ。 ser_init()。 Disdata=0xff。 //初始化端口 discan=0xff。 for(h=0。 h4。 h++){display[h]=0。
oid:layout_height=wrap_content android:layout_gravity=right android:layout_marginRight=2dip android:text=退出 android:background=@drawable/button/ /LinearLayout 相对布局参见图 32: 图示 32 相对布局 核心技术代码: ?xml
used[x][y] = calculateUsedTiles(x, y); } } //游戏结束 int num=0。 for(int i=0。 i81。 i++){ if(puzzle[i]!=0) num++。 } if(num==81){ Intent t=new Intent(this,)。 sec=time。 //计算用户用时分秒 =false。 //停止计时 (aaa,flag
TTamp。 ksv*3tnGK8!z89AmYWpazadNuKNamp。 MuWFA5ux^Gjqv^$UE9wEwZQc@UE%amp。 qYp@Eh5pDx2zVkumamp。 gTXRm6X4NGpP$vSTTamp。 ksv*3tnGK8!z89AmYWpazadNuKNamp。 MuWFA5uxY7JnD6YWRrWwc^vR9CpbK