【正文】
1 = 0。 } /****************************** 頻率測量 *******************************/ void pl(void) { TMOD = 0x51。//ISD1420 反饋信號 ] /**************************** 延時 桂林電子科技大學畢業(yè)設(shè)計(論文)報告用紙 第 11 頁 共 47 頁 ******************************/ void delay(unsigned int k) { unsigned int a。//電容量程轉(zhuǎn)變 sbit F_B = P1^4。//電阻指示燈 sbit C_led = P2^1。//7218A 工作模式 sbit R_select = P3^2。//語音 播放結(jié)果列表 unsigned char SaveData[8] ={ 0xCE,0xCE,0xCE,0xCE,0xCE,0xCE,0xCE,0xCE }。當選擇了某一通道的頻率后,輸出頻率通過通過 P35 作為 CPU 定時器的時鐘源并開始計數(shù),當計數(shù)到 3 秒后讀出計數(shù)器的值,除以 3就得到了被測 R/C/L 所對應(yīng)產(chǎn)生的頻率,通過計算得到要被測值。 對應(yīng)的頻率范圍為: 480Hz≤ fx 。 555 接成多諧振蕩器的形式,其振蕩周期為: T=t1+t2=( ln2)( R1+Rx) *C1+( ln2) Rx*C1 得到: Fx=1/[( ln2) (R2+2Rx)C1]即: Rx=[1/(ln2)C1R1]/2 電路分為 2 檔 : RH 設(shè) 置為高電平輸出, RL 設(shè)為低電平輸出; 100≤ Rx1000 歐姆: R3=200 歐姆; C14=; Rx=(*(1e+6))/(2*fx)330/2 對應(yīng)的頻率范圍為: ≤ fx 16K 1000≤ Rx1M 歐姆: R2=20k 歐姆; C1=103PF; Rx =(*(1e+8))/(2*fx)(1e+4) 對應(yīng)的頻率范圍為: 141Hz≤ fx 圖 電阻 測量電路 電容測量電路 電容的測量同樣采用“脈沖計數(shù)法”, 如 圖 所示由 555 電路構(gòu)成的多諧振蕩電路,通過計算振蕩輸出的頻率來計算被測電容的大小。 ( 3) 加入語音播報功能:如測量結(jié)果為 歐姆則語音播報“六點八 K 歐姆” ; 如電阻小于 100 歐姆則語音播報“電阻小于 100 歐姆”。一般的測量方法都存在計算復雜、不易實現(xiàn)自動測量而且很難實現(xiàn)智能化。 can be accurately measured resistors, capacitors, inductors of the parameters, while adding Voice of the broadcast function can be automatically converted range of the resistance, not artificial selection stalls?;趩纹瑱C控制實現(xiàn)的 RLC 測量儀可以在線測量、智能 識別 、量程自動轉(zhuǎn)換等多種功能,大大提高測量儀的測量速度和精度,擴大了測量范圍。 采用傳統(tǒng)的儀表進行測量時,首先要從電路板上焊開器件,再根據(jù)元件的類型,手動選擇量程擋位進行測量,這樣不僅麻煩而且破壞了電路板的 美觀 。 關(guān)鍵詞: RLC 測量儀 ; AT89S52; NE555 桂林電子科技大學畢業(yè)設(shè)計(論文)報告用紙 Abstract In the use of electronic ponents, the first need to understand parameters. Using the traditional instrument to measure, the first circuit board from a welding device, according to the type of ponents, manually select range Shift to measure, this is not only troublesome but also undermine The appearance of the circuit board. Based on SCM control to achieve the RLCmeasuring instrument can measure, intelligent identification, range automatic conversion, and other features, thereby greatly increasing the meter measuring speed and accuracy, expanded the range. So this RLC measuring instrument can improve the performance measurement system, and maintain the appearance of the printed circuit, the more traditional measuring instrument also is highly intelligent and functional instrument of integration and application in the future will have broad prospects. The main topics for the design of research has been based on the RLC SCM smart measuring instruments, smart and able to identify ponents under test is capacitors, inductors or resistance。NE555 桂林電子科技大學畢業(yè)設(shè)計(論文)報告用紙 目 錄 引言 ...............................................................................................................1 1 硬件電路 ..................................................................................................2 設(shè)計要求 ............................................................................................................................ 2 電路方框圖及說明 ............................................................................................................ 2 各部分電路設(shè)計 ................................................................................................................ 2 電阻測量電路 ................................................................................................................ 2 電容測量電路 ................................................................................................................ 3 電感測量電路 ................................................................................................................ 4 多路選擇開關(guān)電路 ........................................................................................................ 4 按鍵及顯示電路 ............................................................................................................ 5 單片機模塊 .................................................................................................................... 6 量程選擇模塊 ................................................................................................................ 7 電源模塊 ........................................................................................................................ 8 2 軟件部分 ..................................................................................................8 主程序流程圖 .................................................................................................................... 8 程序清單 ............................................................................................................................ 9 3 相關(guān)元器件 ............................................................................................ 19 元件清單 .......................................................................................................................... 19 AT89S52 資料 ................................................................................................................... 20 ICM7218 資料 ................................................................................................................... 31 74LS390 資料 ................................................................................................................... 32 CD4052 資料 ..................................................................................................................... 33 NE555 資料 ....................................................................................................................... 33 共陽 4 位 LED 數(shù)碼管資料 ......................................................................................