【正文】
1 = 0。 } /****************************** 頻率測(cè)量 *******************************/ void pl(void) { TMOD = 0x51。//ISD1420 反饋信號(hào) ] /**************************** 延時(shí) 桂林電子科技大學(xué)畢業(yè)設(shè)計(jì)(論文)報(bào)告用紙 第 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 }。當(dāng)選擇了某一通道的頻率后,輸出頻率通過通過 P35 作為 CPU 定時(shí)器的時(shí)鐘源并開始計(jì)數(shù),當(dāng)計(jì)數(shù)到 3 秒后讀出計(jì)數(shù)器的值,除以 3就得到了被測(cè) R/C/L 所對(duì)應(yīng)產(chǎn)生的頻率,通過計(jì)算得到要被測(cè)值。 對(duì)應(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 對(duì)應(yīng)的頻率范圍為: ≤ fx 16K 1000≤ Rx1M 歐姆: R2=20k 歐姆; C1=103PF; Rx =(*(1e+8))/(2*fx)(1e+4) 對(duì)應(yīng)的頻率范圍為: 141Hz≤ fx 圖 電阻 測(cè)量電路 電容測(cè)量電路 電容的測(cè)量同樣采用“脈沖計(jì)數(shù)法”, 如 圖 所示由 555 電路構(gòu)成的多諧振蕩電路,通過計(jì)算振蕩輸出的頻率來計(jì)算被測(cè)電容的大小。 ( 3) 加入語音播報(bào)功能:如測(cè)量結(jié)果為 歐姆則語音播報(bào)“六點(diǎn)八 K 歐姆” ; 如電阻小于 100 歐姆則語音播報(bào)“電阻小于 100 歐姆”。一般的測(cè)量方法都存在計(jì)算復(fù)雜、不易實(shí)現(xiàn)自動(dòng)測(cè)量而且很難實(shí)現(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(jī)控制實(shí)現(xiàn)的 RLC 測(cè)量?jī)x可以在線測(cè)量、智能 識(shí)別 、量程自動(dòng)轉(zhuǎn)換等多種功能,大大提高測(cè)量?jī)x的測(cè)量速度和精度,擴(kuò)大了測(cè)量范圍。 采用傳統(tǒng)的儀表進(jìn)行測(cè)量時(shí),首先要從電路板上焊開器件,再根據(jù)元件的類型,手動(dòng)選擇量程擋位進(jìn)行測(cè)量,這樣不僅麻煩而且破壞了電路板的 美觀 。 關(guān)鍵詞: RLC 測(cè)量?jī)x ; AT89S52; NE555 桂林電子科技大學(xué)畢業(yè)設(shè)計(jì)(論文)報(bào)告用紙 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 桂林電子科技大學(xué)畢業(yè)設(shè)計(jì)(論文)報(bào)告用紙 目 錄 引言 ...............................................................................................................1 1 硬件電路 ..................................................................................................2 設(shè)計(jì)要求 ............................................................................................................................ 2 電路方框圖及說明 ............................................................................................................ 2 各部分電路設(shè)計(jì) ................................................................................................................ 2 電阻測(cè)量電路 ................................................................................................................ 2 電容測(cè)量電路 ................................................................................................................ 3 電感測(cè)量電路 ................................................................................................................ 4 多路選擇開關(guān)電路 ........................................................................................................ 4 按鍵及顯示電路 ............................................................................................................ 5 單片機(jī)模塊 .................................................................................................................... 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ù)碼管資料 ......................................................................................