950 likes | 1.97k Views
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
E N D
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
Data Encoding - Representative Reasons • Digital information, digital signal: In general, the equipment for encoding 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.
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 convenience can be achieved by integrating voice, video, image, and digital data.
Digital-to-digital conversion • Encoding data into a digital signal
DC component • Bbbbb
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
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
XXXXXXX • xxxxxxxxxx
XXXXXXX • XXXXXXX
Unipolar Encoding • Unipolar encoding uses only one voltage level.
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
XXXXXX • XXXXX
Polar Encoding Two levels (+ and -) • Polar encoding uses two voltage levels (positive and negative). • NRZ (Nonreturn to Zero)
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
Polar Encoding • RZ (Return to Zero) - Three levels (+ - 0) - 2 signal changes per bit " more BW + Synchronization
Note: • A good encoded digital signal must A good encoded digital signal must contain a provision for contain a provision for synchronization.
Polar Encoding - Biphase • Transition → bit represent and synchronization
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.
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)
Bipolar AMI encoding • Bbbbbb
Bipolar • (solved long stream of “0” → using violation)
Bipolar • Problems - DC component - Synchronization (Long stream of 0 or 1)
Block coding • Bbb
Substitution in block coding • Bbbb
Examples • 4B/5B encoding • Example of 8B/6T encoding
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.
Step 2:Quantized PAM Signal • Bbbbbb
Step 4:Pulse Code Modulation (PCM) • Bbbbbbbbbbbbbb
SummaryFrom Analog to PCM • Nnnnn
From Analog to PCM • Bbbbbbbbbbbb
From Analog to PCM • Bbbbbbbbbbb
From Analog to PCM • Bbbbbbbbbbbbbb
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
Nyquist Theorem • bb
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
Digital to Analog Encoding • Bbbb
Amplitude Shift Keying (ASK) • Bbbb
Bandwidth for ASK • Bandwidth for ASK
Frequency Shift Keying (FSK) • Bbbbbbb
Bandwidth for FSK • Bbbbbbbbbbb
Phase Shift Keying (PSK) • Bbbbbbbbbbbbb
PSK Constellation • Bbbbbbbb
4-PSK • Bbbbbb
4-PSK Constellation • Bbbb