Docsity

Experiment 9: Parity Generator, Lab Reports of Digital Logic Design and Programming

Partial preview of the text

Download Experiment 9: Parity Generator and more Lab Reports Digital Logic Design and Programming in PDF only on Docsity!

The Papua New Guinea University of Technology

Department of Electrical & Communication Engineering

EE221 Digital Logic Systems

Experiment 9:

Parity Generator

Name: Felix Komolong

ID #: 20600308

S/CODE: EE

C/CODE: BSAP/

GROUP#: 3

Introduction

The Parity Generator is one of the most widely used error detection logic circuits for the data transmission. When binary data is transmitted and processed (like all electrical signals, it is also susceptible to noise and contents can be altered or distorted), it may be effectively changed from 1s to 0s and vice versa. To overcome this problem one or more bits are often added to data as an aid in detecting errors caused by noise. The most common of these is a parity bit that signifies whether the total number of 1s in a code group is odd or even.[1]

Background

A parity bit is used for the purpose of detecting errors during transmission of binary information. A parity bit is an extra bit included with a binary message to make the number of 1’s either odd or even. The message including the parity bit is transmitted and then checked at the receiving end for errors. An error is detected if the checked parity does not correspond with the one transmitted.[1]^ The circuit that generates the parity bit in the transmitter is called a parity generator and the circuit that checks the parity in the receiver is called a parity checker. In even parity the added parity bit will make the total number of 1’s an even amount and in odd parity the added parity bit will make the total number of 1’s an odd amount. [1]

Apparatus or Equipment

  • Digital-analog training system M21-
  • Circuit Board DTS- ◦ 3E ◦ 3B
  • Circuit Board DTS- ◦ 4A

Objectives

  • Master the design method of parity generator
  • Master the application technology of IC parity generator.

Experimental Procedures

Two circuits were observed. The first one was a 3-bit binary data parity bit. The second was a 9-bit parity generator, the IC 74LS280.

1. 3-bit binary data parity bit. The circuit below (figure 9.C1) was wired using the appropriate bread board. Switch 7 was used to toggle inputs for A and switch 6 was used to toggle inputs for B. C, which was the parity bit, was

Results

Truth Tables:

1. 3-bit binary data parity bit Table 1 Inputs Outputs A B C WE WOD 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 2. 9-bit parity generator Inputs Outputs E D C B A Odd Even 0 0 1 1 1 1 0 1 0 1 1 1 0 1 0 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 1 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 0 1

Circuits:

**1. 3-bit binary data parity bit

  1. 9-bit parity generator**

Discussion

From the truth table (Table 1), we can see that the combinational circuit did what was described in Table 9.1. When there was an odd number of bits the LED indicative of an ODD number of bits lit up and vice versa. The same sort of observations were seen in the IC 74LS280, verifying the function of the parity generator. When there was an even number of bits, the LED indicative of an EVEN number of bits lit up and vice versa.