【正文】
27 致謝 經(jīng)過 數(shù) 多月的設計 , 本畢業(yè)設計已經(jīng)完成 。 首先 , 感謝 一些專家學者 等同志的專著文獻 和網(wǎng)上的一些發(fā)表資料 。 還要感謝所有幫助過 自己 的同學們,與他們的討論和交流給了 自己 很多有益的啟迪,對 自己 掌握學科知識、完成 設計 任務和論文寫作給予了 很大幫助。 本 設計 論文是在 他 悉心指導下完成 了 ,老師特別注重工作方法、工作方向的指導,使 自己 的工作能力得到了很大的提高。 他 嚴謹?shù)闹螌W態(tài)度和寬厚、坦誠的人生原則,為 自己 所深深敬佩。 并對我以后走向工作崗位還是很受幫助的,他的精神將激勵著我不斷的成長。 //定時器計數(shù)初值 uchar STL0。 //放樂曲時 FY=1,電子琴彈奏時 FY=0 uchar Song_Index=0,Tone_Index=0。 sbit SPK=P3^7 。 //LED1 端口定義 sbit LED2=P1^1 。 uchar code Song[][50]= //歌曲的旋律 { {1,2,3,1,1,2,3,1,3,4,5,3,4,5,5,6,5,3,5,6,5,3,5,3,2,1,2,1,1}, {3,3,4,5,5,5,5,6,5,3,5,3,2,1,5,6,5,3,3,2,1,1,1}, {3,2,1,3,2,1,1,2,3,2,1,2,3,1,3,4,5,3,4,5,5,6,5,3,5,3,2,1,3,2,1,1,1}, {10,10,10,9,10,9,10,9,9,6,6,7,8,9,8,7,6,5,6,1}, {10,10,10,9,10,13,12,13,12,12,9,9,10,11,12,11,10,9,8,10,10,1}, {13,14,13,12,12,10,12,10,12,9,13,12,10,9,10,}, {9,13,13,13,8,13,13,13,13,14,15,14,13,14,13,14,10,10,1}, {13,14,13,12,12,10,12,10,12,13,14,13,14,13,14,10,1}, {9,13,13,13,8,13,13,13,13,14,15,14,13,13,14,12,13,1}, {5,5,10,9,8,5,5,5,5,10,9,8,6,6,6,11,10,9,6,1}, 31 {6,12,12,11,9,10,8,5,5,10,9,8,5,5,5,10,9,8,6,1}, {6,6,11,10,9,12,12,12,12,13,12,11,9,8,10,10,10,1}, {10,10,10,10,12,8,9,10,11,1,11,11,11,10,10,10,10,10,9,9,8,9,12,12,12,11, 9,8,1}, {13,13,8,13,13,13,13,14,15,14,13,14,13,14,10,10,13,14,13,12,12,10,12,10, 12,13,14,13,14,13,14,10,9,13,13,13,8,13,13,13,13,14,15,14,13,13,14,12,13,1}, {6,6,11,10,9,12,12,12,12,13,12,11,9,8,10,10,10,10,10,10,10,12,8,9,10,11,11,11,11,11,10,10,10,10,10,9,9,8,9,12,12,12,11,9,8,1}, {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,1} }。 32 /*音符與計數(shù)值班對應表 */ uint code tab[]= {0,63628,63835,64021,64103,64260,64400,64524, 64580,64684,64777,64820,64898,64968,65030, 65058,65110,65157,65178,65217,65252,65283 }。 while (ms) for (t=0。t++)。 for (i=300。i)。 if ((P0amp。 scancode = 0xfe。0x10)!=0) //逐行掃描 { P0=scancode。0xf0)!=0xf0) //本行有鍵按下 { tmpcode = (P0amp。 33 /*返回特征字節(jié)碼,為 1 的位即對應于行和列 */ return((~scancode)+(~tmpcode))。 //行掃描碼左移一位 } } /*外部中斷 0,這里是彈唱按鍵 */ void EXO_IXT() interrupt 0 { FY=0。LED2=0。LED1=0。 } /*定時器 0 中斷服務子程序 */ void time0_int(void) interrupt 1 using 0 { /*設置計數(shù)初值 */ TH0 = STH0。 SPK=!SPK。 } void main(void) { LED1=1。 P2=0x3f。 34 TMOD=0x01。 IT1=1。 //發(fā)全 0 列掃描碼 if((P0amp。 //延時去抖動 if((P0amp。 //調用鍵盤掃描函數(shù) switch(key) //根據(jù)獲取的按鍵位置得到 K 值 { case 0x88: k = 0。 case 0x48: k = 1。 case 0x28: k = 2 。 case 0x18: k = 3 。 case 0x84: 35 k = 4 。 case 0x44: k = 5 。 case 0x24: k = 6 。 case 0x14: k = 7 。 case 0x82: k = 8 。 case 0x42: k = 9 。 case 0x22: k = 10 。 case 0x12: k = 11 。 case 0x81: k = 12 。 case 0x41: k = 13 。 case 0x21: 36 k = 14 。 case 0x11: k = 15 。 default : break。 STL0 = tab[k]%256。 //開始計數(shù) while ((P0amp。 //若沒有松開按鍵,則等待,等待期間彈奏該音符 TR0=0。 STH0=(tab[Song[k][Tone_Index]])/256。 P2=DSY_CODE[Song[k][Tone_Index]]。 delay1(300*Len[k][Tone_Index])。 TR0=0。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。s antiracism taskforce, is in London for the Football Association39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。s 21 win. Michel Platini, president of European football39。s actions. CSKA said they were surprised and disappointed by Toure39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開頭的年齡已經(jīng)到了尾聲??傆X得自己自己似乎應該去做點什么,或者寫點什么。 The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional。t really grow up, it seems is not so important。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was 39 eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。 Originally, this world, can