[學(xué)習(xí)要求] 掌握MCS-51單片機(jī)的基本應(yīng)用。[重點(diǎn)與難點(diǎn)]重點(diǎn):動(dòng)態(tài)掃描LED顯示電路編程范例;定時(shí)/計(jì)數(shù)器軟件編程范例;A/D接口電路;矩陣式鍵盤(pán)接口技術(shù)及編程。難點(diǎn):動(dòng)態(tài)掃描LED顯示電路編程范例;定時(shí)/計(jì)數(shù)器軟件編程范例。[理論內(nèi)容]一、并行I/O口編程范例單片機(jī)I/O的應(yīng)用最典型的是通過(guò)I/O口與7段LED數(shù)碼管構(gòu)成顯示電路,下面從常用的LED顯示原理開(kāi)始,詳盡講解利用單片機(jī)驅(qū)動(dòng)LED數(shù)碼管的電路及編程原理,目的在于通過(guò)這一編程范例,讓初學(xué)者了解I/O口的編程原理,意在起舉一反三,拋磚引玉的作用。LED的發(fā)光原理,稍有電子技術(shù)基礎(chǔ)的人士都很清楚,這里不想作過(guò)多的介紹,7段LED數(shù)碼管,則在一定形狀的絕緣材料上,利用單只LED組合排列成“8”字型的數(shù)碼管,分別引出它們的電極,點(diǎn)亮相應(yīng)的點(diǎn)劃來(lái)顯示出0-9的數(shù)字。LED數(shù)碼管根據(jù)LED的接法不同分為共陰和共陽(yáng)兩類(lèi),了解LED的這些特性,對(duì)編程是很重要的,因?yàn)椴煌?lèi)型的數(shù)碼管,除了它們的硬件電路有差異外,編程方法也是不同的。圖1是共陰和共陽(yáng)極數(shù)碼管的內(nèi)部電路,它們的發(fā)光原理是一樣的,只是它們的電源極性不同而已。
標(biāo)簽: MCS 51 單片機(jī) 編程應(yīng)用
上傳時(shí)間: 2013-10-19
上傳用戶(hù):linlin
RS-485的傳輸線如何合理屏蔽為了減少電磁耦合,防止大的共模干擾損壞器件,傳輸線最好加屏蔽。屏蔽接法如下,其中電容為幾μF。
上傳時(shí)間: 2013-10-15
上傳用戶(hù):momofiona
好
上傳時(shí)間: 2013-10-21
上傳用戶(hù):qiaoyue
針對(duì)太浦閘監(jiān)控系統(tǒng)現(xiàn)場(chǎng)控制單元現(xiàn)場(chǎng)總線通信網(wǎng)絡(luò)存在的問(wèn)題,根據(jù)現(xiàn)場(chǎng)勘測(cè)分析,得出可能導(dǎo)致此問(wèn)題的原因有:網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)不合理、總線特性阻抗的連續(xù)性不好、系統(tǒng)保護(hù)措施不夠,提出了采用RS485 集線器來(lái)實(shí)現(xiàn)星型接法,使網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)合理,并通過(guò)其光電隔離的防雷的功能,加強(qiáng)系統(tǒng)的保護(hù),同時(shí)在總線的終端串接電阻來(lái)改善總線特性阻抗的連續(xù)性,對(duì)原有現(xiàn)場(chǎng)總線通信網(wǎng)絡(luò)進(jìn)行改造。改造后系統(tǒng)運(yùn)行穩(wěn)定可靠,效果良好。
標(biāo)簽: 監(jiān)控系統(tǒng) 現(xiàn)場(chǎng)總線 可靠性研究 通信網(wǎng)絡(luò)
上傳時(shí)間: 2013-10-16
上傳用戶(hù):agent
接近開(kāi)關(guān)的各種接法
標(biāo)簽: 開(kāi)關(guān) 接線圖
上傳時(shí)間: 2013-11-03
上傳用戶(hù):leawon947
Single-Ended and Differential S-Parameters Differential circuits have been important incommunication systems for many years. In the past,differential communication circuits operated at lowfrequencies, where they could be designed andanalyzed using lumped-element models andtechniques. With the frequency of operationincreasing beyond 1GHz, and above 1Gbps fordigital communications, this lumped-elementapproach is no longer valid, because the physicalsize of the circuit approaches the size of awavelength.Distributed models and analysis techniques are nowused instead of lumped-element techniques.Scattering parameters, or S-parameters, have beendeveloped for this purpose [1]. These S-parametersare defined for single-ended networks. S-parameterscan be used to describe differential networks, but astrict definition was not developed until Bockelmanand others addressed this issue [2]. Bockelman’swork also included a study on how to adapt single-ended S-parameters for use with differential circuits[2]. This adaptation, called “mixed-mode S-parameters,” addresses differential and common-mode operation, as well as the conversion betweenthe two modes of operation.This application note will explain the use of single-ended and mixed-mode S-parameters, and the basicconcepts of microwave measurement calibration.
上傳時(shí)間: 2014-03-25
上傳用戶(hù):yyyyyyyyyy
常用的一些家電接法
上傳時(shí)間: 2013-11-02
上傳用戶(hù):gaoliangncepu
接口技術(shù)作用下的MAX232連接方式,以及232中文資料
上傳時(shí)間: 2013-11-02
上傳用戶(hù):bibirnovis
點(diǎn)陣圖形液晶驅(qū)動(dòng)程序,采用模擬時(shí)序接法和編程.全面的程序。
標(biāo)簽: 點(diǎn)陣圖形 液晶驅(qū)動(dòng) 程序
上傳時(shí)間: 2015-04-09
上傳用戶(hù):jkhjkh1982
在LCD上顯示一幅圖,是“我的電腦,我的文檔”。IC用PIC16F877A,晶振4MHZ,采用并行8線,LCD:TS12864-3,接法在程序中有定義,只要將此程序COPY到你的PICC里編譯下載后,在目標(biāo)板上即可以看到圖畫(huà)了!
標(biāo)簽: LCD
上傳時(shí)間: 2015-04-30
上傳用戶(hù):wff
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1