digital interfaces an interface links two devices interface standards define: – mechanical...

24
Digital Interfaces • An interface links two devices • Interface Standards define: – mechanical specifications - how many wires & connector type – electrical specifications - frequency, amplitude and phase of signal – functional - what does each wire do? – Procedural – how & when to perform functions

Upload: logan-howard

Post on 21-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Digital Interfaces

• An interface links two devices• Interface Standards define:

– mechanical specifications - how many wires & connector type

– electrical specifications - frequency, amplitude and phase of signal

– functional - what does each wire do?– Procedural – how & when to perform functions

Page 2: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

upated 1/2002 2

Serial vs. Parallel• In serial transmission one bit is sent with

each clock pulse.

• Two types of serial transmission:– asynchronous– synchronous

• In parallel transmission multiple bits are sent with each clock pulse. Faster/more expensive

Page 3: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Serial Transmission

0 1 1 0 0 0 1 0

Page 4: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Parallel Transmission01100010

01100010

Page 5: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Serial Transmission

• Asynchronous & Synchronous

• Concerned with timing issues

• How does the receiver know when the bit period begins and ends?

• Small timing difference become more significant over time if no synchronization takes place between sender and receiver

Page 6: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Synchronizations

1 0 0 1 0 0 1 1 1 1 1 0

1 0 0 1 1 0 0 1 1 1 1 1 1 0

time

time

Sen

der

cloc

k R

ecei

ver

cloc

k

Sender data

Received data

Page 7: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Asynchronous Transmission

• Serial communication• Data transmitted 1

character at a time• Character format is 1

start & 1 or more stop bits, plus data of 5-8 bits

• Character may include parity bit

• Timing needed only within each character

• Resynchronization each start bit

• Uses simple, cheap technology

• Wastes 20-30% of bandwidth

Page 8: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Asynchronous Transmission

STOP BIT

START BIT

0 1 1 0 0 0 1 00 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0

Gaps of indeterminate size

Page 9: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Synchronous Transmission

• Serial communication• Large blocks of bits

transmitted without start/stop codes

• Synchronized by clock signal or clocking data

• Data framed by preamble/post amble bit patterns

• More efficient than asynchronous

• Overhead typically below 5%

• Used at higher speeds than asynchronous

Page 10: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Synchronous Transmission

0 1 1 0 0 0 1 00 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 0 1 0

Page 11: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Synchronization Choices

• Low-speed terminals and PCs commonly use asynchronous transmission– inexpensive– “burst” tendency of communication reduces impact of

inefficiency

• Large systems and networks commonly use synchronous transmission– overhead too expensive; efficiency necessary– error-checking more important

Page 12: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Generic Communications Interface Illustration

DTE DCE DTE

Generates Data

Converts totransmission

media/ converts to generated data

ReceivesData

(Network)DCE

Converts totransmission

media/ converts to generated data

Page 13: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

RS-232C (EIA 232C)

• EIA’s “Recommended Standard” (RS)

• Specifies mechanical, electrical, functional, and procedural aspects of the interface

• Used for connections between DTEs and voice-grade modems, and many other applications

Page 14: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Mechanical Specifications

• 25-pin connector with a specific arrangement of leads

• DTE devices usually have male DB25 connectors while DCE devices have female

• In practice, fewer than 25 wires are generally used in applications

Page 15: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

DB-25 Female

DB-25 Male

RS-232 DB-25 Connectors

Page 16: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

RS-232 DB-9 Connectors

Limited RS-232

Page 17: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Electrical Specifications

• Specifies signaling between DTE and DCE

• Uses NRZ-L encoding– Voltage -15V to -3V = binary 1– Voltage +15V to +3V = binary 0

• Rated for < 20Kbps and < 15Mts– greater distances and rates are theoretically

possible, but not necessarily wise

Page 18: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Functional Specification

• Specifies the role of the individual circuits• Data circuits in both directions allow full-

duplex communication• Timing signals allow for synchronous

transmission (although asynchronous transmission is more common)

Page 19: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Functional Specification - DB-25 Pinouts

Page 20: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Procedural Specification

• Multiple procedures are specified

• Provides means of attachment between computer and modem– Specifies method of transmitting data between

devices– Specifies method of cooperation for exchange of

data between devices– Handshaking between the two equipment

Page 21: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

Null Modem Cable

SGDTR

DSR

RTS

CTSCDTDRD

SGDTR

DSR

RTS

CTSCDTDRD

• Allows DTE to DTE direct communication

Page 22: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

upated 1/2002 22

Modems

• Modulator - converts digital signal to analog signal

• Demodulator - converts analog signal to digital signal

Page 23: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

upated 1/2002 23

Data Rate

• Encoding Technique

• Physical properties of medium

• Can increase speed by increasing frequency but every line has upper and lower limits

• frequency range = bandwidth

Page 24: Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical

upated 1/2002 24

Bit Rate Summary

Encoding HDX FDXASK, FSK, 2-PSK 2400 12004-PSK, 4-QAM 4800 24008-PSK, 8-QAM 7200 360016-QAM 9600 480064-QAM 14,400 7200256-QAM 19,200 9600