Chapter 5 Pulse modulation Mind map: Mind map for Chapter 5 In Chapter 4, some parameters of a sinusoidal carrier wave are varied continuously in accordance with the message signal. In this chapter, some parameters of a pulse train are varied in accordance with the message signal. The carrier wave is a pulse, which is different from CW modulation. The following issues will be discussed:  Sampling, which is basic to all forms of pulse modulation.  Pulse amplitude modulation (PAM,脉冲幅度调制) (In discrete amplitude form).  Quantization (量化), after the process of sampling,in discrete form in both amplitude and time.  Pulsecode modulation(PCM,脉冲编码调制), which is the standard method for the transmission of an analog message signal by digital means.  TDM (时分复用).  Delta modulation(DM/ΔM,Δ调制/增量调制). Differential pulsecode modulation(DPCM,差分脉冲编码调制). 视频讲解 5.1Sampling process The process of digitizing an analog signal is illustrated in Figure 5.1.1. There are three main steps in the process of digitizing an analog signal: sampling, quantization and encoding. Figure 5.1.1The process of digitizing an analog signal 1. The sampling theorem (the sampling of lowpass analog signals) If the highest frequency of a continuous analog signal s(t) is less than fH, and if it is sampled by periodic impulses with interval time T≤1/2fH, then s(t) can be completely decided by these samples,as shown in Figure 5.1.2. Figure 5.1.2Sampling process The ideal form of sampling process is called instantaneous sampling (瞬时采样).Ts is the sampling period, and fs=1Ts is the sampling rate. The derived process is in the following Table 5.1.1: let the spectra of m(t), δT(t) and ms(t) be expressed by M(f),ΔΩ(f) and Ms(f). If the sampling frequency is lower than 2fH,the adjacent spectra will be superposed(重叠), hence the original signal spectrum M(f) could not be separated correctly by LPF at the receiver. Table 5.1.1The derivation of sampling process m(t) M(f) δT(t)=δ(t-nTs)ΔΩ(f)=1T∑∞n=-∞δ(f-nfs) ms(t)=m(t)·δT(t)Ms(f)=M(f)*ΔΩ(f)=1T∑∞-∞M(f-nfs) From Figure 5.1.2, the condition of restoration of original signal is fs≥2fH.The lowest sampling frequency 2fH is called Nyquist sampling rate(奈奎斯特采样速率).The corresponding largest sampling time interval is called Nyquist sampling interval(奈奎斯特采样间隔). 2. The sampling of bandpass analog signals The frequency band of bandpass signals is limited between fL and fH.B=fH-fL is the bandwidth of the analog signal. Here, we only give the result. The sampling frequency fs can be written as: fs=2B+2KBn=2B1+Kn (5.1.1) where n is the largest integer (整数) less than fH/B,00, the polarity bit c1=1; (2) Second, 1270 is in the 8th segment, so c2c3c4=111; (3) Finally, determine which innersegment 1270 is in. There are usually two methods. One is the successive comparison (逐次比较). Another one is direct calculation. The 8th segment is plotted in Figure 5.4.2. Figure 5.4.2The quantization interval of 8th segment Successive comparisons: 1270<1536,c5=0 1270<1280,c6=0 1270>1152,c7=1 1270>1216,c8=1 Direct calculation: innersegment quantization interval is (2048-1024)/16=64; Since (1270-1024)/64≈3.8, the inner segment coding is c5c6c7c8=0011. Quantization error is: 1270-(1216+1280)/2=22Δ. Therefore, the output of PCM encoder is 11110011 and the quantization error is 22Δ. 5.4.2Noise in PCM system The derivation signal to quantization noise ratio of the uniform quantizer has been discussed in Section 5.3.1. S/Nq=M2 When N bits binary code word is used for encoding, the above equation can be written as S/Nq=22N(M=2N) This equation shows that S/Nq of PCM system is only related to N and increases with N exponentially. For a lowpass signal, the sampling rate should be no less than 2fH, so in the PCM system, this is equivalent to not less than 2NfHb/s. The system bandwidth is at least B=NfH. S/Nq=22(B/fH) The S/Nq of PCM system increases with the bandwidth B exponentially. 5.4.3Delta modulation (增量调制) 1. Principle Delta modulation(DM or ΔM)provides a staircase approximation to the oversampled (i.e.,at a rate much higher than the Nyquist rate) version of the message signal, as illustrated in Figure 5.4.3. Figure 5.4.3The waveform of DM The difference between the input and the approximation is quantized into only two levels, namely,±Δ, corresponding to positive and negative differences. If the approximation falls below the signal at any sampling epoch, it is increased by Δ.If the approximation lies above the signal, it is diminished by Δ. The principal (主要的)virtue of delta modulation is its simplicity. It may be generated by applying the sampled version of the incoming message signal to a modulator that involves a comparator (比较器), quantizer and accumulator interconnected as shown in Figure 5.4.4. The block labeled z-1 inside the accumulator represents a unit delay, that is, a delay equal to one sampling period. Figure 5.4.4DM system The basic principle of Δ modulation is in the following: e[n]=m[n]-mq[n-1] eq=Δsgn[e(n)] mq[n]=mq[n-1]+eq[n] The quantizer output mq[n] is coded to produce the DM signal. The rate of information transmission is simply equal to the sampling rate fs=1Ts. 2. Quantization error There are two types of quantization error: slope overload distortion and granular noise (see Figure 5.4.5). Figure 5.4.5Two different forms of quantization error If considered the maximum slope of the original input waveform m(t), it is clear that in order for the sequence of samples {mq[n]} to increase as fast as the input sequence of samples {m[n]} in a region of maximum slope of m(t), we require that the following condition: ΔTs≥maxdm(t)dt be satisfied. Otherwise, we find the stepsize Δ is too small for the staircase approximation mq(t). In contrast to slopeoverloaded distortion, granular noise is analogous (类似) to quantization noise in a PCM system. 5.4.4DPCM(differential pulse code modulation,差分脉冲调制) When a voice or video signal exhibits a high degree of correlation between adjacent samples (邻近的采样) the resulting PCM encoded signal will contain redundant information (冗余信息). In order to remove this redundancy before encoding, we use a more efficient coded signal, which is the basic idea of DPCM, as shown in Figure 5.4.6. Figure 5.4.6DPCM system The input signal of the DPCM quantizer is e[n]=m[n]-m^[n] where m[n] is the unquantized sample signal and m^[n] is the prediction of m[n]. The relationship between the output and input of the predictor is m^=∑qi=1aimq(线性预测) where p is the prediction order and ai is the prediction coefficient(系数).The predicted value is the weighted sum of previous p samples of the signal with quantization error. If p=1,a1=1 then m^=mq-1.The predictor is simply a delay circuit, and the delay time is sampling interval T. If the quantizer is onebit (twolevel),the DPCM is ΔM,i.e.ΔM is the special case of DPCM. 5.5TDM(timedivision multiplexing,时分复用) The concept of TDM is shown in Figure 5.5.1. Each input message signal is first restricted in a lowpass antialiasing filter. The functions of each part are described below. Figure 5.5.1Block diagram of TDM system LPF: restricts each input message in bandwidth and removes the nonessential frequencies. Commutator (换向器): which is usually implemented using electronic switching circuitry. The function is to sequentially interleave these N samples inside. The sampling interval is T. It is the essence of TDM operation. Pulse modulator: transform the multiplexed signal into a form suitable for transmission over the common channel. Pulse demodulator: the reverse operation of pulse modulator. Decommutator: operates in synchronism (同步) with commutator in the transmitter. The multiplexing of digital signals is accomplished by using a bitbybit interleaving procedure with a selector switch that sequentially takes a bit from each incoming line and then applies it to the highspeed common line. At the receiving end of the system the output of this common line is separated out into its lowspeed individual components and then delivered to their respective destination, as plotted in Figure 5.5.2. Figure 5.5.2Principle of TDM Summary and discussion In this chapter, we introduced the process of analog signal digitization: sampling, quantization and encoding. (1) Sampling, which operates in the time domain; the sampling process is the link between an analog waveform and its discretetime representation, which also is an analog signal in amplitude. (2) Quantization, which operates in the amplitude domain; the quantization process is the link between an analog waveform and its discreteamplitude representation. (3) Encoding, which operates in both time and amplitude domain, encoding process is the link between discreteamplitude and binary representation. The sampling process is based on the sampling theorem, which states that when an analog signal with frequency band within (0, fH) is sampled, the lowest sampling rate should not be less than Nyquist sampling rate 2fH. The sampled signal may be converted to different analog pulse modulation signals, including PAM, PDM and PPM. In TDM of several channels, signal processing usually begins with PAM. In order to make full use of the time interval of each sampling point, TDM is designed and applied in speech communication system. There are two methods for the quantization of a sampled signal, one is uniform quantization, another one is nonuniform quantization. Nonuniform quantization is usually applied in speech signal with the logarithm characteristic recommended by ITUT, i.e., Alaw and μlaw, which may effectively improve signal to quantization noise ratio, especially the small amplitude signal. European countries and China adopt Alaw; North American countries and Japan as well as other counties and areas adopt μlaw. 13 segment and 15 segment methods are applied in digital circuits to achieve the Alaw and μlaw quantization. Signal after quantization is already a digital signal. Encoding methods, such as PCM, DPCM and ΔM, are usually used to convert a quantized signal into a binary signal. This process is lossy in the sense that some information is lost, but the loss of information is under the designer’s control in that it can be made small enough. The signal to quantization ratio of PCM system increases with the bandwidth B exponentially, while the analog modulation increases linearly. That is why PCM and its improved coding are widely used. Homework 5.1Suppose the spectrum of a message signal m(t) is M(f),its expression is M(f)=1-|f|200,|f|<200Hz 0,otherwise (1) If the sampling rate is 300Hz, try to draw the spectrum of the sampled signal ms(t); (2) If the sampling rate is 400Hz, try to redraw it. 5.2Using Alaw 13 segment encoding, if the sampling value is 635, find the output of PCM encoder. 5.3Suppose the message signal is m(t)=9+Acosωt, where A≤10V. If m(t) is quantized to 40 levels, try to find the number of binary bits and the quantization intervals. Terminologies sampling采样 quantizing量化 encoding编码 uniform quantization均匀量化 nonuniform quantization非均匀量化 quantization noise量化噪声 equalizer均衡器 compressor压缩器 commutator换向器 PCM脉冲编码调制 DPCM差分脉冲编码调制 ΔM增量调制 PAM脉冲幅度调制 PDM脉冲宽度调制 PPM脉冲位置调制 TDM时分复用