汽車尾燈控制電路設(shè)計畢業(yè)設(shè)計論文_第1頁
汽車尾燈控制電路設(shè)計畢業(yè)設(shè)計論文_第2頁
汽車尾燈控制電路設(shè)計畢業(yè)設(shè)計論文_第3頁
汽車尾燈控制電路設(shè)計畢業(yè)設(shè)計論文_第4頁
汽車尾燈控制電路設(shè)計畢業(yè)設(shè)計論文_第5頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、1 引言在日新月異的21世紀(jì)里,電子產(chǎn)品得到了迅速發(fā)展。許多電器設(shè)備都趨于人性化、智能化,這些電器設(shè)備大部分都含有CPU控制器或者是單片機(jī)。單片機(jī)以其高可靠性、高性價比、低電壓、低功耗等一系列優(yōu)點,近幾年得到迅猛發(fā)展和大范圍推廣,廣泛應(yīng)用于工業(yè)控制系統(tǒng)、通訊設(shè)備、日常消費類產(chǎn)品和玩具等。并且已經(jīng)深入到工業(yè)生產(chǎn)的各個環(huán)節(jié)以及人民生活的各個方面,如車間流水線控制、自動化系統(tǒng)等、智能型家用電器(冰箱、空調(diào)、彩電)等。用單片機(jī)來控制的小型電器產(chǎn)品具有便攜實用,操作簡單的特點。本文設(shè)計的汽車尾燈控制電路屬于小型智能電子產(chǎn)品。利用單片機(jī)進(jìn)行控制,實時時鐘芯片進(jìn)行記時,外加掉電存儲電路和顯示電路。此設(shè)計具有

2、相當(dāng)重要的現(xiàn)實意義和實用價值。2 系統(tǒng)概述本設(shè)計以AT89S52單片機(jī)為核心,構(gòu)成單片機(jī)控制電路,完成對它們的自動調(diào)整和掉電保護(hù)。人機(jī)接口由四個按鍵來實現(xiàn),用這四個按鍵對汽車左轉(zhuǎn),右轉(zhuǎn),停車和檢測進(jìn)行控制。軟件控制程序?qū)崿F(xiàn)所有的功能。整機(jī)電路使用+5V穩(wěn)壓電源,可穩(wěn)定工作。系統(tǒng)框圖如圖2-1所示,其軟硬件設(shè)計簡單,可廣泛應(yīng)用于長時間工作的系統(tǒng)中。人機(jī)接口顯示電路軟件控制程序電源電路單片機(jī)控制電路圖2-1 系統(tǒng)框圖3 方案選擇 由于汽車尾燈控制電路的種類比較多,因此方案選擇在設(shè)計中是至關(guān)重要的。正確地選擇方案可以減小開發(fā)難度,縮短開發(fā)周期,降低成本,更快地將產(chǎn)品推向市場。3.1 方案1基于AT8

3、9S52單片機(jī)的汽車尾燈控制電路設(shè)計直接用AT89S52單片機(jī)來實現(xiàn)汽車尾燈控制電路設(shè)計。AT89S52是一種帶8K字節(jié)閃爍可編程可擦除只讀存儲器的低電壓,高性能CMOS 8位微處理器,俗稱單片機(jī)。單片機(jī)的可擦除只讀存儲器可以反復(fù)擦寫1000余次。由于將多功能8位CPU和閃爍存儲器組合在單個芯片中,ATMEL的AT89S52是一種高效微控制器,為很多嵌入式控制系統(tǒng)提供了一種靈活性高且價廉的方案。用單片機(jī)來實現(xiàn)汽車尾燈控制電路設(shè)計,無須外接其他芯片,充分利用了單片機(jī)的資源。3.2 方案2基于電子元件的汽車尾燈控制電路設(shè)計 用電子元件接的汽車尾燈控制電路,電路復(fù)雜,接點較多,電路穩(wěn)定性差。 汽車左

