Chapter 4 Data Encoding Techniques
Chapter 4 Data Encoding Techniques
DATA ENCODING
Introduction
Introduction
For DIGITAL SIGNALING, Data source g(t) which may be either digital or analog, is encoded into a digital signal x(t). The actual form of x(t) depends on the encoding technique, and is chosen to optimize use of the transmission medium. For example, the encoding may be chosen to either conserve bandwidth or to minimize errors.
Introduction
The backbone for ANALOG SIGNALING is a continuous, constant-frequency signal known as the CARRIER SIGNAL. The frequency of the carrier signal is chosen to be compatible with the transmission medium being used. Data may be transmitted using a carrier signal by modulation. MODULATION is the process of encoding source data onto a carrier signal with frequency fc. All modulation techniques involve operation on one or more of the three fundamental frequency-domain parameters: The input signal m(t) may be analog or digital and is called Amplitude the MODULATING SIGNAL or BASEBAND SIGNAL. Frequency The result of modulating the carrier signal is called the MODULATED SIGNAL. Phase The location of the bandwidth on the spectrum is related to fc and is often centered on fc. Again, the actual form of the encoding is chosen to optimize some characteristic of the transmission.
Introduction
DIGITAL DATA DIGITAL SIGNAL
Equipment for encoding is less complex and less expensive compared to digital-to-analog modulation equipment
Conversion of analog data to digital form permits the use of modern digital transmission and switching equipment. Advantages of using the digital approach are summarized by the following: Digital Technology-Data Integrity-Capacity Utilization-Security and Privacy-Integration
Some transmission media such as optical fiber and the unguided media will only propagate analog signal
Analog data in electrical form can be transmitted as baseband signals easily and cheaply by voice transmission over voice-grade lines. One common use of modulation is to shift the bandwidth of a baseband signal to another portion of the spectrum. In this way, multiple signals, each at a different position on the spectrum, can share the same transmission medium; this is known as FREQUENCY DIVISION MULTIPLEXING.
Digital Signal
DIGITAL SIGNAL
Sequence of discrete, discontinuous voltage pulses Each pulse is a SIGNAL ELEMENT Binary data are encoded into signal elements Simplest case has one-to-one correspondence
Definition of Terms
Unipolar: signal elements all have the same algebraic sign (all + or all -) Polar: one logic state is represented by a positive voltage level, and the other by a negative voltage level Data Signaling Rate or Data Rate: rate in bits per second that data is transmitted (R) Duration or length of a bit: amount of time it takes for the transmitter to emit the bit (1/R) Modulation/Signaling Rate: rate at which the signal level is changed, this will depend on the nature of digital encoding and is expressed in BAUD (signal elements per second) Mark and Space: refer to binary digit 1 and 0
Interpreting Signals
Need to Know Timing of bits - when they start and end Signal levels An increase in data rate Factors Affecting Signal increases bit error rate (the Interpretation probability that a bit is received SNR or Eb/No in error). Data Rate An increase in SNR decreases Bandwidth bit error rate. Encoding Scheme
Clocking
Expensive approach is to provide a separate clock-lead to synch the TX and RX and the alternative is to provide some synch mechanism that is based on the encoding scheme of the transmitted signal
D = R / N = R /log2M
D = modulation rate, baud R = data rate, bps N = number of bits per signaling element M = number of discrete signal
Scrambling
Process of replacing sequences that would produce a long string of constant voltage that could result to loss of synchronization These filling sequences must:
produce enough transitions to sync be recognized by receiver & replaced with original be same length as original
Design Goals:
no dc component no long sequences of zero level line signal no reduction in data rate give error detection capability
Seatwork (20min)
Encode the following bit stream using (+) pulse = 5V and (-) pulse = -5V NRZ-L NRZI last pulse prior the bit stream is (+) Bipolar-AMI start with (+) pulse Pseudoternary start with (+) pulse Manchester Differential Manchester last pulse prior the bit stream is low-to-high
1 0 1 0 0 0 1 1 1 0 0 1
Seatwork (20min)
Give the B8ZS equivalent of the ff. bit stream. Start with the (+) pulse. Label the violation.
1110000000011101101000
Give the HDB3 equivalent of the ff. bit stream. Start with the (+) pulse Label the violation and stuffing bit.
1010000011000011000000
Seatwork - Answer
Seatwork - Answer
Give the B8ZS equivalent of the ff. bit stream. Start with the (+) pulse. Label the violation.
Red violation Give the HDB3 equivalent of the ff. bit stream. Start with the (+) pulse Label the violation and stuffing bit.
Modulation Techniques
AMPLITUDE SHIFT KEYING
two binary values are represented by two different amplitudes of the carrier frequency The resulting signal is:
the two binary values are represented by two different frequencies near the carrier frequency The resulting signal is:
In presence of noise:
Bit error rate of PSK are about 3dB superior to ASK and FSK
Seatwork (10min)
Give the quantized code and the PCM equivalent of the given signal. PAM value is given.
Seatwork - Answer
Non-Linear Coding
Quantization levels are not equally spaced. The problem with equal spacing is that the mean absolute error for each sample is the same, regardless of signal level. Consequently, lower amplitude values are relatively more distorted. By using a greater number of quantizing steps for signals of low amplitude, and a smaller number of quantizing steps for signals of large amplitude, a marked reduction in overall signal distortion is achieve.
Companding
The same effect can be achieved by using uniform quantizing but companding (compressing-expanding) the input analog signal. COMPANDING is a process that compresses the intensity range of a signal by imparting more gain to weak signals than to strong signals on input. At output, the reverse operation is performed. Note that the effect on the input side is to compress the sample so that the higher values are reduced with respect to the lower values. ]Thus, with a fixed number of quantizing levels, more levels are available for lower-level signals. On the output side, the compander expands the samples so the compressed values are restored to their original values.
Companding
Delta Modulation
Popular alternative to PCM Analog input is approximated by a staircase function that moves up or down by one quantizing level () at each
sampling interval
Behavior is binary At each sampling time, the function only moves up or down at a constant level Thus, the output can be encoded as a single binary digit for each sample Two Important Parameters 1 for up or 0 for down Size of the step () Sampling size
END