Difference between revisions of "Modulation Methods/Pulse Code Modulation"
(44 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
== # OVERVIEW OF THE FOURTH MAIN CHAPTER # == | == # OVERVIEW OF THE FOURTH MAIN CHAPTER # == | ||
<br> | <br> | ||
− | The fourth chapter deals with the digital modulation methods » | + | The fourth chapter deals with the digital modulation methods »'''amplitude shift keying'''« (ASK), »'''phase shift keying'''« (PSK) and »'''frequency shift keying'''« (FSK) as well as some modifications derived from them. Most of the properties of the analog modulation methods mentioned in the last two chapters still apply. Differences result from the now required »decision component« of the receiver. |
We restrict ourselves here essentially to the »system-theoretical and transmission aspects«. The error probability is given only for ideal conditions. The derivations and the consideration of non-ideal boundary conditions can be found in the book "Digital Signal Transmission". | We restrict ourselves here essentially to the »system-theoretical and transmission aspects«. The error probability is given only for ideal conditions. The derivations and the consideration of non-ideal boundary conditions can be found in the book "Digital Signal Transmission". | ||
In detail are treated: | In detail are treated: | ||
− | + | #the »pulse code modulation« (PCM) and its components "sampling" – "quantization" – "encoding", | |
− | + | #the »linear modulation« ASK, BPSK, DPSK and associated demodulators, | |
− | + | # the »quadrature amplitude modulation« (QAM) and more complicated signal space mappings, | |
− | + | #the »frequency shift keying« (FSK) as an example of non-linear digital modulation, | |
− | + | #the FSK with »continuous phase matching« (CPM), especially the (G)MSK method. | |
Line 23: | Line 23: | ||
==Principle and block diagram== | ==Principle and block diagram== | ||
<br> | <br> | ||
− | Almost all modulation methods used today work digitally. Their advantages have already been mentioned in the [[Modulation_Methods/Objectives_of_Modulation_and_Demodulation#Advantages_of_digital_modulation_methods|first chapter]] of this book. The first concept for digital signal transmission was already developed in 1938 by [https://en.wikipedia.org/wiki/Alec_Reeves Alec Reeves] and has also been used in practice since the 1960s under the name "Pulse Code Modulation" (PCM). Even though many of the digital modulation methods conceived in recent years differ from PCM in detail, it is very well suited to explain the principle of all these methods. | + | Almost all modulation methods used today work digitally. Their advantages have already been mentioned in the [[Modulation_Methods/Objectives_of_Modulation_and_Demodulation#Advantages_of_digital_modulation_methods|"first chapter"]] of this book. The first concept for digital signal transmission was already developed in 1938 by [https://en.wikipedia.org/wiki/Alec_Reeves $\text{Alec Reeves}$] and has also been used in practice since the 1960s under the name "Pulse Code Modulation" (PCM). Even though many of the digital modulation methods conceived in recent years differ from PCM in detail, it is very well suited to explain the principle of all these methods. |
The task of the PCM system is | The task of the PCM system is | ||
− | *to convert the analog source signal q(t) into the binary signal qC(t) – this process is also called '''A/D conversion''', | + | *to convert the analog source signal q(t) into the binary signal qC(t) – this process is also called »'''A/D conversion'''«, |
− | *transmitting this signal over the channel, where the receiver-side signal vC(t) is also binary because of the decision | + | *transmitting this signal over the channel, where the receiver-side signal vC(t) is also binary because of the decision, |
− | *to reconstruct from the binary signal vC(t) the analog (continuous-value as well as continuous-time) sink signal v(t) ⇒ '''D/A conversion'''. | + | *to reconstruct from the binary signal vC(t) the analog (continuous-value as well as continuous-time) sink signal v(t) ⇒ »'''D/A conversion'''«. |
[[File:EN_Mod_T_4_1_S1_v2.png|right|frame|Principle of Pulse Code Modulation (PCM)<br><br> | [[File:EN_Mod_T_4_1_S1_v2.png|right|frame|Principle of Pulse Code Modulation (PCM)<br><br> | ||
Line 36: | Line 36: | ||
qC(t) ∘−−−∙ QC(f) ⇒ coded source signal (from German: "codiert" ⇒ "C"), binary <br> | qC(t) ∘−−−∙ QC(f) ⇒ coded source signal (from German: "codiert" ⇒ "C"), binary <br> | ||
s(t) ∘−−−∙ S(f) ⇒ transmitted signal (from German: "Sendesignal"), digital<br> | s(t) ∘−−−∙ S(f) ⇒ transmitted signal (from German: "Sendesignal"), digital<br> | ||
− | n(t) ⇒ noise signal, | + | n(t) ⇒ noise signal, characterized by the power-spectral density Φn(f), analog |
r(t)=s(t)⋆hK(t)+n(t) ⇒ received signal, hK(t) ∘−−−∙ HK(f), analog<br> | r(t)=s(t)⋆hK(t)+n(t) ⇒ received signal, hK(t) ∘−−−∙ HK(f), analog<br> | ||
− | | + | Note: Spectrum R(f) can not be specified due to the stochastic component n(t).<br> |
vC(t) ∘−−−∙ VC(f) ⇒ signal after decision, binary<br> | vC(t) ∘−−−∙ VC(f) ⇒ signal after decision, binary<br> | ||
vQ(t) ∘−−−∙ VQ(f) ⇒ signal after PCM decoding, M–level<br> | vQ(t) ∘−−−∙ VQ(f) ⇒ signal after PCM decoding, M–level<br> | ||
− | | + | Note: On the receiver side, there is no counterpart to "Quantization"<br> |
v(t) ∘−−−∙ V(f) ⇒ sink signal, analog<br>]] | v(t) ∘−−−∙ V(f) ⇒ sink signal, analog<br>]] | ||
Line 47: | Line 47: | ||
Further it should be noted to this PCM block diagram: | Further it should be noted to this PCM block diagram: | ||
− | *The PCM transmitter ("A/D converter") is composed of three function blocks '''Sampling - Quantization - PCM Coding''' which will be described in more detail in the next sections. | + | *The PCM transmitter ("A/D converter") is composed of three function blocks »'''Sampling - Quantization - PCM Coding'''« which will be described in more detail in the next sections. |
*The gray-background block "Digital Transmission System" shows "transmitter" (modulation), "receiver" (with decision unit), and "analog transmission channel" ⇒ channel frequency response HK(f) and noise power-spectral density Φn(f). | *The gray-background block "Digital Transmission System" shows "transmitter" (modulation), "receiver" (with decision unit), and "analog transmission channel" ⇒ channel frequency response HK(f) and noise power-spectral density Φn(f). | ||
− | *This block is covered in the first three chapters of the book [[Digital_Signal_Transmission]]. In chapter 5 of the same book, you will find [[Digital_Signal_Transmission/Parameters_of_Digital_Channel_Models| | + | *This block is covered in the first three chapters of the book [[Digital_Signal_Transmission|"Digital Signal Transmission"]]. In chapter 5 of the same book, you will find [[Digital_Signal_Transmission/Parameters_of_Digital_Channel_Models|digital channel models]] that phenomenologically describe the transmission behavior using the signals qC(t) and vC(t). |
*Further, it can be seen from the block diagram that there is no equivalent for "quantization" at the receiver-side. Therefore, even with error-free transmission, i.e., for vC(t)=qC(t), the analog sink signal v(t) will differ from the source signal q(t). | *Further, it can be seen from the block diagram that there is no equivalent for "quantization" at the receiver-side. Therefore, even with error-free transmission, i.e., for vC(t)=qC(t), the analog sink signal v(t) will differ from the source signal q(t). | ||
− | *As a measure of the quality of the digital transmission system, we use the [[Modulation_Methods/Quality_Criteria#Signal.E2.80.93to.E2.80.93noise_.28power.29_ratio|Signal-to-Noise Power Ratio]] ⇒ in short: '''Sink-SNR''' as the quotient of the powers of source signal q(t) and | + | *As a measure of the quality of the digital transmission system, we use the [[Modulation_Methods/Quality_Criteria#Signal.E2.80.93to.E2.80.93noise_.28power.29_ratio|$\text{Signal-to-Noise Power Ratio}$]] ⇒ in short: »'''Sink-SNR'''« as the quotient of the powers of source signal q(t) and error signal ε(t)=v(t)−q(t): |
:$$\rho_{v} = \frac{P_q}{P_\varepsilon}\hspace{0.3cm} {\rm with}\hspace{0.3cm}P_q = \overline{[q(t)]^2}, | :$$\rho_{v} = \frac{P_q}{P_\varepsilon}\hspace{0.3cm} {\rm with}\hspace{0.3cm}P_q = \overline{[q(t)]^2}, | ||
\hspace{0.2cm}P_\varepsilon = \overline{[v(t) - q(t)]^2}\hspace{0.05cm}.$$ | \hspace{0.2cm}P_\varepsilon = \overline{[v(t) - q(t)]^2}\hspace{0.05cm}.$$ | ||
Line 61: | Line 61: | ||
*Here, an ideal amplitude matching is assumed, so that in the ideal case (that is: sampling according to the sampling theorem, best possible signal reconstruction, infinitely fine quantization) the sink signal v(t) would exactly match the source signal q(t). | *Here, an ideal amplitude matching is assumed, so that in the ideal case (that is: sampling according to the sampling theorem, best possible signal reconstruction, infinitely fine quantization) the sink signal v(t) would exactly match the source signal q(t). | ||
<br clear=all> | <br clear=all> | ||
− | We would like to refer you already here to the three-part (German language) learning video [[Pulscodemodulation_(Lernvideo)|"Pulse Code Modulation"]] which contains all aspects of PCM. Its principle is explained in detail in the first part of the video. | + | ⇒ We would like to refer you already here to the three-part (German language) learning video [[Pulscodemodulation_(Lernvideo)|"Pulse Code Modulation"]] which contains all aspects of PCM. Its principle is explained in detail in the first part of the video. |
==Sampling and signal reconstruction== | ==Sampling and signal reconstruction== | ||
Line 72: | Line 72: | ||
*The (blue) source signal q(t) is "continuous-time", the (green) signal sampled at a distance TA is "discrete-time". | *The (blue) source signal q(t) is "continuous-time", the (green) signal sampled at a distance TA is "discrete-time". | ||
− | *The sampling can be represented by multiplying the analog signal q(t) by the [[Signal_Representation/Discrete-Time_Signal_Representation#Dirac_comb_in_time_and_frequency_domain|Dirac comb in the time domain]] ⇒ pδ(t): | + | *The sampling can be represented by multiplying the analog signal q(t) by the [[Signal_Representation/Discrete-Time_Signal_Representation#Dirac_comb_in_time_and_frequency_domain|$\text{Dirac comb in the time domain}$]] ⇒ pδ(t): |
:qA(t)=q(t)⋅pδ(t)withpδ(t)=∞∑ν=−∞TA⋅δ(t−ν⋅TA). | :qA(t)=q(t)⋅pδ(t)withpδ(t)=∞∑ν=−∞TA⋅δ(t−ν⋅TA). | ||
Line 82: | Line 82: | ||
*The spectrum QA(f) of the sampled source signal qA(t) is obtained from the [[Signal_Representation/The_Convolution_Theorem_and_Operation| | *The spectrum QA(f) of the sampled source signal qA(t) is obtained from the [[Signal_Representation/The_Convolution_Theorem_and_Operation| | ||
− | Convolution Theorem]], where Q(f)∙−−−∘q(t): | + | $\text{Convolution Theorem}$]], where Q(f)∙−−−∘q(t): |
:QA(f)=Q(f)⋆Pδ(f)=+∞∑μ=−∞Q(f−μ⋅fA). | :QA(f)=Q(f)⋆Pδ(f)=+∞∑μ=−∞Q(f−μ⋅fA). | ||
− | We refer you to part 2 of the (German language) learning video [[Pulscodemodulation_(Lernvideo)|"Pulse Code Modulation"]] which explains sampling and signal reconstruction in terms of system theory. | + | ⇒ We refer you to part 2 of the (German language) learning video [[Pulscodemodulation_(Lernvideo)|"Pulse Code Modulation"]] which explains sampling and signal reconstruction in terms of system theory. |
{{GraueBox|TEXT= | {{GraueBox|TEXT= | ||
− | Example 1: The graph | + | Example 1: The graph schematically shows the spectrum Q(f) of an analog source signal q(t) with frequencies up to fN, max=5 kHz. |
[[File:P_ID1593__Mod_T_4_1_S2b_neu.png |right|frame| Periodic continuation of the spectrum by sampling]] | [[File:P_ID1593__Mod_T_4_1_S2b_neu.png |right|frame| Periodic continuation of the spectrum by sampling]] | ||
Line 104: | Line 104: | ||
Conclusion: | Conclusion: | ||
From this example, the following important lessons can be learned regarding sampling: | From this example, the following important lessons can be learned regarding sampling: | ||
− | #If Q(f) contains frequencies up to fN, max, then according to the [[Signal_Representation/Discrete-Time_Signal_Representation#Sampling_theorem|Sampling Theorem]] the sampling rate fA≥2⋅fN, max should be chosen. At smaller sampling rate fA (thus larger spacing TA) overlaps of the periodized spectra occur, i.e. irreversible distortions. | + | #If Q(f) contains frequencies up to fN, max, then according to the [[Signal_Representation/Discrete-Time_Signal_Representation#Sampling_theorem|$\text{Sampling Theorem}$]] the sampling rate fA≥2⋅fN, max should be chosen. At smaller sampling rate fA (thus larger spacing TA) overlaps of the periodized spectra occur, i.e. irreversible distortions. |
− | #If exactly fA=2⋅fN, max as in the lower graph of Example 1, then Q(f) can be can be completely reconstructed from QA(f) by an ideal rectangular low-pass filter H(f) with cutoff frequency fG=fA/2. The same facts apply in the [[Modulation_Methods/Pulse_Code_Modulation#Principle_and_block_diagram|PCM system]] to extract V(f) from VQ(f) in the best possible way. | + | #If exactly fA=2⋅fN, max as in the lower graph of Example 1, then Q(f) can be can be completely reconstructed from QA(f) by an ideal rectangular low-pass filter H(f) with cutoff frequency fG=fA/2. The same facts apply in the [[Modulation_Methods/Pulse_Code_Modulation#Principle_and_block_diagram|$\text{PCM system}$]] to extract V(f) from VQ(f) in the best possible way. |
#On the other hand, if sampling is performed with fA>2⋅fN, max as in the middle graph of the example, a low-pass filter H(f) with a smaller slope can also be used on the receiver side for signal reconstruction, as long as the following condition is met: | #On the other hand, if sampling is performed with fA>2⋅fN, max as in the middle graph of the example, a low-pass filter H(f) with a smaller slope can also be used on the receiver side for signal reconstruction, as long as the following condition is met: | ||
::$$H(f) = \left\{ 10 \right.\quad \begin{array}{*{5}c}{\rm{for} } | ::$$H(f) = \left\{ 10 \right.\quad \begin{array}{*{5}c}{\rm{for} } | ||
Line 112: | Line 112: | ||
==Natural and discrete sampling== | ==Natural and discrete sampling== | ||
<br> | <br> | ||
− | Multiplication by the Dirac comb provides only an idealized description of the sampling, since a Dirac delta function (duration TR→0, height 1/TR→∞) is not realizable. In practice, the "Dirac comb" pδ(t) must be replaced | + | Multiplication by the Dirac comb provides only an idealized description of the sampling, since a Dirac delta function (duration TR→0, height 1/TR→∞) is not realizable. In practice, the "Dirac comb" pδ(t) must be replaced by a "rectangular pulse comb" pR(t) with rectangle duration TR (see upper sketch): |
[[File: EN_Mod_T_4_1_S3a.png |right|frame| Rectangular comb (on the top), natural and discrete sampling]] | [[File: EN_Mod_T_4_1_S3a.png |right|frame| Rectangular comb (on the top), natural and discrete sampling]] | ||
:pR(t)=+∞∑ν=−∞gR(t−ν⋅TA), | :pR(t)=+∞∑ν=−∞gR(t−ν⋅TA), | ||
:$$g_{\rm R}(t) = \left\{ 11/20 \right.\quad | :$$g_{\rm R}(t) = \left\{ 11/20 \right.\quad | ||
− | \begin{array}{*{5}c}{\rm{ | + | \begin{array}{*{5}c}{\rm{for}}\\{\rm{for}} \\{\rm{for}} \\ \end{array}\begin{array}{*{10}c}{\hspace{0.04cm}\left|\hspace{0.06cm} t \hspace{0.05cm} \right|} < T_{\rm R}/2\hspace{0.05cm}, \\{\hspace{0.04cm}\left|\hspace{0.06cm} t \hspace{0.05cm} \right|} = T_{\rm R}/2\hspace{0.05cm}, \\ |
{\hspace{0.005cm}\left|\hspace{0.06cm} t \hspace{0.05cm} \right|} > T_{\rm R}/2\hspace{0.05cm}. \\ | {\hspace{0.005cm}\left|\hspace{0.06cm} t \hspace{0.05cm} \right|} > T_{\rm R}/2\hspace{0.05cm}. \\ | ||
\end{array}$$ | \end{array}$$ | ||
Line 123: | Line 123: | ||
The graphic show two different sampling methods using the comb pR(t): | The graphic show two different sampling methods using the comb pR(t): | ||
− | *In '''natural sampling''' the sampled signal qA(t) is obtained by multiplying the analog source signal q(t) by pR(t). Thus in the ranges pR(t)=1, qA(t) has the same progression as q(t). | + | *In »'''natural sampling'''« the sampled signal qA(t) is obtained by multiplying the analog source signal q(t) by pR(t). Thus in the ranges pR(t)=1, qA(t) has the same progression as q(t). |
− | *In '''discrete sampling''' the signal q(t) is – at least mentally – first multiplied by the Dirac comb pδ(t). Then each Dirac delta | + | *In »'''discrete sampling'''« the signal q(t) is – at least mentally – first multiplied by the Dirac comb pδ(t). Then each Dirac delta pulse TA⋅δ(t−ν⋅TA) is replaced by a rectangular pulse gR(t−ν⋅TA) . |
Line 137: | Line 137: | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
Definition: The | Definition: The | ||
− | '''natural sampling''' can be represented by the convolution theorem in the spectral domain as follows: | + | »'''natural sampling'''« can be represented by the convolution theorem in the spectral domain as follows: |
:$$q_{\rm A}(t) = p_{\rm R}(t) \cdot q(t) = \left [ \frac{1}{T_{\rm A} } \cdot p_{\rm \delta}(t) \star g_{\rm R}(t)\right ]\cdot q(t) \hspace{0.3cm} | :$$q_{\rm A}(t) = p_{\rm R}(t) \cdot q(t) = \left [ \frac{1}{T_{\rm A} } \cdot p_{\rm \delta}(t) \star g_{\rm R}(t)\right ]\cdot q(t) \hspace{0.3cm} | ||
\Rightarrow \hspace{0.3cm}Q_{\rm A}(f) = \left [ P_{\rm \delta}(f) \cdot \frac{1}{T_{\rm A} } \cdot G_{\rm R}(f) \right ] \star Q(f) = P_{\rm R}(f) \star Q(f)\hspace{0.05cm}.$$}} | \Rightarrow \hspace{0.3cm}Q_{\rm A}(f) = \left [ P_{\rm \delta}(f) \cdot \frac{1}{T_{\rm A} } \cdot G_{\rm R}(f) \right ] \star Q(f) = P_{\rm R}(f) \star Q(f)\hspace{0.05cm}.$$}} | ||
Line 152: | Line 152: | ||
One can see from this plot: | One can see from this plot: | ||
#The spectrum PR(f) is in contrast to Pδ(f) not a Dirac comb (all weights equal 1), but the weights here are evaluated to the function GR(f)/TA=TR/TA⋅sinc(f⋅TR). | #The spectrum PR(f) is in contrast to Pδ(f) not a Dirac comb (all weights equal 1), but the weights here are evaluated to the function GR(f)/TA=TR/TA⋅sinc(f⋅TR). | ||
− | #Because of the zero of the sinc-function, the Dirac lines vanish here at ±4fA. | + | #Because of the zero of the sinc-function, the Dirac delta lines vanish here at ±4fA. |
− | #The spectrum QA(f) results from the convolution with Q(f). The rectangle around f=0 has height $T_{\rm R}/T_{\rm A} | + | #The spectrum QA(f) results from the convolution with Q(f). The rectangle around f=0 has height $T_{\rm R}/T_{\rm A} \cdot Q_0$, the proportions around $\mu \cdot f_{\rm A} \ (\mu ≠ 0)$ are lower. |
− | #If one uses an ideal, rectangular | + | #If one uses for signal reconstruction an ideal, rectangular low-pass |
− | :$$H(f) = \left\{ TA/TR=40 \right.\quad | + | ::$$H(f) = \left\{ TA/TR=40 \right.\quad |
forfor \begin{array}{*{10}c} | forfor \begin{array}{*{10}c} | ||
{\hspace{0.04cm}\left| \hspace{0.005cm} f\hspace{0.05cm} \right| < f_{\rm A}/2}\hspace{0.05cm}, \\ | {\hspace{0.04cm}\left| \hspace{0.005cm} f\hspace{0.05cm} \right| < f_{\rm A}/2}\hspace{0.05cm}, \\ | ||
{\hspace{0.04cm}\left| \hspace{0.005cm} f\hspace{0.05cm} \right| > f_{\rm A}/2}\hspace{0.05cm}, \\ | {\hspace{0.04cm}\left| \hspace{0.005cm} f\hspace{0.05cm} \right| > f_{\rm A}/2}\hspace{0.05cm}, \\ | ||
− | \end{array}$$ | + | \end{array},$$ |
− | : | + | ::then for the output spectrum V(f)=Q(f) ⇒ v(t)=q(t). |
+ | |||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
Conclusion: | Conclusion: | ||
− | *For natural sampling, a rectangular–low-pass filter is sufficient for signal reconstruction as for ideal sampling (with Dirac | + | *For natural sampling, '''a rectangular–low-pass filter is sufficient for signal reconstruction''' as for ideal sampling (with Dirac comb). |
− | *However, for amplitude matching in the passband, a gain by the factor TA/TR must be considered. }} | + | *However, for amplitude matching in the passband, a gain by the factor TA/TR must be considered. }} |
Line 173: | Line 174: | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
Definition: | Definition: | ||
− | In '''discrete sampling''' the multiplication of the Dirac | + | In »'''discrete sampling'''« the multiplication of the Dirac comb pδ(t) with the source signal q(t) takes place first – at least mentally – and only afterwards the convolution with the rectangular pulse gR(t): |
:$$q_{\rm A}(t) = \big [ {1}/{T_{\rm A} } \cdot p_{\rm \delta}(t) | :$$q_{\rm A}(t) = \big [ {1}/{T_{\rm A} } \cdot p_{\rm \delta}(t) | ||
\cdot q(t)\big ]\star g_{\rm R}(t) \hspace{0.3cm} \Rightarrow \hspace{0.3cm}Q_{\rm A}(f) = \big [ P_{\rm \delta}(f) \star Q(f) \big ] \cdot G_{\rm R}(f)/{T_{\rm A} } \hspace{0.05cm}.$$ | \cdot q(t)\big ]\star g_{\rm R}(t) \hspace{0.3cm} \Rightarrow \hspace{0.3cm}Q_{\rm A}(f) = \big [ P_{\rm \delta}(f) \star Q(f) \big ] \cdot G_{\rm R}(f)/{T_{\rm A} } \hspace{0.05cm}.$$ | ||
− | *It is irrelevant, but quite convenient, that here the factor 1/TA has been added to the | + | *It is irrelevant, but quite convenient, that here the factor 1/TA has been added to the evaluation function GR(f). |
− | *Thus, $G_{\rm R}(f)/T_{\rm A} = T_{\rm R}/T_{\rm A} | + | *Thus, $G_{\rm R}(f)/T_{\rm A} = T_{\rm R}/T_{\rm A} \cdot {\rm sinc}(fT_{\rm R}).$}} |
− | + | [[File:EN_Mod_T_4_1_S3c_neu.png|right|frame| Spectrum when discretely sampled with a rectangular comb]] | |
− | + | *The upper graph shows (highlighted in green) the spectral function Pδ(f)⋆Q(f) after ideal sampling. | |
+ | *In contrast, discrete sampling with a rectangular comb yields the spectrum QA(f) corresponding to the lower graph. | ||
− | |||
− | |||
− | |||
− | + | You can see from this plot: | |
− | :$$V(f) = Q(f) \cdot {\rm | + | #Each of the infinitely many partial spectra now has a different shape. Only the middle spectrum around f=0 is important; |
+ | #All other spectral components are removed at the receiver side by the low-pass of the signal reconstruction. | ||
+ | #If one uses for this low-pass again a rectangular filter with the gain TA/TR in the passband, one obtains for the output spectrum: | ||
+ | :$$V(f) = Q(f) \cdot {\rm sinc}(f \cdot T_{\rm R}) \hspace{0.05cm}.$$ | ||
<br clear=all> | <br clear=all> | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
− | Conclusion: | + | Conclusion: '''Discrete sampling and rectangular filtering result in attenuation distortions''' according to the weighting function ${\rm sinc}(f \cdot T_{\rm R})$. |
− | *These are | + | *These are stronger, the larger TR is. Only in the limiting case TR→0 holds ${\rm sinc}(f\cdot T_{\rm R}) = 1$. |
− | *However, ideal equalization can fully compensate for these linear attenuation distortions. | + | *However, ideal equalization can fully compensate for these linear attenuation distortions. To obtain V(f)=Q(f) resp. v(t)=q(t) then must hold: |
− | + | :$$H(f) = \left\{ \begin{array}{l} (T_{\rm A}/T_{\rm R})/{\rm sinc}(f \cdot T_{\rm R}) \\ 0 \\ \end{array} \right.\quadforfor \begin{array}{*{10}c} | |
− | :$$H(f) = \left\{ \begin{array}{l} (T_{\rm A}/T_{\rm R})/{\rm \begin{array}{*{10}c} | ||
{\hspace{0.04cm}\left \vert \hspace{0.005cm} f\hspace{0.05cm} \right \vert < f_{\rm A}/2}\hspace{0.05cm}, \\ | {\hspace{0.04cm}\left \vert \hspace{0.005cm} f\hspace{0.05cm} \right \vert < f_{\rm A}/2}\hspace{0.05cm}, \\ | ||
− | {\hspace{0.04cm}\left \vert \hspace{0.005cm} f\hspace{0.05cm} \right \vert > f_{\rm A}/2} \\ | + | {\hspace{0.04cm}\left \vert \hspace{0.005cm} f\hspace{0.05cm} \right \vert > f_{\rm A}/2.} \\ |
\end{array}$$}} | \end{array}$$}} | ||
Line 205: | Line 206: | ||
==Quantization and quantization noise== | ==Quantization and quantization noise== | ||
<br> | <br> | ||
− | The second functional unit '''Quantization''' of the PCM transmitter is used for value discretization. | + | The second functional unit »'''Quantization'''« of the PCM transmitter is used for value discretization. |
− | *For this purpose the whole value range of the analog source signal ( | + | *For this purpose the whole value range of the analog source signal (e.g., the range ±qmax) is divided into M intervals. |
− | * Each sample qA(ν⋅TA) is then assigned a representative qQ(ν⋅TA) of the associated interval ( | + | * Each sample qA(ν⋅TA) is then assigned to a representative qQ(ν⋅TA) of the associated interval (e.g., the interval center) . |
{{GraueBox|TEXT= | {{GraueBox|TEXT= | ||
− | Example 2: The graph illustrates quantization using the quantization step number | + | Example 2: The graph illustrates the unit "quantization" using the quantization step number M=8 as an example. |
− | [[File:Mod_T_4_1_S4a_vers2.png | | + | [[File:Mod_T_4_1_S4a_vers2.png |right|frame| To illustrate "quantization" with M=8 steps]] |
− | *In fact, a power of two is always chosen for M in practice because of the subsequent binary coding. | + | *In fact, a power of two is always chosen for M in practice because of the subsequent binary coding. |
− | *Each of the samples | + | *Each of the samples $q_{\rm A}(ν \cdot T_{\rm A})$ marked by circles is replaced by the corresponding quantized value $q_{\rm Q}(ν \cdot T_{\rm A})$. The quantized values are entered as crosses. |
− | *However, this process of value discretization is associated with an irreversible falsification. | + | *However, this process of value discretization is associated with an irreversible falsification. |
− | *The falsification $ε_ν = q_{\rm Q}(ν | + | *The falsification $ε_ν = q_{\rm Q}(ν \cdot T_{\rm A}) \ - \ q_{\rm A}(ν \cdot T_{\rm A}) depends on the quantization level number M$. The following bound applies: |
:|εν|<1/2⋅2/M⋅qmax=qmax/M. }} | :|εν|<1/2⋅2/M⋅qmax=qmax/M. }} | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
− | Definition: One refers to the | + | Definition: One refers to the second moment of the error quantity εν as »'''quantization noise power'''«: |
:$$P_{\rm Q} = \frac{1}{2N+1 } \cdot\sum_{\nu = -N}^{+N}\varepsilon_{\nu}^2 \approx \frac{1}{N \cdot | :$$P_{\rm Q} = \frac{1}{2N+1 } \cdot\sum_{\nu = -N}^{+N}\varepsilon_{\nu}^2 \approx \frac{1}{N \cdot | ||
T_{\rm A} } \cdot \int_{0}^{N \cdot T_{\rm A} }\varepsilon(t)^2 \hspace{0.05cm}{\rm d}t \hspace{0.3cm} {\rm with}\hspace{0.3cm}\varepsilon(t) = q_{\rm Q}(t) - q(t) \hspace{0.05cm}.$$}} | T_{\rm A} } \cdot \int_{0}^{N \cdot T_{\rm A} }\varepsilon(t)^2 \hspace{0.05cm}{\rm d}t \hspace{0.3cm} {\rm with}\hspace{0.3cm}\varepsilon(t) = q_{\rm Q}(t) - q(t) \hspace{0.05cm}.$$}} | ||
− | + | Notes: | |
*For calculating the quantization noise power PQ the given approximation of "spontaneous quantization" is usually used. | *For calculating the quantization noise power PQ the given approximation of "spontaneous quantization" is usually used. | ||
− | *Here, one ignores sampling and forms the error signal from the continuous-time signals qQ(t) and q(t). | + | *Here, one ignores sampling and forms the error signal from the continuous-time signals qQ(t) and q(t). |
− | *PQ also depends on the source signal q(t) | + | *PQ also depends on the source signal q(t). Assuming that q(t) takes all values between ±qmax with equal probability and the quantizer is designed exactly for this range, we get accordingly [[Aufgaben:Aufgabe_4.4:_Zum_Quantisierungsrauschen| "Exercise 4.4"]]: |
:PQ=q2max3⋅M2. | :PQ=q2max3⋅M2. | ||
− | *In a speech or music signal, arbitrarily large amplitude values can occur - even if only very rarely. In this case, for qmax usually that amplitude value is used which is exceeded only at 1% all times | + | *In a speech or music signal, arbitrarily large amplitude values can occur - even if only very rarely. In this case, for qmax usually that amplitude value is used which is exceeded (in amplitude) only at 1% all times. |
==PCM encoding and decoding== | ==PCM encoding and decoding== | ||
<br> | <br> | ||
− | The block '''PCM coding''' is used to convert the discrete-time (after sampling) and discrete-value (after quantization with M steps) signal values qQ(ν−TA) into a sequence of N=log2(M) binary values. Logarithm to base 2 ⇒ | + | The block »'''PCM coding'''« is used to convert the discrete-time (after sampling) and discrete-value (after quantization with M steps) signal values qQ(ν−TA) into a sequence of N=log2(M) binary values. Logarithm to base 2 ⇒ "binary logarithm". |
{{GraueBox|TEXT= | {{GraueBox|TEXT= | ||
− | Example 3: Each binary value ⇒ bit is represented by a rectangle of duration TB=TA/N resulting in the signal qC(t) | + | Example 3: Each binary value ⇒ bit is represented by a rectangle of duration TB=TA/N resulting in the signal qC(t). You can see: |
− | [[File: Mod_T_4_1_S5a_vers2.png| | + | [[File: Mod_T_4_1_S5a_vers2.png|right|frame | PCM coding with the dual code (M=8, N=3)]] |
− | + | *Here, the "dual code" is used ⇒ the quantization intervals μ are numbered consecutively from 0 to M−1 and then written in simple binary. With M=8 for example μ=6 ⇔ '''110'''. | |
− | * | + | *The three symbols of the binary encoded signal qC(t) are obtained by replacing '''0''' by '''L''' ("Low") and '''1''' by '''H''' ("High"). This gives in the example the sequence "'''HHL HHL LLH LHL HLH LHH'''". |
− | *The three | + | *The bit duration TB is here shorter than the sampling distance TA=1/fA by a factor N=log2(M)=3. So, the bit rate is $R_{\rm B} = {\rm log_2}(M) \cdot f_{\rm A}$. |
− | *The bit duration TB is here shorter than the sampling distance by a factor N=log2(M)=3 | + | *If one uses the same mapping in decoding (v_{\rm C} ⇒ v_{\rm Q}) as in encoding (q_{\rm Q} ⇒ q_{\rm C}), then, if there are no transmission errors: $v_{\rm Q}(ν \cdot T_{\rm A}) = q_{\rm Q}(ν \cdot T_{\rm A}). $ |
− | *If one uses the same mapping in decoding (v_{\rm C} ⇒ v_{\rm Q}) as in | + | *An alternative to dual code is "Gray code", where adjacent binary values differ only in one bit. For N=3: |
− | *An alternative to dual code is | + | : μ=0: '''LLL''', μ=1: '''LLH''', μ=2: '''LHH''', μ=3: '''LHL''', |
− | : | + | : μ=4: '''HHL''', μ=5: '''HHH''', μ=6: '''HLH''', μ=7: '''HLL'''. }} |
==Signal-to-noise power ratio== | ==Signal-to-noise power ratio== | ||
<br> | <br> | ||
− | The digital pulse code modulation (PCM) is now compared to | + | The digital "pulse code modulation" (PCM) is now compared to analog modulation methods (AM, FM) regarding the achievable sink SNR ρv=Pq/Pε with AWGN noise. As denoted in previous chapters [[Modulation_Methods/Influence_of_Noise_on_Systems_with_Angle_Modulation|(for example)]] ξ=αK2⋅PS/(N0⋅BNF) the "performance parameter" ξ summarizes different influences: |
− | [[File:EN_Mod_T_4_1_S6a.png |right|frame| Sink SNR at AM, FM, PCM 30/32 ]] | + | [[File:EN_Mod_T_4_1_S6a.png |right|frame| Sink SNR at AM, FM, and PCM 30/32 ]] |
− | + | #The channel transmission factor αK (quadratic), | |
− | + | #the transmit power PS (linear), | |
− | + | #the AWGN noise power density N0 (reciprocal), and. | |
− | + | #the signal bandwidth BNF (reciprocal); for a harmonic oscillation: signal frequency fN instead of BNF. | |
− | |||
− | The two comparison curves [[Modulation_Methods/Envelope_Demodulation | + | The two comparison curves for [[Modulation_Methods/Envelope_Demodulation|$\text{amplitude modulation}$]] and [[Modulation_Methods/Influence_of_Noise_on_Systems_with_Angle_Modulation#System_comparison_of_AM.2C_PM_and_FM_with_respect_to_noise|$\text{frequency modulation}$]] can be described as follows: |
− | * | + | *Double-sideband amplitude modulation (DSB–AM) without carrier (m→∞): |
− | :$$ρ_v = ξ \ ⇒ \ 10 · \lg ρ_v = 10 · \lg \ ξ | + | :$$ρ_v = ξ \ ⇒ \ 10 · \lg ρ_v = 10 · \lg \ ξ.$$ |
− | *Frequency modulation with η=3: | + | *Frequency modulation (FM) with modulation index η=3: |
:ρυ=3/2⋅η2−ξ=13.5−ξ ⇒ 10·lg ρv=10·lg ξ+11.3 dB. | :ρυ=3/2⋅η2−ξ=13.5−ξ ⇒ 10·lg ρv=10·lg ξ+11.3 dB. | ||
− | The curve for the [ | + | The curve for the [https://en.wikipedia.org/wiki/PCM30 $\text{PCM 30/32}$] system should be interpreted as follows: |
− | *If the | + | *If the performance parameter ξ is sufficiently large, then no transmission errors occur. The error signal ε(t)=v(t) − q(t) is then alone due to quantization (Pε=PQ). |
*With the quantization step number M=2N holds approximately in this case: | *With the quantization step number M=2N holds approximately in this case: | ||
:ρv=PqPε=M2=22N⇒10⋅lgρv=20⋅lgM=N⋅6.02dB | :ρv=PqPε=M2=22N⇒10⋅lgρv=20⋅lgM=N⋅6.02dB | ||
:⇒N=8,M=256:10⋅lgρv=48.16dB. | :⇒N=8,M=256:10⋅lgρv=48.16dB. | ||
− | + | :Note that the given equation is exactly valid only for a sawtooth shaped source signal. However, for a cosine shaped signal the deviation from this is not very large. | |
− | *As ξ (smaller transmit power or larger noise power density) | + | *As ξ decreases (smaller transmit power or larger noise power density), the transmission errors increase. Thus Pε>PQ and the sink-to-noise ratio becomes smaller. |
− | * | + | *PCM (with M=256) is superior to the analog methods (AM and FM) only in the lower and middle ξ–range. But if transmission errors do not play a role anymore, no improvement can be achieved by a larger ξ $($horizontal curve section with yellow background$)$. |
− | *An improvement is only achieved by increasing N (number of bits per sample) ⇒ larger M=2N (number of quantization steps). For example, for a '''Compact Disc''' (CD) with parameter N=16 ⇒ M=65536 the | + | *An improvement is only achieved by increasing N $($number of bits per sample$)$ ⇒ larger M=2N $($number of quantization steps$)$. For example, for a »'''Compact Disc'''« $\rm (CD)$ with parameter N=16 ⇒ M=65536 the sink SNR is: |
:10·lg ρv=96.32 dB. | :10·lg ρv=96.32 dB. | ||
{{GraueBox|TEXT= | {{GraueBox|TEXT= | ||
Example 4: | Example 4: | ||
− | The following graph shows the limiting influence of quantization: | + | The following graph shows the limiting influence of quantization: |
+ | *Here, transmission errors are excluded. Sampling and signal reconstruction are best fit to q(t). | ||
*White dotted is the source signal q(t), green dotted is the sink signal v(t) after PCM with N=4 ⇒ M=16. | *White dotted is the source signal q(t), green dotted is the sink signal v(t) after PCM with N=4 ⇒ M=16. | ||
*Sampling times are marked by crosses. | *Sampling times are marked by crosses. | ||
− | |||
− | |||
− | |||
− | This image can be interpreted as follows: | + | This image can be interpreted as follows: |
− | *With N=8 ⇒ M=256 the sink signal v(t) | + | [[File:EN_Mod_T_4_1_S6b.png|right|frame|Influence of quantization with N=4 and N=8<br><br><br>]] |
− | * | + | *With N=8 ⇒ M=256 the sink signal v(t) cannot be distinguished with the naked eye from the source signal q(t). The white dotted signal curve applies approximately to both. |
− | *Although | + | *But from the signal-to-noise ratio 10·lg ρv=47.8 dB it can be seen that the quantization noise power Pε is only smaller by a factor $1. 6 \cdot 10^{-5} than the power P_q$ of the source signal. |
− | *In contrast, for N=4 ⇒ M=16 deviations between | + | *This SNR would already be clearly audible with a speech or music signal. |
+ | *Although q(t) is neither sawtooth nor cosine shaped, but is composed of several frequency components, the approximation ρv≈M2 ⇒ 10·lg ρυ=48.16 dB deviates insignificantly from the actual value. | ||
+ | *In contrast, for N=4 ⇒ M=16 the deviations between sink signal (marked in green) and source signal (marked in white) can already be seen in the image, which is also quantitatively expressed by the very small SNR 10·lg ρυ=28.2 dB. }} | ||
==Influence of transmission errors== | ==Influence of transmission errors== | ||
<br> | <br> | ||
− | Starting from the same analog signal q(t) as in the last section and a linear quantization with N=8 bits ⇒ M=256 the effects of transmission errors are now illustrated using the respective sink signal v(t) | + | Starting from the same analog signal q(t) as in the last section and a linear quantization with N=8 bits ⇒ M=256 the effects of transmission errors are now illustrated using the respective sink signal v(t). |
− | [[File:EN_Mod_T_4_1_S7a.png | | + | [[File:EN_Mod_T_4_1_S7a.png |right|frame| Influence of a transmission error concerning '''Bit 5''' at the dual code, meaning that the lowest quantization interval (μ=0) is represented with '''LLLL LLLL''' and the highest interval (μ=255) is represented with '''HHHH HHHH'''.]] |
− | + | [[File:EN_Mod_T_4_1_S7b.png |right|frame| Table: Results of the bit error analysis. Note: $10 · \lg \ ρ_v$ was calculated from the presented signal of duration $10 \cdot T_{\rm A}$ (only 10⋅8=80 bits) ⇒ each transmission error corresponds to a bit error rate of $1.25\%$.]] | |
− | |||
− | + | *The white dots mark the source signal q(t). Without transmission error the sink signal v(t) has the same course when neglecting quantization. | |
+ | *Now, exactly one bit of the fifth sample q(5⋅TA)=−0.715 is falsified, where this sample has been encoded as '''LLHL LHLL'''. | ||
+ | <br><br><br><br><br> | ||
+ | The results of the error analysis shown in the graph and the table below can be summarized as follows: | ||
+ | *If only the last bit ⇒ "Least Significant Bit" ⇒ (LSB) of the binary word is falsified ('''LLHL LHL<u>L</u> ⇒ LLHL LHL<u>H</u>''', white curve), then no difference from error-free transmission is visible to the naked eye. Nevertheless, the signal-to-noise ratio is reduced by 3.5 dB. | ||
+ | *An error of the fourth last bit leads to a clearly detectable distortion by eight quantization steps ('''LLHL<u>L</u>HLL ⇒ LLHL<u>H</u>HLL''', green curve): v(5TA) − q(5TA)=8/256−2=0.0625 and the signal-to-noise ratio drops to 10·lg ρυ=28.2 dB. | ||
+ | *Finally, the red curve shows the case where the MSB ("Most Significant Bit") is falsified: '''<u>L</u>LHLLHLL ⇒ <u>H</u>LHLLHLL''' ⇒ distortion v(5TA) − q(5TA)=1 (corresponding to half the modulation range). The SNR is now only about 4 dB. | ||
+ | *At all sampling times except 5TA, v(t) matches exactly with q(t) except for the quantization error. Outside these points marked by yellow crosses, the single error at 5TA leads to strong deviations in an extended range, due to the interpolation with the sinc-shaped impulse response of the reconstruction low-pass H(f). | ||
− | |||
− | |||
+ | ==Estimation of SNR degradation due to transmission errors== | ||
+ | <br> | ||
+ | Now we will try to (approximately) determine the SNR curve of the PCM system taking bit errors into account. We start from the following block diagram and further assume: | ||
+ | [[File:EN_Mod_T_4_1_S7c.png |right|frame|For calculating the SNR curve of the PCM system; bit errors are taken into account]] | ||
− | * | + | *Each sample $q_{\rm A}(νT)$ is quantized by $M$ steps and represented by $N = {\rm log_2} (M)$ bits. In the example: $M = 8$ ⇒ N=3. |
− | + | *The binary representation of $q_{\rm Q}(νT)$ yields the coefficients $a_k\, (k = 1, \text{...} \hspace{0.08cm}, N)$, which can be falsified by bit errors to the coefficients bk. Both $a_k$ and $b_k$ are $±1$, respectively. | |
− | + | *A bit error $(b_k ≠ a_k)$ occurs with probability $p_{\rm B}$. Each bit is equally likely to be falsified and in each PCM word there is at most one error ⇒ only one of the $N$ bits can be wrong. | |
− | |||
− | |||
− | |||
− | |||
− | + | From the diagram given in the graph, it can be seen for $N = 3$ and natural binary coding ("Dual Code"): | |
− | + | *A falsification of $a_1$ changes the value qQ(νT) by $±A$. | |
− | + | *A falsification of $a_2$ changes the value $q_{\rm Q}(νT)$ by $±A/2$. | |
− | + | *A falsification of $a_3$ changes the value value $q_{\rm Q}(νT)$ by $±A/4$. | |
− | |||
− | * | ||
− | *A | ||
− | |||
− | + | For the case when (only) the coefficient $a_k$ was falsified, we obtain by generalization for the deviation: | |
− | + | :$$\varepsilon_k = υ_{\rm Q}(νT) \ - \ q_{\rm Q}(νT)= - a_k \cdot A \cdot 2^{-k +1} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
\hspace{0.05cm}.$$ | \hspace{0.05cm}.$$ | ||
+ | |||
+ | After averaging over all falsification values εk (with 1≤k≤N) taking into account the bit error probability pB we obtain for the "error noise power": | ||
+ | :PE=E[ε2k]=N∑k=1pB⋅(−ak⋅A⋅2−k+1)2= pB⋅A2⋅N−1∑k=02−2k=pB⋅A2⋅1−2−2N1−2−2≈4/3⋅pB⋅A2. | ||
− | + | *Here are used the sum formula of the geometric series and the approximation 1−2−2N≈1. | |
− | + | *For $N = 8$ ⇒ $M = 256$ the associated relative error is about $\rm 10^{-5}$. | |
− | |||
− | |||
− | + | Excluding transmission errors, the signal-to-noise power ratio ρv=PS/PQ has been found, where for a uniformly distributed source signal $($e.g. sawtooth-shaped$)$ the signal power and quantization noise power are to be calculated as follows: | |
− | Excluding transmission errors, the signal-to-noise power ratio ρv=PS/PQ has been found, where for a uniformly distributed source signal ( | ||
[[File:P_ID1904__Mod_T_4_1_S7d_ganz_neu.png |right|frame| Sink SNR for PCM considering bit errors]] | [[File:P_ID1904__Mod_T_4_1_S7d_ganz_neu.png |right|frame| Sink SNR for PCM considering bit errors]] | ||
:PS=A2/3,PQ=A2/3⋅2−2N. | :PS=A2/3,PQ=A2/3⋅2−2N. | ||
− | Taking into account the | + | Taking into account the transmission errors, the above result gives: |
− | :$$\rho_{\upsilon}= \frac{P_{\rm S}}{P_{\rm Q}+P_{\rm | + | :$$\rho_{\upsilon}= \frac{P_{\rm S}}{P_{\rm Q}+P_{\rm E}} = \frac{A^2/3}{A^2/3 \cdot 2^{-2N } + A^2/3 \cdot 4 \cdot p_{\rm B}} = \frac{1}{ 2^{-2N } + 4 \cdot p_{\rm B}} \hspace{0.05cm}.$$ |
− | The graph shows $10 | + | The graph shows $10 \cdot \lg ρ_v as a function of the (logarithmized) power parameter ξ = P_{\rm S}/(N_0 \cdot B_{\rm NF}), where B_{\rm NF}$ indicates the source signal bandwidth. Let the constant channel transmission factor be ideally αK=1. Then holds: |
− | * | + | *For AWGN noise and the optimum binary system, the performance parameter is also ξ=EB/N0 $($energy per bit related to noise power density$)$. The bit error probability is then given by the Gaussian error function Q(x): |
− | |||
:pB=Q(√2EB/N0). | :pB=Q(√2EB/N0). | ||
− | *For N=8 ⇒ $ 2^{-2{\it N} } = 1.5 | + | *For N=8 ⇒ $ 2^{-2{\it N} } = 1.5 \cdot 10^{-5} and 10 \cdot \lg \ ξ = 6 \ \rm dB ⇒ p_{\rm B} = 0.0024$ $($point marked in red$)$ results: |
:$$\rho_{\upsilon}= \frac{1}{ 1.5 \cdot 10^{-5} + 4 \cdot 0.0024} \approx 100 \hspace{0.3cm} \Rightarrow \hspace{0.3cm}10 \cdot {\rm lg} \hspace{0.15cm}\rho_{\upsilon}\approx 20\,{\rm dB} | :$$\rho_{\upsilon}= \frac{1}{ 1.5 \cdot 10^{-5} + 4 \cdot 0.0024} \approx 100 \hspace{0.3cm} \Rightarrow \hspace{0.3cm}10 \cdot {\rm lg} \hspace{0.15cm}\rho_{\upsilon}\approx 20\,{\rm dB} | ||
\hspace{0.05cm}.$$ | \hspace{0.05cm}.$$ | ||
− | *This small ρv value goes back to the term 4·0.0024 in the denominator (influence of the transmission | + | *This small ρv value goes back to the term 4·0.0024 in the denominator $($influence of the transmission errors$)$ while in the horizontal section of the curve for each N (number of bits per sample) the term 2−2N dominates - i.e. the quantization noise. |
− | == | + | ==Non-linear quantization== |
<br> | <br> | ||
− | Often the quantization intervals are not chosen equally large, but one uses a finer quantization for the inner amplitude range than for large amplitudes. There are several reasons for this: | + | Often the quantization intervals are not chosen equally large, but one uses a finer quantization for the inner amplitude range than for large amplitudes. There are several reasons for this: |
− | *In audio signals, distortions of the quiet signal components (i.e. values near the zero line) are subjectively perceived as more disturbing than an impairment of large amplitude values. | + | [[File:EN_Mod_T_4_1_S8a.png|right|frame|Uniform quantization of a speech signal]] |
− | *Such an uneven quantization also leads to a larger sink | + | |
+ | *In audio signals, distortions of the quiet signal components (i.e. values near the zero line) are subjectively perceived as more disturbing than an impairment of large amplitude values. | ||
+ | *Such an uneven quantization also leads to a larger sink SNR for such a music or speech signal, because here the signal amplitude is not uniformly distributed. | ||
− | The graph shows a speech signal q(t) and its amplitude distribution fq(q) ⇒ [[Theory_of_Stochastic_Signals/Probability_Density_Function|Probability density function]] | + | The graph shows a speech signal q(t) and its amplitude distribution fq(q) ⇒ [[Theory_of_Stochastic_Signals/Probability_Density_Function|$\text{Probability density function}$]] (PDF). |
− | + | This is the [[Theory_of_Stochastic_Signals/Exponentially_Distributed_Random_Variables#Two-sided_exponential_distribution_-_Laplace_distribution|$\text{Laplace distribution}$]], which can be approximated as follows: | |
− | This is the [[Theory_of_Stochastic_Signals/Exponentially_Distributed_Random_Variables#Two-sided_exponential_distribution_-_Laplace_distribution|Laplace distribution]], which can be approximated as follows: | + | *by a continuous-valued two-sided exponential distribution, and |
− | *by a continuous two-sided exponential distribution, and | + | *by a Dirac delta function δ(q) to account for the speech pauses (magenta colored). |
− | *by a Dirac function δ(q) to account for the speech pauses (magenta colored). | ||
− | In the graph, nonlinear quantization is only implied, | + | In the graph, nonlinear quantization is only implied, e.g. by means of the 13-segment characteristic, which is described in more detail in the [[Aufgaben:Exercise_4.5:_Non-Linear_Quantization|"Exercise 4.5"]] : |
*The quantization intervals here become wider and wider towards the edges section by section. | *The quantization intervals here become wider and wider towards the edges section by section. | ||
− | *The more frequent small amplitudes, on the other hand, are quantized very finely. | + | *The more frequent small amplitudes, on the other hand, are quantized very finely. |
− | + | <br clear=all> | |
==Compression and expansion== | ==Compression and expansion== | ||
<br> | <br> | ||
− | Non-uniform quantization can be realized, for example, by | + | Non-uniform quantization can be realized, for example, by |
− | + | [[File:EN_Mod_T_4_1_S8b.png |right|frame| Realization of a non-uniform quantization]] | |
− | |||
− | |||
− | [[File:EN_Mod_T_4_1_S8b.png | | ||
− | |||
− | |||
− | |||
+ | *the sampled values qA(ν⋅TA) are first deformed by a nonlinear characteristic qK(qA), and | ||
+ | *subsequently, the resulting output values qK(ν·TA) are uniformly quantized. | ||
− | This results in the signal chain sketched | + | This results in the signal chain sketched on the right. |
<br clear=all> | <br clear=all> | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
− | Conclusion: Such non-uniform quantization means: | + | Conclusion: Such a non-uniform quantization means: |
− | *Through the nonlinear characteristic qK(qA) small signal values are amplified and large values are attenuated ⇒ ''' | + | *Through the nonlinear characteristic qK(qA) ⇒ small signal values are amplified and large values are attenuated ⇒ »'''compression'''«. |
− | *This deliberate signal distortion is undone at the receiver by the inverse function vE(υQ) ⇒ '''expansion'''. | + | *This deliberate signal distortion is undone at the receiver by the inverse function vE(υQ) ⇒ »'''expansion'''«. |
− | *The total process of | + | *The total process of transmitter-side compression and receiver-side expansion is also called »'''companding.'''«}} |
− | For the PCM system 30/32, the | + | For the PCM system 30/32, the "Comité Consultatif International des Télégraphique et Téléphonique" $\rm (CCITT)$ recommended the so-called "A–characteristic": |
− | :y(x)={1+ln(A⋅x)1+ln(A)A⋅x1+ln(A) −1+ln(−A⋅x)1+ln(A)forforfor1/A≤x≤1, −1/A≤x≤1/A, −1≤x≤−1/A. | + | :$$y(x) = \left\{ \begin{array}{l} \frac{1 + {\rm ln}(A \cdot x)}{1 + {\rm ln}(A)} \\ \frac{A \cdot x}{1 + {\rm ln}(A)} \\ - \frac{1 + {\rm ln}( - A \cdot x)}{1 + {\rm ln}(A)} \\ \end{array} \right.\quad\begin{array}{*{5}c}{\rm{for}}\\{\rm{for}}\\{\rm{for}} \\ \end{array}\begin{array}{*{10}c}1/A \le x \le 1\hspace{0.05cm}, \\ - 1/A \le x \le 1/A\hspace{0.05cm}, \\ - 1 \le x \le - 1/A\hspace{0.05cm}. \\ \end{array}$$ |
− | *Here, for abbreviation $x = q_{\rm A}(ν | + | *Here, for abbreviation $x = q_{\rm A}(ν \cdot T_{\rm A})$ and $y = q_{\rm K}(ν \cdot T_{\rm A})$ are used. |
*This characteristic curve with the value A=87.56 introduced in practice has a constantly changing slope. | *This characteristic curve with the value A=87.56 introduced in practice has a constantly changing slope. | ||
− | *For more details on this type of non-uniform quantization, see the [[Aufgaben:Exercise_4.6:_Quantization_Characteristics|Exercise 4. | + | *For more details on this type of non-uniform quantization, see the [[Aufgaben:Exercise_4.6:_Quantization_Characteristics|"Exercise 4.6"]]. |
− | ''Note:'' In the third part of the | + | ⇒ ''Note:'' In the third part of the (German language) learning video [[Pulscodemodulation_(Lernvideo)|"Pulse Code Modulation"]] are covered: |
− | *the definition of signal-to-noise power ratio (SNR), | + | *the definition of signal-to-noise power ratio $\rm (SNR)$, |
*the influence of quantization noise and transmission errors, | *the influence of quantization noise and transmission errors, | ||
− | *the differences between linear and | + | *the differences between linear and non-linear quantization. |
Latest revision as of 15:29, 23 January 2023
Contents
- 1 # OVERVIEW OF THE FOURTH MAIN CHAPTER #
- 2 Principle and block diagram
- 3 Sampling and signal reconstruction
- 4 Natural and discrete sampling
- 5 Frequency domain view of natural sampling
- 6 Frequency domain view of discrete sampling
- 7 Quantization and quantization noise
- 8 PCM encoding and decoding
- 9 Signal-to-noise power ratio
- 10 Influence of transmission errors
- 11 Estimation of SNR degradation due to transmission errors
- 12 Non-linear quantization
- 13 Compression and expansion
- 14 Exercises for the chapter
# OVERVIEW OF THE FOURTH MAIN CHAPTER #
The fourth chapter deals with the digital modulation methods »amplitude shift keying« (ASK), »phase shift keying« (PSK) and »frequency shift keying« (FSK) as well as some modifications derived from them. Most of the properties of the analog modulation methods mentioned in the last two chapters still apply. Differences result from the now required »decision component« of the receiver.
We restrict ourselves here essentially to the »system-theoretical and transmission aspects«. The error probability is given only for ideal conditions. The derivations and the consideration of non-ideal boundary conditions can be found in the book "Digital Signal Transmission".
In detail are treated:
- the »pulse code modulation« (PCM) and its components "sampling" – "quantization" – "encoding",
- the »linear modulation« ASK, BPSK, DPSK and associated demodulators,
- the »quadrature amplitude modulation« (QAM) and more complicated signal space mappings,
- the »frequency shift keying« (FSK) as an example of non-linear digital modulation,
- the FSK with »continuous phase matching« (CPM), especially the (G)MSK method.
Principle and block diagram
Almost all modulation methods used today work digitally. Their advantages have already been mentioned in the "first chapter" of this book. The first concept for digital signal transmission was already developed in 1938 by Alec Reeves and has also been used in practice since the 1960s under the name "Pulse Code Modulation" (PCM). Even though many of the digital modulation methods conceived in recent years differ from PCM in detail, it is very well suited to explain the principle of all these methods.
The task of the PCM system is
- to convert the analog source signal q(t) into the binary signal qC(t) – this process is also called »A/D conversion«,
- transmitting this signal over the channel, where the receiver-side signal vC(t) is also binary because of the decision,
- to reconstruct from the binary signal vC(t) the analog (continuous-value as well as continuous-time) sink signal v(t) ⇒ »D/A conversion«.

q(t) ∘−−−∙ Q(f) ⇒ source signal (from German: "Quellensignal"), analog
qA(t) ∘−−−∙ QA(f) ⇒ sampled source signal (from German: "abgetastet" ⇒ "A")
qQ(t) ∘−−−∙ QQ(f) ⇒ quantized source signal (from German: "quantisiert" ⇒ "Q")
qC(t) ∘−−−∙ QC(f) ⇒ coded source signal (from German: "codiert" ⇒ "C"), binary
s(t) ∘−−−∙ S(f) ⇒ transmitted signal (from German: "Sendesignal"), digital
n(t) ⇒ noise signal, characterized by the power-spectral density Φn(f), analog r(t)=s(t)⋆hK(t)+n(t) ⇒ received signal, hK(t) ∘−−−∙ HK(f), analog
Note: Spectrum R(f) can not be specified due to the stochastic component n(t).
vC(t) ∘−−−∙ VC(f) ⇒ signal after decision, binary
vQ(t) ∘−−−∙ VQ(f) ⇒ signal after PCM decoding, M–level
Note: On the receiver side, there is no counterpart to "Quantization"
v(t) ∘−−−∙ V(f) ⇒ sink signal, analog
Further it should be noted to this PCM block diagram:
- The PCM transmitter ("A/D converter") is composed of three function blocks »Sampling - Quantization - PCM Coding« which will be described in more detail in the next sections.
- The gray-background block "Digital Transmission System" shows "transmitter" (modulation), "receiver" (with decision unit), and "analog transmission channel" ⇒ channel frequency response HK(f) and noise power-spectral density Φn(f).
- This block is covered in the first three chapters of the book "Digital Signal Transmission". In chapter 5 of the same book, you will find digital channel models that phenomenologically describe the transmission behavior using the signals qC(t) and vC(t).
- Further, it can be seen from the block diagram that there is no equivalent for "quantization" at the receiver-side. Therefore, even with error-free transmission, i.e., for vC(t)=qC(t), the analog sink signal v(t) will differ from the source signal q(t).
- As a measure of the quality of the digital transmission system, we use the Signal-to-Noise Power Ratio ⇒ in short: »Sink-SNR« as the quotient of the powers of source signal q(t) and error signal ε(t)=v(t)−q(t):
- ρv=PqPεwithPq=¯[q(t)]2,Pε=¯[v(t)−q(t)]2.
- Here, an ideal amplitude matching is assumed, so that in the ideal case (that is: sampling according to the sampling theorem, best possible signal reconstruction, infinitely fine quantization) the sink signal v(t) would exactly match the source signal q(t).
⇒ We would like to refer you already here to the three-part (German language) learning video "Pulse Code Modulation" which contains all aspects of PCM. Its principle is explained in detail in the first part of the video.
Sampling and signal reconstruction
Sampling – that is, time discretization of the analog signal q(t) – was covered in detail in the chapter "Discrete-Time Signal Representation" of the book "Signal Representation." Here follows a brief summary of that section.
The graph illustrates the sampling in the time domain:
- The (blue) source signal q(t) is "continuous-time", the (green) signal sampled at a distance TA is "discrete-time".
- The sampling can be represented by multiplying the analog signal q(t) by the Dirac comb in the time domain ⇒ pδ(t):
- qA(t)=q(t)⋅pδ(t)withpδ(t)=∞∑ν=−∞TA⋅δ(t−ν⋅TA).
- The Dirac delta function at t=ν⋅TA has the weight TA⋅q(ν⋅TA). Since δ(t) has the unit "1/s" thus qA(t) has the same unit as q(t), e.g. "V".
- The Fourier transform of the Dirac comb pδ(t) is also a Dirac comb, but now in the frequency domain ⇒ Pδ(f). The spacing of the individual Dirac delta lines is fA=1/TA, and all weights of Pδ(f) are 1:
- pδ(t)=+∞∑ν=−∞TA⋅δ(t−ν⋅TA)∘−−−∙Pδ(f)=+∞∑μ=−∞δ(f−μ⋅fA).
- The spectrum QA(f) of the sampled source signal qA(t) is obtained from the Convolution Theorem, where Q(f)∙−−−∘q(t):
- QA(f)=Q(f)⋆Pδ(f)=+∞∑μ=−∞Q(f−μ⋅fA).
⇒ We refer you to part 2 of the (German language) learning video "Pulse Code Modulation" which explains sampling and signal reconstruction in terms of system theory.
Example 1: The graph schematically shows the spectrum Q(f) of an analog source signal q(t) with frequencies up to fN, max=5 kHz.
- If one samples q(t) with the sampling rate fA=20 kHz (so at the respective distance TA=50 µs), one obtains the periodic spectrum QA(f) sketched in green.
- Since the Dirac delta functions are infinitely narrow, qA(t) also contains arbitrary high frequency components and accordingly QA(f) is extended to infinity (middle graph).
- Drawn below (in red) is the spectrum QA(f) of the sampled source signal for the sampling parameters TA=100 µs ⇒ fA=10 kHz.
Conclusion: From this example, the following important lessons can be learned regarding sampling:
- If Q(f) contains frequencies up to fN, max, then according to the Sampling Theorem the sampling rate fA≥2⋅fN, max should be chosen. At smaller sampling rate fA (thus larger spacing TA) overlaps of the periodized spectra occur, i.e. irreversible distortions.
- If exactly fA=2⋅fN, max as in the lower graph of Example 1, then Q(f) can be can be completely reconstructed from QA(f) by an ideal rectangular low-pass filter H(f) with cutoff frequency fG=fA/2. The same facts apply in the PCM system to extract V(f) from VQ(f) in the best possible way.
- On the other hand, if sampling is performed with fA>2⋅fN, max as in the middle graph of the example, a low-pass filter H(f) with a smaller slope can also be used on the receiver side for signal reconstruction, as long as the following condition is met:
- H(f)={10forfor|f|≤fN,max,|f|≥fA−fN,max.
- H(f)={10forfor|f|≤fN,max,|f|≥fA−fN,max.
Natural and discrete sampling
Multiplication by the Dirac comb provides only an idealized description of the sampling, since a Dirac delta function (duration TR→0, height 1/TR→∞) is not realizable. In practice, the "Dirac comb" pδ(t) must be replaced by a "rectangular pulse comb" pR(t) with rectangle duration TR (see upper sketch):
- pR(t)=+∞∑ν=−∞gR(t−ν⋅TA),
- gR(t)={11/20forforfor|t|<TR/2,|t|=TR/2,|t|>TR/2.
TR should be significantly smaller than the sampling distance TA.
The graphic show two different sampling methods using the comb pR(t):
- In »natural sampling« the sampled signal qA(t) is obtained by multiplying the analog source signal q(t) by pR(t). Thus in the ranges pR(t)=1, qA(t) has the same progression as q(t).
- In »discrete sampling« the signal q(t) is – at least mentally – first multiplied by the Dirac comb pδ(t). Then each Dirac delta pulse TA⋅δ(t−ν⋅TA) is replaced by a rectangular pulse gR(t−ν⋅TA) .
Here and in the following frequency domain consideration, an acausal description form is chosen for simplicity.
For a (causal) realization, gR(t)=1 would have to hold in the range from 0 to TR and not as here for −TR/2<t<TR/2.
Frequency domain view of natural sampling
Definition: The »natural sampling« can be represented by the convolution theorem in the spectral domain as follows:
- qA(t)=pR(t)⋅q(t)=[1TA⋅pδ(t)⋆gR(t)]⋅q(t)⇒QA(f)=[Pδ(f)⋅1TA⋅GR(f)]⋆Q(f)=PR(f)⋆Q(f).
The graph shows the result for
- an (unrealistic) rectangular spectrum Q(f)=Q0 limited to the range |f|≤4 kHz,
- the sampling rate fA=10 kHz ⇒ TA=100 µs, and
- the rectangular pulse duration TR=25 µs ⇒ TR/TA=0.25.
One can see from this plot:
- The spectrum PR(f) is in contrast to Pδ(f) not a Dirac comb (all weights equal 1), but the weights here are evaluated to the function GR(f)/TA=TR/TA⋅sinc(f⋅TR).
- Because of the zero of the sinc-function, the Dirac delta lines vanish here at ±4fA.
- The spectrum QA(f) results from the convolution with Q(f). The rectangle around f=0 has height TR/TA⋅Q0, the proportions around μ⋅fA (μ≠0) are lower.
- If one uses for signal reconstruction an ideal, rectangular low-pass
- H(f)={TA/TR=40forfor|f|<fA/2,|f|>fA/2,,
- then for the output spectrum V(f)=Q(f) ⇒ v(t)=q(t).
- H(f)={TA/TR=40forfor|f|<fA/2,|f|>fA/2,,
Conclusion:
- For natural sampling, a rectangular–low-pass filter is sufficient for signal reconstruction as for ideal sampling (with Dirac comb).
- However, for amplitude matching in the passband, a gain by the factor TA/TR must be considered.
Frequency domain view of discrete sampling
Definition: In »discrete sampling« the multiplication of the Dirac comb pδ(t) with the source signal q(t) takes place first – at least mentally – and only afterwards the convolution with the rectangular pulse gR(t):
- qA(t)=[1/TA⋅pδ(t)⋅q(t)]⋆gR(t)⇒QA(f)=[Pδ(f)⋆Q(f)]⋅GR(f)/TA.
- It is irrelevant, but quite convenient, that here the factor 1/TA has been added to the evaluation function GR(f).
- Thus, GR(f)/TA=TR/TA⋅sinc(fTR).
- The upper graph shows (highlighted in green) the spectral function Pδ(f)⋆Q(f) after ideal sampling.
- In contrast, discrete sampling with a rectangular comb yields the spectrum QA(f) corresponding to the lower graph.
You can see from this plot:
- Each of the infinitely many partial spectra now has a different shape. Only the middle spectrum around f=0 is important;
- All other spectral components are removed at the receiver side by the low-pass of the signal reconstruction.
- If one uses for this low-pass again a rectangular filter with the gain TA/TR in the passband, one obtains for the output spectrum:
- V(f)=Q(f)⋅sinc(f⋅TR).
Conclusion: Discrete sampling and rectangular filtering result in attenuation distortions according to the weighting function sinc(f⋅TR).
- These are stronger, the larger TR is. Only in the limiting case TR→0 holds sinc(f⋅TR)=1.
- However, ideal equalization can fully compensate for these linear attenuation distortions. To obtain V(f)=Q(f) resp. v(t)=q(t) then must hold:
- H(f)={(TA/TR)/sinc(f⋅TR)0forfor|f|<fA/2,|f|>fA/2.
Quantization and quantization noise
The second functional unit »Quantization« of the PCM transmitter is used for value discretization.
- For this purpose the whole value range of the analog source signal (e.g., the range ±qmax) is divided into M intervals.
- Each sample qA(ν⋅TA) is then assigned to a representative qQ(ν⋅TA) of the associated interval (e.g., the interval center) .
Example 2: The graph illustrates the unit "quantization" using the quantization step number M=8 as an example.
- In fact, a power of two is always chosen for M in practice because of the subsequent binary coding.
- Each of the samples qA(ν⋅TA) marked by circles is replaced by the corresponding quantized value qQ(ν⋅TA). The quantized values are entered as crosses.
- However, this process of value discretization is associated with an irreversible falsification.
- The falsification εν=qQ(ν⋅TA) − qA(ν⋅TA) depends on the quantization level number M. The following bound applies:
- |εν|<1/2⋅2/M⋅qmax=qmax/M.
Definition: One refers to the second moment of the error quantity εν as »quantization noise power«:
- PQ=12N+1⋅+N∑ν=−Nε2ν≈1N⋅TA⋅∫N⋅TA0ε(t)2dtwithε(t)=qQ(t)−q(t).
Notes:
- For calculating the quantization noise power PQ the given approximation of "spontaneous quantization" is usually used.
- Here, one ignores sampling and forms the error signal from the continuous-time signals qQ(t) and q(t).
- PQ also depends on the source signal q(t). Assuming that q(t) takes all values between ±qmax with equal probability and the quantizer is designed exactly for this range, we get accordingly "Exercise 4.4":
- PQ=q2max3⋅M2.
- In a speech or music signal, arbitrarily large amplitude values can occur - even if only very rarely. In this case, for qmax usually that amplitude value is used which is exceeded (in amplitude) only at 1% all times.
PCM encoding and decoding
The block »PCM coding« is used to convert the discrete-time (after sampling) and discrete-value (after quantization with M steps) signal values qQ(ν−TA) into a sequence of N=log2(M) binary values. Logarithm to base 2 ⇒ "binary logarithm".
Example 3: Each binary value ⇒ bit is represented by a rectangle of duration TB=TA/N resulting in the signal qC(t). You can see:
- Here, the "dual code" is used ⇒ the quantization intervals μ are numbered consecutively from 0 to M−1 and then written in simple binary. With M=8 for example μ=6 ⇔ 110.
- The three symbols of the binary encoded signal qC(t) are obtained by replacing 0 by L ("Low") and 1 by H ("High"). This gives in the example the sequence "HHL HHL LLH LHL HLH LHH".
- The bit duration TB is here shorter than the sampling distance TA=1/fA by a factor N=log2(M)=3. So, the bit rate is RB=log2(M)⋅fA.
- If one uses the same mapping in decoding (vC⇒vQ) as in encoding (qQ⇒qC), then, if there are no transmission errors: vQ(ν⋅TA)=qQ(ν⋅TA).
- An alternative to dual code is "Gray code", where adjacent binary values differ only in one bit. For N=3:
- μ=0: LLL, μ=1: LLH, μ=2: LHH, μ=3: LHL,
- μ=4: HHL, μ=5: HHH, μ=6: HLH, μ=7: HLL.
Signal-to-noise power ratio
The digital "pulse code modulation" (PCM) is now compared to analog modulation methods (AM, FM) regarding the achievable sink SNR ρv=Pq/Pε with AWGN noise. As denoted in previous chapters (for example) ξ=αK2⋅PS/(N0⋅BNF) the "performance parameter" ξ summarizes different influences:
- The channel transmission factor αK (quadratic),
- the transmit power PS (linear),
- the AWGN noise power density N0 (reciprocal), and.
- the signal bandwidth BNF (reciprocal); for a harmonic oscillation: signal frequency fN instead of BNF.
The two comparison curves for amplitude modulation and frequency modulation can be described as follows:
- Double-sideband amplitude modulation (DSB–AM) without carrier (m→∞):
- ρv=ξ ⇒ 10·lgρv=10·lg ξ.
- Frequency modulation (FM) with modulation index η=3:
- ρυ=3/2⋅η2−ξ=13.5−ξ ⇒ 10·lg ρv=10·lg ξ+11.3 dB.
The curve for the PCM 30/32 system should be interpreted as follows:
- If the performance parameter ξ is sufficiently large, then no transmission errors occur. The error signal ε(t)=v(t) − q(t) is then alone due to quantization (Pε=PQ).
- With the quantization step number M=2N holds approximately in this case:
- ρv=PqPε=M2=22N⇒10⋅lgρv=20⋅lgM=N⋅6.02dB
- ⇒N=8,M=256:10⋅lgρv=48.16dB.
- Note that the given equation is exactly valid only for a sawtooth shaped source signal. However, for a cosine shaped signal the deviation from this is not very large.
- As ξ decreases (smaller transmit power or larger noise power density), the transmission errors increase. Thus Pε>PQ and the sink-to-noise ratio becomes smaller.
- PCM (with M=256) is superior to the analog methods (AM and FM) only in the lower and middle ξ–range. But if transmission errors do not play a role anymore, no improvement can be achieved by a larger ξ (horizontal curve section with yellow background).
- An improvement is only achieved by increasing N (number of bits per sample) ⇒ larger M=2N (number of quantization steps). For example, for a »Compact Disc« (CD) with parameter N=16 ⇒ M=65536 the sink SNR is:
- 10·lg ρv=96.32 dB.
Example 4: The following graph shows the limiting influence of quantization:
- Here, transmission errors are excluded. Sampling and signal reconstruction are best fit to q(t).
- White dotted is the source signal q(t), green dotted is the sink signal v(t) after PCM with N=4 ⇒ M=16.
- Sampling times are marked by crosses.
This image can be interpreted as follows:
- With N=8 ⇒ M=256 the sink signal v(t) cannot be distinguished with the naked eye from the source signal q(t). The white dotted signal curve applies approximately to both.
- But from the signal-to-noise ratio 10·lg ρv=47.8 dB it can be seen that the quantization noise power Pε is only smaller by a factor 1.6⋅10−5 than the power Pq of the source signal.
- This SNR would already be clearly audible with a speech or music signal.
- Although q(t) is neither sawtooth nor cosine shaped, but is composed of several frequency components, the approximation ρv≈M2 ⇒ 10·lg ρυ=48.16 dB deviates insignificantly from the actual value.
- In contrast, for N=4 ⇒ M=16 the deviations between sink signal (marked in green) and source signal (marked in white) can already be seen in the image, which is also quantitatively expressed by the very small SNR 10·lg ρυ=28.2 dB.
Influence of transmission errors
Starting from the same analog signal q(t) as in the last section and a linear quantization with N=8 bits ⇒ M=256 the effects of transmission errors are now illustrated using the respective sink signal v(t).
- The white dots mark the source signal q(t). Without transmission error the sink signal v(t) has the same course when neglecting quantization.
- Now, exactly one bit of the fifth sample q(5⋅TA)=−0.715 is falsified, where this sample has been encoded as LLHL LHLL.
The results of the error analysis shown in the graph and the table below can be summarized as follows:
- If only the last bit ⇒ "Least Significant Bit" ⇒ (LSB) of the binary word is falsified (LLHL LHLL ⇒ LLHL LHLH, white curve), then no difference from error-free transmission is visible to the naked eye. Nevertheless, the signal-to-noise ratio is reduced by 3.5 dB.
- An error of the fourth last bit leads to a clearly detectable distortion by eight quantization steps (LLHLLHLL ⇒ LLHLHHLL, green curve): v(5TA) − q(5TA)=8/256−2=0.0625 and the signal-to-noise ratio drops to 10·lg ρυ=28.2 dB.
- Finally, the red curve shows the case where the MSB ("Most Significant Bit") is falsified: LLHLLHLL ⇒ HLHLLHLL ⇒ distortion v(5TA) − q(5TA)=1 (corresponding to half the modulation range). The SNR is now only about 4 dB.
- At all sampling times except 5TA, v(t) matches exactly with q(t) except for the quantization error. Outside these points marked by yellow crosses, the single error at 5TA leads to strong deviations in an extended range, due to the interpolation with the sinc-shaped impulse response of the reconstruction low-pass H(f).
Estimation of SNR degradation due to transmission errors
Now we will try to (approximately) determine the SNR curve of the PCM system taking bit errors into account. We start from the following block diagram and further assume:
- Each sample qA(νT) is quantized by M steps and represented by N=log2(M) bits. In the example: M=8 ⇒ N=3.
- The binary representation of qQ(νT) yields the coefficients ak(k=1,...,N), which can be falsified by bit errors to the coefficients bk. Both ak and bk are ±1, respectively.
- A bit error (bk≠ak) occurs with probability pB. Each bit is equally likely to be falsified and in each PCM word there is at most one error ⇒ only one of the N bits can be wrong.
From the diagram given in the graph, it can be seen for N=3 and natural binary coding ("Dual Code"):
- A falsification of a1 changes the value qQ(νT) by ±A.
- A falsification of a2 changes the value qQ(νT) by ±A/2.
- A falsification of a3 changes the value value qQ(νT) by ±A/4.
For the case when (only) the coefficient ak was falsified, we obtain by generalization for the deviation:
- εk=υQ(νT) − qQ(νT)=−ak⋅A⋅2−k+1.
After averaging over all falsification values εk (with 1≤k≤N) taking into account the bit error probability pB we obtain for the "error noise power":
- PE=E[ε2k]=N∑k=1pB⋅(−ak⋅A⋅2−k+1)2= pB⋅A2⋅N−1∑k=02−2k=pB⋅A2⋅1−2−2N1−2−2≈4/3⋅pB⋅A2.
- Here are used the sum formula of the geometric series and the approximation 1−2−2N≈1.
- For N=8 ⇒ M=256 the associated relative error is about 10−5.
Excluding transmission errors, the signal-to-noise power ratio ρv=PS/PQ has been found, where for a uniformly distributed source signal (e.g. sawtooth-shaped) the signal power and quantization noise power are to be calculated as follows:
- PS=A2/3,PQ=A2/3⋅2−2N.
Taking into account the transmission errors, the above result gives:
- ρυ=PSPQ+PE=A2/3A2/3⋅2−2N+A2/3⋅4⋅pB=12−2N+4⋅pB.
The graph shows 10⋅lgρv as a function of the (logarithmized) power parameter ξ=PS/(N0⋅BNF), where BNF indicates the source signal bandwidth. Let the constant channel transmission factor be ideally αK=1. Then holds:
- For AWGN noise and the optimum binary system, the performance parameter is also ξ=EB/N0 (energy per bit related to noise power density). The bit error probability is then given by the Gaussian error function Q(x):
- pB=Q(√2EB/N0).
- For N=8 ⇒ 2−2N=1.5⋅10−5 and 10⋅lg ξ=6 dB ⇒ pB=0.0024 (point marked in red) results:
- ρυ=11.5⋅10−5+4⋅0.0024≈100⇒10⋅lgρυ≈20dB.
- This small ρv value goes back to the term 4·0.0024 in the denominator (influence of the transmission errors) while in the horizontal section of the curve for each N (number of bits per sample) the term 2−2N dominates - i.e. the quantization noise.
Non-linear quantization
Often the quantization intervals are not chosen equally large, but one uses a finer quantization for the inner amplitude range than for large amplitudes. There are several reasons for this:
- In audio signals, distortions of the quiet signal components (i.e. values near the zero line) are subjectively perceived as more disturbing than an impairment of large amplitude values.
- Such an uneven quantization also leads to a larger sink SNR for such a music or speech signal, because here the signal amplitude is not uniformly distributed.
The graph shows a speech signal q(t) and its amplitude distribution fq(q) ⇒ Probability density function (PDF).
This is the Laplace distribution, which can be approximated as follows:
- by a continuous-valued two-sided exponential distribution, and
- by a Dirac delta function δ(q) to account for the speech pauses (magenta colored).
In the graph, nonlinear quantization is only implied, e.g. by means of the 13-segment characteristic, which is described in more detail in the "Exercise 4.5" :
- The quantization intervals here become wider and wider towards the edges section by section.
- The more frequent small amplitudes, on the other hand, are quantized very finely.
Compression and expansion
Non-uniform quantization can be realized, for example, by
- the sampled values qA(ν⋅TA) are first deformed by a nonlinear characteristic qK(qA), and
- subsequently, the resulting output values qK(ν·TA) are uniformly quantized.
This results in the signal chain sketched on the right.
Conclusion: Such a non-uniform quantization means:
- Through the nonlinear characteristic qK(qA) ⇒ small signal values are amplified and large values are attenuated ⇒ »compression«.
- This deliberate signal distortion is undone at the receiver by the inverse function vE(υQ) ⇒ »expansion«.
- The total process of transmitter-side compression and receiver-side expansion is also called »companding.«
For the PCM system 30/32, the "Comité Consultatif International des Télégraphique et Téléphonique" (CCITT) recommended the so-called "A–characteristic":
- y(x)={1+ln(A⋅x)1+ln(A)A⋅x1+ln(A)−1+ln(−A⋅x)1+ln(A)forforfor1/A≤x≤1,−1/A≤x≤1/A,−1≤x≤−1/A.
- Here, for abbreviation x=qA(ν⋅TA) and y=qK(ν⋅TA) are used.
- This characteristic curve with the value A=87.56 introduced in practice has a constantly changing slope.
- For more details on this type of non-uniform quantization, see the "Exercise 4.6".
⇒ Note: In the third part of the (German language) learning video "Pulse Code Modulation" are covered:
- the definition of signal-to-noise power ratio (SNR),
- the influence of quantization noise and transmission errors,
- the differences between linear and non-linear quantization.
Exercises for the chapter
Exercise 4.1: PCM System 30/32
Exercise 4.2: Low-Pass for Signal Reconstruction
Exercise 4.2Z: About the Sampling Theorem
Exercise 4.3: Natural and Discrete Sampling
Exercise 4.4: About the Quantization Noise
Exercise 4.4Z: Signal-to-Noise Ratio with PCM
Exercise 4.5: Non-Linear Quantization
Exercise 4.6: Quantization Characteristics