【正文】
=0 。 delay(5)。 delay(5)。 write_(0x01)。 InitADC()。)。 write_data(dianya[2]+39。 delay(50)。 write_(0x0c)。 delay(5)。 delay(5)。 while((Lcd_Busamp。it。,39。 sbit E=P1^2 。 在本次畢業(yè)設計的過程中,我遇到了很多的突發(fā)事件和各種困難,比如說仿真 軟件的元件 庫里沒有 SPEC061A單片機和 AD650芯片, 無法對其進行仿真, 尤其是 AD650的定時電容對的雜散電容反應比較敏感調試保護比較困難,電路設計和調試一度陷入困境 ,但通過 仔細分析和自我調整狀態(tài)后 終于解決了問題,取得了圓滿的結果。由于自己平時積累的還不夠,在電路焊接的時候工藝也不夠好,導致 LED 顯示器不能很好的進行結果顯示。將旋鈕扭到最低端,正弦波振幅為 ,將旋鈕旋到最大端時,示波器顯示正弦波振幅 。兩個可控的 32 位高速計數(shù)器 B 和 T,各自的計數(shù)使能信號分別是 BEN 和 TEN,高電平有效。運行 Keil 軟件需要 WIN9 NT、WIN20 WINXP 等操作系統(tǒng)。 7段數(shù)碼管由 7個發(fā)光二極管組成, 22 而 8段數(shù)碼管則是在 7段發(fā)光二極管的基礎上再加一個圓點型發(fā)光二級管,用于顯示小數(shù)點。 XC95108采用 FLASH編程工藝,可反復 進行 擦寫 。由于設計要求 AD 轉換與控制器電氣隔離,以求減小干擾,所以我們使用了光電耦合進行隔離。由于轉換精度由基準晶振和 AD650 的 V/F 滿刻度時的量程。這種結構形式和 GAL 十分類似,但是它又在 GAL 的基礎上進行了若干改進,可以更靈活地進行組態(tài)。 同時,為了使用方便,越來越多的 CPLD都做成了在系統(tǒng)可編程器件 isp— PLD。根據 公式計算可知 Dvs 為: mAIIR VCRVICfttt tD v s isiosisosvs 1 m a xi n t m a xi n tm a x ??????????? ( 5) 15 若 想 要求 Dvs=25%, Iimax必須為 , 雖然 外圍僅需要幾個元件但這幾個元件決定 AD650的實際轉換結果,所以外圍元件的選擇十分 重要。 AD650的輸入電壓可以是正電壓 輸入 、負電壓輸入或正負電壓輸入。 AD586 和 LM336 組成的基準源電路原理圖如下所示: 11 IN2GND4TRIM5OUT6NR8TP7TP3TP1U4AD586JR321U732 1U5 +12104C20105C1991KR11312Res4104C2334521V+VU6OPA333650R10+55104C21104C22650R12Vref 5V100mV 圖 5基準源電路原理圖 電壓的放大及偏置 0~ 100mV 的電壓不能直接送給 V/F 變換 AD650, 必須經過精密放大和進行電位的偏置, 只有 這樣才能達到設計的精度。各部分緊密連接形成了一套完善的 A/D 轉換系統(tǒng)。但是由于它是一種永磁元件,會對電路場產生額外的電磁影響,而且本系統(tǒng)要求的頻率較高,磁隔離不適合本系統(tǒng)。并且由于本人在學習單片機時主要學習的是 LED顯示器方面的內容,對這方面也比較熟悉,在編寫程序時也相對容易一些。 該單片機算術運算能力比較強,其軟件編程十分靈活,自由度大, 軟件編程實現(xiàn)各 種算法和邏輯控制產生功耗小,技術相對 成熟,成本較低, I/O 口較多 , 外擴 比較容易 , 其響應速度能夠 達到系統(tǒng)要求??删幊踢壿嬈骷軌蛴么a實現(xiàn)硬件的功能,不需要大規(guī)模的搭焊、跳線,并且容易 修改 ,一塊芯片就能夠 實現(xiàn)一大塊板子的功能 而 且性能 比 傳統(tǒng)的電路連接方式 更好 。這種方案節(jié)省硬件,用一片單片機實現(xiàn)計數(shù),運算等工作。 150ppm/℃ 。最佳溫度穩(wěn)定性為177。 方案三:精密低溫漂高檔基準源, 元件分壓后借助 精密運放進行輸出緩沖。模塊框圖如圖 2所 示。它由電壓比較器,寄存器和代碼轉換器三部分組成。例如輸入 100mV 電壓時顯示器顯示值不低于 32767。 第五章是關于本次設計的系統(tǒng)測試。在經過多次考慮后,決定選擇自行設計一個 CPLD 頻率測試計來進行頻率測試。 研究內容及章節(jié)安排 本論文主要研究高分辨率 A/D 轉換電路的工作和設計原理,重點對基準電壓源、 V/F 轉換以及 CPLD 頻率測試計進行了研究。此外,由于工藝水平的不斷提高,而國際上已經出現(xiàn)了 65μ m 的工藝,而這也使得 A/D 轉換器向著更高速度、更低電壓方向發(fā)展。比較適合于對轉換速度要求不高,環(huán)境惡劣的應用場合。 而高速、高分辨率 A/D 轉換器已經成為現(xiàn)代先進的電子設備或電子系統(tǒng)中不可或缺的重要組成部分。 由系統(tǒng) 提供 0~ 100mV 連續(xù)可調的高精度測試用基準源, 其中模擬輸入電壓為 0~ 100mV,電壓通過精準的放大和偏置后送給集成芯片 AD650 進行 V/F 變 換,轉換出來的頻率信號由 CPLD 電路進行測量,結果送交控制器,產生 16 位 A/D 轉換結果,最后通過 LED 顯示器來對轉換結果進行顯示。對本文的研究做出重要貢獻的個人和集體,均已在文中以明確方式標明。盡我所知,除文中特別加以標注和致謝的地方外,不包含其他人或組織已經發(fā)表或公布過的研究成果,也不包含我為獲得 及其它教育機構的學位或學歷而使用過的材料。本人授權 大學可以將本學位論文的全部或部分內容編入有關數(shù)據庫進行檢索,可以采用影印、縮印或掃描等復制手段保存和匯編本學位論文。s society is A information society, with the munication technology, puter technology and the rapid development of modern microelectronics technology, information technology has perated into the whole society (such as military and civilian), especially in the field of modern control, munication and detection, and A/D conversion technology in information processing technology plays an important role, especially in high speed and high resolution A/D converter has bee A modern advanced electronic devices or electronic systems in the indispensable important ponent. It is widely used in radar, sonar, highresolution video and image display, military and medical imaging, high performance controller and sensors, digital meters, all kinds of detection control system and digital munications, including wireless phone and the base station receiver system, etc. It is widely used in radar, sonar, highresolution video and image display, military and medical imaging, high performance controller and sensors, digital meters, all kinds of detection control system and digital munications, including wireless phone and the base station receiver system, circuit, which is built in the base of analog devices and plicated programmable logic device (CPLD), can deliver 18bit A/D result with high precision. To achieve high precision, The devices that are used in this system should have the characteristic of very love temperature drift .The inputting 0100mV voltage is first amplified and deflected ,and then delivered to AD650 to perform V/F . The outputting frequency is measured with high precision by CPLD, and the Microcontroller calculate the result .To test the performance of the A/D characteristic, a high precise 0100mV voltage souse is also available in this system. To reduce the disturbance ,a high speed photoelectricitycoupler is used to insulate the A/D part and the control circuit. Key word: V/F; CPLD; cymometer; A/D conversion V 目 錄 1緒論 .............................................................. I 研究背景及意義 ............................................. 1 國內外研究現(xiàn)狀 ............................................. 2 研究內容及章節(jié)安排 ......................................... 2 .......................................................... 4 系統(tǒng)設計要求 ............................................... 4 系統(tǒng)組成框圖和方案論證 ..................................... 4 系統(tǒng)組成框圖 ........................................... 4 系統(tǒng)總體方案的論證 ..................................... 4 系統(tǒng)基本方案 ............................................... 5 各模塊方案選擇和論證 ....................................... 6 系統(tǒng)各模塊的最終方案 ....................................... 9 ............................................. 10 系統(tǒng)硬件的基本組成部分 .................................... 10 主要單元電路的設計 ........................................ 10 精密測試基準源 ........................................ 10 電壓的放大及偏置 ...................................... 11 V/F 轉換電路的設計 ................................... 12 等精度頻率計的設計 .................................... 16 語音顯示部分的設計 .................................... 18 語音電路的設計 ........................................ 18 光耦合隔離電路的設計 .................................. 19 基于 CPLD 的頻率計電路 ...............