1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.

Slides:



Advertisements
Similar presentations
DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
Advertisements

Data Communication Topics to be discussed:  Data Communication Terminology.  Data Transmission Signals.  Data Transmission Circuits.  Serial & Parallel.
Chapter 4 Making Connections. 2 Introduction  Examine the interface between a computer and a device. This interface occurs at the physical layer.  Connecting.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
Chapter 3 - Transmission Media Basic Idea Transmission media Copper wires Glass fibers Radio Microwave Infrared Laser Choosing a medium Media in use at.
RS-232 Communications. Why Serial Communications? Serial communication is the most simplistic form of communication between two devices. It’s pretty intuitive.
Transmission of Digital Data: Interfaces and Modems NETE 0510 Dr.Apichan Kanjanavapastit.
Data Communications and Computer Networks: A Business User’s Approach
1 Chapter Four Making Connections. 2 Introduction Connecting peripheral devices to a computer has, in the past, been a fairly challenging task Newer interfaces.
1 Rick Graziani Local Asynchronous Communications (RS-232)
CS335 Networking & Network Administration Tuesday, April 6.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
Computer Networks and Internets, 5e By Douglas E. Comer
COMP3221: Microprocessors and Embedded Systems
EET Advanced Digital Chapter 21 Serial Ports.
1 Fall 2005 Long Distance Communication Carriers, Modulation, And Modems Qutaibah Malluhi Computer Science and Engineering Qatar University.
Data Communications Chapter 6 The Data Communications Interface.
Alogrithm Analysis 實踐資管 Wang-Jiunn Cheng 2004 Computer Networks (CS422) Douglas Comer Computer Science Department Purdue University West Lafayette, IN.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Local Asynchronous Communication
12 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Interfaces Transmission of data from the source to a device or from a device to the destination.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
1 Chapter 4-6 Signals, Media, And Data Transmission.
1 Long-Distance Communication. 2 Illustration of a Carrier Carrier –Usually a sine wave –Oscillates continuously –Frequency of carrier fixed.
Data Transmission The basics of media, signals, bits, carries, and modems (Part I)
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
1 Ch 5 Local Asynchronous Communication (RS-232).
Data Communications Introduction and Review. Transmission Media Copper Wires Copper Wires Low resistance. Electrical signal produces miniature radio station.
Line Coding, Modem, RS232 interfacing sequences.
Universal Asynchronous Receiver/Transmitter (UART)
Serial Communications
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.
Day 7 Connections. Standards Unless we had connection standards nothing would be interchangeable. –There would be different printers for Macs and Windows.
CSC 335 Data Communications and Networking
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
1 Transmission of Digital Data : Interface and Modems.
Lecture 2 Physical Layer Standards. DTE-DCE INTERFACE Two terms are important in computer networking: – Data terminal equipment(DTE) – Data circuit-terminating.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
FUNDAMENTALS OF NETWORKING
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
CSI 4118Fall Part 1.1 Signals, Media, And Data Transmission.
1 Business Telecommunications Data and Computer Communications Chapter 6 The Data Communications Interface.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
COMPUTER NETWORKS Lecture-3 Husnain Sherazi. Review Lecture 2  Resource Sharing  Growth of the Internet – Linear Scale – Log Scale  Tools for Probing.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
COMPUTER NETWORKS CS610 Lecture-3 Hammad Khalid Khan.
William Stallings Data and Computer Communications
RS-232 Communications.
Serial Communications
RS-232 Communications.
Pemrosesan Data Tersebar
Local Asynchronous Communication (RS-232)
Signals, Media, And Data Transmission
Signals, Media, And Data Transmission
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
William Stallings Data and Computer Communications
Presentation transcript:

1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University

2 Bit-wise data transmission  Data transmission requires: –Encoding bits as energy –Transmitting energy through medium –Decoding energy back into bits  Energy can be electric current, radio, infrared, light  Transmitter and receiver must agree on encoding scheme and transmission timing

3 Using Electric Current to Send Data  Simple idea - use varying voltages to represent 1s and 0s  One common encoding use negative voltage for 1 and positive voltage for 0  In following figure, transmitter puts positive voltage on line for 0 and negative voltage on line for 1

4 Encoding Details and Standards  Encoding scheme must specify the details. For example: –How long will voltage last for each bit? –How soon will next bit start? –How will the transmitter and receiver agree on timing?  All details specified by standards  Allow interoperability of devices adhering to the standard  Several organizations produce networking standards »International Telecommunications Union (ITU) »Electronic Industries Association (EIA) »Institute for Electrical and Electronics Engineers (IEEE)

5 Types of Data Transmission

6 Parallel versus Serial Transmission Parallel Serial

7 Asynchronous Communication  Asynchronous and synchronous communications  In broad sense, communication may be called asynchronous if transmitter and receiver do not explicitly coordinate before each data transmission –Sender can wait arbitrarily long between transmissions. Sends when data becomes ready –Used, for example, when sender may not always have data ready to send (E.g., keyboard, mouse) –Receiver does not know when a character will arrive. May wait forever  In more technical sense, Asynchronous may also mean no explicit information about where individual data bits begin and end

