RS-232为一种serial.doc_第1页
RS-232为一种serial.doc_第2页
RS-232为一种serial.doc_第3页
RS-232为一种serial.doc_第4页
RS-232为一种serial.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

RS-232簡介:RS-232為一種serial port standard,目前所普遍使用的為RS-232-C,於1969年由EIA(Electronic Industries Association)所制定。在此之前還有RS-232-A與RS-232-B兩個standard,但已經不被使用。目前在PC ( IBM相容或是Mac)上都有符合RS-232-C standard的serial port的蹤跡,就算在有其他serial port如USB、IEEE1394等問世的今日,RS-232-C standard serial port依然在工業領域上佔有重要的地位。RS-232 standard規範內容:1. Electronic/Signal Characteristic:Voltage levels, Signaling rate, Timing, Slew-rate of signals, Voltage withstand level, short-circuit behavior, maximum stray capacitance, cable length.2. Mechanic Characteristic:Pluggable connectors and pin identification.3. Functions of each circuit in the interface connector. 4. Standard subsets of interface circuits for selected telecom applications. RS-232 standard未規範內容:1. Character encoding (for example, ASCII, Baudot or EBCDIC)2. The framing of characters in the data stream (bits per character, start/stop bits, parity) 3. Protocols for error detection or algorithms for data compression.4. Bit rates for transmission, although the standard says it is intended for bit rates lower than 20,000 bits per second. Many modern devices support speeds of 115,200bps and above. 5. Power supply to external devices. DTE & DCE:在溝通上可分為DTE(Data Terminal Equipment)端和DCE(Data Communicating Equipment),DTE端為大多為Terminal(多半為PC),DCE端大多為device(大多為printer, modem等),在DTE端,其pin為male(俗稱公接頭),相反地在DCE端,其pin則為female(俗稱母接頭)。原始的RS-232-C standard定義了22個signal,但其pin數目卻為25,故有3個pin並沒有assign功能。但並不是每個device都會使用到所有的signal,大多都只使用以下的8個signal: Transmitted Data (TxD) Data sent from DTE to DCE. Received Data (RxD) Data sent from DCE to DTE. Request To Send (RTS) Asserted (set to 0) by DTE to prepare DCE to receive data. This may require action on the part of the DCE, e.g. transmitting a carrier or reversing the direction Clear To Send (CTS) Asserted by DCE to acknowledge RTS and allow DTE to transmit. Data Terminal Ready (DTR) Asserted by DTE to indicate that it is ready to be connected. If the DCE is a modem, this may wake up the modem, bringing it out of a power saving mode. This behaviour is seen quite often in modern PSTN and GSM modems. When this signal is de-asserted, the modem may return to its standby mode, immediately hanging up any calls in progress. Data Set Ready (DSR) Asserted by DCE to indicate an active connection. If DCE is not a modem (e.g. a null modem cable or other equipment), this signal should be permanently asserted (set to 0), possibly by a jumper to another signal. Data Carrier Detect (DCD) Asserted by DCE when a connection has been established with remote equipment. Ring Indicator (RI) Asserted by DCE when it detects a ring signal from the telephone line. 故除了標準的25 pin以外,還有9 pin及10 pin等其他規格的接頭,以下為各個pin的示意圖:Male:Female:Data傳輸格式:RS-232-C standard並沒有硬性規定data的傳輸格式(如幾個bits, start/end bit為何等),但業界普遍使用一套規則,以1 bit的”0”(低電位)作為start bit,以1 bit的”1”(高電位)作為stop bit。在兩者之間使用58 bits傳送data,並加上12 bits作為optional。如下圖所示:Baud Rate:Baud rate(俗稱鮑率)為計算傳輸速率的單位,假設baud rate為900,其背後的涵義為900 bits/sec,或是傳輸1 bit需要1/900 sec,在RS-232-C standard中並沒有硬性規定必須要使用多少的baud rate。故許多devices都可以利用選擇訊號來設定所使用的baud rate,選擇信號與baud rate的關係請見下表:選擇信號鮑率(bclk)8倍鮑率(bclkx8)00038400307200001192001536000109600768000114800384001002400192001011200960011060048001113002400心得:本次final project中,有機會擔任小組之組長,由於這次一組動輒十幾個同學,又因為任務的需要分成許多小組,故各小組之前的密集溝通成為重要的工作之一。這次project進行的過程中,與其他小組長/組員、自己的組員和大組長都有許多次的會議,途中有許多想法上的分歧或是溝通上的誤會,都需要許多技巧進行溝通或是說服。除了溝通以外,小組長的另外一個任務就是將小組所分到的工作依照組員的特性進行分派,如何識人、如何將工作切割,在這次的project進行中,也得到了許多技巧與經驗。另外就是如何信任自己的組員,之前有時候在觀念上還是有點不放心,所以經常會去提醒東、提醒西,反而讓自己成為眾矢之的。本次project中我把工作分配下去後,只有在預計的成效check

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论