【正文】
突然想到那件藍(lán)格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場(chǎng)還沒(méi)有開(kāi)始就宣告了終結(jié)的邂逅 計(jì)劃 …… 那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時(shí)候是最后又打起了退堂鼓。t really grow up, it seems is not so important。s actions. 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 18 CSKA said they were surprised and disappointed by Toure39。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。 delay1(10)。 //取數(shù)的高 4 位 P1=yinyue[jp]。 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 16 break。y0。x0。 } //子函數(shù) void beep() //蜂鳴器叫一聲 { uchar i。//流水燈無(wú)花樣 TR0=1。//去抖 if(key1==0) { count2=0。 beep()。 if(count1!=5) break。 case 5: for(x=0。x++) { if(key3==1) {P1=0xff。 break。 beep()。 if(count1!=1) break。 while(1) { if(count1!=0) { switch(count1) 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 12 { case 1: for(x=0。//開(kāi)總中斷 EX0=1。 //將音調(diào)轉(zhuǎn)化為對(duì)應(yīng)的 LED 樣式 void delay1(uint z)。 //17 代 表中央 C 調(diào) ,8E 代表高八度 ,0 代表停頓 //最后的 0 是結(jié)束標(biāo)志即 0xff。//花樣燈 3 uchar code huayang4[]={0x3f,0x9f,0xcf,0xe7,0xf3,0xf9,0xfc, 0xf9,0xf3,0xe7,0xcf,0x9f,0x3f}。 參考文獻(xiàn) [1]王思明,張金敏,茍軍年等 . 單片機(jī)原理及應(yīng)用系統(tǒng)設(shè)計(jì) [M]. 北京: 科學(xué)出版社, 2021. [2]李云鋼,周逢興,龍志強(qiáng) . 單片機(jī)原理與系統(tǒng)設(shè)計(jì) [M]. 北京:中國(guó)水利水電出版社, 2021. [3]譚浩強(qiáng) . C 語(yǔ)言程序設(shè)計(jì) (第四版 ) [M]. 北京 :清華大學(xué)出版社, 2021. [4]風(fēng)波親,吳寧 . 微型計(jì)算機(jī)原理與接口技術(shù) [M]. 北京: 清華大學(xué)出版社, . [5]吳秀清,周荷琴 . 微型計(jì)算機(jī)與接口技術(shù) [M]. 合肥:中國(guó)科學(xué)技術(shù)大學(xué)出版社,2021. [6]宋戈等 . 單片機(jī)應(yīng)用開(kāi)發(fā)范例大全 [M]. 北京:人民郵電出版社, . 附錄 1 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 7 圖 5 仿真圖 附錄 2 源程序 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 8 include define uchar unsigned char define uint unsigned int sbit key1=P3^2。按 key3 可以同時(shí)關(guān)閉燈跟歌曲??傮w設(shè)計(jì)電路 , 如 圖 2。通過(guò)子函數(shù)連續(xù)不斷的調(diào)用音樂(lè)代碼就產(chǎn)生了動(dòng)聽(tīng)的音樂(lè)。利用定時(shí)器計(jì)時(shí)這半個(gè)周期時(shí)間,每當(dāng)計(jì)時(shí)到后就將輸出脈沖的 I/O 口反相,然后重復(fù)計(jì)時(shí)此半周期時(shí)間再對(duì) I/O 反相,就可在 I/O 腳上得到此頻率的脈沖 。為熟悉單片機(jī)的應(yīng)用。 基于 AT89C51 單片機(jī)的帶彩燈外觀(guān) 音樂(lè)盒 設(shè)計(jì) 摘 要 隨著人類(lèi)社會(huì)的發(fā)展,人們對(duì)視覺(jué)、聽(tīng)覺(jué)方面的享受提出了越來(lái)越高的要求。要求 設(shè)計(jì)一個(gè)基于 AT89C51 單片機(jī)的帶彩燈外觀(guān)的音樂(lè)盒。 利用 AT89C51 的內(nèi)部定時(shí)計(jì)數(shù)器工作在方式 1 下 ,改變 初值 TH0 及 TL0 以產(chǎn)生不同頻率 。音調(diào)的頻率與時(shí)間都不同,讓 DO、 RE、 MI、 FA、 SO、 LA、 SI 分別對(duì)應(yīng)八路 LED 燈中的一個(gè),這樣播放音樂(lè)的同時(shí)就有 LED 燈對(duì)應(yīng)閃爍。 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 4 V C CR PP 1 . 0P 1 . 1P 1 . 2P 1 . 3P 1 . 4P 1 . 5P 1 . 6P 1 . 7P 3 . 1P 3 . 2P 3 . 3X T A L 1X T A L 2E AC 1C 2C 3P 3 . 7 圖 2 設(shè)計(jì)圖 3 硬件設(shè)計(jì) 電路 由 AT89C51,八路 LED燈 ,排阻 ,三個(gè)開(kāi)關(guān) ,揚(yáng)聲器 及晶振組成 ,搭建如 圖 3。按 鍵均可實(shí)現(xiàn)要求的功能, proteus截圖見(jiàn)附錄 1。//按 key1 可切換花樣 sbit key2=P3^3。 //花樣燈 4 uchar code huayang5[]={0x3f,0xfc,0x9f,0xf9,0xcf,0xf3,0xe7, 0xcf,0xf3,0x9f,0xf9,0x3f,0xfc}。 uchar code yldbwdx[]={ //月亮代表我的心 0x02,0x82, 0x16,0x32,0x54,0x02,0x52, 0xA6,0x32,0x54,0x02,0x52, 0x64,0x74,0xB6,0x64, 0x52,0x5C,0x32,0x22, 0x16,0x12,0x14,0x32,0x22, 0x16,0x12,0x14,0x22,0x32, 0x26,0x12,0x94,0x22,0x32, 0x2C, 0x32,0x52, 0x36,0x22,0x14,0x54, 單片機(jī) 原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 9 0xAC,0x92,0xA2, 0x96,0xA2,0x96,0x82, 0x3C,0x54, 0x36,0x22,0x14,0x54, 0xAC,0x92,0xA2, 0x16,0x12,0x14,0x22,0x32, 0x2C,0x02,0x82, 0x16,0x32,0x56,0x12, 0xA6,0x32,0x56,0x52, 0x66,0x72,0xB6,0x62, 0x1C, 0xff//結(jié)束標(biāo)志 }。 //延時(shí) 1MS void delay(uint z)。//開(kāi)外部中斷 0 IT0=1。x14。 } break。 delay1(300)。} P1=huayang3[x]。 fm=0。x13。 } break。 delay1(300)。//不讓蜂鳴器唱歌 TR0=0。 i=0。 for(i=0。x) for(y=19000。y)。} if(count2==1) //conut2==1 選擇月亮代表我的心 temp=yldbwdx[i]。 if(jp!=0) { timeh=chuzhi[jp*2]。 //唱完一個(gè)音停 10MS TR0=1。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA. Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。 Then in high school, think don3