【正文】
9C2051是美國(guó)ATMEL公司生產(chǎn)的低電壓、高性能CMOS 8位單片機(jī),片內(nèi)含2k bytes的可反復(fù)擦寫的只讀程序存儲(chǔ)器(PEROM)和128bytes的隨機(jī)數(shù)據(jù)存儲(chǔ)器(RAM),器件采用ATMEL公司的高密度、非易失性存儲(chǔ)技術(shù)生產(chǎn),兼容標(biāo)準(zhǔn)MCS51指令系統(tǒng),片內(nèi)置通用8位中央處理器。現(xiàn)場(chǎng)實(shí)時(shí)顯示測(cè)量值,從而實(shí)現(xiàn)對(duì)水箱液位的監(jiān)控。t produce misjudgment, because there are four ports, singlechip microputer AT89C2051 20 pins can very easily design display system.Keywords: sensor microcontroller program design peripheral hardware circuit一、系統(tǒng)組成及工作原理 系統(tǒng)的組成基于單片機(jī)實(shí)現(xiàn)的水位控制系統(tǒng)是以AT89C2051芯片為核心,由電源電路、水位探測(cè)傳感電路、穩(wěn)壓電路、單片機(jī)系統(tǒng)、光報(bào)警顯示電路、繼電器控制水泵加水電路、以及高塔模型組成。闡述了一種基于單片機(jī)的通用水位控制系統(tǒng)的基本組成,并提出了該系統(tǒng)模塊化的硬件和軟件設(shè)計(jì)方法,本文設(shè)計(jì)了一種以AT89C2051為核心研制的液位控制系統(tǒng),該系統(tǒng)不僅能對(duì)液位進(jìn)行巡回檢測(cè)、顯示和報(bào)警,同時(shí)也能對(duì)液位進(jìn)行智能控制。目錄目 錄: 0摘 要: Ⅱ關(guān)鍵詞: Ⅱ一、 系統(tǒng)組成及工作原理 1系統(tǒng)的組成 1系統(tǒng)的工作原理 1(1)工作原理 1(2)原理框圖 1(3)工作過(guò)程 2二、 系統(tǒng)的硬件設(shè)計(jì) 2硬件組成 2硬件的特性 3(1) 單片機(jī)系統(tǒng) 3(2) 水位探測(cè)傳感電路 5(3) 光報(bào)警顯示電路 6(4) 穩(wěn)壓電路 7(5)水泵的介紹 8(6)電源電路模塊 10(7)繼電器控制電路 10(8)看門狗技術(shù) 12三、 系統(tǒng)的軟件設(shè)計(jì) 14軟件設(shè)計(jì)框圖 14程序設(shè)計(jì) 15(1)匯編語(yǔ)言程序設(shè)計(jì) 15(2)C語(yǔ)言程序設(shè)計(jì) 16四、 基于單片機(jī)的水位控制系統(tǒng)的抗干擾措施 17硬件抗干擾電路的設(shè)計(jì) 17軟件抗干擾的設(shè)計(jì) 17五、 結(jié)束語(yǔ) 17參考文獻(xiàn) 18基于單片機(jī)的水位控制系統(tǒng)設(shè)計(jì)作者:指導(dǎo)老師:摘 要:液位是許多工業(yè)生產(chǎn)中的重要參數(shù)之一,在化工、冶金、醫(yī)藥、航空等領(lǐng)域里,對(duì)液位的測(cè)量和控制效果直接影響到產(chǎn)品的質(zhì)量。本文介紹了水位控制系統(tǒng)工作的基本原理。關(guān)鍵詞: 傳感器 單片機(jī) 程序設(shè)計(jì) 外圍硬件電路 Abstract: Many industrial production level is one of the important parameters in chemical industry, metallurgy, medicine, aviation, etc, the level measurement and control effect directly affect the quality of the products. This paper introduces a level controller based on microputer design method, the controller based on singlechip, through the peripheral hardware circuit to achieve the purpose of achieving control. Because of the single chip puter has small, less consumption, high control accuracy, reliable operation characteristics, so is widely used in production practice. This paper introduces the water level control system is the basic principle of work. This article expounds a kind of based on SCM general water level control system, and puts forward the basic position of this system modular hardware and software design method, this paper introduces a design for the core developed by AT89C2051 level control system, this system not only can level Tours of inspection, display and alarm, also can the level of intelligent control. Information age microcontroller technology is used for precision measurements of a kind of new technology. This system used in use process voltage circuit can accurately put input level to microcontroller won39。檢測(cè)值若高于上限設(shè)定值時(shí),要求報(bào)警,斷開繼