Line Coding, Modem, RS232 interfacing sequences.

Slides:



Advertisements
Similar presentations
1 Computer Communication & Networks Lecture 6 Physical Layer: Digital Transmission Waleed Ejaz
Advertisements

1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Physical Layer – Part 2 Data Encoding Techniques
EE 4272Spring, 2003 Chapter 5 Data Encoding Data Transmission Digital data, digital signal Analog data, digital signal: e.g., voice, and video are often.
Chapter 4 Digital Transmission
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Transmission of Digital Data: Interfaces and Modems NETE 0510 Dr.Apichan Kanjanavapastit.
CSCD 218 : DATA COMMUNICATIONS AND NETWORKING 1
1 Pertemuan 12 Layer Physical Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
William Stallings Data and Computer Communications 7th Edition
Networks: Data Encoding1 Data Encoding Techniques.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
Physical Layer – Part 2 Data Encoding Techniques
Data Encoding Techniques
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
 Information must be transformed into signals before it can be transformed across the communication media  How this information is transformed depends.
Data Communications Chapter 6 The Data Communications Interface.
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.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Sami Al-Wakeel 1 Data Transmission and Computer Networks Data Encoding.
RS422, RS485, RS423, RS449 and V.35 Data Communications (E&T2760): RS422, RS485, RS423, RS449 and V.35.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Base-Band Digital Data Transmission Prepared By: Amit Degada. Electronics Engineering Department, Sardar Vallabhbhai National Institute of Technology,
Data Communication and Networking
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.
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),
EE 3220: Digital Communication Dr. Hassan Yousif Ahmed Department of Electrical Engineering College of Engineering at Wadi Aldwasser Slman bin Abdulaziz.
Data Communications Chapter 5 Data Encoding.
Computer Communication & Networks
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Digital Encoding.
Serial Communications
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
1 Kyung Hee University Digital Transmission. 2 Kyung Hee University 4 장 Digital Transmission 4.1 Line Coding 4.2 Block Coding 4.3 Sampling 4.4 Transmission.
: Data Communication and Computer Networks
British Computer Society (BCS)
Digital Communications
Kashif BashirWWW.Taleem.greatnow.com Chapter 4 Digital Transmission.
9/12/ Digital Transmisison - Lin 1 CPET/ECET Digital Transmission Data Communications and Networking Fall 2004 Professor Paul I-Hai Lin Electrical.
EEC4113 Data Communication & Multimedia System Chapter 2: Baseband Encoding by Muhazam Mustapha, July 2010.
COMMUNICATION SYSTEM EEEB453 Chapter 5 (Part V) DIGITAL TRANSMISSION-LINE ENCODING Intan Shafinaz Mustafa Dept of Electrical Engineering Universiti Tenaga.
Spring 2007Data Communications, Kwangwoon University4-1 Chapter 4. Digital Transmission 1.Digital-to-Digital Conversion 2.Analog-to-Digital Conversion.
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.
Unit 1 Lecture 6 1. Different Conversion/Transmission Schemes 2 Before we discuss various line coding schemes, let us first have an idea of different.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
การส่งข้อมูลผ่าน PSTN
Review: The physical layer. Bandwidth/Capacity bit rate/baud rate How to determine the number of bits per symbol? Relation between the bandwidth and capacity:
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
1 Chapter 5 Encoding. 2 Figure 4-1 Transformation of Information to Signals.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
1 Business Telecommunications Data and Computer Communications Chapter 6 The Data Communications Interface.
Digital Line Encoding Converting standard logic level to a form more suitable to telephone line transmission. Six factors must be considered when selecting.
Signal Encoding Techniques. Digital Data, Digital Signal  Digital signal discrete, discontinuous voltage pulses discrete, discontinuous voltage pulses.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
CSE 320 Data Communications
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
William Stallings Data and Computer Communications
Chapter 4. Digital Transmission
Pemrosesan Data Tersebar
Physical Layer – Part 2 Data Encoding Techniques
Chapter 4 Digital Transmission
Physical Layer – Part 2 Data Encoding Techniques
Chapter 6 Transmission of Digital Data Interfaces and Modems
William Stallings Data and Computer Communications
Presentation transcript:

Line Coding, Modem, RS232 interfacing sequences.

Line Coding Process of converting binary data to a digital signal

DC Components Residual direct-current (dc) components or zero frequencies are undesirable Some systems do not allow passage of a dc component; may distort the signal and create output errors DC component is extra energy and is useless

Self-Synchronization Includes timing information in the data being transmitted to prevent misinterpretation Lack of synchronization

Line Coding Unipolar Polar Bipolar

Unipolar Simplest method; inexpensive Uses only one voltage level Polarity is usually assigned to binary 1; a 0 is represented by zero voltage

Unipolar Potential problems: DC component Lack of synchronization

Polar Uses two voltage levels, one positive and one negative Alleviates DC component Variations Nonreturn to zero (NRZ) Return to zero (RZ) Manchester Differential Manchester

