【正文】
間時(shí)。單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 1 1 引言 設(shè)計(jì)目的 在工農(nóng)業(yè)生產(chǎn)中,常常需要測(cè)量液體液位。使 B、 C棒均與+5 V連通。 由于將多功能 8 位 CPU 和閃爍存儲(chǔ)器組合在單個(gè)芯片中, ATMEL 的AT89C51 是一種高效微控制器。通常一個(gè)系統(tǒng)共用一個(gè)晶振,便于各部分保持同步。這次設(shè)計(jì)之后,我感覺(jué)到自己在自動(dòng)化專(zhuān)業(yè)上的學(xué)習(xí)應(yīng)該還有很長(zhǎng)的路走,自動(dòng)化是一個(gè)很有前途的行業(yè),它涉及了生產(chǎn)生活的 多個(gè)方面,對(duì)人們的影響可想而知,所以,學(xué)好自動(dòng)化專(zhuān)業(yè)的知識(shí)不僅僅是對(duì)自己能力提升和自我價(jià)值的實(shí)現(xiàn),更是一件很有意義,可以讓自己有所感觸,有所收獲的事業(yè)。 /* 為高電平 */ MOR=1。 /* 為低電平 */ MOR=1。s 21 win. Michel Platini, president of European football39。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, or is a selfrighteous spiritual. 一個(gè)人的時(shí)候,自己的想法總是 特別地清晰。ll be traveling fast, so despite the distance, it will not be like diving into 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 15 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. 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。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 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 14 his thrown a basketball hoops, suddenly found himself has already can39。s antiracism taskforce, is in London for the Football Association39。 /* 為低 */ MOR=1。 /* 為低電平 */ MOR=0。通過(guò)自動(dòng)調(diào)節(jié)控制液位并實(shí)現(xiàn)水體的液位報(bào)警。 當(dāng) EA 端保持高電平(接 Vcc 端)時(shí), CPU 則執(zhí)行內(nèi)部程序存儲(chǔ)器中的程序。 圖 2 即是液位控制系統(tǒng)。用以反映水位變化的情況。具體要求如下: 設(shè)計(jì)單片機(jī)工作系統(tǒng)電路。此時(shí)應(yīng)啟動(dòng)電機(jī)轉(zhuǎn)動(dòng),帶動(dòng)水泵給水塔注水,然后重復(fù)原來(lái)的過(guò)程,這就是單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 2 簡(jiǎn)單的水位控制原理。 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 4 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 1 圖 3 AT89C51 引腳圖 光報(bào)警及顯示電路 圖 4 所示為系統(tǒng)的光報(bào)警及顯示電路,三段 LED 數(shù)碼管于單片機(jī)的 P0P7 口相連,同時(shí)排阻的把根線也連在單片機(jī)的 P0 口上,作為上拉電阻。由上至下的第一個(gè)位置為水位上限報(bào)警線,即當(dāng)水位高于此位置時(shí),開(kāi)水閥控制系統(tǒng)就會(huì)自動(dòng)報(bào)警,提醒工作人員注意,加水電磁閥有可能出故障;第二個(gè)位置是自動(dòng)停止加水線,即當(dāng)水位高于此位置時(shí),控制系統(tǒng)會(huì)自動(dòng)關(guān)閉加水電磁閥,停止加水;第三個(gè)位置是自動(dòng)加水線,即當(dāng)水位 低于此位置時(shí),控制系統(tǒng)會(huì)自動(dòng)接通加水電磁閥,開(kāi)始加水;第四個(gè)位置是水位下限報(bào)警線,即當(dāng)水位低于此位置時(shí),控制系統(tǒng)就會(huì)自動(dòng)報(bào)警,提醒工作人員。 /*定義一個(gè)碼存表 */ void delay (uint n) { while(n)。 /*電機(jī)正極為高電平 */ MOT=1。 /*電機(jī)正極為高電平 */ MOT=0?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個(gè)不同的日子過(guò)成了同一天的樣子;或許是 追溯過(guò)去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來(lái),思緒一直很凌亂,在腦海中不斷糾纏。 At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt。 From the corner at the beginning of deep friendship。二十年的人生軌跡深深淺淺,突然就感覺(jué)到有些事情,非做不可了。 } }