4、右和剎車仿真電路開關(guān)控制電路譯碼電路74138顯示驅(qū)動電路記數(shù)電路74161R1R2R3 L1L2L3脈沖產(chǎn)生電路555汽車尾燈控制電路設(shè)計總體框圖4 系統(tǒng)硬件電路的設(shè)計按照系統(tǒng)設(shè)計功能的要求,初步確定設(shè)計系統(tǒng)由主控模塊、鍵盤接口模塊、顯示模塊共3個模塊組成,電路系統(tǒng)構(gòu)成框圖如圖4-1所示。主控芯片使用52系列AT89S52單片機(jī),(89S52)主控模塊時鐘電路鍵掃描電路晶體管顯示存儲電路圖4-1 汽車尾燈控制電路系統(tǒng)構(gòu)成框圖4.1 系統(tǒng)核心部分閃電存儲型器件AT89S524.1.1 AT89S52具有下列主要性能5: ·8KB可改編程序Flash存儲器(可經(jīng)受1000次的寫入/擦除

5、周期) ·全靜態(tài)工作:0Hz24MHz·三級程序存儲器保密·128×8字節(jié)內(nèi)部RAM·32條可編程I/O線·2個16位定時器/計數(shù)器·6個中斷源·可編程串行通道·片內(nèi)時鐘振蕩器4.1.2 AT89S52的引腳及功能AT89S52單片機(jī)的管腳說明如圖4-2所示。圖4-2 AT89S52的管腳(1) 主要電源引腳 VCC 電源端 GND 接地端(2) 外接晶體引腳XTAL1和XTAL2 XTAL1 接外部晶體的一個引腳。在單片機(jī)內(nèi)部,它是構(gòu)成片內(nèi)振蕩器的反相放大器的輸入端。當(dāng)采用外部振蕩器時,該引腳接收振蕩器

6、的信號,既把此信號直接接到內(nèi)部時鐘發(fā)生器的輸入端。 XTAL2 接外部晶體的另一個引腳。在單片機(jī)內(nèi)部,它是上述振蕩器的反相放大器的輸出端。采用外部振蕩器時,此引腳應(yīng)懸浮不連接。(3) 控制或與其它電源復(fù)用引腳RST、ALE/PROG、/PSEN和/EA/VPP RST 復(fù)位輸入端。 當(dāng)振蕩器運行時,在該引腳上出現(xiàn)兩個機(jī)器周期的高電平將使單片機(jī)復(fù)位。 ALE/PROG 當(dāng)訪問外部存儲器時,ALE(地址鎖存允許)的輸出用于鎖存地址的低位字節(jié)。即使不訪問外部存儲器,ALE端仍以不變的頻率(此頻率為振蕩器頻率的1/6)周期性地出現(xiàn)正脈沖信號。因此,它可用作對外輸出的時鐘,或用于定時目的。然而要注意的是

7、:每當(dāng)訪問外部數(shù)據(jù)存儲器時,將跳過一個ALE脈沖。在對Flash存儲器編程期間,該引腳還用于輸入編程脈沖(/PROG)6。 /PSEN 程序存儲允許(/PSEN)輸出是外部程序存儲器的讀選通信號。當(dāng)AT89S52/LV52由外部程序存儲器取指令(或常數(shù))時,每個機(jī)器周期兩次/PSEN有效(既輸出2個脈沖)。但在此期間內(nèi),每當(dāng)訪問外部數(shù)據(jù)存儲器時,這兩次有效的/PSEN信號將不出現(xiàn)。/EA/VPP 外部訪問允許端。要使CPU只訪問外部程序存儲器(地址為0000HFFFFH),則/EA端必須保持低電平(接到GND端)。當(dāng)/EA端保持高電平(接VSS端)時,CPU則執(zhí)行內(nèi)部程序存儲器中的程序。(4)

