Difference between revisions of "Aufgaben:Exercise 2.7Z: Power-Spectral Density of Pseudo-Ternary Codes"

From LNTwww
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Digital_Signal_Transmission/Symbol-Wise_Coding_with_Pseudo_Ternary_Codes
+
{{quiz-Header|Buchseite=Digital_Signal_Transmission/Symbolwise_Coding_with_Pseudo-Ternary_Codes
 
}}
 
}}
  
  
[[File:P_ID1354__Dig_Z_2_7.png|right|frame|Power-spectral densities of three different pseudo ternary codes]]
+
[[File:P_ID1354__Dig_Z_2_7.png|right|frame|Power-spectral densities of <br>three different pseudo-ternary codes]]
In the graph you can see the power-spectral densities of three different pseudo ternary codes, which result from the general description according to &nbsp;[[Aufgaben:2.7_AMI-Code|Aufgabe 2.7]]&nbsp; by different values of the parameters &nbsp;$N_{\rm C}$&nbsp; and &nbsp;$K_{\rm C}$.&nbsp; In different colors the power-spectral densities
+
In the graph you can see the power-spectral densities&nbsp; $\rm (PSD)$&nbsp; of three different pseudo-ternary codes,&nbsp; which result from the general description according to &nbsp;[[Aufgaben:Exercise_2.7:_AMI_Code|"Exercise 2.7"]]&nbsp; by different values of the parameters &nbsp;$N_{\rm C}$&nbsp; and &nbsp;$K_{\rm C}$.&nbsp;  
:$${\it \Phi}_s(f) 0 \ \frac{s_0^2 \cdot T}{2} \cdot {\rm si}^2 (\pi f T)  \cdot  \big [1 - K_{\rm C} \cdot \cos (2\pi f N_{\rm C} T)\big ]$$
+
 
 +
In different colors the power-spectral densities
 +
:$${\it \Phi}_s(f) = \ \frac{s_0^2 \cdot T}{2} \cdot {\rm sinc}^2 (f T)  \cdot  \big [1 - K_{\rm C} \cdot \cos (2\pi f N_{\rm C} T)\big ]$$
 
are shown for the following variants:
 
are shown for the following variants:
*AMI code &nbsp;$(N_{\rm C} = 1, K_{\rm C} = +1)$,
+
*AMI code &nbsp;$(N_{\rm C} = 1,\ K_{\rm C} = +1)$,
*duobinary code &nbsp;$(N_{\rm C} = 1, K_{\rm C} = -1)$,
+
*duobinary code &nbsp;$(N_{\rm C} = 1,\ K_{\rm C} = -1)$,
*second order bipolar code $&nbsp;(N_{\rm C} = 2, K_{\rm C} = +1)$.
+
*second order bipolar code $&nbsp;(N_{\rm C} = 2,\ K_{\rm C} = +1)$.
  
  
 
The above PSD equation assumes the use of rectangular NRZ basic transmission pulses.
 
The above PSD equation assumes the use of rectangular NRZ basic transmission pulses.
  
All pseudo ternary codes considered here have the same probability distribution:
+
All pseudo-ternary codes considered here have the same probability distribution:
 
:$${\rm Pr}\big[s(t) = 0\big]= {1}/{2},\hspace{0.2cm}{\rm Pr}\big[s(t) = +s_0\big]= {\rm Pr}\big[s(t) = -s_0\big]={1}/{4}\hspace{0.05cm}.$$
 
:$${\rm Pr}\big[s(t) = 0\big]= {1}/{2},\hspace{0.2cm}{\rm Pr}\big[s(t) = +s_0\big]= {\rm Pr}\big[s(t) = -s_0\big]={1}/{4}\hspace{0.05cm}.$$
  
Line 21: Line 23:
  
  
 +
Notes:
 +
*The exercise belongs to the chapter&nbsp;  [[Digital_Signal_Transmission/Symbolwise_Coding_with_Pseudo-Ternary_Codes|"Symbolwise Coding with Pseudo-Ternary Codes"]].
  
 +
*You can check the results with the&nbsp; (German language)&nbsp; SWF applet &nbsp;[[Applets:Pseudoternaercodierung|"Signals, ACF and PSD of pseudo-ternary codes"]].&nbsp;
  
''Notes:''
 
*The exercise belongs to the chapter&nbsp;  [[Digital_Signal_Transmission/Symbol-Wise_Coding_with_Pseudo_Ternary_Codes|Symbol-Wise Coding with Pseudo Ternary Codes]].
 
 
   
 
   
*You can check the results with the interactive applet &nbsp;[[Applets:Pseudoternaercodierung|Signals, ACF and PSD of pseudo ternary codes]].&nbsp;
 
  
  
Line 34: Line 36:
 
<quiz display=simple>
 
<quiz display=simple>
  
{Which curve belongs to the '''AMI code'''?
+
{Which curve belongs to the&nbsp; '''AMI code'''?
|type="[]"}
+
|type="()"}
 
+ red,
 
+ red,
 
- blue,
 