8 Asynchronous Vs. Synchronous  Synchronous: –May use a separate clock signal to indicate duration of bits.  Asynchronous –How do we know beginning of a bit and the ending of it? –One way to ensure meaningful exchange »Sender and receiver agree on bit duration »Start bit before character »One or more stop bits after character »1s when idle Line idle Clock Data e.g., Ch1 Ch2 Ch3 Idle

9 Asynchronous Transmission

10 The RS-232C Standard  Standard specified by EIA  For transfer of characters across copper wire  Full name is RS-232-C common name is RS-232  Defines serial, asynchronous communication –Serial - bits are encoded and transmitted one at a time (as opposed to parallel transmission) –Asynchronous - characters can be sent at any time and bits are not individually synchronized

11 More Details about RS-232  Components of standard: –Data represented by voltage between +15 and –15 –Cable limited to ~50 feet –25-pin connector, with specific signals such as data, ground and control assigned to designated pins –Specifies transmission of characters between, e.g., a terminal and a modem  Transmitter never leaves wire at 0v; when idle, transmitter puts negative voltage (a 1) on the wire

12 RS-232 Character Transmission  Transmitter indicates start of next character by transmitting a zero –Receiver can detect transition as start of character –Extra zero called the start bit  Transmitter must leave wire idle so receiver can detect transition marking beginning of next character –Transmitter sends a one after each character –Extra one called the stop bit  Thus, character represented by 7 data bits requires transmission of 9 bits across the wire RS-232 terminology: MARK is a negative voltage (== 1) SPACE is a positive voltage (== 0)

13 Duration of a Bit  Transmitter and receiver must agree on timing of each bit  Agreement accomplished by choosing transmission rate –Measured in bits per second –Detection of start bit indicates to receiver when subsequent bits will arrive  Hardware can usually be configured to select matching bit rates –Switch settings –Software –Autodetection

14 Bit Rate And Baud Rate  Baud rate measures number of signal changes per second  Bits per second measures number of bits transmitted per second  In RS-232, each signal change represents one bit, so baud rate and bits per second are equal  If each signal change represents more than one bit, bits per second may be greater than baud rate –Bit rate = Baud rate * the number of bits represented by each signal unit –Example: An analog signal carries 4 bits in each signal change. If 1000 signal changes are sent per second, then baud rate = 1000 bauds per second, bit rate = 1000 * 4 = 4000 bps

15 Character Framing  Start and stop bits represent framing of each character  If transmitter and receiver are using different speeds, stop bit will not be received at the expected time  Problem is called a framing error  RS-232 devices may send an intentional framing error called a BREAK –E.g., ASCII keyboard BREAK key –Deliberately create a framing error. Applications noticing a framing error as a request to abort

16 Full-Duplex Communication  Simultaneous two-way communication  Requires each side to have transmitter and receiver  Requires an electrical path in each direction  Transmitter on one side connected to receiver on other  Separate wires needed to carry current in each direction  Common ground wire

17 DB-25 Connection Standard  RS-232 specifies use of 25 pin connector (DB-25)  Pins are assigned for use as data, ground and control: –Pin 2 - Receive (RxD) –Pin 3 - Transmit (TxD) –Pin 4 - Ready to send (RTS) –Pin 5 - Clear to send (CTS) –Pin 7 – Ground  Commonly DB-9 is used.

Swap  Cable must cross-over wires to connect pins 2 and 3 on receiver and transmitter  RS-232 specifies that modems (DTE) transmit on pin 2 and receive on pin 3, while computers (DCE) transmit on pin 3 and receive on pin 2 –DTE: Data Terminal Equipment (modem) –DCE: Data Computer Equipment (computer)  To connect two DCEs (Computers), RS-232 cables between two computers must have 2-3 swap –Also called null modem cable  To connect DCE to DTE, use a straight through cable –Standard modem cable

19 Electric Transmission  In real world –Electric energy dissipates as it travels along –Wires have resistance, capacitance, and inductance which distort signals –Magnetic or electrical interference distorts signals –Distortion can result in loss or misinterpretation

20 Distorted Signal For A Single Bit  In practice –Distortion can be much worse than illustrated

21 Consequences  RS-232 hardware must handle minor distortions –Take multiple samples per bit –Tolerate less than full voltage  Can not use electrical current for long-distance transmission –Use carrier signals

22 Newer Standards  USB (Universal Serial Bus) –Hot pluggable –Device powered by bus –Upto 12 Mbps –Newer USB2 speed is 480 Mbps  Firewire: a high speed serial bus –400/800 Mbps

23 Conclusions  Asynchronous communication - data can start at any time; individual bits not delineated  RS EIA standard for asynchronous character transmission  Bit rate and baud rate  Bandwidth limits maximum data transmission rate  Newer standards such as USB and Firewire are replacing the role of RS 232 in PCs