8、 輸入/輸出引腳 P0.0 P0.7、P1.0P1.7、P2.0 P2.7 和P3.0P3.7P0端口(P0.0 P0.7) P0是一個8位漏極開路型雙向I/O端口。作為輸出口用時,每位能以吸收電流的方式驅(qū)動8個TTL輸入,對端口寫1時,又可作高阻抗輸入端用。P1端口(P1.0 P1.7) P1是一個帶有內(nèi)部上拉電阻的8位雙向I/O端口。P1的輸出緩沖器可驅(qū)動(吸收或輸出電流方式)4個TTL輸入。對端口寫1時,通過內(nèi)部的上拉電阻把端口拉到高電位,這時可用作輸入口。作輸入口時,因為有內(nèi)部的上拉電阻,那些被外部信號拉低的引腳會輸出一個電流。 P2端口 (P2.0P2.7) P2是一個帶有內(nèi)部上拉電

9、阻的8位雙向I/O端口。P2的輸出緩沖器可驅(qū)動(吸收或輸出電流方式)4個TTL輸入。對端口寫1時,通過內(nèi)部的上拉電阻把端口拉到高電位,這時可用作輸入口。P2作輸入口使用時,因為有內(nèi)部的上拉電阻,那些被外部信號拉低的引腳會輸出一個電流。P3端口(P3.0P3.7) P3口管腳是8個帶內(nèi)部上拉電阻的雙向I/O口,可接收輸出4個TTL門電流。當(dāng)P3口寫入“1”后,它們被內(nèi)部上拉為高電平,并用作輸入。作為輸入,由于外部下拉為低電平,P3口將輸出電流,這是由于上拉的緣故。P3口也可作為AT89S52的一些特殊功能,這些特殊功能見表4-17。表4-1 P3端口的特殊功能 端口引腳 兼 用 功 能 P3.0

10、RXD (串行輸入口) P3.1TXD (串行輸出口) P3.2/INT0 (外部中斷0) P3.3/INT1 (外部中斷1) P3.4T0 ( 定時器0的外部輸入) P3.5T1 (定時器1的外部輸入) P3.6/WR (外部數(shù)據(jù)存儲器寫選通) P3.7/RD (外部數(shù)據(jù)存儲器讀選通)4.5 鍵盤電路本設(shè)計共采用按鍵4個,分別與單片機(jī)的P2.0、P2.1、P2.2、P2.3口相連,分別對應(yīng)汽車左轉(zhuǎn),汽車右轉(zhuǎn),剎車和檢測的功能。7 結(jié)論本設(shè)計硬件電路較簡單,所用器件較少,電路中使用了AT89S52單片主要芯片,實現(xiàn)了預(yù)計功能。在對芯片的管腳功能和用法有充分的了解后,根據(jù)設(shè)計要求設(shè)計硬件電路,然

11、后通過軟件編程,用按鍵進(jìn)行控制,用發(fā)光二極管進(jìn)行顯示。汽車尾燈控制電路可以正常顯示汽車的左轉(zhuǎn),右轉(zhuǎn),停車和檢測功能,基本完成了預(yù)期要實現(xiàn)的目標(biāo)。參考文獻(xiàn)1康華光主編,電子技術(shù)基礎(chǔ)(數(shù)字部分),高等教育出版社2標(biāo)準(zhǔn)集成電路數(shù)據(jù)手冊TTL電路,電子工業(yè)出版社致 謝不知不覺,六周的畢業(yè)設(shè)計結(jié)束了。我的畢業(yè)論文已整理完畢,電路調(diào)試進(jìn)展良好。畢業(yè)設(shè)計的完成意味著我的大學(xué)學(xué)習(xí)生活即將結(jié)束,從此我將進(jìn)入一個新的人生旅途、開始一段嶄新的生活工作。在此,我衷心地感謝所有在我做畢業(yè)設(shè)計期間幫助過我的人。 首先我要感謝我的指導(dǎo)老師李杰的大力幫助和支持。在整個設(shè)計過程當(dāng)中,李老師在大局上指導(dǎo)我畢業(yè)設(shè)計的每一進(jìn)程,還在

