The NOT Gate The NOT gate outputs a logical 0 if its input is a logical 1 and outputs a 1 if its input is a 0. The symbol is given.

Similar documents
Lecture 8: Synchronous Digital Systems

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Upon completion of unit 1.1, students will be able to

Asynchronous Counters. Asynchronous Counters

CHAPTER 11 LATCHES AND FLIP-FLOPS

Module 3: Floyd, Digital Fundamental

Digital Electronics Detailed Outline

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

ECE380 Digital Logic

Counters and Decoders

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Lesson 12 Sequential Circuits: Flip-Flops

CHAPTER 11: Flip Flops

Theory of Logic Circuits. Laboratory manual. Exercise 3

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

BINARY CODED DECIMAL: B.C.D.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

The components. E3: Digital electronics. Goals:

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

DEPARTMENT OF INFORMATION TECHNLOGY

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Counters & Shift Registers Chapter 8 of R.P Jain

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

ASYNCHRONOUS COUNTERS

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Digital Logic Design Sequential circuits

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Chapter 8. Sequential Circuits for Registers and Counters

Gates, Circuits, and Boolean Algebra

Counters are sequential circuits which "count" through a specific state sequence.

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Systems I: Computer Organization and Architecture

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

CS311 Lecture: Sequential Circuits

CHAPTER 3 Boolean Algebra and Digital Logic

Asynchronous counters, except for the first block, work independently from a system clock.

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

Decimal Number (base 10) Binary Number (base 2)

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Copyright Peter R. Rony All rights reserved.

Contents COUNTER. Unit III- Counters


Engr354: Digital Logic Circuits

Sequential Logic Design Principles.Latches and Flip-Flops

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Digital Controller for Pedestrian Crossing and Traffic Lights

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

Master/Slave Flip Flops

Memory Elements. Combinational logic cannot remember

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Lecture-3 MEMORY: Development of Memory:

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

(Refer Slide Time: 00:01:16 min)

Chapter 2 Logic Gates and Introduction to Computer Architecture

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Cascaded Counters. Page 1 BYU

Chapter 9 Latches, Flip-Flops, and Timers

ENGI 241 Experiment 5 Basic Logic Gates

Lab 1: Study of Gates & Flip-flops

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Operating Manual Ver.1.1

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Counters. Present State Next State A B A B

Sequential Logic: Clocks, Registers, etc.

54LS169 DM54LS169A DM74LS169A Synchronous 4-Bit Up Down Binary Counter

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Digital Logic Elements, Clock, and Memory Elements

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

SN54/74LS192 SN54/74LS193

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Flip-Flops, Registers, Counters, and a Simple Processor

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

7. Latches and Flip-Flops

Wiki Lab Book. This week is practice for wiki usage during the project.

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

3.Basic Gate Combinations

Systems I: Computer Organization and Architecture

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

Transcription:

Gates and Flip-Flops Pádraig Ó Conbhuí 08531749 SF WED Abstract This experiment was carried out to construct (with the exception of the AND and NOT gates) and investigate the outputs of AND, NAND, OR, NOR, XOR and XNOR gates and J-K master slave flip-flop circuits when given different inputs using truth tables, 1 indicating a signal and 0 indicating none. Both asynchronous and synchronous counters were then constructed from the J-K master slave flip-flops. The expected logic tables were constructed and the counters worked. Introduction and Theory In electronics, logical functions are performed based on incoming signals and pulses in a circuit. Gates and flip-flops are used to perform these functions in what is called a logic circuit. In the logic, called transistortransistor logic (TTL) signals of a standard size (0V and +5V) are used. The presence of a signal is referred to as a logical 1, or true, while the absence of a signal is referred to as a logical 0, or false. The following gates perform logical operations, outputting either a logical 1 or 0 based on their inputs. The NOT Gate The NOT gate outputs a logical 0 if its input is a logical 1 and outputs a 1 if its input is a 0. The symbol is given. NOT gate The AND Gate The AND gate outputs a logical 1 if and only if all inputs are a logical 1 and outputs 0 otherwise. AND gate The NAND Gate The NAND gate is an AND gate followed by a NOT gate. Therefore, it outputs a logical 0 if and only if all inputs are a logical 1 and outputs 0 otherwise. The symbol is a regular AND gate with a circle at the output. NAND gate