- blue,
 
- green.
 
- green.
  
{Which curve belongs to the '''duobinary code'''?
+
{Which curve belongs to the&nbsp; '''duobinary code'''?
|type="[]"}
+
|type="()"}
 
- red,
 
- red,
 
+ blue,
 
+ blue,
 
- green.
 
- green.
  
{Which curve belongs to the '''second order bipolar code'''?
+
{Which curve belongs to the&nbsp; '''second order bipolar code'''?
|type="[]"}
+
|type="()"}
 
- red,
 
- red,
 
- blue,
 
- blue,
Line 53: Line 55:
  
 
{Which code has the highest transmit power?
 
{Which code has the highest transmit power?
|type="[]"}
+
|type="()"}
 
- AMI code,
 
- AMI code,
 
- duobinary code,
 
- duobinary code,
Line 59: Line 61:
 
+ The transmit power is the same for all codes.
 
+ The transmit power is the same for all codes.
  
{Which of these codes is equal-signal-free?
+
{Which of these codes has no DC component?
 
|type="[]"}
 
|type="[]"}
 
+ AMI code,
 
+ AMI code,
Line 65: Line 67:
 
+ 2nd order bipolar code.
 
+ 2nd order bipolar code.
  
{Why do you need codes without equal signals for the "telephone channel"?
+
{Why do you need DC signal free codes for the&nbsp; "telephone channel"?
 
|type="[]"}
 
|type="[]"}
+ Transformers are needed to connect lines of different impedance. These have high-pass character.
+
+ Transformers are needed to connect lines of different impedance.&nbsp; These have high-pass character.
+ Since power is often supplied via the signal line, the message signal must not contain any DC signal components.
+
+ Since power is often supplied via the signal line,&nbsp; the message signal must not contain any DC signal components.
  
 
</quiz>
 
</quiz>
Line 74: Line 76:
 
===Solution===
 
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp;  In AMI code, the PSD can be transformed as follows:
+
'''(1)'''&nbsp;  With the AMI code,&nbsp; the PSD can be transformed as follows:
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (\pi f T) \cdot {\rm si}^2 (\pi f T) \hspace{0.05cm}.$$
+
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
This curve shape is shown in <u>red</u>. The PSD of the amplitude coefficients is ${\it \Phi}_{a}(f) = \sin^2(\pi fT)$.
+
*This curve shape is shown in&nbsp; <u>red</u>.
 +
 +