12、百忙中抽空為我答疑解難,幫我分析講解畢業(yè)設(shè)計中所遇到的問題。不僅如此,李老師還無私的給我提供了豐富的學(xué)習(xí)資源和良好的學(xué)習(xí)環(huán)境,為我的畢業(yè)設(shè)計帶來了很大方便。同時在我完成畢業(yè)設(shè)計的過程中提供了很多指導(dǎo)性的意見,使我受益匪淺。另外,李老師淵博的學(xué)識、嚴(yán)謹(jǐn)?shù)闹螌W(xué)態(tài)度和為人給了我很大的教育,這些將使我終身受益。在此,我衷心感謝李老師給予我的幫助和教育。此外,我還要感謝夏九和李國華同學(xué)給予我的無私的幫助,他們在程序編寫和調(diào)試過程中給予了我莫大的幫助。在此,我真誠地感謝他們。最后,我要感謝我的母校天津工程師范學(xué)院,在校期間,這里給我留下了美好的回憶。特別是在我即將踏上工作崗位的同時,畢業(yè)設(shè)計整個過程給了我

13、這樣一個鍛煉的機(jī)會,使我加深了對以前知識的理解和鞏固,拓寬了知識面,也提高了我對所學(xué)知識的綜合應(yīng)用能力。我要對母校說:母校有我三五載,我愛母校一萬年。祝愿母校的將來更美好!附錄1:汽車尾燈控制電路設(shè)計電路原理圖附錄2 主程序 org 00h ajmp start ORG 001BH ;定時器T1中斷程序入口 LJMP time1 ;跳至INTT1執(zhí)行 org 0030hstart: mov TMOD,#10h mov IE,#88h MOV TH1,#00h MOV TL1,#00h mov r7,#03h; setb TR1turn: jnb p2.0,is_key jnb p2.1,is_

14、key jnb p2.2,is_key jnb p2.3,is_key orl p1,#0ffh;is_key : jb p2.3,no_check; anl p1,#0c0h; jmp turnno_check: jmp turntime1: push acc mov TH1,#010h mov TL1,#00h jb p2.0,left djnz r7,return mov r7,#3 xrl p1,#3fhleft: jb p2.1,right dec r7; cjne r7,#6,next1; mov p1,#0fbhnext1: cjne r7,#3,next2; mov p1,#0

15、fdh;next2: cjne r7,#0,right; mov p1,#0feh mov r7,#9;right: jb p2.2,return dec r7; cjne r7,#6,next11; mov p1,#0f7hnext11: cjne r7,#3,next21; mov p1,#0efh;next21: cjne r7,#0,return; mov p1,#0dfh mov r7,#9;return: pop acc reti end英文資料及中文翻譯6 TRANSMISSIONS OF DIGITAL DATA: INTERFACES AND MODEMS(From Intr

16、oduction to Data Communications and Net Working, Behrouz Forouzan)Once we have encoder our information into a format that can be transmitted, the next step is to investigate the transmission process itself. Information-processing equipment such as PCs generate encoded signals but ordinarily require

17、assistance to transmit those signals over a communication link. For example, a PC generates a digital signal but needs an additional device to modulate a carrier frequency before it is sent over a telephone line. How do we relay encoded data from the generating device to the next device in the proce

18、ss? The answer is a bundle of wires, a sort of mini communication link, called an interface.Because an interface links two devices not necessarily made by the same manufacturer, its characteristics must be defined and standards must be established. Characteristics of an interface include its mechani

19、cal specifications (how many wires are used to transport the signal); its electrical specifications (the frequency, amplitude, and phase of the expected signal); and its functional specifications (if multiple wires are used, what does each one do?). These characteristics are all described by several

