Presentation is loading. Please wait.

Presentation is loading. Please wait.

Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester.

Similar presentations


Presentation on theme: "Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester."— Presentation transcript:

1 Encoding How is information represented?

2 Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester Phase Coded Modulation (digitized voice) ASK FSK PSK modems AM/FM radio Television

3 Analog vs Digital Figure 3.1 Edges are crisper on digital. Attempt to store discrete vs continuous waveforms. Some information is more naturally analog. Some is digital.

4 Analog Light waves Sound waves –natural –am fm radio Most waves in nature Waves are categorized according to frequency

5 Digital Most digital information derives from computer representation. Examples –programs –data Memories force representation to be digital because they store information digitally –in one of two states DIGITAL and ANALOG are not really that different!

6 Digital Data on Digital Signal Time low value high value T, duration of 1 bit Figure 3.2 NRZ Encoding 1 0 1 0 0 1 1 0 NRZ -> 1 is low, 0 is high

7 Beginning and End of a bit Time low value high value Figure 3.3 NRZ Encoding of a Sequence of 0s constant voltage level If the values are not changing, how can the bit times be determined?

8 Adding Timing to the Info Time low value high value T, duration of 1 bit Figure 3.4 Manchester Encoding 0 1 0 1 1 0 0 1 Manchester -> Downward middle 0, Upward middle 1 What general observation can you make about the bandwidth cost?

9 Another Digital encoding Differential Manchester -> No change at beginning 1 Change at beginning 0 Time low value high value T, duration of 1 bit Figure 3.5 Differential Manchester Encoding 1 0 1 0 0 1 1 0 Signal level at start of transmission

10 Remember More timing is essential Costs bandwidth Leaves less room for data

11 Analog Data on Digital Signal Phone system was analog (lines and switches) Computers led to digital lines and switches Most lines still analog to end-office Most phones analog Phone lines End Office lines Phone

12 How to convert? Fig 3.12

13 Pulse Code Modulation Take samples Encode as digital values At receiver, use digital samples to convert back to analog. Sources of ERROR –Number of samples –Precision of samples

14 Process of PCM 3.17 3.18 Reverse upon reception!

15 Too few samples Signal changes too fast. Intuition tells you to sample more often. How fast? Fig 3.19

16 Familiar Examples Two points make a line. Less.. Not enough More.. Redundant Three points make a parabola.. Less.. Not enough More.. Redundant

17 How about a sine wave? Twice as fast as the frequency of the wave Actually the highest frequency component 20-20000Hz -> sample at 40000 Hz Called the Nyquist rate Sampling too fast is a waste!

18 Accuracy Number of levels dictates number of bits 8 levels -> 3 bits 256 levels -> 8 bits Too few levels -> lose accuracy reconstructing. Consider a simple case of TWO levels. Can’t have too many, but can only afford a limited amount!

19 CD sound application 44.1 Khz 16 bit linear About 44000 samples / sec or 22000 Hz signal Range of hearing about 20Khz 16 bits generates 2^16 levels or 64000 levels Each sample is accurate to one part in 64000. A function of personal taste. 44000 samples x 2 Bytes = 88K Bytes per sec 60 secs requires 60 x 88K = 5280 K Bytes or 5.3 M Bytes

20 Analog Data on Analog Signal Before the digital/computer age Dying Still used in tv, radio, cable tv, etc Carrier signal “carries” the information S(f) f Band 1 850-950 Band 2 1110-1210 Band 3 1290-1390 9001260 1340 Carrier frequency Radio Signal 1000Hz

21 Figure 3.15 Information -> SLOWEST frequency Carrier -> HIGHEST frequency Review previous example Think about your radio station –YOU ONLY HEAR UP TO 20000 Hz –Channel is much higher frequency for AM and higher yet for FM Not perfect example. But correct idea.

22 Digital Data on Analog Signal Modems Telephone line to the house is analog but information in the computer is digital. Lots of progressively complicated techniques in this section.

23 Back to Amplitude Frequency and Phase Encoding is change Encode 0 or 1 with a change in one or more of the basic wave features Some techniques can “squeeze” more information into the signal by using combinations.

24 Frequency Shift Key Frequency (FSK) 0 00 1 1 Fig 3.13

25 Amplitude Shift Key 1100 SameFrequency. Different Amplitudes. Typically have many cycles per bit time.

26 Phase Shift Key 1000 Phase change

27 How many bits per change? Two amplitudes -> 0 or 1 -> 1 bit Four amplitudes -> 00, 01, 10, 11 -> 2 bits Eight amplitudes -> 000, … 111 -> 3 bits How far can you go? Forever as long as you have no noise and the sender can control with that resolution and the receiver can distinguish those small differences. Of course there is always noise!

28 Baud vs Bit Rate example 3.14 Four levels -> 2 bits per change If this is ONE second, bit rate is 8 bps Baud rate is 4 per second (changes per second)

29 ASK and PSK in Combination 2 amplitudes, 4 phases -> 8 combinations 8 combinations -> 3 bits per change. 3.15

30 What is the ultimate limit? Noise Shannon’s theorem tells theoretically how far you can go based on noise. In practice even that is not achieved. Compression is another technique that adds the illusion of stretching this technique but it is actually an orthogonal (independent) issue.

31 How is noise measured? Relative to the signal Signal to noise. E.g. 1000 to 1 EQUIVALENTLY and more commonly in decibels ratio

32 Shannon’s result Where b is the bandwidth Example -> 20Khz medium with 30db signal to noise MaxBitRate = 20000 * log2(1+1000) =(about) 20000 * 9.7 = 194,000 bps

33 Bandwidth vs Noise As bandwidth goes up, “bit” width becomes smaller As bit width becomes smaller, edges become more critical for proper signal interpretation Noise makes edges fuzzy and makes it more difficult to distinguish levels


Download ppt "Encoding How is information represented?. Way of looking at techniques Data Medium Digital Analog Digital Analog NRZ Manchester Differential Manchester."

Similar presentations


Ads by Google