*The PSD of the amplitude coefficients is&nbsp; ${\it \Phi}_{a}(f) = \sin^2(\pi fT)$.
  
  
'''(2)'''&nbsp; After reshaping, we obtain for the duobinary code:
+
'''(2)'''&nbsp; For the duobinary code we obtain :
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \cos^2 (\pi f T) \cdot {\rm si}^2 (\pi f T) \hspace{0.05cm}.$$
+
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \cos^2 (\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
In the graph, the duobinary code is drawn in <u>blue</u>. Furthermore, ${\it \Phi}_{a}(f) = \cos^2(\pi fT)$.
+
*In the graph,&nbsp; the duobinary code is drawn in&nbsp; <u>blue</u>.
 +
 +
*Furthermore,&nbsp; for the duobinary code ${\it \Phi}_{a}(f) = \cos^2(\pi fT)$.
  
  
'''(3)'''&nbsp; The second order bipolar code differs from the AMI code only by the factor $2$ in the argument of the $\sin^{2}$ function:
+
'''(3)'''&nbsp; The second order bipolar code differs from the AMI code only by the factor&nbsp; $2$&nbsp; in the argument of the&nbsp; $\sin^{2}$&ndash;function:
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (2\pi f T) \cdot {\rm si}^2 (\pi f T) \hspace{0.05cm}.$$
+
:$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (2\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
The <u>green</u> curve represents this function progression. Compared to AMI code, ${\it \Phi}_{a}(f)$ is exactly half as wide.
+
*The&nbsp; <u>green</u>&nbsp; curve represents this function.
 +
 +
*Compared to AMI code,&nbsp; ${\it \Phi}_{a}(f)$ is exactly half as wide.
  
  
Line 95: Line 103:
  
 
'''(5)'''&nbsp;  <u>Solutions 1 and 3</u> are correct:  
 
'''(5)'''&nbsp;  <u>Solutions 1 and 3</u> are correct:  
*Equal signal freedom exists if the power-spectral density has no component at frequency $f = 0$.
+
*DC signal freedom exists if the power-spectral density has no component at frequency&nbsp; $f = 0$.
 +
 
 
*This is true for the AMI code and the second order bipolar code.
 
*This is true for the AMI code and the second order bipolar code.
*This statement does not only mean that $s(t)$ has no DC component, i.e. that ${\it \Phi}_{s}(f)$ has no Dirac delta function at $f = 0$.  
+
 
*Moreover, it also means that the continuous PSD component vanishes at $f = 0$.  
+
*This statement does not only mean that&nbsp; $s(t)$&nbsp; has no DC component,&nbsp; i.e. that ${\it \Phi}_{s}(f)$ has no Dirac delta function at&nbsp; $f = 0$.
*This is achieved exactly when both the long "$+1$" and the long "$–1$" sequences are excluded by the coding rule.
+
 +
*Moreover,&nbsp; it also means that the continuous PSD component vanishes at&nbsp; $f = 0$.
 +
 +
*This is achieved exactly when both the long&nbsp; "$+1$"&nbsp; and the long&nbsp; "$–1$"&nbsp; sequences are excluded by the coding rule.
  
  
Line 108: Line 120:
  
  
[[Category:Digital Signal Transmission: Exercises|^2.4 Pseudoternärcodes^]]
+
[[Category:Digital Signal Transmission: Exercises|^2.4 Pseudo-Ternary Codes^]]

Latest revision as of 17:18, 25 May 2022


Power-spectral densities of
three different pseudo-ternary codes

In the graph you can see the power-spectral densities  $\rm (PSD)$  of three different pseudo-ternary codes,  which result from the general description according to  "Exercise 2.7"  by different values of the parameters  $N_{\rm C}$  and  $K_{\rm C}$. 

In different colors the power-spectral densities

$${\it \Phi}_s(f) = \ \frac{s_0^2 \cdot T}{2} \cdot {\rm sinc}^2 (f T) \cdot \big [1 - K_{\rm C} \cdot \cos (2\pi f N_{\rm C} T)\big ]$$

are shown for the following variants:

  • AMI code  $(N_{\rm C} = 1,\ K_{\rm C} = +1)$,
  • duobinary code  $(N_{\rm C} = 1,\ K_{\rm C} = -1)$,
  • second order bipolar code $ (N_{\rm C} = 2,\ K_{\rm C} = +1)$.


The above PSD equation assumes the use of rectangular NRZ basic transmission pulses.

All pseudo-ternary codes considered here have the same probability distribution:

$${\rm Pr}\big[s(t) = 0\big]= {1}/{2},\hspace{0.2cm}{\rm Pr}\big[s(t) = +s_0\big]= {\rm Pr}\big[s(t) = -s_0\big]={1}/{4}\hspace{0.05cm}.$$



Notes:



Questions

1

Which curve belongs to the  AMI code?

red,
blue,
green.

2

Which curve belongs to the  duobinary code?

red,
blue,
green.

3

Which curve belongs to the  second order bipolar code?

red,
blue,
green.

4

Which code has the highest transmit power?

AMI code,
duobinary code,
2nd order bipolar code.
The transmit power is the same for all codes.

5

Which of these codes has no DC component?

AMI code,
duobinary code,
2nd order bipolar code.

6

Why do you need DC signal free codes for the  "telephone channel"?

Transformers are needed to connect lines of different impedance.  These have high-pass character.
Since power is often supplied via the signal line,  the message signal must not contain any DC signal components.


Solution

(1)  With the AMI code,  the PSD can be transformed as follows:

$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
  • This curve shape is shown in  red.
  • The PSD of the amplitude coefficients is  ${\it \Phi}_{a}(f) = \sin^2(\pi fT)$.


(2)  For the duobinary code we obtain :

$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \cos^2 (\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
  • In the graph,  the duobinary code is drawn in  blue.
  • Furthermore,  for the duobinary code ${\it \Phi}_{a}(f) = \cos^2(\pi fT)$.


(3)  The second order bipolar code differs from the AMI code only by the factor  $2$  in the argument of the  $\sin^{2}$–function:

$${\it \Phi}_s(f) = {s_0^2 \cdot T} \cdot \sin^2 (2\pi f T) \cdot {\rm sinc}^2 (f T) \hspace{0.05cm}.$$
  • The  green  curve represents this function.
  • Compared to AMI code,  ${\it \Phi}_{a}(f)$ is exactly half as wide.


(4)  The transmit power $P_{\rm S}$ is equal to the integral over the power-spectral density ${\it \Phi}_{s}(f)$ and is the same for all codes considered here   ⇒   solution 4.

  • This also follows from the power calculation by coulter averaging:
$$P_{\rm S} = \ {\rm Pr}[s(t) = +s_0] \cdot (+s_0)^2 + {\rm Pr}[s(t) = -s_0] \cdot (-s_0)^2= {1}/{4}\cdot s_0^2 + {1}/{4}\cdot s_0^2 = {1}/{2}\cdot s_0^2\hspace{0.05cm}.$$


(5)  Solutions 1 and 3 are correct:

  • DC signal freedom exists if the power-spectral density has no component at frequency  $f = 0$.
  • This is true for the AMI code and the second order bipolar code.
  • This statement does not only mean that  $s(t)$  has no DC component,  i.e. that ${\it \Phi}_{s}(f)$ has no Dirac delta function at  $f = 0$.
  • Moreover,  it also means that the continuous PSD component vanishes at  $f = 0$.
  • This is achieved exactly when both the long  "$+1$"  and the long  "$–1$"  sequences are excluded by the coding rule.


(6)  Both solutions apply in practice.