20、 popular standards and are incorporated in the physical layer of the OSI model.6.1 DIGITAL DATA TRANSMISSIONOf primary concern when considering the transmission of data from one device to another is the wiring. And of primary concern when considering the wiring is the data stream. Do we send one bit

21、 at a time, or do we group bits into larger groups and, if so, how? The transmission of binary data across a link can be accomplished either in parallel mode or serial mode. In parallel mode, multiple bits are sent with each clock pulse. In serial mode, one bit is sent with each clock pulse. While t

22、here is only one way to send parallel data, there are two subclasses of serial transmission: synchronous and asynchronous (see Figure 6-1).Parallel TransmissionBinary data, consisting of 1s and 0s, may be organized into groups of n bits each. Computers produce and consume data in groups of bits much

23、 as we conceive of and use spoken language in the form of words rather than letters. By grouping, we can send data n bits at a time instead of one. This is called parallel transmission. Data transmissionParallelSerialSynchronousAsynchronousFigure 6-1Data transmission The mechanism for parallel trans

24、mission is a conceptually simple one: use n wires to send n bits at one time. That way each bit has its own wire, and all n bits of one group can be transmitted with each clock pulse from one device to another. Figure 6-2 shows how parallel transmission works for n=8.Typically the eight wires are bu

25、ndled in a cable with a connector at each end.Sender ReceiverWe need eight liness8 bit synchronouslyFigure 6-2Parallel transmissionThe advantage of parallel transmission is speed. All else being equal, parallel transmission can increase the transfer speed by a factor of n over serial transmission. B

26、ut there is a significant disadvantage: cost. Parallel transmission requires n communication lines (wires in the example) just to transmit the data stream. Because this is expensive, parallel transmission is usually limited to short distances, up to a maximum of say 25 feet.Serial TransmissionIn ser

27、ial transmission one bit follows another, so we need only one communication channel rather than n to transmit data between two communicating devices .The advantage of serial over parallel transmission is that with only one communication channel, serial transmission reduces the cost of transmission o

28、ver parallel by roughly a factor of n.Since communication within devices is parallel, conversion devices are required at the interface between the sender and the line (parallel-to-parallel).Serial transmission occurs in one of two ways: asynchronous or synchronous.Asynchronous TransmissionAsynchrono

29、us transmission is so named because the timing of a signal is unimportant. Instead, information is received and translated by agreed-upon patterns. As long as those patterns are followed, the receiving device can retrieve the information without regard to the rhythm in which it is sent. Patterns are

30、 based on grouping the bit stream into bytes. Each group, usually eight bits, is sent along the link as a unit. The sending system handles each group independently, relaying it to the link whenever ready, without regard to a timer. Without a synchronizing pulse, the receiver cannot use timing to pre

31、dict when the next group will arrive. To alert the receiver to the arrival of a new group, therefore, an extra bit is added to the beginning of each byte. This bit, usually a 0, is called the start bit. To let the receiver know that the byte is finished, one or more additional bits are appended to t

32、he end of the byte. These bits, usually 1s, are called stop bits. By this method, each byte is increased in size to at least 10 bits, of which 8 are information and 2 or more are signals to the receiver. In addition, the transmission of each byte may then be followed by a gap of varying duration. Th

33、is gap can be represented either by an idle channel or by a stream of additional stop bits.In asynchronous transmission we send one start bit (0) at the beginning and one or more stop bits (1s) at the end of each byte. There may be a gap between each byte. The start and stop bits and the gap alert t

34、he receiver to the beginning and end of each byte and allow it to synchronize with the data stream. This mechanism is called asynchronous because, at the byte level, sender and receiver do not have to be synchronized. But within each byte, the receiver must still be synchronized with the incoming bi

35、t stream. This is, some synchronization is required, but only for the duration of a single byte. The receiving device resynchronizes at the onset of each new byte. When the receiver detects a start bit, it sets a timer and begins counting bits as they come in. after n bits the receiver looks for a s

