【正文】
鐘方式電路 .................................................... 5 手動復位電路 ........................................................ 5 霓虹燈控制電路 ...................................................... 6 3 軟件設(shè)計 .................................................................. 7 中斷服務(wù)流程 ......................................................... 7 霓虹燈控制電路流程 .............................................. 7 .................................................................. 9 5. 課設(shè)小結(jié)及進一步設(shè)想 .................................................... 10 參考文獻 ................................................................... 10 附錄 I 元件清單 ........................................................... 11 附錄 II 整體電路圖 ......................................................... 12 附錄 III 源程序清單 ....................................................... 13 基于 單片機的霓虹燈控制 系統(tǒng)設(shè)計 第 2 頁 基于 AT89C51 單片機的霓虹燈控制系統(tǒng)設(shè)計 摘要 : 本文 主要設(shè)計一個基于單片機的霓虹燈控制系統(tǒng)。 隨著電子技術(shù)和計算機技術(shù)的發(fā)展,特別是單片機的發(fā)展,使傳統(tǒng)的測量儀器在原理 、 功能 、 精度及自動化水平等方面發(fā)生了巨大的變化,形成了一種完全突破傳統(tǒng)概念的新一代測試儀器 —— 智能儀器。復位電路 部分采用的是上電復位和手動復位兩種復位方式。AT89C51 相當于將 8051 中的 4KB ROM 換成相應(yīng)數(shù)量的 Flash 存儲器,其余結(jié)構(gòu)、供電電壓、引腳數(shù)量及封裝均相同,使用時可直接替換 。 LED 的心臟是一個半導體的晶片,晶片的一端附在一個支架上,一端是負極,另一端連接電源的正極,使整個晶片被環(huán)氧樹脂封裝起來。 I/O 存儲器 EPROM/ROM 定時 /計數(shù)器 運算器 控制器 中斷 CPU 片內(nèi)振蕩器 RAM/SFP 并行口 存儲器擴展控制器 串行口 XTAL 基于 單片機的霓虹燈控制 系統(tǒng)設(shè)計 第 5 頁 近十幾年來,為了開發(fā)藍色高亮度發(fā)光二極管,世界各地相關(guān)研究的人員無不全力投入。 圖 8 中斷服務(wù)程序流程圖 Red led=flicker Red led=flicker 中斷響應(yīng) 設(shè)置中斷返回地址 中斷 返回 基于 單片機的霓虹燈控制 系統(tǒng)設(shè)計 第 8 頁 Y N TH0,TL0 裝初值 開中斷,啟動 T0 開始 0≤ n20 Red led=flicker Y N 20≤ n40 Green led=flicker Y N 40≤ n60 Yellow led=flicker TMOD 初始化 基于 單片機的霓虹燈控制 系統(tǒng)設(shè)計 第 9 頁 圖 9 霓虹燈控制電路主程序流程圖 調(diào)試 在 protues 上進行仿真實驗。 //端口定義。 //啟動定時器。 YELLOW_LED=1。 } if(20=namp。 GREEN_LED=1。 } TH0=0x3C。s antiracism taskforce, is in London for the Football Association39。 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)到了尾聲。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 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。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強心劑,或者說,是自以為是的精神寄托罷了。ll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jump When he jumps, he is expected to reach the speed of sound 690 mph (1,110 kph) in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him pletely. 基于 單片機的霓虹燈控制 系統(tǒng)設(shè)計 第 18 頁 If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it39。 Have declared the end of the encounter that haven39。s time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of love, there are a lot of miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection,