毕业论文-基于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。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。