【文章內(nèi)容簡(jiǎn)介】
閃爍時(shí)間不符合要求, C 語(yǔ)言編程不太熟練, 很感謝徐濤老師的耐心教導(dǎo),他的幽默讓我們覺(jué)得親切,他的認(rèn)真負(fù)責(zé)讓我們折服。在繁忙的一個(gè)學(xué)期即 將結(jié)束之時(shí),我的思想成熟了,這次的課設(shè)讓我找到了方向,讓我懂得了很多,有知識(shí)方面的,但大部分還是人格方面的。我相信,只要不放棄,只要努力,就一定可以! 由于時(shí)間 緊促 , 自身 水平有限 , 本論文還有許多部分未能詳細(xì)分析,在此僅作簡(jiǎn)單了解和認(rèn)識(shí)。 參考文獻(xiàn) [1] 趙茂泰 .智能儀器原理及應(yīng)用 .北京 : 電子工業(yè) 出版社 , [2] 張毅剛 ,劉杰 .MCS— 51 單片機(jī)原理及應(yīng)用 .哈爾濱 : 哈爾濱工業(yè)大學(xué)出版社 , [3] 何立民 .單片機(jī)應(yīng)用技術(shù)選編 .北京 : 北京航天航空大學(xué)出版 , [4] 張 軍 ,梅麗鳳 .單片機(jī)原理接口技術(shù) .北京交通大學(xué)出版社 , [5] 張婧武 ,周靈彬 .單片機(jī)系統(tǒng)的 PROTEUS 設(shè)計(jì)與仿真 .北京 : 電工 出版社 , [6] 周佩玲 ,彭虎 .微機(jī)原理與接口技術(shù) .北京 : 電子工業(yè)出版社 , [7] 李群芳 ,張士軍 .單片微型計(jì)算機(jī)與接口技術(shù) .北京 : 電子工業(yè)出版社 , 基于 單片機(jī)的霓虹燈控制 系統(tǒng)設(shè)計(jì) 第 11 頁(yè) 附錄 I 元件清單 元件名稱(chēng) 型號(hào) 數(shù)量 單片機(jī) AT89C51 1 LED Ark SM470501K 3 極性電容 10uF 1 電容 22pf 2 電阻 470Ω 3 電阻 1K 2 排 線 2 按鍵 1 晶振 1 基于 單片機(jī)的霓虹燈控制 系統(tǒng)設(shè)計(jì) 第 12 頁(yè) 附錄 II 整體電路圖 X T A L 218X T A L 119A L E30EA31P S E N29RS T9P 0 .0 /A D 039P 0 .1 /A D 138P 0 .2 /A D 237P 0 .3 /A D 336P 0 .4 /A D 435P 0 .5 /A D 534P 0 .6 /A D 633P 0 .7 /A D 732P 1 . 01P 1 . 12P 1 . 23P 1 . 34P 1 . 45P 1 . 56P 1 . 67P 1 . 78P 3 .0 /R X D10P 3 .1 /T X D11P 3 .2 /I NT 012P 3 .3 /I NT 113P 3 .4 /T 014P 3 .7 / R D17P 3 . 6 / W R16P 3 .5 /T 115P 2 .7 /A 1 528P 2 .0 / A 821P 2 .1 / A 922P 2 .2 /A 1 023P 2 .3 /A 1 124P 2 .4 /A 1 225P 2 .5 /A 1 326P 2 .6 /A 1 427U1A T 8 9 C5 1D1L E D R E DR31 0 0D2L E D G RE E ND3L E D Y E L L O WR11 0 0R21 0 0R41 0 kC11nFC21nFX1CR Y S T A LC31nF基于 單片機(jī)的霓虹燈控制 系統(tǒng)設(shè)計(jì) 第 13 頁(yè) 附錄 III 源程序清單 include define uchar unsigned char define uint unsigned int sbit RED_LED = P1^0。 //端口定義。 sbit GREEN_LED = P1^1。 sbit YELLOW_LED = P1^2。 uint flicker,i,n。 void int0() { TMOD=0x01。 TH0=0x3C。 TL0=0xAF。 TR0=1。 //啟動(dòng)定時(shí)器。 ET0=1。 //開(kāi)定時(shí)器中斷。 EA=1。 //開(kāi)總中斷 } void main() //主函數(shù)。 { n=0。 i=0。 GREEN_LED=1。 YELLOW_LED=1。 flicker=0。 int0()。 基于 單片機(jī)的霓虹燈控制 系統(tǒng)設(shè)計(jì) 第 14 頁(yè) while(1) { if(0=namp。amp。n20) { YELLOW_LED=1。 GREEN_LED=1。 RED_LED=flicker。 } if(20=namp。amp。n40) { RED_LED=1。 YELLOW_LED=1。 GREEN_LED=flicker。 } if(40=namp。amp。n60) { RED_LED=1。 GREEN_LED=1。 YELLOW_LED=flicker。 if(n==59) n=0。 } } } void Time0() interrupt 1 { TR0=0。 i++。 if(i==10) { flicker=~flicker。 i=0。 n++。 } TH0=0x3C。 TL0=0xAF。 TR0=1。 基于 單片機(jī)的霓虹燈控制 系統(tǒng)設(shè)計(jì) 第 15 頁(yè) } g an employment tribunal clai Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。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 appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaini