1 / 63

DATA ENCODING

DATA ENCODING. Digital-to-digital conversion - Encode digital data into a digital signal - Sending computer data Analog-to-Digital conversion - Digitizing an analog - Sending voice in telephone (Decrease effect of noise ) Digital-to-Analog conversion - Modulating a digital signal

rhona
Download Presentation

DATA ENCODING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DATA ENCODING Digital-to-digital conversion - Encode digital data into a digital signal - Sending computer data Analog-to-Digital conversion - Digitizing an analog - Sending voice in telephone (Decrease effect of noise ) Digital-to-Analog conversion - Modulating a digital signal - Sending computer data through public telephone line Analog-to-Analog conversion - Modulating an analog signal - Sending music from radio station

  2. Data Encoding - Representative Reasons • Digital information, digital signal: In general, the equipment for encod­ing digital information into a digital signal is less complex and less expensive than digital-to-analog equipment. • Analog information, digital signal: Conversion of analog information to digital form permits the use of modern digital transmission and switching equipment. • Digital information, analog signal: Some transmission media, such as optical fiber and satellite, will propagate only analog signals. • Analog information, analog signal: Analog information is easily converted to an analog signal.

  3. Advantages of Digital Transmission • a) Cost. The advent of large-scale integration (LSI) and very-large-scale integration (VLSI) has caused a continuing drop in the cost and size of digital circuitry. Analog equipment has not shown a similar drop. Furthermore, maintenance costs for digital circuitry are a fraction of those for analog circuitry. • b) Data Integrity. With the use of digital repeaters rather than analog amplifiers, the effects of noise and other signal impairments are not cumulative. Thus, it is possible to transmit data longer distances and over lower-quality lines by digital means while maintaining the integrity of the data. • c) Capacity Use. It has become economical to build transmission links of very high bandwidth, including satellite channels and optical fiber. A high degree of multiplexing is needed to effectively use such capacity, and this is more easily and cheaply achieved with digital (time-division) rather than analog (frequency-division) techniques. • d) Security and Privacy. Encryption techniques can be readily applied to digital data and to analog data that have been digitized. • e) Integration. By treating both analog and digital information digitally, all signals have the same form and can be treated similarly. Thus, economies of scale and conve­nience can be achieved by integrating voice, video, image, and digital data.

  4. Digital-to-digital conversion • Encoding data into a digital signal

  5. Signal level versus data level • Bbbb

  6. DC component • Bbbbb

  7. Example 1 • A signal has two data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows: • Pulse Rate = 1/10-3= 1000 pulses/s • Bit Rate = Pulse Rate x log2L = 1000 x log22 = 1000 bps

  8. Example 2 • A signal has four data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows: • Pulse Rate = 1000 pulses/s • Bit Rate = Pulse Rate x log2L = 1000 x log24 = 2000 bps

  9. XXXXXXX • xxxxxxxxxx

  10. XXXXXXX • XXXXXXX

  11. Unipolar Encoding • Unipolar encoding uses only one voltage level.

  12. Unipolar Encoding • Problems • DC components - Cannot pass through some media (is not supported by some transmission media) • Synchronization problems can occur when the data contains long string of 1’s or 0’s - Beginning/ending problem (1111111111) - Distortion (four 1111 " five 11111) - Solved by separate line

  13. XXXXXX • XXXXX

  14. Polar Encoding Two levels (+ and -) • Polar encoding uses two voltage levels (positive and negative). • NRZ (Nonreturn to Zero)

  15. NRZ-L - Similar to unipolar with average zero value • - Uses two levels +V and –V. In NRZ In NRZ-L the level of the signal is L the level of the signal is dependent upon the state of the bit. - Still susceptible to synchronization problems • NRZ-I - Invert on ones - A transition (low-to-high or high-to-low) at the start of a bit interval denotes a 1 bit, no transition denotes a 0 bit - Will still be pray to synchronization problems 50% of the time

  16. Polar Encoding • RZ (Return to Zero) - Three levels (+ - 0) - 2 signal changes per bit " more BW + Synchronization

  17. Note: • A good encoded digital signal must A good encoded digital signal must contain a provision for contain a provision for synchronization.

  18. Polar Encoding - Biphase • Transition → bit represent and synchronization

  19. Manchester and Differential Manchester Encoding • In Manchester encoding, the transition at the middle of the bit is used for both synchronization and bit representation. • In differential Manchester encoding, the transition at the middle of the bit is used only for synchronization. The bit representation is defined by the inversion or noninversion at the beginning of the bit.

  20. Xxxxxx

  21. Bipolar • In bipolar encoding, we use three levels: positive, zero, and negative. Alternate Mark Inversion (AMI) • “1” are positive and negative alternately • (- Long Steam of 0 + DC component = 0)

  22. Bipolar AMI encoding • Bbbbbb

  23. Bipolar • (solved long stream of “0” → using violation)

  24. Bipolar • Problems - DC component - Synchronization (Long stream of 0 or 1)

  25. Block coding • Bbb

  26. Substitution in block coding • Bbbb

  27. Examples • 4B/5B encoding • Example of 8B/6T encoding

  28. Analog to Digital Encoding

  29. Step 1:Pulse Amplitude Modulation(PAM) • Bbbbbb

  30. Pulse Amplitude Modulation • Note: • Pulse amplitude modulation has some applications, but it is not used by itself in data communication. However, it is the first step in another very popular conversion method pulse code modulation.

  31. Step 2:Quantized PAM Signal • Bbbbbb

  32. Step 3:Quantizing Using Sign and Magnitude • Mmmm

  33. Step 4:Pulse Code Modulation (PCM) • Bbbbbbbbbbbbbb

  34. SummaryFrom Analog to PCM • Nnnnn

  35. From Analog to PCM • Bbbbbbbbbbbb

  36. From Analog to PCM • Bbbbbbbbbbb

  37. From Analog to PCM • Bbbbbbbbbbbbbb

  38. Nyquist theorem • According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency. • Example What sampling rate is needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)? Solution The sampling rate must be twice the highest frequency in the signal: Sampling rate = 2 x (11,000) = 22,000 samples/s

  39. Nyquist Theorem • bb

  40. Nyquist Theorem • We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample? Solution The human voice normally contains frequencies from 0 to 4000 Hz. Sampling rate = 4000 x 2 = 8000 samples/s Bit rate = sampling rate x number of bits per sample = 8000 x 8 = 64,000 bps = 64 Kbps

  41. Digital to Analog Encoding • Bbbb

  42. Mmmm

  43. Amplitude Shift Keying (ASK) • Bbbb

  44. Bandwidth for ASK • Bandwidth for ASK

  45. Frequency Shift Keying (FSK) • Bbbbbbb

  46. Bandwidth for FSK • Bbbbbbbbbbb

  47. Phase Shift Keying (PSK) • Bbbbbbbbbbbbb

  48. PSK Constellation • Bbbbbbbb

  49. 4-PSK • Bbbbbb

  50. 4-PSK Constellation • Bbbb

More Related