Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Similar documents
Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Registers and Counters

Registers and Counters

Counter dan Register

Asynchronous (Ripple) Counters

LAB 7. Latches & Flip Flops

RS flip-flop using NOR gate

Chapter 7 Counters and Registers

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Other Flip-Flops. Lecture 27 1

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Lecture 12. Amirali Baniasadi

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

LATCHES & FLIP-FLOP. Chapter 7

Digital Fundamentals: A Systems Approach

Experiment 8 Introduction to Latches and Flip-Flops and registers

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

CHAPTER 1 LATCHES & FLIP-FLOPS

MC9211 Computer Organization

UNIVERSITI TEKNOLOGI MALAYSIA

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

EKT 121/4 ELEKTRONIK DIGIT 1

RS flip-flop using NOR gate

ELCT201: DIGITAL LOGIC DESIGN

IT T35 Digital system desigm y - ii /s - iii

Logic Design. Flip Flops, Registers and Counters

Unit 11. Latches and Flip-Flops

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Module -5 Sequential Logic Design

Counters

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

Logic Design Viva Question Bank Compiled By Channveer Patil

Chapter 6 Registers and Counters

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

EKT 121/4 ELEKTRONIK DIGIT 1

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

ASYNCHRONOUS COUNTER CIRCUITS

ELCT201: DIGITAL LOGIC DESIGN

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Chapter 4. Logic Design

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Registers and Counters

EET2411 DIGITAL ELECTRONICS

ELE2120 Digital Circuits and Systems. Tutorial Note 8

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

1. Convert the decimal number to binary, octal, and hexadecimal.

Asynchronous Counter

CHAPTER 6 COUNTERS & REGISTERS

Lecture 8: Sequential Logic

Introduction to Microprocessor & Digital Logic

Serial In/Serial Left/Serial Out Operation

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Sequential Logic Counters and Registers

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Sequential Logic and Clocked Circuits

CHW 261: Logic Design

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

Digital Fundamentals: A Systems Approach

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Eng. Mohammed Samara. Fall The Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

The NOR latch is similar to the NAND latch

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

UNIT IV. Sequential circuit

Flip-Flops and Sequential Circuit Design

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Chapter 5 Flip-Flops and Related Devices

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

Introduction to Sequential Circuits

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Chapter 2. Digital Circuits

Registers and Counters

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

Universal Asynchronous Receiver- Transmitter (UART)

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Chapter. Synchronous Sequential Circuits

Unit-5 Sequential Circuits - 1

Chapter 3: Sequential Logic Systems

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Digital Circuits ECS 371

Decade Counters Mod-5 counter: Decade Counter:

Timing Pulses. Important element of laboratory electronics. Pulses can control logical sequences with precise timing.

Transcription:

Digital Design LAB Islamic University Gaza Engineering Faculty Department of Computer Engineering Fall 2012 ECOM 2112: Digital Design LAB Eng: Ahmed M. Ayash Experiment # 9 Clock generator circuits & Counters December 2, 2012

1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation using 555 timer. 3. Introduction to counters. Design and applications. 2. Theory: Clock Generator: Timing or synchronization is very crucial to most electronic devices and systems. This is because timing is essential in maintaining the proper sequencing of events. There are many ICs designed and manufactured specifically to accomplish this task. One of the most popular of these ICs is the 555 Timer. Figure 9.1 shows the pin diagram of the 555 Timer IC. Figure 9.1 The 555 timer can be used in a variety of forms. The monostable mode will create a single pulse of a specified width. A stable mode will create a repeating pulse train of specified frequency and duty cycle. Figure 9.2 shows the 555 IC Timer configured to output a clock signal. Figure 9.2 1

