【正文】
A工具軟件的仿真功能,此外還具備仿真單片機及外圍部件。例如本次實驗的連接方式。通過單片機程序控制,對LED數碼管顯示器進行段控和位控,這些就是為了實現動態(tài)顯示。需知在復位有效期間,EA引腳輸出高電平。首先定時/計數器的工作首先被設置為計數器的計數寄存器清0后,置運行控制位TR為1,啟動對待測信號的計數。其中有關定時的控制位共有4位:F0和TF1——利用計數溢出標志位當計數器計數溢出(計滿)時,該位置顯示為“1”;當我們使用查詢方式來查詢時,此位作狀態(tài)位供查詢,但在選用中斷方式的時候,此位作中斷標志位,在轉向中斷服務程序時也應該由硬件自動清“0”。輸入1KHz有最高千分之四的誤差輸入25KHz有近萬分之三的誤差。 附錄include unsigned char code dispbit[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}。 TR1=1。i6。 } P2=0xff。 timecount++。 x=x/10。 TH0=0。[4] 閻石.數字電子技術基礎(第五版)[M].高等教育出版社,2005。實際計數器的頻率可為100KHz,當輸入時間脈沖的單位周期間隔為1μs。我們在基于資源共享原則上的中斷技術,在計算機中得到了廣泛的應用。其中的8個筆劃段a、b、c、d、e、f、g、dP對應于一個字節(jié)(8位)的D0、DDDDDDD7。電容的作用還在于能夠容易起震并減少頻率的溫漂。C 語言這種語言是美國的Dennis Ritchie在1972年設計發(fā)明的。支持總線結構,讓用戶和讀者能夠明確分析線路結構。要求能夠對1HZ-100KHZ的信號頻率進行準確計數。就目前來說,微處理器芯片發(fā)展迅速,不同領域的應用芯片在其中發(fā)展很快。頻率計數器能對輸出頻率和一些關鍵的內部頻率點(如本振)進行測量,是否滿足技術指標。關鍵詞:頻率計數器; PROTEUS仿真; 單片機; 1~100kHz ABSTRACT Traditional frequency counter by binational circuits and sequential circuits, etc. A lot of hardware circuit. We know that this development laborious and costly, so based on the frequency counter as the research object, the use of Proteus powerful microputer processor simulation, bining with Keil piler, presents a simple and easy to operate the frequency counter design and plete the simulation test. In this paper, we design a microcontroller AT89C51 as the core of the digital frequency counter, the hardware part mainly by shaping circuit, single chip microputer minimum system and display units, the software design is posed of some functional modules, such as initialization module, crystal vibration module, data display module as well as the reset module and so on. This method is good enough to make up the flaws of the traditional development mode. The frequency counter by the LCD display and a single chip microputer AT89C51, and clock signal generator, the measured frequency range between 1 HZ and 100 KHZ. Key words:Frequency counter; PROTEUS simulation and singlechip microputer; 1~ 100KHZ 目錄摘 要 2ABSTRACT 3目錄 4第一章 引言 5 5 5 6 7第二章 工具介紹 8 PROTEUS仿真軟件 8 8 功能特點 8 proteus的使用 9 keil uvision4軟件 10 .1 keil uvision4軟件的介紹 10 keil uvision4軟件的使用 10 關于C語言 11第三章 硬件和軟件設計 12 12 AT89C51單片機 12 AT89C51的晶振接法 13 14 15 16 16 16 17 18第四章 調試測試 19 19 19 21結束語 22參考文獻 24附錄 25第一章 引言我們經常需要測量頻率、時間間隔、相位和對事件計數,精確的測量離不開頻率計數器或它的同類產品,如電子計數器和時間間隔分析儀。在發(fā)明計數器之前,頻率的測量都是用頻率計(一種