freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

單片機(jī)與pc串行通信設(shè)計(jì)-文庫吧資料

2024-12-11 23:43本頁面
  

【正文】 ∕50V的電解電容。只要用RS232 D 型 9 針的引 腳的雙邊母頭接到 PC 機(jī)上,而另一頭和 MAX232 相連接, MAX232的輸出再和 AT58S52相連就可以實(shí)現(xiàn)單片機(jī)和 PC機(jī)的串行通信 [1]。 TLC5618的引腳排列如圖 7 所示,各個(gè)引腳的功能如下所述: 圖 7 TLC5618的引腳封裝 ( 1) DIN 數(shù)據(jù)輸入; ( 2) SCLK 串行時(shí)鐘輸入; ( 3) CS 芯片選擇,低電平有效; ( 4) OUTA DACA模擬輸出; 8 ( 5) AGND 模擬地; ( 6) REFIN 基準(zhǔn)電壓輸入; ( 7) OUTB DACB模擬輸出; ( 8) VDD 正電源。 A/D轉(zhuǎn)換芯片 MAX187 MAX187是串行 12位 ADC,+5V電源; ( 2) AIN 模擬量輸入,電壓范圍 0——VREF; ( 3 ) 操作模式選擇 ,低電平為休眠模式,正常操作模式為高電平或懸空,高 電時(shí)使用內(nèi)部參考模式,懸空時(shí)禁止使用內(nèi)部參考; 7 ( 4) REF 參考電壓,接地引腳; ( 6) DOUT 數(shù)據(jù)輸出引腳; ( 7) 片選信號(hào)輸入引腳; ( 8) SCLK 時(shí)鐘信號(hào) 輸入引腳,最高為 5MHz。 系統(tǒng)的硬件詳細(xì)圖如圖 4所示: 4 TXD/ F 圖 4 系統(tǒng)硬件詳細(xì)設(shè)計(jì)圖 AT89S52 AT89S52是低功耗,高性能 CMOS 8位單片機(jī),可反復(fù)擦寫 1000次的 Flash 只讀程序存儲(chǔ)器,兼容標(biāo)準(zhǔn) MCS51 指令系統(tǒng)及 80C51引腳結(jié)構(gòu),其主要特點(diǎn)為: ( 1)、 40個(gè)引腳 DIP 40封裝, 8k Bytes Flash片內(nèi)程序存儲(chǔ)器; ( 2)、 256 bytes的隨機(jī)存取數(shù)據(jù)存儲(chǔ)器( RAM); ( 3)、 5個(gè)中斷優(yōu)先級(jí) 2層中斷嵌套中斷; ( 4)、 2個(gè) 16位可編程定時(shí)計(jì)數(shù)器 ,2個(gè)全雙工串行通信接口。 3 2硬件系統(tǒng)設(shè)計(jì) 硬件電路的設(shè)計(jì)框圖就采用上面我們選擇的方案二的設(shè)計(jì)框圖。 對(duì)比兩種設(shè)計(jì)方案,我選擇方案二來設(shè)計(jì)此系統(tǒng),因?yàn)榉桨付挠布娐繁确桨敢惠^簡單;方案二配上外部的采集電路和相應(yīng)的軟件就可以實(shí) 現(xiàn)各種不同的功能,而方案一只能實(shí)現(xiàn)一種功能;方案二的軟件控制過程也比方案一的較為簡單和直觀,方案二的性能也比方案一的穩(wěn)定,所以選擇方案二來設(shè)計(jì)此系統(tǒng)。 方案二:設(shè)計(jì)的方框圖如圖 2所示: 圖 2 方案二設(shè)計(jì)方框圖 從方案二的設(shè)計(jì)方框圖中可以看出用此方案設(shè)計(jì)的系統(tǒng)由電源電路、數(shù)據(jù)采集放大電路、A/D轉(zhuǎn)換電路、 D/A轉(zhuǎn)換電路、 MAX232串行接口電路、單片機(jī)外圍電路、 LED顯示電路、鍵盤電路等部 分組成。此方案的特點(diǎn)是:硬件電路的實(shí)現(xiàn)相當(dāng)?shù)膹?fù)雜,用到的元器件也較多;而且整個(gè)系統(tǒng)的控制過程用軟件實(shí)現(xiàn)起來也比較的困難。 1 根基設(shè)計(jì)目標(biāo)的要求,此系統(tǒng)可以采用以下兩種設(shè)計(jì)方案來實(shí)現(xiàn)。 該設(shè)計(jì)要求實(shí)現(xiàn): ( 1)、能夠進(jìn)行 D/A轉(zhuǎn)換功能; ( 2)、能夠進(jìn)行 A/D轉(zhuǎn)換功能; ( 3)、設(shè)計(jì)串行通信接口,實(shí)現(xiàn)與 PC機(jī)的通信; ( 4)、具有人機(jī)對(duì)話功能,可通過鍵盤進(jìn)行輸入; ( 5)、 LED顯示器能夠根據(jù)按鍵的輸入進(jìn)行相應(yīng)的顯示; ( 6)、自制 +5V穩(wěn)壓電源。與此同時(shí)在市場上以單片機(jī)為核心控制器的產(chǎn)品更是層出不窮,各種家用電器、智能儀器儀表、醫(yī)療器械、機(jī)電一體化、實(shí)時(shí)工業(yè)控制、交通領(lǐng)域無不用到單片機(jī)。 LED numeral tube display iv 1緒論 自單片機(jī)出現(xiàn)至今,單片機(jī)技術(shù)已走過了近 20年的發(fā)展路程。 A/D transformation。 關(guān)鍵詞:單片機(jī) AT89S52;串行通信; A/D轉(zhuǎn)換; D/A轉(zhuǎn)換; LED數(shù)碼管顯示 iii Abstract It adopts AT89S52 to control the Single Chip microputer system, the whole hardware system is posed of A/D and D/A transformation, LED display, keyboard, serial munication. The design has only pleted part of the exploitation design and has not designed the circuit of external collection and control. Because of having not finished the external collection circuit, the material function of measuring has not been finished, in order to finlsh the material function of measuring such as measuring the pressure, temperature or the moisture, and it should be equiped with external sensor collection circuit and the relevant software. If collection circuit and the relevant software are equiped, it can realize that the metrical results are displayed by numeral tube LED in term of decimal system, including A/D and D/A transformation, it also can be controlled by keystroke, makes the manmachine conversation. The system is mounted by five keystroke, one restoring key, another four keys which can be used to realize different functions under the control of program. The reason why the external collection circuit has not been designed is because that the function of it will be single if it is designed and it will not be convenient to spread the function of the system. Here the whole system can realize serial munication of Single Chip Micyoco and machine PC, the download of programming, the display of the clock which is designed by software. Key words: Microputer AT89S
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1