基于單片機(jī)位移檢測系統(tǒng)的研究.rar
基于單片機(jī)位移檢測系統(tǒng)的研究,摘 要本文在對單片機(jī)研究的基礎(chǔ)上,以at89s51為核心控制芯片,對位移檢測系統(tǒng)進(jìn)行設(shè)計與改進(jìn),探討以at89s51單片機(jī)構(gòu)成串行鼠標(biāo)的實現(xiàn)方法,介紹鼠標(biāo)編碼器數(shù)據(jù)存取軟件的設(shè)計原理及軟件設(shè)計。考慮到存在的各種干擾對系統(tǒng)的影響,從軟、硬件設(shè)計、仿真技術(shù)三個方面做出了分析。安捷倫(agilent)公司的adns-2051...
該文檔為壓縮文件,包含的文件列表如下:


內(nèi)容介紹
原文檔由會員 91740000 發(fā)布摘 要
本文在對單片機(jī)研究的基礎(chǔ)上,以AT89S51為核心控制芯片,對位移檢測系統(tǒng)進(jìn)行設(shè)計與改進(jìn),探討以AT89S51單片機(jī)構(gòu)成串行鼠標(biāo)的實現(xiàn)方法,介紹鼠標(biāo)編碼器數(shù)據(jù)存取軟件的設(shè)計原理及軟件設(shè)計。考慮到存在的各種干擾對系統(tǒng)的影響,從軟、硬件設(shè)計、仿真技術(shù)三個方面做出了分析。
安捷倫(Agilent)公司的ADNS-2051芯片是一種新推出的高性能的運(yùn)動檢測器件,非常適合應(yīng)用于高精度、高速運(yùn)動的位置檢測場合。借鑒光學(xué)鼠標(biāo)原理,結(jié)合ADNS-2051的功能、特點(diǎn),通過對光學(xué)鼠標(biāo)的改裝來替代位移傳感器在許多場合測試中的應(yīng)用。
光電鼠標(biāo)正交模式相對位移檢測系統(tǒng)的設(shè)計與應(yīng)用,正是采用ADNS-2051為光電鼠標(biāo)設(shè)計的芯片,它是基于光學(xué)導(dǎo)航技術(shù),通過連續(xù)拍攝像,連續(xù)地獲得表面圖像,通過比較,測定位移決定位移方向和大小由DSP處理后產(chǎn)生的X, Y方向位移量狀態(tài)輸出給單片機(jī),單片機(jī)將兩次接收的狀態(tài)進(jìn)行比較,產(chǎn)生位移的大小和方向,并通過顯示、通信過程將待測量數(shù)據(jù)反應(yīng)出來。
關(guān)鍵詞:AT89S51單片機(jī); 鼠標(biāo)圖像處理芯片; 位移檢測
ABSTRACT
Based on the research on singlechips,and using AT89S8051 as the core controlling chip, this thesis focus on the design and improvement of relative position detecting system of photoelectric mouse.It introduce the design principle and method of the program which picks up the data from mouse code.It also provide with aprogram design of serial mouse mouse. Considering the efect from various interferenceson the system, the thesis analyze in software hardware and imitation technology.
ADNS-2051 chip is a new high-performance motion detection device of Agilent, it suitable for high-precision, high-speed movement occasions of the position detection. Learning from the principle of optical mouse combined with the ADNS-2051 features, characteristics, through the modification of the optical mouse sensor to replace the test on many occasions the application of the test functions.
The design and application of the position monitoring system of the photoelectric mouse in a orthographic mode use ADNS-2051 chip. The IAS acquires microscopic surface images. These images are processed by the DSP to determine the direction and distance of motion. The DSP generates the X and Y relative.DSP generated by X, Y direction of displacement data to the single-chip, single-chip will receive the status of the two compared, resulting in the size and direction of displacement, and show that communication process will be reflected in survey data.
KEYWORDS: singlechip-AT89S51; photoelectricmouse; position detection
目 錄
1 緒 論 1
1.1 應(yīng)用背景 1
1.2 選題意義 1
1.3 本文所做的工作 2
2 單片機(jī)系統(tǒng)基本原理和方案選擇 3
2.1 單片機(jī)簡介 3
2.2 AT89S51單片機(jī)特性與邏輯功能 4
2.3 本文用到的管腳說明 4
3 位移檢測方案選擇和系統(tǒng)基本原理 6
3.1概述 6
3.2系統(tǒng)方案 6
3.3光電鼠標(biāo)測位移原理 8
3.4 ADNS-2051鼠標(biāo)芯片的特點(diǎn)和工作原理 10
3.4.1 鼠標(biāo)芯片的分辨率 10
3.4.2 主要功能與特性 11
3.4.3狀態(tài)機(jī)的工作過程 11
3.4.4 引腳介紹 13
3.5 影響分辨率的因素 14
4 位移檢測系統(tǒng)接口電路設(shè)計 16
4.1單片機(jī)晶振、復(fù)位電路 16
4.2電源電路 17
4.3 檢測部分電路 17
4.4 顯示部分電路 18
4.4.1 譯碼器部分簡介 19
4.4.2 數(shù)碼管顯示電路 20
4.5按鍵工作原理 22
4.6串行通信電路的設(shè)計 23
5 位移檢測系統(tǒng)程序設(shè)計 25
5.1開發(fā)語言及編譯軟件 25
5.2 位移檢測部分 25
5.3 數(shù)碼管顯示部分 28
5.4 串行通信部分 28
5.5 系統(tǒng)總體功能簡介 35
結(jié) 論 37
參考文獻(xiàn) 38
致 謝 39
附錄Ⅰ 系統(tǒng)原理圖 40
附錄Ⅱ 程序源代碼 41