Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

Similar documents
CPSC Network Programming. How do computers really communicate?

BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

Chapter 4 Digital Transmission 4.1

Chapter 12: Digital Modulation and Modems

Data Communication and Media

Communication Limits. Goals. Parity. RS-232 Format

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Alex C. Snoeren

Unbounded Transmission Media

Chapter 4 Digital Transmission 4.1

Lecture 3: Modulation & Clock Recovery. CSE 123: Computer Networks Stefan Savage

Module 3: Physical Layer

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

Electronics / Water analogy. Resistor. Inductance. Capacitor. Water Electronics Energy - Energy Pressure - Voltage Flow - Current Volume - Charge

COMP467. Local Asynchronous Communication. Goals. Data is usually sent over a single channel one bit at a time.

ROM/UDF CPU I/O I/O I/O RAM

IST 220 Exam 1 Notes Prepared by Dan Veltri

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

Chapter Two. Fundamentals of Data and Signals. Data Communications and Computer Networks: A Business User's Approach Seventh Edition

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Data Communications and Networks

ECT-215 Homework #1 Solution Set Chapter 14 Problems 1-29

Data Communication (CS601)

King Fahd University of Petroleum & Minerals Computer Engineering Dept

Data and Computer Communications. Chapter 3 Data Transmission

Serial Communications RS232, RS485, RS422

9600 bps, Dual Modem 170 Card Private Wire Only

Data Communications & Computer Networks

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals

Fundamentals of Data and Signals

Design and FPGA Implementation of a High Speed UART. Sonali Dhage, Manali Patil,Navnath Temgire,Pushkar Vaity, Sangeeta Parshionikar

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

Digital Transmission

Chapter 3. Data Transmission

Concept of Serial Communication

Physical Layer. Networks: Physical Layer 1

Chapter 3 Data and Signals

Design and Simulation of Universal Asynchronous Receiver Transmitter on Field Programmable Gate Array Using VHDL

9.4. Synchronization:

Lecture 5 Transmission. Physical and Datalink Layers: 3 Lectures

DEFINITIONS AND FUNDAMENTAL PRINCIPLES IDC

Data Communication. Chapter 3 Data Transmission

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

M9606. FSK Modem. 5C Communications Inc.

Channel Concepts CS 571 Fall Kenneth L. Calvert

Data and Computer Communications Chapter 3 Data Transmission

Basic Concepts in Data Transmission

Physical Layer: Outline

B.E SEMESTER: 4 INFORMATION TECHNOLOGY

CS601 Data Communication Solved Objective For Midterm Exam Preparation

Lecture 5 Transmission

Assignment 1: Solutions to Problems on Direct Sequence Spread Spectrum

DATA COMMUNICATION. Channel and Noise

The Physical Layer Outline

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

ECE 4510/5530 Microcontroller Applications Week 6 Lab 5

Course 2: Channels 1 1

Chapter 3 Digital Transmission Fundamentals

Lecture 2 Physical Layer - Data Transmission

Outline / Wireless Networks and Applications Lecture 3: Physical Layer Signals, Modulation, Multiplexing. Cartoon View 1 A Wave of Energy

PART 4 DIGITAL METHODS. Chapter 13 Digital Fundamentals. Parallel Data Transfer. Fig Parallel data handshaking

DigiPoints Volume 1. Student Workbook. Module 2 Modem Overview

Data Communications Computer Eng. 3 rd class course Lecturer : Hamid Mousa

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

Chapter 2. Physical Layer

Lecture 3: Data Transmission

Part II Data Communications

Data transmission - Transmission modes

ANALOG AND DIGITAL PHYSICAL INTERFACES

Announcements : Wireless Networks Lecture 3: Physical Layer. Bird s Eye View. Outline. Page 1

CSE 123: Computer Networks Alex C. Snoeren. Project 1 out Today, due 10/26!

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

Physical Layer. Networked Systems (H) Lecture 3

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Lecture Fundamentals of Data and signals

DATA TRANSMISSION. ermtiong. ermtiong

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

CS307 Data Communication

Encoding and Framing

Chapter 2: Fundamentals of Data and Signals

Announcement : Wireless Networks Lecture 3: Physical Layer. A Reminder about Prerequisites. Outline. Page 1

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

CHAPTER 2. Instructor: Mr. Abhijit Parmar Course: Mobile Computing and Wireless Communication ( )

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

Lecture #3 RS232 & 485 protocols

CHAPTER 5 TRANSMISSION OF DIGITAL DATA INTERFACES & MODEMS

Digital Transmission

COMPUTER COMMUNICATION AND NETWORKS ENCODING TECHNIQUES