The OR and NOR Gate The OR gate outputs a logical 1 if at least one input is a logical 1 and a 0 otherwise. The NOR gate outputs 0 where the OR gate would output 1 and 1 where the OR gate would output 0. OR gate NOR gate The XOR and XNOR Gate The XOR gate, or the exclusive OR gate, outputs 1 when one and only one of its inputs are a logical 1 and 0 otherwise. Similarly, the XNOR gate outputs 1 only when all the inputs are the same, and 0 otherwise. XOR gate XNOR gate Flip-Flops The Flip-Flop remains locked on an output of either 0 or 1 until it is given some sequence of inputs, in which case its output will change. The J-K flip-flop has two outputs, one being the conjugate of the other. The J-K flip-flop is constructed using NAND and NOT gates as shown. The J-K flip-flop outputs reflect the J and K inputs upon the pulse of the clock, but remain locked until then except in the case where J=K=1 where the outputs simply flip upon a pulse. The clocked J-K master slave flip-flop was used in this experiment. The output of the clocked J-K master slave flip-flop alternates upon a pulse being fed into the clock (a pulse being a sequence of 010 or 101). J-K flip-flop Clocked J-K master slave flip-flop

Experimental Method Care was taken to make sure each gate used was properly connected to the +5V supply and properly grounded in the circuit. The circuits were constructed as instructed and outputs were checked using red LED lights, the light turning on indicating a signal. Inputs came from switches, which could easily be seen to be on or off, and a clock which emitted a pulse on the push of a button or released regular pulses when set. Results A NAND gate with 3 inputs was tested and its truth table written out it was found to follow the expected logic. It was also tested with one input disconnected and was found to operate like a 2 input NAND gate. Input A Input B Input C Output 1 1 0 0 1 0 0 1 1 1 0-1 1 0 - - - 0 0 1 A NOT gate was put after the NAND gate to create an AND gate and the results were tabulated Input A Input B Input C Output 0 1 0 1 0 0 0 0 1 0 1 1 0 0 0 0 1 A NOT gate was put before one of the inputs of the AND gate and the inhibit function of this input on the other two inputs was tabulated. It was found that a signal is output only if the inhibit is off and both inputs have a signal. Input A Input B Inhibit Output 0 1 0 1 0 0 1 0 0 1 0 0 Inhibited AND gate 0 0

An OR gate was constructed by placing NOT gates in front of the inputs of a NAND gate. The results were tabulated. The NOT gate was constructed similarly, except an AND gate was used, ie a NOT gate was placed in front of the AND gate. A XOR gate was constructed from NAND gates and its results were tabulated. A XNOR gate was constructed by placing a NOT gate after it. XOR gate: 1 1 0 The OR gate An example OR gate XNOR gate: 0 0 1 1 0 0 0 1 0 An example XOR gate The J-K master slave flip-flop was constructed as shown in the introduction and the results tabulated. Input J Input K Clock Q Q 0 1 Pulse 0 1 1 0 Pulse 1 0 1 0 1 0 Pulse Pulse Alternates Stops Alternates Stops

Several Counters (Scalers) were constructed using the J-K master slave flip-flop. A counter of scale 16 was constructed which counted in binary using the LED lights. An asynchronous counter was first constructed. A scale 10 counter is shown here, but the scale 16 is simply the same without the NAND gate. It was simple to construct counters of any power of two and any other number could be constructed by adding the equivalent binary outputs for the number to the inputs of the NAND gate. In the diagram shown, the conjugate of the clear is shown along with an AND gate. A NAND gate without the conjugate is the same thing. A synchronous counter was then constructed, which is similar to an asynchronous counter, except that all of the flip-flips are pulsed simultaneously. Scale 16 counter: Pulse 2 0 2 1 2 2 2 3 1 1 2 0 1 0 0 3 1 1 0 0 4 0 0 1 0 5 0 6 0 7 0 8 1 9 1 0 0 1 10 0 11 1 12 0 13 1 14 1 15 1 16 0 Scale 10 counter: Pulse 2 0 2 1 2 2 2 3 1 1 2 0 1 0 0 3 1 1 0 0 4 0 0 1 0 5 0 6 0 7 0 8 1 9 1 0 0 1 1 0 0 Scale 10 asynchronous counter Scale 16 synchronous counter Discussion and Conclusions The expected truth table for every gate was verified in this experiment. It was shown that there were several ways to construct each gate from NAND and NOT gates, or even purely from NAND gates since a NOT gate can be constructed from a NAND gate. The usefulness of J-K master slave flip-flops was shown in the construction of several types of counters.