The charging time (output high) is given by: t high = 0.693*(R 1 + R 2 )*C And the discharging time (output low) by: t low = 0.693*(R 2 )*C Thus the total period is: T = t high + t low = 0.693*(R 1 + 2*R 2 )*C The clock frequency is determined by the formula: F = 1/T = 1.44 / ((R 1 + 2*R 2 )*C) Timer 555 is used to decrease debounds and control the duty of cycle. The duty cycle (ratio of low time to entire period) may be determined from the following equation: D 0 = t low / (t low + t high) = R 2 / (R 1 +2*R 2 ) D 1 = t high / (t low + t high) = (R 1 + R 2 ) / (R 1 +2*R 2 ) Counters: A counter is a sequential circuit that goes through a prescribed sequence of states upon the application of input pulses. The input pulses (count pulses) of the counter is clock pulses, or from some external source, and may occur at prescribed intervals of time or at random. Counters can be classified into two broad categories according to the way they are clocked: 1. Asynchronous (ripple) counters the first FF is clocked by the external clock pulse, and then each successive FF is clocked by the Q or Q output of the previous FF. 2. Synchronous counters all FFs are simultaneously triggered by the same clock. The counter follows the binary number sequence or other sequence of states. A counter that follows the binary sequence is called a binary counter. An n-bit binary counter consists of n flip-flops and can count in binary from 0 to 2 n -1. First : Synchronous counters Johnson counter Synchronous counter where the complement of the output of the last shift register is connected to the input of the first register and circulates a stream of ones followed by zeros around the ring as shown in figure 9.3 2

Figure 9.3: Johnson counter Table 1: 4-bit Johnson counter sequences Ring counter A ring counter is a type of counter composed of a circular shift register. The output of the last shift register is fed to the input of the first register. Second : Asynchronous (ripple) counters Binary Ripple Counter A binary ripple counter consists of a series connection of complementing flip flops, with the output of each flip flop connected to the Clk input of the next higherorder flip-flop. The flip flop holding the least significant bit receives the incoming count pulses. 3

- 2-bit ripple up counter Q from one flip-flop is connected to clock input for the next flip-flop MSB. - 3-bit ripple up counter - 4-bit ripple up counter(negative edge triggered) 4

- 3-bit ripple down counter - BCD Ripple Counter A decimal counter follows a sequence of ten states and returns to 0 after the count of 9. Such counter must have at least four flip-flops to represent each decimal digit, since a decimal digit is represented by a binary code with at least four bits. The sequence of states in a decimal counter is indicated by the binary code used to represent a decimal digit. If BCD is used, the sequence of states is as shown in the state diagram of figure 9.4. This is similar to a binary counter, except that the state after 1001 (code for decimal 9) is 0000 (code for decimal 0). 5

Figure 9.4: State diagram of a decimal BCD counter The logic diagram of a BCD ripple counter is shown in figure 9.5. The four outputs are designed by the letter symbol Q with a numeric subscript equal to the binary weight of the corresponding bit in the BCD code. The flip-flops trigger on the negative edge. Note that the output Q 1 is applied to the Clk inputs of both Q 2 and Q 8 and the output of Q 2 is applied to the Clk input of Q 4. The J and K inputs are connected either to a permanent 1 signal or to outputs of flip-flops, as shown in the diagram. Figure 9.5: BCD ripple counter The following are the conditions for each flip-flop state transition:- 1. Q 1 is complemented on the negative edge of every count pulse. 2. Q 2 is complemented if Q 8 = 0 and Q 1 goes from 1 to 0. Q 2 is cleared if Q 8 = 1 and Q1 goes from 1 to 0. 3. Q 4 is complemented when Q 2 goes from 1 to 0. 4. Q 8 is complemented when Q 4 Q 2 = 11 and Q 1 goes from 1 to 0. Q 8 is cleared if either Q 4 or Q 2 is 0 and Q 1 goes from 1 to 0. 6

Other presentation of BCD ripple counter will be as follows: 1. We need four flip-flops, for example JK flip flops where J and K are high. 2. Count from 0-9, so when counter reaches 9 it will make the 10 to be 0. 3. Decimal 10 = (1010) 2, clear = D C' B A' 4. Take ones as inputs of NAND and take output of NAND to CLR. 3. Lab Work: Clock generation with 555 IC Oscillator circuit: a) Module KL-33007 block d will be used in this part. b) Insert connection clips according to figure 9.6(a) to get equivalent circuit shown in figure 9.6(b) c) Connect F1 to LED and observe the output. d) Adjust R9 an R12 and state how the output is affected by them. figure 9.6(a) figure 9.6(b) 7

4. Exercises: 1) Using 555 timer equations, if R1 = R2 = 10kΩ, C = 1µF then find: a) t low b) t high c) T d) F 2) Draw 4-bit ring counter using D flip flops and then find its sequence like Table 1 where Q A =1, Q B =0, Q C =0, Q D =0 at Clock Pulse No = 0. 3) Draw ripple down counter from 15 to 0 using JK flip flops with negative edge triggered. 4) Draw BCD ripple counter using D flip-flops with negative edge triggered and NAND gate. 8