Académique Documents
Professionnel Documents
Culture Documents
Digital Advantages
Better control of noise and distortion
Regenerative repeaters avoid accumulation of errors
I ! ktB
C ! 2 B log 2 M
B log 2 (1 S / N )
Pulse Modulation
Sending an analog signal digitally requires sampling Sampling rate must be at least twice the highest frequency component in the signal If sampling rate is too low, aliasing results
Very undesirable
Aliasing
Produces distortion products whose frequency is difference between sampling rate and signal frequency f a = fs - f m
Linear PCM
Steps between voltage levels are all the same size Gives very good results provided enough bits are used Problems arise when few bits used Many signals are towards the low end of range and are represented by only a few bits These low-level signals are greatly distorted
Companding
Low-level signals are boosted at transmitter so they are represented by more bits This reduces distortion for low-level sigs Distortion for high-level sigs is increased but is still less than for low-level signals At the receiver, gain must be reduced for low level signals to compensate
Companding
At transmitter (or recorder): compression At receiver (or playback): expansion Dolby and dBx are well-known forms of companding used in consumer audio systems Telephone system has its own version called mu-law companding
Mu-Law Compression
Vi ln(1 Qvi / Vi ) Vo ! ln(1 Q ) Q ! 255
PCM Coding
Signal must be low-pass filtered to avoid aliasing Next it is sampled Samples go to A/D converter to be converted to a binary number Parallel to serial conversion required before transmission If done, compression can be applied to the analog signal before sampling or to the digital number
Decoding
Serial-to-parallel conversion Signal goes to D/A converter If compression done at transmitter, expansion must be done at receiver Expansion can be done by doing arithmetic on the binary numbers, or on the analog signal Analog signal goes through a low-pass filter as at the transmitter
Codec
Stands for coder/decoder One chip can do both Sometimes called a combo chip
Differential PCM
Transmits only the differences between one sample level and the next Can be done with fewer bits per sample, based on the assumption that consecutive samples usually have similar amplitudes The most extreme form of differential PCM is delta modulation
Delta Modulation
An alternative to PCM Only one bit per sample Bit determines which direction voltage has moved since last sample
1 = up 0 = down
Delta Modulation
Sampling rate must be much higher than for PCM Total bit rate can still be lower
Slope Overload
Occurs in delta modulation system when sampling rate is too low] System cant keep up with rapid changes in voltage
Line Codes
A line code describes how logical ones and zeros are translated to physical values like voltage and current Many different line codes are possible. Here are a few examples
A positive (or negative) voltage can represent a logic one Zero volts can represent a logic zero The code for zero and one can be reversed
Bipolar NRZ
Similar to Unipolar NRZ except equal positive and negative voltages are used for logic one and zero If the number of ones and zeros is equal in the message there will be no dc component to the signal This is important if the line has transformers or amplifiers
RZ Codes
Voltage is required to return to zero once every bit period Better when clock information has to be carried with the data Bipolar RZ codes can be designed to have no dc component regardless of the data
AMI Code
Used for telephone signals Logic zero = zero volts Logic one = voltage pulse
Polarity of pulse switches from plus to minus with each pulse
Never any dc Long string of zeros will cause timing info to be lost
Manchester Code
Voltage transition signifies the value of a bit Transition from negative to positive = 1 Transition from positive to negative = 0 Never any dc component Timing info is always present Used in Ethernet LANs Requires more bandwidth than other codes
Time-Division Multiplexing
Recall from Hartleys Law that time and bandwidth are equivalent In FDM (frequency-division multiplexing) each signal has part of the bandwidth on a full-time basis In TDM (time-division multiplexing) each signal has the full bandwidth for part of the time
TDM in Telephony
Lowest level is DS-1 signal 1 sample from each of 24 signals is transmitted in sequence 1 framing bit also needed for synchronization
Digital Hierarchy
DS-1 signal, T-1 line are lowest level Other, higher bit rates can be created by multiplexing DS-1 signals using TDM
Data Compression
Data compression reduces number of bits that must be transmitted. Two main types of data compression: lossless and lossy. Lossless compression takes advantage of redundant data or codes it more efficiently. Lossy compression removes data while having as little effect as possible on received signal.
Run-length Encoding
Use a short string of bits to represent a longer string, for instance say 20 zeros instead of 00000000000000000000. Use shorter strings to encode more common symbols, for instance, the letter e could use fewer bits than the letter q.
Vocoders
A vocoder (voice coder) is an example of lossy compression applied to human speech A typical vocoder reduces the amount of data that needs to be transmitted by constructing a model of the human vocal system
Filters
3 to 6 bandpass filters to represent the resonances in the vocal tract.
Vocoder Design
Start with excitation function. Follow up with parameters for a multi-pole filter. Transmit the parameters for excitation and filter at about 20 ms intervals. Vocoders like this are called linear predicted coders. Vocoders operate on a conventional PCM signal.
Vocoder Types
There are two main ways of generating the excitation signal in a linear predictive vocoder:
Pulse Excited Linear Predictive (PELP) Residual Excited Linear Predictive (RELP)
PELP Vocoder
Receiver has pulse generator and noise generator and receives parameters for them from transmitter.
PELP Vocoder
RELP Vocoder
Receiver has fixed filter Transmitter applies inverse of this filter to the voice signal to generate a residual signal. Transmitter then finds the closest signal to the residual in a codebook and transmits the code for that signal to the receiver. Receiver generates residual from code and applies it to filter.