【正文】
“關鍵詞”用黑體五號,前面留兩個字長度的空白,后加冒號;結尾不需加句號;關鍵詞內容用楷體五號。 北京 :北京航空航天大學出版社 [3] 吳國經(jīng) , 單片機應用技術 。 應根據(jù)項目設計的需要選擇元器件 , 能夠滿足設計需要作為標準選擇元器件 。 因為平時所需要測量的被測電壓的電壓值不是一個定值 , 多多少少都有一些微小的變化 。 可以撥動硬件電路的檔位開關 , 輸入相應的電壓 , 觀察液晶顯示的電壓值是否一致 。 在主程序中調用 display()和 dislay_zifu()函數(shù) , 觀察 在 1602 液晶上是否能夠顯示相應的字符 。 2. 將 40 芯片的仿真插頭插入單片機插座進行調試 , 檢查各接口是否滿足設計的要求 , 有正常的程序測試硬件電路的好壞 。 } read_key(); void timer0() interrupt 1//定時器中斷函數(shù) { TH0=(6553650000)/256。 delay(10)。 } if(flag==8) { flag=0。 if(flag==2) dat2=dat。 } cs=1。 _nop_()。 port=4。 while(*str!=39。 write_dat(a[0]+0x30)。 dat=dat/10。break。 } void init_timer0()//定時計數(shù)器 0 初值化函數(shù) , { TMOD=0x01。 write_(0x38)。 } void write_dat(uchar dat)//往 1602 液晶寫數(shù)據(jù)函數(shù) { rs=1。y0。 //顯示的單位及有關的字符 uchar code tab1[]=MV。 sbit cs=P2^5。 編寫驅動 1602 液晶顯示模塊程序 。匯編語言 的特點是占用內存單元少 , 執(zhí)行效率高 , 執(zhí)行速度快 。 模塊連接如下圖所示 。 設計的基本框圖如下 : 數(shù)字電壓表的設計 第七章 硬件電路系統(tǒng)模塊的設計 根據(jù)上述選擇的各元器件 , 各電路模塊的電路圖如下描述 。 2) 分為三檔量程 :2V, 20V, 200V。 在第 4個上升沿之后為多路器的地址 。 一個由低至高的變化將在一個設置時間內禁止 data input 和 I/O clk. 3. 串行數(shù)據(jù)輸入端 data input是一個 4位的串行地址選擇下一個即將被轉換的所需的模擬輸入或測試電壓 。它有高速的轉換 , 通用的控制能力 , 具有簡化比率轉換 , 刻度以及模擬電路與邏輯電路和電源噪聲隔離 , 耐高溫等特點 。 下面簡單介紹一下這三種芯片 。 4. 寫數(shù)據(jù) :輸入 :RS=1, RW=0, D0D7 為數(shù)據(jù) , E為高脈沖 。 而點陣顯示器件驅動顯示軟件程序編寫麻煩 , 占用的引腳相對也較多 。 但用 LED點陣顯示的軟件程序設計比較麻煩 32 個字符 。 顯示器和語音芯片等通過 I/O 口地址線和數(shù)據(jù)線連接起來 ; 另一方面 , 它將用戶下 載的程序通過控制總線控制數(shù)據(jù)的輸入輸出 , 從而實現(xiàn)冊電壓的功能 。 單片機是指一個集成在一塊芯片上的完整計算機系統(tǒng) , 具有一個完整計算機5 系列單片機 , AVR 單片機 , PIC 單片機 。 由于單片機的發(fā)展已經(jīng)成熟 , 利用單片機系統(tǒng)的軟硬件結合 , 可以組裝出來 。 由數(shù)字電路及芯片構建 這種設計方案是由模擬電路與 數(shù)字電路兩大部分組成 , 模擬部分包括輸入放大器 。 其中 , 電壓所以數(shù)字電壓表就成 為一種必不可少的測量儀器 。 數(shù)字電壓表最初是伺服步進電子管比較式 , 其優(yōu)點是準確度比較高 , 但是采樣速度慢 , 重量達幾十公斤 , 體積大 , 繼之出現(xiàn)了斜波式電壓表 , 它的速度方 數(shù)字電壓表的設計 面稍有提高 , 但是準確度低 , 穩(wěn)定性差 , 再后來出現(xiàn)了比較式儀表改進逐次漸近式結構 , 它不僅保持了比較式準確度高的優(yōu)點 , 而且速度也有了很大的提高 , 但它有一缺點是抗干擾能力 差 , 很容易受到外界各種因素的影響 。 簡稱 DVM,它采用的是數(shù)字化測量技術 , 把連續(xù)的模擬量 , 也就是連續(xù)的電壓值轉變?yōu)椴贿B續(xù)的數(shù)字量 , 加以數(shù) 字處理然后再通過顯示器件顯示 。 關鍵字介紹 :單片機 , AT89C52, A/D 轉換 , TLC2543, 數(shù)據(jù)處理 數(shù)字電壓表的設計 Abstract This paper is the background of the development of digital voltmeter and using single chip puter, A/D conversion chip design method of the bination of the party A dc digital voltmeter. It is the specific function of: supreme range for 200 V, divide a gear range, namely 2 V, 20 V, 200 V, can switch to achieve each by shifting gear gear, when the voltage of the numerical less than 1 V, the system will automatically will convert to mV voltage values for the voltage is the voltage unit, and through the key method can measure five seconds after the average voltage. MCU is a kind of integrated circuit chip, using the technology with large scale data processing ability (such as the art operations, logic operations, data transfer, interrupt handling) of the microprocessor (CPU). With the rapid development of the single chip microputer, all kinds of single chip in great Numbers, microcontroller technology has bee a national modernization level of science and technology. SCM can plete modern industrial control alone for the intelligent control function, it is the greatest feature of single chip microputer. Singlechip microputer control system can be replaced by plex electronic circuit or before digital circuit consists of the control system system, can control software to achieve, and to realize intelligent, now singlechip microputer control category is everywhere, such as munication products, household appliances, intelligent instruments, process control and special control device and so on, the application field of single chip microputer more and more widely. This graduate design topic is simple digital voltmeter design. We mainly examine of singlechip processor technology technique, the programming ability, etc. Observe independent analysis, design of the single chip microputer ability, and the actual programming skills. This subject mainly to solve A/D conversion, data processing and display control and so on three modules. The control system adopts AT89C52 single chip microputer, A/D conversion using ADC0809. Keywords: A singlechip microputer, AT89C52, A/D conversion, ADC0809, data processing 數(shù)字電壓表的設計 目 錄 摘 要 ........................................................................................................................... 1 Abstract........................................................................................................................... 2 目 錄 .......................................................................................................................... 3 第一章 數(shù)字電壓表簡介 ............................................................................................. 4 設計背景 ...........................