36、top bit. As soon as it detects the stop bit, it ignores any received pulses until it detects the next start bit.Asynchronous here means “asynchronous at the byte level,” but the bits are still synchronized; their durations are the same.The addition of stop and start bits and the insertion of gaps in

37、to the bit stream make asynchronous transmission slower than forms of transmission that can operate without the addition of control information. But it is cheap and effective, two advantages that make it an attractive choice for situations like low-speed communication. For example, the connection of

38、 a terminal to a computer is a natural application for asynchronous transmission. A user types only one character at a time, types extremely slowly in data processing terms, and leaves unpredictable gaps of time between each character.Synchronous TransmissionIn synchronous transmission, the bit stre

39、am is combined into longer “frames,” which may contain multiple bytes. Each byte, however, is introduced onto the transmission link without a gap between it and the next one. It is left to the receiver to separate the bit stream into bytes for decoding purposes. In other words, data are transmitted

40、as an unbroken string of 1s and 0s, and the receiver separates that string into the bytes, or characters, it needs to reconstruct the information.In synchronous transmission we send bits one after another without start/stop bits or gaps. It is the responsibility of the receiver to group the bits.Wit

41、hout gaps and start/stop bits, there is no built-in mechanism to help the receiving device adjust its bit synchronization in midstream. Timing becomes very important, therefore, because the accuracy of the received information is completely dependent on the ability of the receiving device to keep an

42、 accurate count of the bits as they come in. The advantage of synchronous transmission is speed. With no extra bits or gaps to introduce at the sending end and remove at the receiving end and, by extension, with fewer bits to move across the link, synchronous transmission is faster than asynchronous

43、 transmission is faster than asynchronous transmission. For this reason, it is more useful for high-speed applications like the transmission of data from one computer to another. Byte synchronization is accomplished in the data link layer.6.2 DTE-DCE INTERFACAt this point we must clarify two terms i

44、mportant to computer networking: data terminal equipment (DTE). There are usually four basic functional units involved in the communication of data: a DTE and DCE on one end and a DCE and DTE on the other end. The DTE generates the data and passes them, along with any necessary control characters, t

45、o a DCE. The DCE does the job of converting the signal to a format appropriate to the transmission medium and introducing it onto the network link. When the signal arrives at the receiving end, this process is reversed.Data Terminal Equipment (DTE)Data terminal equipment (DTE) includes any unit that

46、 functions either as a source of or as a destination for binary digital data. At the physical layer, if can be a terminal, microcomputer, computer, printer, fax machine, or any other device that generates or consumes digital data. DTEs do not often communicate directly with one another, they generat

47、e and consume information but need an intermediary to be able to communicate. Think of a DTE as operating the way your brain does when you talk. Lets say you have an idea that you want to communicate to a friend. Your brain creates the idea but cannot transmit that idea to your friends brain by itse

48、lf. Unfortunately or fortunately, we are not a species of mind readers. Instead, your brain passes the idea to your vocal chords and mouth, which convert it to sound waves that can travel through the air or over a telephone line to your friends ear and from there to his or her brain, where it is con

49、verted back into information. In this model, your brain and your friends brain are DTEs. Your vocal chords and mouth are your DCE. His or her ear is also a DCE. The air or telephone wire is your transmission medium.A DTE is any device that is a source of or destination for binary digital data.Data C

50、ircuit-Terminating Equipment (DCE)Data circuit-terminating equipment (DCE) includes any functional unit that transmits or receives data in the form of an analog or digital signal through a network. At the physical layer, a DCE takes data generated by a DTE, converts them to an appropriate signal, an

51、d then introduces the signal onto the telecommunication link. Commonly used DCEs at this layer include modems . In any network, a DTE generates digital data and passes it to a DCE; the DCE converts the data to a form acceptable to the transmission medium and sends the converted signal to another DCE

52、 on the network. The second DCE takes the signal off the line, converts it to a form usable by its DTE, and delivers it. To make this communication possible, both the sending and receiving DCEs must use the same encoding method, much the way that if you want to communicate to someone who understands

