Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Prentice Hall
Author: Bernard Sklar
Book: Digital Communications: Fundamentals and Applications (2nd Edition)
Copyright: 2001
ISBN: 0130847887
NI Supported: No
Publish Date: Jan 1, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Hamming Codes

0 ratings | 0.00 out of 5
Print

Overview

National Instruments has partnered with Prentice Hall to bring you large portions of in-depth technical topics from several PTR RF and Communications books, including Digital Communications: Fundamentals and Applications, 2nd Edition. This series of content is designed for a broad range of audiences, from experts who want to review a specific topic to students who need easy-to-understand documentation for their projects.

For the complete list of RF topics, please visit the RF and Communications Resource Main Page.

6.8.1 Hamming Codes

Hamming codes are a simple class of block codes characterized by the structure

where m = 2, 3, . . . . These codes have a minimum distance of 3 and thus, from

Equations (6.44) and (6.47), they are capable of correcting all single errors or detecting

all combinations of two or fewer errors within a block. Syndrome decoding

is especially suited for Hamming codes. In fact, the syndrome can be formed to act

as a binary pointer to identify the error location [5]. Although Hamming codes are

not very powerful, they belong to a very limited class of block codes known as

perfect codes, described in Section 6.5.4.

Assuming hard decision decoding, the bit error probability can be written,

from Equation (6.46), as

where p is the channel symbol error probability (transition probability on the

binary symmetric channel). In place of Equation (6.72) we can use the following

equivalent equation. Its identity with Equation (6.72) is proven in Appendix D,

Equation (D.16):

       

Figure 6.21 is a plot of the decoded P B versus channel-symbol error probability,

illustrating the comparative performance for different types of block codes. For the

Figure 6.21 Bit error probability versus channel symbol error probability for several block codes.

Hamming codes, the plots are shown for m = 3, 4, and 5, or (n, k) = (7, 4), (15, 11),

and (31, 26). For performance over a Gaussian channel using coherently demodulated

BPSK, we can express the channel symbol error probability in terms of Ec/N0,

similar to Equation (4.79), as

where Ec/N0 is the code symbol energy per noise spectral density, and where Q(x)

is as defined in Equation (3.43). To relate E c / N 0 to information bit energy per noise

spectral density (Eb/N0), we use

 

For Hamming codes, Equation (6.75) becomes

Combining Equation (6.73), (6.74), and (6.76), PB can be expressed as a function of

Eb/N0 for coherently demodulated BPSK over a Gaussian channel. The results are

plotted in Figure 6.22 for different types of block codes. For the Hamming codes,

plots are shown for (n, k) = (7, 4), (15, 11), and (31, 26).

Example 6.11 Error Probability for Modulated and Coded Signals

A coded orthogonal BFSK modulated signal is transmitted over a Gaussian channel.

The signal is noncoherently detected and hard-decision decoded. Find the decoded bit

error probability if the coding is a Hamming (7, 4) block code and the received E b/N0

is equal to 20.

Solution

First we need to find E c/N 0 using Equation (6.75):

Then, for coded noncoherent BFSK, we can relate the probability of a channel symbol

error to E c/N 0, similar to Equation (4.96), as follows

 

Using this result in Equation (6.73), we solve for the probability of a decoded bit

error, as follows:

 

Figure 6.22  PB versus Eb/N0 for coherently demodulated BPSK over a Gaussian channel for several block codes.

Relevant NI products


Customers interested in this topic were also interested in the following NI products:

For the complete list of tutorials, return to the NI RF and Communications Fundamentals Main page.

Buy the Book


Purchase Digital Communications from Prentice Hall Professional through this link and receive the following:

  • Between 15% and 30% Off
  • Free Shipping and Handling
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
Excerpt from the book published by Prentice Hall Professional (http://www.phptr.com).
Copyright Prentice Hall Inc., A Pearson Education Company, Upper Saddle River, New Jersey 07458.
This material is protected under the copyright laws of the U.S. and other countries and any uses not in conformity with the copyright laws are prohibited, including but not limited to reproduction, DOWNLOADING, duplication, adaptation and transmission or broadcast by any media, devices or processes.