34
Communication Systems I CPE 313: Micro Processors and Interfacing

Communication Systems I CPE 313: Micro Processors and Interfacing

Embed Size (px)

Citation preview

Page 1: Communication Systems I CPE 313: Micro Processors and Interfacing

Communication Systems I

CPE 313: Micro Processors and Interfacing

Page 2: Communication Systems I CPE 313: Micro Processors and Interfacing

How can information flow frompoint A to point B?

Page 3: Communication Systems I CPE 313: Micro Processors and Interfacing

Morse Code

Can you spell your name?

See http://morsecode.scphillips.com/jtranslator.html for a live demo

Page 4: Communication Systems I CPE 313: Micro Processors and Interfacing

Morse Code in Hollywood

1996 Film

Page 5: Communication Systems I CPE 313: Micro Processors and Interfacing

Fountain of Bits

Page 6: Communication Systems I CPE 313: Micro Processors and Interfacing

How to transmit voice?

Speaker = Sound reproducer Mic = Sound transducerMax Frequency Range:

20-20,000 Hz

Electrical signal in a transmission line

Page 7: Communication Systems I CPE 313: Micro Processors and Interfacing

How Are Phone Connected?

Page 8: Communication Systems I CPE 313: Micro Processors and Interfacing

How are phone conversations connected?

Traditional Switched Network

Each conversation needs a dedicated line. Very expensive to build the network.

Page 9: Communication Systems I CPE 313: Micro Processors and Interfacing

Using Multiplexing Techniques

Frequency Division Multiplexing (FDM)

Many connections can be multiplexed through a single line

Page 10: Communication Systems I CPE 313: Micro Processors and Interfacing

Freqeuncy Channels

Page 11: Communication Systems I CPE 313: Micro Processors and Interfacing

Traditional Telephone Lines Limitthe Sound Frequencies Transmitted

400 – 3,400 Hz

The bandwidth of this line is 3kHz

Can you think of

why?

Page 12: Communication Systems I CPE 313: Micro Processors and Interfacing

Frequency Channels

If the main transmission line has a maximum bandwidth of 1MHz,How many concurrent phone connections can it carry?

Page 13: Communication Systems I CPE 313: Micro Processors and Interfacing

What if we want to send digital data over the phone line?

Can it be done?010111001010111001

Page 14: Communication Systems I CPE 313: Micro Processors and Interfacing

Digital to Analog Encoding

See http://www.iesmarenostrum.com/informatica/zmaterias/ral/flash/digit_modulation.swf for an interactive demo.

Page 15: Communication Systems I CPE 313: Micro Processors and Interfacing

Example: A Traditional Modem

Modem Typical Maximum Speed

56Kbps

Page 16: Communication Systems I CPE 313: Micro Processors and Interfacing

How data is sent with a traditional modem

Traditional Modem

Telephone Network

Home

Internet Gateway

DestinationPhone

Page 17: Communication Systems I CPE 313: Micro Processors and Interfacing

Example II: ADSL Modem

ADSL

Page 18: Communication Systems I CPE 313: Micro Processors and Interfacing

Why is ADSL much faster?

256 Channels of 4 kHz each

Page 19: Communication Systems I CPE 313: Micro Processors and Interfacing

But What About the 4K Bandwidth Limitation?

Splitter ADSL Modem

DSLAM

Telephone Network

Data Network

Home

Digital Subscriber Line Access Multiplexer

Page 20: Communication Systems I CPE 313: Micro Processors and Interfacing

How fast is ADSL?

ADSL = 256 x 4 kHz x 8 bits= 8 Mbps

ADSL2 = 12 Mbps

ADSL2+ = 25 Mbps

*ADSL2+ expands channel frequency from 1.1 to 2.2 MHz

Page 21: Communication Systems I CPE 313: Micro Processors and Interfacing

Serial vs Parallel Transmission

Image © Quatec

Page 22: Communication Systems I CPE 313: Micro Processors and Interfacing

Example of Serial Comm?

Example of Parallel Comm?

Page 23: Communication Systems I CPE 313: Micro Processors and Interfacing

Which Mode is More Common?

Cost. Less cables. Smaller size. Simplicity. Keeping bits aligned in a high-

speed parallel line requires more complex electronics.

Serial

Why?

Page 24: Communication Systems I CPE 313: Micro Processors and Interfacing

The Need for SpeedS

peed

Mbp

s

Page 25: Communication Systems I CPE 313: Micro Processors and Interfacing

Synchronous vs Asynchronous

A B

A B

Synchronous uses a clock line

Asynchronous relies on a common clock on each side

Page 26: Communication Systems I CPE 313: Micro Processors and Interfacing

Playing Catch with a Blind Receiver

If you are the blind catcher, which method would you choose?Method 1: Pitcher throws and sends a signalMethod 2: Pitcher throws every 10 seconds. No signal.

PitcherCatcher

Page 27: Communication Systems I CPE 313: Micro Processors and Interfacing

RS-232 (Serial Communication) Baud Rate

Data bits

Start bit / Stop bits

Parity

Page 28: Communication Systems I CPE 313: Micro Processors and Interfacing

RS-232 Pulses

Letter “V” ASCII = 86 (0101 01102)9600 bps, 8-N-1

Layout: Start Bit, Data Bits, Parity, Stop Bits

* Note: Rs-232 logic pulses are inverted

Page 29: Communication Systems I CPE 313: Micro Processors and Interfacing

RS-232 Pulses

Letter “Y” ASCII = 89 (0101 10012)9600 bps, 8-Odd-1

Layout: Start Bit, Data Bits, Parity, Stop Bits

* Note: Rs-232 logic pulses are inverted

Page 30: Communication Systems I CPE 313: Micro Processors and Interfacing

How about ASCII 255?

Layout: Start Bit, Data Bits, Parity, Stop Bits

The data transmission is unbalanced. Can cause transmission errors.

9600 bps, 8-N-1

Page 31: Communication Systems I CPE 313: Micro Processors and Interfacing

Manchester Encoding (IEEE 802.3)

Bit 1 = Low to High

Bit 0 = High to Low

Page 32: Communication Systems I CPE 313: Micro Processors and Interfacing

Example

Image: Wikipedia

Page 33: Communication Systems I CPE 313: Micro Processors and Interfacing

Data = 255

Manchester Code

Page 34: Communication Systems I CPE 313: Micro Processors and Interfacing

Encode the following transmissions using the Manchester standard

Letter “V” ASCII = 86 (0101 01102)

Letter “Y” ASCII = 89 (0101 10012)