基于單片機(jī)的音樂播放器的設(shè)計(jì)-畢業(yè)設(shè)計(jì)_第1頁
基于單片機(jī)的音樂播放器的設(shè)計(jì)-畢業(yè)設(shè)計(jì)_第2頁
基于單片機(jī)的音樂播放器的設(shè)計(jì)-畢業(yè)設(shè)計(jì)_第3頁
基于單片機(jī)的音樂播放器的設(shè)計(jì)-畢業(yè)設(shè)計(jì)_第4頁
基于單片機(jī)的音樂播放器的設(shè)計(jì)-畢業(yè)設(shè)計(jì)_第5頁
已閱讀5頁,還剩62頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

#0x12,0x12,0x22,0x32,0x31,0x22,0x21,0x22,0x21,0x310x51,0x52,0x31,0x52,0x61,0x15,0x14,0x51,0x52,0x31,0x52,0x62,0x13,0x11,0x13,0x32,0x28,0x08,0x28,0x31,0x32,0x31,0x32,0x11,0x21,0x51,0x52,0x51,0x52,0x51,0x51,0x31,0x32,0x31,0x32,0x81,0x72,0x63,0x62,0x71,0x81,0x72,0x61,0x61,0x52,0x31,0x21,0x32,0x51,0x54,0x22,0x12,0x11,0x12,0x11,0x12,0x12,0x14,0x26,0x32,0x26,0x32,0x61,0x51,0x51,0x31,0x31,0x21,0x31,0x51,0x61,0x51,0x31,0x51,0x02,0x32,0x81,0x81,0x81,0x81,0x62,0x52,0x34,0x31,0x81,0x81,0x81,0x61,0x91,0x82,0x51,0x51,0x51,0x51,0x31,0x61,0x53,0x21,0x11,0x21,0x11,0x22,0x11,0x21,0x26,0x32,0x61,0x51,0x51,0x31,0x31,0x21,0x31,0x51,0x61,0x51,0x31,0x51,0x52,0x31,0x31,0x81,0x81,0x81,0x61,0x91,0x81,0x61,0x31,0x560x32,0x32,0x81,0x81,0x81,0x81,0x91,0x81,0x61,0x810x61,0x51,0x31,0x51,0x34,0x21,0x31,0x51,0x31,0x21,0x11,0x61,0x21,0x16,0xff};ucharcodecuzhi[]={0xff,0xff,0xFC,0x8E,0xFC,0xED,0xFD,0x43,0xFD,0x6A,0xFD,0xB3,0xFD,0xF3,0xFE,0x2D,0xFE,0x47,0xFE,0x76,0xFE,0xA1,0xFE,0xC7,0xFE,0xD9,0xFE,0xF9,0xFF,0x16};ucharyinyue口二{0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0x0,0x0};voiddelay1(uintz);voiddelay(uintz);voidsong();voidbeep();main(){ ucharx;count1=0;count2=1;P34=0;EA=1;EX0=1;IT0=1;EX1=1;IT1=1;TMOD=0x01;TH0=0;TL0=0;ET0=1;while(1){if(count1!=0){switch(count1){for(x=0;x<14;x++){duan=1;P1=huayang1[x];beep();delay1(300);duan=0;if(count1!=1)break;}break;for(x=0;x<14;x++){duan=1;P1=huayang2[x];beep();delay1(300);duan=0;if(count1!=2)break;}break;for(x=0;x<16;x++){duan=1;P1=huayang3[x];beep();delay1(300);duan=0;if(count1!=3)break;}break;for(x=0;x<8;x++){duan=1;P1=huayang4[x];beep();delayl(300);duan=0;if(count1!=4)break;}break;}}else{song();delay1(1000);}}}voidint0()interrupt0{EA=0;delay1(1);if(key1==0){count2=0;TR0=0;count1++;if(count1==5)count1=1;}EA=1;}voidint1()interrupt2{EA=0;delayl(1);if(key2==0){count1=0;TR0=1;i=0;count2++;if(count2==3)count2=1;}EA=1;}voidtimer0()interrupt1TH0=timeh;TL0=timel;fm=~fm;}voidsong(){uinttemp;ucharjp;i=0;while(1){if(count2==0){break;}if(count2==1)temp=qnzl[i];if(count2==2)temp=jmszl[i];if(count2==3)temp=hzcbdnh[i];if(count2==4)temp=lzhd[i];if(temp==0xff)break;jp=temp/16;duan=1;P1=yinyue[jp];duan=0;if(jp!=0){timeh=cuzhi[jp*2];timel=cuzhi[jp*2+1];}else{TR0=0;fm=1;}delay(temp%16);TR0=0;fm=1;delay1(10);TR0=1;i++;}TR0=0;fm=1;}voiddelay(uintz){ uintx,y;for(x=z;x>0;x--)for(y=19000;y>0;y--);v

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論