53、 only Japanese, you must speak Japanese. The two DTEs do not need to be coordinated with each other, but each of them must be coordinated with its own DCE and the DCEs must be coordinated so that data translation occurs without loss of integrity.A DCE is any device that transmits or receives data in

54、 the form of an analog or digital signal through a network.6 數(shù)字?jǐn)?shù)據(jù)傳輸:接口和調(diào)制解調(diào)器(選自«數(shù)據(jù)通信與網(wǎng)絡(luò)», Behrouz Forouzan著)我們將信息編碼成可以傳輸?shù)母袷?,下一步就是探討傳輸過程了。信息處理設(shè)備如個人計算機(jī)能生成編碼信號,通常還需要其它設(shè)備協(xié)助才能將這些信號在通信鏈路上傳輸。例如一臺PC機(jī)產(chǎn)生數(shù)字信號,在將信號通過電話線發(fā)送之前,還需要一臺附加設(shè)備來調(diào)制載波頻率。在這過程中,我們怎樣才能把數(shù)據(jù)從產(chǎn)生它的設(shè)備傳送到下一個設(shè)備呢?解決辦法是使用一捆導(dǎo)線,成為一種為通信鏈路,或叫接口。因為

55、接口連接的兩個設(shè)備有可能不是一個廠家生產(chǎn)的,所以必須規(guī)定接口的特性并建立標(biāo)準(zhǔn)。接口特性包括機(jī)械規(guī)范(使用多少條導(dǎo)線來傳輸信號)、電氣規(guī)范(預(yù)期信號的頻率、振幅和相位)以及功能規(guī)范(如果使用多條導(dǎo)線,每條導(dǎo)線的功能是什么?)。這些特性在一些常用標(biāo)準(zhǔn)中都有描述并且被集成到了OSI7層模型的物理層中。6.1數(shù)字?jǐn)?shù)據(jù)傳輸數(shù)據(jù)傳輸并行傳輸串行傳輸同步傳輸異步傳輸從一個設(shè)備向另一個設(shè)備發(fā)送數(shù)據(jù)主要考慮的是配線方式。對于配線問題主要考慮的因素是數(shù)據(jù)流。我們是否一次只發(fā)送一個比特,或是將比特成組發(fā)送以及如何成組?通過鏈路傳輸二進(jìn)制數(shù)據(jù)可以采用并行模式或串行模式。在并行模式中,在每個時鐘脈沖到來時多個比特被同時

56、發(fā)送。在串行模式中,每個時鐘脈沖只發(fā)送一個比特。盡管只有一種發(fā)送并行數(shù)據(jù)的方法,串行傳輸卻有兩個子類:同步方式和異步方式(參見圖6-1)。 圖6-1 數(shù)據(jù)傳輸 并行傳輸由0和1組成的二進(jìn)制值可以組成n比特的位組。計算機(jī)使用和生成以比特為單位的數(shù)據(jù),就像我們在英語會話時用詞而不是一個個的字母來交流一樣。通過分組,我們可以一次發(fā)送n個比特而不是一個比特。這稱為并行傳輸。從概念上說,并行傳輸?shù)臋C(jī)制很簡單:一次使用n條導(dǎo)線來傳輸n個比特。這種方式下,每個比特都使用專門的線路,而一組中的n個比特就可以在每個時鐘脈沖從一個設(shè)備傳輸?shù)搅硪粋€設(shè)備。圖6-2顯示了n=8時并行傳輸?shù)墓ぷ鳡顩r。通常八根導(dǎo)線被捆成一根電纜,兩端都有連接頭。8個比特一起發(fā)送 接收方需要8條線s發(fā)送方 圖6-2 并行傳輸并行傳輸?shù)膬?yōu)勢在于速度。當(dāng)其它因素相同時,并行傳輸將比串行傳輸?shù)乃俣瓤?/p>

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論