版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、学士学位毕业设计(论文) 论文题目 学生姓名:学生姓名: 指导教师:指导教师: 所在学院:所在学院:信息技术学院 专专 业:业:计算机科学与技术 中国大庆 2007 年 6 月 黑龙江八一农垦大学黑龙江八一农垦大学 本科毕业设计(论文)任务书本科毕业设计(论文)任务书 学生姓名所在班级导师姓名导师职称 论文题目 题目 分类 1应用与非应用类:工程 科研 教学建设 理论分析模拟 2软件与软硬结合类:软件硬件软硬结合非软硬件 (1、2 类中必须各选一项适合自己题目的类型在内打) 主要研究内容及指标: 主要参考文献: 1(英)ian graham. object-oriented methods:
2、principles uchar i,timecount=0,timesec=0,timemin=0,timecheck=0; char r0=2; sbit beepio=p21; typedef unsigned char byte; typedef unsigned int word; typedef bit bool ; sbit rs= p16;/ sbit rw = p17;/rw 东北大学课程设计 sbit ep = p27;/lode sbit pausekey=p11; uchar k,q,f; uchar code dis1 =ai qing mai mai;/ uchar
3、 code dis2 = ji gong; uchar code dis3 = duan qiao can ;/17 uchar code dis33 = xue ; uchar code dis4 = dao jian ru meng; uchar code dis5 =liang zhi hu die ; uchar code dis6 = muo li hua; uchar code dis7 =qing hua ci ; uchar code dis8 = sheng lin kuang ;/ uchar code dis88 = xiang qu ; uchar code dis9
4、=sheng ri kuai le ; /16 uchar code dis10 = xing nian hao ;/14 uchar code dis11 =zhu ba jie qu ; uchar code dis1111 = xi fu ; uchar code dis222 = welcome! ; uchar code t492=0,0, 0 xf8,0 x8b,0 xf8,0 xf2,0 xf9,0 x5b,0 xf9,0 xb7,0 xfa,0 x14,0 xfa,0 x6 6,0 xfa,0 xb9,0 xfb,0 x03,0 xfb,0 x4a,0 xfb,0 x8f,0
5、xfb,0 xcf,0 xfc, 0 x0b, 0 xfc,0 x43,0 xfc,0 x78,0 xfc,0 xab,0 xfc,0 xdb,0 xfd,0 x08,0 xfd,0 x3 3,0 xfd,0 x5b,0 xfd,0 x81,0 xfd,0 xa5,0 xfd,0 xc7,0 xfd,0 xe7,0 xfe, 0 x05, 0 xfe,0 x21,0 xfe,0 x3c,0 xfe,0 x55,0 xfe,0 x6d,0 xfe,0 x84,0 xfe,0 x9 9,0 xfe,0 xad,0 xfe,0 xc0,0 xfe,0 x02,0 xfe,0 xe3,0 xfe,0
6、xf3,0 xff, 0 x02, 0 xff,0 x10,0 xff,0 x1d,0 xff,0 x2a,0 xff,0 x36,0 xff,0 x42,0 xff,0 x4 c,0 xff,0 x56,0 xff,0 x60,0 xff,0 x69,0 xff,0 x71,0 xff,0 x79,0 xff, 0 x81 ; uchar code music12=0,4, / 1 爱情买卖 22,4,22,4,17,4,15,4,15,4,17,12, 15,4,15,2,17,2,15,4,13,4,13,4,15,12,0,4, 20,4,20,4,20,4,17,4,20,4,20,
7、4,20,4,17,4, 22,4,17,4,17,4,15,4,15,4,17,12, 22,4,22,4,17,4,15,4,15,4,17,12, 15,4,15,2,17,2,15,4,13,4,13,4,15,12, 20,4,20,4,20,2,17,2,17,4,20,4,20,4,20,2,17,2,17,2, 17,2, 24,4,20,4,20,2,17,2,17,4,20,4,22,12, 东北大学课程设计 17,4,22,4,25,4,25,4,17,4,22,4,25,8, 24,4,22,2,24,2,22,4,20,4,15,4,17,12, 15,4,15,4,
8、15,4,10,4,15,4,17,4,20,8, 17,4,24,4,24,4,20,4,15,4,17,12, 17,4,22,4,25,4,25,4,17,4,22,4,25,8, 29,4,27,2,29,2,27,4,25,4,25,4,27,12, 29,4,29,2,27,4,25,4,27,6,27,2,25,4,24,4, 20,4,20,2,17,2,20,4,20,2,22,2,22,16, 0 xff,0 xff; uchar code music22=0,4, /2 济公 /*鞋儿破*/ 16,6,19,2,19,6,16,2,14,6,0,10,16,6,19,2,
9、19,6,16,2, 14,8,0,8, 26,8,21,6,24,2,23,6,21,2,19,8,21,16,0,8, /*你笑我*/ 16,6,19,2,19,6,16,2,14,8,0,8,26,8,21,6,23,2,21,14, /*一把扇儿*/ 24,6,23,2,21,6,19,2,16,6,14,2,13,8,14,16,0,4, /*南无阿弥陀佛*/ 19,6,19,2,21,6,21,2,23,8,21,4,0,4,19,6,19,2,16,6, 19,2,16,8,14,6,0,4, 19,6,19,2,21,6,21,2,23,8,21,4,0,4,19,6,19,2
10、,16,6, 19,2,16,8,14,6,0,4, 26,16,21,4,26,4,21,4,26,16,21,4,26,16,0,4, /*无烦无恼*/ 16,8,16,8,14,8,16,8,21,4,26,4,21,4,26,4,0,8,16,8, 16,8,14,8,16,8,21,4,26,4,21,4,26,4,0,8, /走啊走乐啊乐 19,8,19,6,21,2,16,8,0,8,19,6,21,2,19,6,21,2,16,8, 0,8, /哪有不平哪有我 21,8,26,8,21,4,24,12,23,6,21,2,19,8,21,16, /哪有不平哪有我 14,4,21
11、,4,14,4,19,4,16,6,14,2,13,8,14,16, 0 xff,0 xff; uchar code music32=0,4,/3 断桥残雪 27,4,19,4,19,4,27,4,26,4,26,2,27,2,24,8, 22,4,17,4,24,4,22,4,19,16, 15,4,12,4,12,4,15,4,17,8,19,8, 26,6,26,2,26,4,24,4,24,4,19,4,19,8, 27,4,19,4,19,4,27,4,26,4,26,2,27,2,24,6,24,2, 22,4,17,4,24,4,22,4,19,16, 15,4,12,4,12,
12、4,15,4,17,8,19,8,19,6,19,2,19,4,17,4, 14,4,14,4,14,4,7,4,12,24, 东北大学课程设计 0 xff,0 xff; uchar code music42=0,4,/4 刀剑如梦 16,12,23,16,21,4,23,4,21,4,19,12,0,8,19,4,19,4,19, 4,18,4,16,8,14,4,16,16,0,16, 16,12,28,16,26,4,28,4,26,4,23,8,0,16, 21,4,21,4,21,4,21,4,19,8,16,4,18,16,0,12, 16,12,23,16,21,4,23,4,2
13、1,4,19,8,0,16, 19,4,19,4,19,4,18,4,16,8,14,4,16,16,0,12, 16,12,28,16,26,4,28,4,26,4,23,16,0,12, 28,4,28,4,28,4,30,4,28,8,26,4,28,24,0,12, 28,4,28,2,26,2,23,4,23,4,28,4,28,2,26,2,28,4,31,4, 26,6,23,2,26,4,28,4,26,16, 21,4,21,2,19,2,16,4,16,4,21,4,21,2,19,2,21,4,23,4, 19,6,16,2,19,4,16,4,14,16, 28,4,2
14、8,2,26,2,23,4,23,4,28,4,28,2,26,2,28,4,28,4, 31,4,31,2,28,2,26,4,26,4,31,4,31,2,26,2,31,4,31,4, 0,4,31,4,31,4,31,4,30,4,28,8,26,4,28,24, 28,4,28,2,26,2,23,4,23,4,28,4,28,2,26,2,28,4,31,4, 26,6,23,2,26,4,28,4,26,16, 21,4,21,2,19,2,16,4,16,4,21,4,21,2,19,2,21,4,23,4, 19,6,16,2,19,4,16,4,14,16, 28,4,28
15、,2,26,2,23,4,23,4,28,4,28,2,26,2,28,4,28,4, 31,4,31,2,28,2,26,4,26,4,31,4,31,2,26,2,31,4,31,4, 0,4, 31,4,31,4,31,4,30,4,28,8,26,4,28,20, 0,4,31,4,31,4,31,4,30,4,28,8,26,4,28,24, 0 xff,0 xff; uchar code music52=0,4, /5 两只蝴蝶 23,4,21,4,23,16,23,4,21,4,23,4,21,4,19,16,16,4,19, 4,21,8,21,4,23,4,21,4,19,4
16、,16,4,19,4,14,24, 23,4,21,4,23,16,23,4,21,4,23,4,21,4,19,24,16,4,19, 4,21,8,21,4,23,4,21,4,19,4,16,4,19,4,21,24, 23,4,21,4,23,16,23,4,21,4,23,4,21,4,19,16,16,4,19, 4,21,8,21,4,23,4,21,4,19,4,16,4,19,4,14,24, 23,4,26,4,26,16,26,4,28,4,26,4,23,24,21,4,23,4,21, 8,21,4,23,4,21,4,19,4,16,4,16,2,19,2,19,2
17、4,0,20, 26,4,26,4,28,4,31,4,30,4,30,4,28,4,23,4,21,4,21,4, 23,16,0,4,23,4,23,4,26,4,28,8,28,12,16,4,23,4,21,4, 21,24,23,4,26,4,26,4,23,4,26,8,0,4,31,8,30,4,28,4, 30,4,23,8,0,4,28,4,28,4,30,4,28,4,26,4,23,4,21,8, 23,4,21,4,23,4,26,16, 0 xff,0 xff; 东北大学课程设计 uchar code music62=0,4,/6 茉莉花 21,8,21,4,24,4
18、,26,4,29,4,29,4,26,4,24,8,24,4,26,4, 24,16, 21,8,21,4,24,4,26,4,29,4,29,4,26,4,24,8,24,4,26,4, 24,16, 24,8,24,8,24,8,21,4,24,4,26,8,26,8,24,16, 21,8,19,4,21,4,24,8,21,4,19,4,17,8,17,4,19,4,17,16, 21,4,19,4,17,4,21,4,19,12,21,4, 24,8,26,4,29,4,24,16, 19,8,21,4,24,4,19,4,21,4,17,4,14,4,12,16,14,8,17,8
19、, 19,12,21,4,17,4,19,4,17,4,14,4,12,24,0,8, 0 xff,0 xff; uchar code music72=0,4,/7 青花瓷 0,4,24,4,24,4,21,4,19,4,21,4,14,8,19,4,21,4,24,4, 21,4,19,16,0,4,24,4,24,4,21,4,19,4,21,4,12,8,19,4, 21,4,24,4,19,4,17,16,0,4,17,4,19,4,21,4, 24,4,26,4,24,4,22,4,24,4,21,4,21,4,19,4,19,16,0,4, 17,4,19,4,17,4,17,4,
20、19,4,17,4,19,4,19,4,21,8,24,4, 21,4,21,12,0,4,24,4,24,4,21,4,19,4,21,4,14,8,19,4, 21,4,24,4,21,4,19,16,0,4,24,4,24,4,21,4, 19,4,21,4,12,8,19,4,21,4,24,4,19,4,17,16,0,4,17,4, 19,4,21,4,24,4,26,4,24,4,22,4,24,4,21,4,21,4,19,4, 19,12,12,4,21,8,19,4,19,8,17,16, 0 xff,0 xff; uchar code music82=0,4, /8 森林
21、狂想曲 14,4,17,4,21,4,24,4,21,8,21,4,19,4,21,8,21,4,19,4, 21,8,14,4,16,4,17,4,21,4,19,4,17,4,14,8,12,8,9,24, 14,4,17,4,21,4,24,4,21,8,21,4,19,4,21,8,21,4,19,4, 21,8,14,4,16,4,17,4,21,4,19,4,17,4,14,8,12,8,14,24, 14,4,16,4, 17,4,19,4,21,4,22,4,24,8,22,4,21,4,19,8,19,4,21,4, 19,16,14,4,16,4,17,4,19,4,21,
22、8,16,4,14,4,16,24,14,4, 16,4, 17,4,19,4,21,4,22,4,24,8,22,4,21,4,19,8,19,4,21,4, 19,8,14,4,16,4,17,4,21,4,19,4,17,4,14,8,12,8,14,24, 21,8,26,16,24,8,21,4,24,4,26,16,24,8,21,4,19,4,17, 4,14,4,17,4,19,4,21,8,21,4,19,4, 21,24,21,8,26,16,24,8,21,4,24,4,26,24,24,8,21,4,19,4 ,17,4,14,4,17,4,19,4,21,8, 26,
23、4,24,4,26,24, 0 xff,0 xff; uchar code music92=0,4,/9 生日愉乐 东北大学课程设计 17,6,17,2,19,8,17,8,22,8,21,16, 17,6,17,2,19,8,17,8,24,8,22,16,17,6,17,2,29,8,26,8, 22,8,21,8,19,8,27,6,27,2,26,8,22,8,24,8,22,16, 0 xff,0 xff; uchar code music102=0,4, /10 新年好 19,4,19,4,19,8,14,8,23,4,23,4,23,8,19,8, 19,4,23,4,26,8,
24、26,8,24,4,23,4,21,16,21,4,23,4,24,8, 24,8, 23,4,21,4,23,8,19,8,19,4,23,4,21,8,14,8,18,4,21,4, 19,16, 0 xff,0 xff; uchar code music112=0,4, /11 猪八戒娶媳妇 22,8,29,6,32,2,29,4,22,4,25,8,22,2,25,2,22,2,25,2, 29,8,29,2,27,2,29,2,25,2,22,8, 29,6,32,2,34,4,34,4,34,4,29,4,32,8, /第二行 29,2,32,2,29,2,32,2,34,4,34
25、,4,34,4,29,4,32,8, 32,4,22,4,32,4,22,4,29,4,29,4,25,8, 27,8,27,8,27,4,25,2,27,2,29,4,32,4, /第三行原版 34,8,41,8,29,8,41,8,29,4,41,4,29,4,41,4, 29,8,41,8,0,2,27,8,27,8,27,4,25,2,27,2,29,4,32,4, 34,12, 0 xff,0 xff; uchar timetable =00:00; void delay(uchar p) uchar i,j; for(;p0;p-) for(i=181;i0;i-) for(j=1
26、81;j0;j-); /*.lcd 液晶.*/ /*.lcd 液晶.*/ bool lcd_bz() / 测试 lcd 忙碌状态 bool result; rs = 0; rw = 1; ep = 1; _nop_(); _nop_(); _nop_(); 东北大学课程设计 _nop_(); result = (bool)(p0 ep = 0; return result; void lcd_wcmd(byte cmd) / 写入指令数据到 lcd while(lcd_bz(); rs = 0; rw = 0; ep = 0; _nop_(); _nop_(); p0 = cmd; _nop_
27、(); _nop_(); _nop_(); _nop_(); ep = 1; _nop_(); _nop_(); _nop_(); _nop_(); ep = 0; void lcd_pos(byte pos) /设定显示位置 lcd_wcmd(pos | 0 x80); void lcd_wdat(byte dat) /写入字符显示数据到 lcd while(lcd_bz(); rs = 1; rw = 0; ep = 0; p0 = dat; _nop_(); _nop_(); _nop_(); _nop_(); ep = 1; 东北大学课程设计 _nop_(); _nop_(); _no
28、p_(); _nop_(); ep = 0; void lcd_init() /lcd 初始化设定 lcd_wcmd(0 x38);/ delay(1); lcd_wcmd(0 x0c);/ delay(1); lcd_wcmd(0 x06);/ delay(1); lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); /*.lcd 液晶.*/ void pause() uchar i,j; for(i=150;i0;i-) for(j=150;j0;j-); /*.键盘扫描.*/ void timecount_init() interrupt 3 th1=(6553
29、5-45872)/256; tl1=(65535-45872)%256; timecount+; if(timecount=20) timesec+; timecount=0; if(timesec=60) timesec=0; timemin+; 东北大学课程设计 void adfa() interrupt 0 timesec=0; timemin=0; r0+; delay(5); if(r011) r0=11; void adfii() interrupt 2 if(pausekey=0) beepio=0; while(pausekey=0); while(pausekey=1); w
30、hile(pausekey=0); delay(8); else timesec=0; timemin=0; r0-; delay(5); if(r0=0) r0=1; void t0_int() interrupt 1 beepio=!beepio; th0=tm0; tl0=tm1; void zhuanhuan() timetable3=timesec/10+0; timetable4=timesec%10+0; timetable2=:; timetable0=timemin/10+0; timetable1=timemin%10+0; 东北大学课程设计 /*.时间显示函数 .*/ v
31、oid timedis() if(timecheck!=timesec) timecheck=timesec; zhuanhuan(); lcd_pos(0 x49); lcd_wdat(timetable0); lcd_wdat(timetable1); lcd_wdat(timetable2); lcd_wdat(timetable3); lcd_wdat(timetable4); void main() uchar i=0,lcd_check=0; tmod=0 x11; th1=(65535-45872)/256; tl1=(65535-45872)%256; px0=1; px1=1
32、; ex0=1; ex1=1; ea=1; et0=1; et1=1; tr1=1; pausekey=1; lcd_init(); while(1) if(r0=0) delay(1); lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis1i != 0) / 显示字符welcome! lcd_wdat(dis222i); 东北大学课程设计 i+; if(r0=1) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0
33、);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis1i != 0) / 显示字符welcome! lcd_wdat(dis1i); i+; m=music1i0;n=music1i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music1i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=2) timedis(); if(
34、lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis2i != 0) / 显示字符welcome! lcd_wdat(dis2i); i+; 东北大学课程设计 m=music2i0;n=music2i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music
35、2i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=3) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis3i != 0) / 显示字符welcome! lcd_wdat(dis3i); i+; lcd_pos(0 x41);/ 设置显示位置为第二行第二 个字符 i = 0; while(dis2
36、i != 0) lcd_wdat(dis33i);/ 显示字符 www.prechin.com i+; m=music3i0;n=music3i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music3i+10) tr0=1;delay(n);tr0=0;pause();i+; 东北大学课程设计 else tr0=1;delay(n);i+; if(r0=4) timedis(); if(lcd_check!=r0) lcd_wcmd
37、(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis4i != 0) / 显示字符welcome! lcd_wdat(dis4i); i+; m=music4i0;n=music4i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;/ else if(m=music4i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;d
38、elay(n);i+; if(r0=5) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis5i != 0) / 显示字符welcome! lcd_wdat(dis5i); i+; m=music5i0;n=music5i1; 东北大学课程设计 if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;ti
39、mesec=0;timemin=0;/ else if(m=music5i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=6) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis6i != 0) / 显示字符welcome! lcd_wdat(dis6i); i+; m=music6i0;n=mus
40、ic6i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music6i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=7) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符
41、 i = 0; 东北大学课程设计 while(dis7i != 0) / 显示字符welcome! lcd_wdat(dis7i); i+; m=music7i0;n=music7i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music7i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=8) timedis(); if(lcd_check!=r0
42、) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis8i != 0) / 显示字符welcome! lcd_wdat(dis8i); i+; m=music8i0;n=music8i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music8i+10) tr0=1;delay(n);
43、tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=9) timedis(); 东北大学课程设计 if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis9i != 0) / 显示字符welcome! lcd_wdat(dis9i); i+; m=music9i0;n=music9i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m
44、=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music9i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; if(r0=10) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1); lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis10i != 0) / 显示字符welcome! lcd_w
45、dat(dis10i); i+; m=music10i0;n=music10i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay(30);i=0;timesec=0;timemin=0;/ else if(m=music10i+10) tr0=1;delay(n);tr0=0;pause();i+; 东北大学课程设计 else tr0=1;delay(n);i+; if(r0=11) timedis(); if(lcd_check!=r0) lcd_wcmd(0 x01);/清除 lcd 的显示内容 delay(1);
46、 lcd_check=r0; lcd_pos(0);/ 设置显示位置为第一行的第 5 个字符 i = 0; while(dis11i != 0) / 显示字符welcome! lcd_wdat(dis11i); i+; lcd_pos(0 x41);/ 设置显示位置为第二行第二 个字符 i = 0; while(dis2i != 0) lcd_wdat(dis1111i);/ 显示字符 www.prechin.com i+; m=music11i0;n=music11i1; if(m=0 x00) tr0=0;delay(n);i+;/ else if(m=0 xff) tr0=0;delay
47、(30);i=0;timesec=0;timemin=0;/ else if(m=music11i+10) tr0=1;delay(n);tr0=0;pause();i+; else tr0=1;delay(n);i+; 东北大学课程设计 参考文献参考文献 1马忠梅,籍顺心,张凯,马岩.单片机的 c 语言应用程序设计.北京航空航天大 学出版社.2003 年 2李朝青.单片机原理及接口技术.北京航空航天大学出版社.1998 年 3. 赵建领.51 系列单片机开发宝典.电子工业出版社.2007 年 致谢致谢 本次课程设计全部工作是在老师悉心指导下完成的。老师严谨的治学态度, 渊博的学识,身体力行的
48、作风使我们受益匪浅。在整个课题研究期间,方案实 施,材料查找,课程设计的编写,protel 原理图绘制和校对,一直到程序的编 写和调试,无不凝聚着老师辛勤的汗水与殷切的关怀。在此,谨向老师致以最真 挚的谢意! 衷心感谢在课程设计期间给予我们组帮助的所有同学! 东北大学课程设计 心得体会心得体会 历时四天的课程设计结束了,我收获了很多在课堂上无法学到的知识,不 仅是硬件发设计能力,软件的编程能力也得到了大幅度的提高,可谓受益匪浅。 本次课程设计的题目是音乐播放器,其要求是运用 c51 语言进行编程,实现可 以播放十首歌曲,通过数字键进行控制播放歌曲的曲目,并且在 lcd 液晶显示 器上显示播放歌曲的曲名和滚动歌词,并且用一个开关键控制歌曲的播放。 刚拿到这个题目时,我们觉得挺简单,但当我们着手做的时候,却毫无头 绪。在 lcd 液晶显示器上显示歌曲名还比较容易,要加上滚动歌词很难。我们 在网络上下载了一些关于用单片机设计音乐播发器的内容。对课题有了大体的 了解。之后
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年学校开展健康教育工作计划(四篇)
- 2024年学校会议制度范文(三篇)
- 2024年小学体育老师工作计划例文(四篇)
- 2024年安全隐患自查自纠制度范文(三篇)
- 2024年实习自我总结范文(三篇)
- 2024年学校教科研工作计划范例(二篇)
- 2024年工程车辆租赁合同参考范本(三篇)
- 2024年安全生产报告制度范本(二篇)
- 2024年学校健康教育工作制度范文(二篇)
- 2024年学校行政方面安全管理制度范例(二篇)
- HG/T 6313-2024 化工园区智慧化评价导则(正式版)
- 中级银行从业资格之中级个人贷款通关题库(附带答案)
- 学校(幼儿园)食品安全相关人员责任清单
- 汽车吊吊装安全技术交底
- 小学中队活动记录
- 金融学基础(第二版)课件:信用和金融工具
- (正式版)JTT 1499-2024 公路水运工程临时用电技术规程
- 主题一:自然之美 第2课《 重回侏罗纪-寻踪自贡恐龙博物馆》 课件
- 医疗机构处方审核规范解读
- DB32/T 4504-2023 扬州鹅种鹅全季节繁殖技术规程
- 2024年餐厅服务员(三级)职业鉴定考试题库(浓缩500题)
评论
0/150
提交评论