Nonreturn to Zero (NRZ) Value of signal is always positive or negative NRZ-L Signal level depends on bit represented; positive usually means 0, negative usually means 1 Problem: synchronization of long streams of 0s or 1s NRZ-I (NRZ-Invert) Inversion of voltage represents a 1 bit 0 bit represented by no change Allows for synchronization Transition between voltage, not voltage itself, represents a 1 bit

NRZ-L and NRZ-I Encoding

Return to Zero (RZ) In NRZ-I, long strings of 0s may still be a problem May include synchronization as part of the signal for both 1s and 0s How? Must include a signal change during each bit Uses three values: positive, negative, and zero 1 bit represented by positive-to-zero 0 bit represented by negative-to-zero

RZ Encoding

RZ Encoding Disadvantage Requires two signal changes to encode each bit; more bandwidth necessary

Manchester Uses an inversion at the middle of each bit interval for both synchronization and bit representation Negative-to-positive represents binary 1 Positive-to-negative represents binary 0 Achieves same level of synchronization with only 2 levels of amplitude

Differential Manchester Inversion at middle of bit interval is used for synchronization Presence or absence of additional transition at beginning of interval identifies the bit Transition means binary 0; no transition means 1 Requires two signal changes to represent binary 0; only one to represent 1

Bipolar Encoding Uses three voltage levels: positive, negative, and zero Zero level represents binary 0; 1s are represented with alternating positive and negative voltages, even when not consecutive Alternate mark inversion (AMI)

Bipolar AMI Neutral, zero voltage represents binary 0 Binary 1s represented by alternating positive and negative voltages

MODEM

Telephone Modems A telephone line has a bandwidth of almost 2400 Hz for data transmission

Modem stands for modulator/demodulator. Modulator : creates a analog signal from binary data Demodulator : recovers the binary data from the modulated signal

V.32 ITU-T's V.32 standard was issued in 1989 for asynchronous, full-duplex operation at 9600 bps. Although designed for asynchronous DTEs, two V.32 modems actually communicate synchronously. A circuit converts the asynchronous data stream into synchronous blocks, invisible to the application. V.32 supports modulation rates of 2400, 4800, and 9600 bps.

V.32bis ITU-T's V.32 standard was issued in 1991 for asynchronous, full-duplex operation at 14.4 Kbps. V.32bis is an extension of the V.32 technology. V.32bis supports modulation rates of 2400, 4800, 9600 bps and 14.4 Kbps. Data compression and error correction can increase the throughput rates.

Traditional Modems After modulation by the modem, an analog signal reaches the telephone company switching station where it sampled and digitized to be passed through the digital network. Bit rate is 56,000bps. Uploading :33.6kbps. Downloading 56kbps.

Traditional Modems

RS232 Interface

Introduction Specifies the interface between DTE and DCE: V.28 : mechanical and electrical characteristics V.24 : functional and procedural characteristics Even used in applications where there is no DCE e.g. connecting computer to printer, magnetic card reader, robot, … etc. Introduced in 1962 but is still widely used

DTE, DCE and RS232

Vocabulary DTE DCE data terminal equipment e.g. computer, terminal data communication equipment connects DTE to communication lines e.g. modem

Mechanical Characteristics 9-pin connector 9-pin connector is more commonly found in IBM-PC but it covers signals for asynchronous serial communication only Use male connector on DTE and female connector on DCE N.B.: all signal names are viewed from DTE

9-Pin RS232 Connector

Electrical Characteristics Single-ended one wire per signal, voltage levels are with respect to system common (i.e. signal ground) Mark: –3V to –15V represent Logic 1, Idle State (OFF) Space: +3 to +15V represent Logic 0, Active State (ON) Usually swing between –12V to +12V Recommended maximum cable length is 15m, at 20kbps

RS232 Logic Waveform

RS-232 Interface RS-232 is the Serial interface on the PC Three major wires for the Serial interface: Transmit - Pin 2 Receive - Pin 3 Ground - Pin 7 (25 pin connector) - Pin 5 (9 pin connector) Tx Tx Computer Device Rx Rx Gnd Gnd Transmit connects to Receive

Function of Signals TD: transmitted data RD: received data DSR: data set ready indicate whether DCE is powered on DTR: data terminal ready indicate whether DTR is powered on turning off DTR causes modem to hang up the line RI: ring indicator ON when modem detects phone call

Function of Signals DCD: data carrier detect RTS: request to send ON when two modems have negotiated successfully and the carrier signal is established on the phone line RTS: request to send ON when DTE wants to send data Used to turn on and off modem’s carrier signal in multi-point (i.e. multi-drop) lines Normally constantly ON in point-to-point lines CTS: clear to send ON when DCE is ready to receive data SG: signal ground

Flow Control Means to ask the transmitter to stop/resume sending in data Required when: DTE to DCE speed > DCE to DCE speed (e.g. terminal speed = 115.2kbps and line speed = 33.6kbps, in order to benefit from modem’s data compression protocol) without flow control, the buffer within modem will overflow – sooner or later the receiving end takes time to process the data and thus cannot be always ready to receive