Cable Testing TELECOMMUNICATIONS AND NETWORKING

E-716-A Mobile Communications Systems. Lecture #2 Basic Concepts of Wireless Transmission (p1) Instructor: Dr. Ahmad El-Banna

EIA-232 Information. DTE Signal Direction. DCE Signal Direction. Signal EIA

Digital to Digital Encoding

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

Chapter 3 Data Transmission COSC 3213 Summer 2003

96M0374. Instruction Manual. Analog Sensor Controller. RD Series

Chapter 3 Data and Signals 3.1

Transcription:

Local Asynchronous Communication By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

Bitwise 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, smell, etc. Transmitter and receiver must agree on encoding scheme and transmission timing

Asynchronous Transmission One definition of asynchronous: transmitter and receiver do not explicitly coordinate each data transmission Transmitter can wait arbitrarily long between transmissions Used, for example, when transmitter such as a keyboard may not always have data ready to send Asynchronous may also mean no explicit information about where data bits begin and end E.g. when we send individual ASCII characters

Using Electric Current to Send Bits 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

Transmission Timing Problems Encoding scheme leaves several questions unanswered: How long will voltage last for each bit? How soon will next bit start? How will the transmitter and receiver agree on timing? Later : Self clocking codes (e.g. Manchester Encoding) Standards specify operation of communication systems Devices from different vendors that adhere to the standard can interoperate Example organizations: International Telecommunications Union (ITU) Electronic Industries Association (EIA) Institute for Electrical and Electronics Engineers (IEEE)

RS 232 Standard for transfer of characters across copper wire Produced by EIA Full name is RS 232 C 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

Details of RS 232 Components of standard: Connection must be less than 50 feet Data represented by voltages between +15v and 15v 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

Identifying asynchronous characters Transmitter indicates start of next character by transmitting a one Receiver can detect transition as start of character Extra one called the start bit Transmitter must leave wire idle so receiver can detect transition marking beginning of next character Transmitter sends a zero after each character Extra zero call the stop bit Thus, character represented by 7 data bits requires transmission of 9 bits across the wire

Start, Stop Bits Typically one of the data bits might be a parity bit (7N1, 8E1)

Timing 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

Transmission Rates 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 This is the case with modems nowadays! More on this when we look at modulation

Framing Start and stop bits represent framing of each character If transmitter and reciver 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

Duplex Two endpoints may send data simultaneously full duplex communication Requires an electrical path in each direction If only one endpoint may send data half duplex communications or simplex Pin 2 Receive (RxD) Pin 3 Transmit (TxD) Pin 4 Ready to send (RTS) Pin 5 Clear to send (CTS) Pin 7 Ground

Limitations on Transmission Limitations on wires makes waveforms look like: Longer wire, external interference may make signal look even worse RS 232 standard specifies how precise a waveform the transmitter must generate, and how tolerant the receiver must be of imprecise waveform

Channel Capacity Data rate In bits per second Rate at which data can be communicated Bandwidth In cycles per second, or Hertz Amount of bandwidth constrained by transmitter and medium (and the feds!) For digital data: Want as high a data rate as possible given some slice of bandwidth! Limited by the error rate

Nyquist Bandwidth(1) If the rate of signal transmission is 2B then a signal with frequencies no greater than B is sufficient to carry the signal rate Converse: Given a bandwidth of B, the highest signal rate that can be carried is 2B Ex: Given 3000Hz (typical on phone lines), the capacity C of the channel is : C=2B = 6000bps

Nyquist Bandwidth(2) Wait! But given about 3000Hz our modems go much faster than 6000bps. How? The previous capacity assumes a binary signal element. If a signal element can represent more than one bit, the formulation becomes: C=2B(log 2 M) ; M = # of signal elements If M=32, we get C=30,000bps

Shannon s Capacity Shannon s capacity includes the concept of error rates. At a given noise level, the higher the data rate, the higher the error rate. This is a theoretical maximum! Signal to Noise Ratio: SNR = SignalPower/NoisePower Ratio measured at the receiver SNR db = 10log 10 (SNR) SNR of 100 = 20 db SNR of 1000 = 30 db Capacity: C = B*log 2 (1+SNR)

Shannon Capacity Examples If voice telephone has a SNR of 30 db and bandwidth of 3000 Hz: C = 3000 log 2 (1 + 1000) = 30,000 bps If our LAN technology has a SNR=251, B = 1Mhz C=10 6 *log 2 (252) = 8Mbps Using Nyquist s formula, the number of symbols we would need to transmit this data per signaling element: 8*10 6 = 2*10 6 *log 2 M M = 2 4 = 16