【正文】
.............................................................................................................. 5 電子秤的工作原理 ............................................................................................. 5 電子秤的設計思路 ............................................................................................. 6 2 方案論證與比較 .......................................................................................................... 7 控制器部分 ....................................................................................................... 7 數(shù)據(jù)采集部分 .................................................................................................... 7 傳感器 ..................................................................................................... 7 前級放大器部分 ....................................................................................... 9 A/D 轉換器 ............................................................................................ 10 鍵盤處理部分方案論證 .......................................................................... 11 顯示電路部分的選擇 ....................................................................................... 11 超量程報警部分的選擇 .................................................................................... 12 3 硬件電路設計 ........................................................................................................... 13 AT89S52的最小系統(tǒng)電路 ................................................................................ 13 單片機芯片 AT89S52介紹 ...................................................................... 13 單片機管腳說明 ..................................................................................... 15 AT89S52的最小系統(tǒng)電路構成 ................................................................ 18 數(shù)據(jù)處理部分電路設計 .................................................................................... 18 傳感器和其外圍以及放大電路設計 ......................................................... 18 A/D 轉換芯片與 AT89S52 單片機接口電路設計 ...................................... 23 單片機與 8155 芯片的擴展電路 ....................................................................... 26 顯示 電路與 AT89S52單片機接口電路設計 ....................................................... 29 鍵盤電路與 AT89S52單片機接口電路設計 ....................................................... 31 報警電路設計 .................................................................................................. 31 4 系統(tǒng)軟件設計 ........................................................................................................... 33 主程序的設計 ................................................................................................... 33 子程序設計 ..................................................................................................... 34 A/D 轉換啟動及數(shù)據(jù)讀取 程序設計 ......................................................... 34 顯示子程序設計 ..................................................................................... 34 鍵盤掃描子程序設計 .............................................................................. 35 報警子程序設計 ..................................................................................... 38 設計總結 ........................................................................................................................ 39 致謝 ............................................................................................................................... 40 參考文獻 ........................................................................................................................ 41 5 1 緒論 在 眾多的先進技術行業(yè)中隨著中國經濟的飛速發(fā)展,科技的進步,中國加入WTO 后,全球化浪潮不斷興起。 A / D converter。s requirements. Weighing instruments in order to change the traditional problems in the use of, in this design will be intelligent, automated, userfriendly use in the control of electronic weighing systems. This system is mainly controlled by the microcontroller to measure the weight of objects in part by the weighing sensor and A / D converter ponent, together with display units, this electronic scale is ready multifunctional, high cost performance, low power consumption, system design is simple and , easy to use and intuitive, fast, measurement accuracy, and high degree of automation. The system AT89S52 microcontroller as the master chip, acpanied by weighing the external circuit, display circuit, alarm circuit, keyboard circuit (which can enter the product price and thus calculate the total product), etc. constitute the intelligent weighing system circuit board in order to achieve automatic weighing weight system, the various control functions. It can be said that this design to plete the electronic scale to a large extent meet the application requirements. Keywords microcontroller AT89S52??梢哉f ,此設計所完成的電子秤很大程度上滿足了應用需求。本系統(tǒng)主要由單片機來控制,測量物體重量部分由稱重傳感器及 A/D 轉換器組成,加上顯示單元,此電子秤俱備了功能多、性能價格比高、功耗低、系統(tǒng)設計簡單、使用方便直觀、速度快、測量準確、自動化 程度高等特點。蘭州工業(yè)高等??茖W校 畢業(yè)設計(論文) 題目 超市電子秤設計 2 摘 要 隨著微電子技術的應用,市場上使用的傳統(tǒng)稱重工具已經滿足不了人們的要求。為了改變傳統(tǒng)稱重工具在使用上存在的問題,在本設計中將智能化、自動化、人性化用在了電子秤重的控制系統(tǒng)中。 本系統(tǒng)以 AT89S52 單片機為主控芯片,外圍附以稱重電路、顯示電路、報警電路、鍵盤電路(可輸入產品價格進而計算出產品總價)等構成智能稱重系統(tǒng)電路板,從而實現(xiàn)自動稱重系統(tǒng)的各種控制功能。 關鍵詞 : 單片機 AT89S52; 稱 重 傳 感器; A/D轉換器; LED顯示器; 3 Abstract With the application of microelectronic technology on the market weighing the use of traditional tools have been unable to meet people39。 weighing sensor。 LED display。世界各國的公司紛紛在全球各地投資建立企業(yè),中國作為人口最多的國家,是一個具有巨大發(fā)展?jié)摿Φ氖袌?。隨著科技的進步 ,對電子秤的要求也越來越高。影響其精度的因素主要有 :機械結構、傳感器和數(shù)顯儀表。在日常生活中,到處必須用到稱。隨著人們生活水平的不斷提高,商業(yè)行為也越來越現(xiàn)代化,人們對商品度量的速度和精度也提出了新的要求。電子稱的產生正是為了適應現(xiàn)代生活需要。電子計價秤在秤臺結構上有一個顯著的 特點:一個相當大的秤臺,只在中間裝置一個專門設計的壓力傳感器來承擔物料的全部重量。 作 為重量測量儀器,智能電子秤在各行各業(yè)開始顯現(xiàn)其測量準確,測量速度快,易于實時測量和監(jiān)控的巨大優(yōu)點,并開始逐漸取代傳統(tǒng)型的機械杠桿測量稱,成為測量領域的主流產品。據(jù)悉 ,目前電子秤的附加功能主要有以下幾種 :1電子秤附加了處理機構計算機信息補償裝置 ,可以進