# A Simple Communication System In wireless communications and other applications of digital signal processing, we often want to modify a generated or acquired signal. A device or algorithm that performs some prescribed operations on an input signal to generate an output signal is called a system. In every digital communication system, whether it is a home DSL or cellular data plan, one fundamental parameter we always hear about is the data rate. Data rate is simply the number of bits transmitted and received during one second, also called the bit rate denoted by $R_b$ bits/second (b/s). Stated in another way, the source produces one bit during every $1/R_b = T_b$ seconds.

Since these bits consist of 0’s and 1’s, we start with assigning them two distinguishable voltage levels $-A$ and $+A$, an example of which is shown in Figure below. Such a representation is called a constellation. Our ultimate purpose is to transmit a sequence of these voltage levels according to the bit stream at the Tx side. Then, we design the system such that these voltage levels are received undistorted in every manner at the Rx side so that the Rx can perform the inverse mapping from voltage to bits and find out the original bit stream. Based on this reasoning, a very simple digital communication system can be built as follows: At the Tx side, logic 0 and 1 of a bit sequence $\underline{b}$ are mapped to levels $-A$ and $+A$ of a symbol sequence $a[m]$, respectively, at discrete time intervals $m = 0,1,2,\cdot\cdot\cdot$. This process is called bit-symbol mapping and the time index $m$ counts each such symbol time, $T_M$. A symbol is basically a mapping from the binary logic levels to signal levels into the real world. The constellation in Figure above illustrates the relationship between bits in $\underline{b}$ and symbols $a[m]$ as
\begin{equation}
a[m] = \left\{ \begin{array}{l}
-A, \quad b = 0 \\
+A, \quad b = 1 \\
\end{array} \right.
\end{equation}
For a bit sequence 1010, the generated symbols for $A=2$ are shown in Table below. The block diagram of such a system is shown in Figure below. The received signal is corrupted by the addition of random noise $w[m]$ on the Rx side such that the the received signal $r[m]$ is given as
\begin{equation*}
r[m] = a[m] + w[m]
\end{equation*}
As a consequence of noise addition, the received symbols are scattered around the actual symbol values as illustrated in the decision block of Figure above. Common sense dictates that symbol decisions $\hat a[m]$ should be taken according to the following rule: Minimum distance rule

If $r[m]$ is closer to $-A$, it is decided that symbol $-A$ was sent at time $m$, and if it closer to $+A$, it is taken as symbol $+A$. To construct a general intuitive rule, the point in their middle is $(-A+A)/2=0$, and hence
\begin{equation}\label{eqCommSystemBinaryDecisionRule}
\hat a[m] = \left\{ \begin{array}{l}
-A, \quad r[m] < 0 \\ +A, \quad r[m] > 0 \\
\end{array} \right.
\end{equation}

Such a decision rule is applied to compute $\hat a[m]$ in Table above for $A=2$ where we luckily encounter no errors. The above relation is actually a manifestation of the minimum distance rule. What is not evident here, and we find out in another article, is that we are actually performing a correlation with the two possible options and choosing the more likely one. Since we quoted Sherlock Holmes to introduce correlation, we recall another of his quote in this context:

"… we balance probabilities and choose the most likely.."

Sherlock Holmes – The Hound of the Baskervilles

Finally, the subsequent symbol-bit mapping generates bit 0 for symbol $-A$ and bit 1 for symbol $+A$ to form the estimated bit sequence $\hat{b}$. Notice that the digital communication system constructed above is sending and receiving one bit in every symbol time $T_M$.