【正文】
gning and debugging software. The system used ST98C52 SCM as the central processor, with 555 multivibrator as variable frequency square wave generator, using a method of measuring frequency to indirectly measuring the capacitance. Lastly displaying by LCD1602 after the SCM processing. This design uses C language to design software. After Keil and Proteus two software successfully simulated, we use Protel99se software design for printed circuit board. After the physical assembly debugging and welding, the system can be expected to achieve the rough measurement of PF, NF, UF three stalls capacitances, which is a simple fool capacitive measuring instrument. Keywords: electronic circuit , capacitance, microcontroller, 555 integrated timer. 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 第 1 頁 1 前 言 在電子技術(shù)飛速發(fā)展的今天,精確測量的地位變得越來越重要,在電子測試和設(shè)計領(lǐng)域之中,各類電容的測量已經(jīng)十分普遍。 關(guān)鍵詞: 電子電路、電容、單片機(jī)、 555集成定時器。本設(shè)計用 C語言設(shè)計軟件, Keil和 Proteus 兩款軟件成功模擬仿真后,用 Protel99se 軟件設(shè)計為印刷電路板。文章首先介紹了在線電容測量儀的選題背景和發(fā)展現(xiàn)狀,然后設(shè)計并分析系統(tǒng)硬件的各單元電路,包括單片機(jī)時鐘電路、單片機(jī)復(fù)位電路、 555 測量電路、系統(tǒng)換擋電路、系統(tǒng)電源電路等;其次則是軟件的設(shè)計和調(diào)試過程。 特此聲明。 本科畢業(yè)論文(設(shè)計) 論文(設(shè)計)題目: 在線電容測量儀設(shè)計 學(xué) 院: 專 業(yè): 班 級: 學(xué) 號: 學(xué)生姓名: 指導(dǎo)教師: 2022 年 4 月 6 日貴州大學(xué)本科畢業(yè)論文(設(shè)計) 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 誠信責(zé)任書 本人鄭重聲明:本人所呈交的畢業(yè) 論文(設(shè)計) ,是在導(dǎo)師的指導(dǎo)下獨(dú)立進(jìn)行研究所完成。畢業(yè) 論文(設(shè)計) 中凡引用他人已經(jīng)發(fā)表或未發(fā)表的成果、數(shù)據(jù)、觀點(diǎn)等,均已明確注明出處。 論文(設(shè)計)作者簽名: 日 期: 貴 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 第 I 頁 目 錄 摘 要 ..................................................................................................... III Abstract ....................................................................................................... IV 1 前 言 ............................................................................................. 1 電容測量儀的發(fā)展歷史 ..................................................................... 1 電容測量儀的研究現(xiàn)狀 ..................................................................... 2 本次設(shè)計的任務(wù)與要求 ..................................................................... 3 2 硬件電路設(shè)計及其描述 ................................................................... 4 設(shè)計方案 ............................................................................................. 4 原理框圖 ............................................................................................. 5 單元電路設(shè)計分析 ............................................................................. 6 AT89C52 單片機(jī)功能描述 ............................................................................. 6 STC89C52 的主要特性及管腳說明 ............................................................... 7 AT89C52 單片機(jī)時鐘電路 ............................................................................. 9 AT89C52 單片機(jī)復(fù)位電路 ........................................................................... 10 555 多諧振蕩器電路 ................................................................................... 11 測量換擋電路 .............................................................................................. 13 LCD1602 測量顯示電路 ............................................................................... 14 系統(tǒng)電源電路 .............................................................................................. 17 各部分電路連接成整體電路圖 ....................................................... 18 3 軟件設(shè)計與描述 ............................................................................. 20 軟件設(shè)計任務(wù) ................................................................................... 20 軟件的基本思路與原理 ................................................................... 20 軟件設(shè)計流程圖 ............................................................................... 22 4 PCB 與實物制作 .................................................................................... 23 電路圖的繪制 ................................................................................... 23 貴 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 第 II 頁 PCB 板的制作 ..................................................................................... 23 材料清單 ........................................................................................... 23 元器件的檢測與安裝 ....................................................................... 24 元器件的焊接 ................................................................................... 25 系統(tǒng)調(diào)試與分析 ............................................................................... 25 設(shè)計總結(jié) ..................................................................................................... 26 參 考 文 獻(xiàn) .............................................................................................. 27 致 謝 .................................................................................................. 28 附錄 A 程序源代碼 .................................................................................. 29 附錄 B 設(shè)計原理圖 ................................................................................... 36 附錄 C 設(shè)計 PCB 圖 ................................................................................... 37 貴 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 第 III 頁 在線電容測量儀設(shè)計 摘 要 本文介紹了在線電容測量儀設(shè)計與制作的過程。本系統(tǒng)用 ST98C52單片機(jī)作為中央處理器,以 555多諧振蕩器作為頻率可變的方波 發(fā)生器,利用測量頻率的方式間接測量電容,經(jīng)過單片機(jī)處理得到數(shù)據(jù)之后交由 LCD1602液晶顯示。經(jīng)過實物的組裝調(diào)試和焊接,本系統(tǒng)預(yù)計可以實現(xiàn) PF、 NF、 UF 三個檔位的電容粗略測量,是一種操作簡單的傻瓜式電容測量儀。 貴 貴州大學(xué)本科畢業(yè)論文(設(shè)計) 第 IV 頁 Online capacitance measuring instrument design Abstract This paper introduces the process of design and production of online capacitance measuring instrument. This article first introduced the background and development status of online capacitance measuring instrument, then design and analysis the each unit circuit of the system hardware, including the microcontroller clock circuit, reset circuit, 555 measuring circuit, system shift circuit, po