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

Similar documents
Module 3: Floyd, Digital Fundamental

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

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

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

Digital Logic Design Sequential circuits

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

Counters and Decoders

Asynchronous Counters. Asynchronous Counters

Counters & Shift Registers Chapter 8 of R.P Jain

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

ASYNCHRONOUS COUNTERS

Contents COUNTER. Unit III- Counters

Lesson 12 Sequential Circuits: Flip-Flops

BINARY CODED DECIMAL: B.C.D.

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

Chapter 9 Latches, Flip-Flops, and Timers

Lecture-3 MEMORY: Development of Memory:

Chapter 8. Sequential Circuits for Registers and Counters

EXPERIMENT 8. Flip-Flops and Sequential Circuits

CHAPTER 11: Flip Flops

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

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

Cascaded Counters. Page 1 BYU

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.

Counters. Present State Next State A B A B

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

Lecture 8: Synchronous Digital Systems

A Lesson on Digital Clocks, One Shots and Counters

Systems I: Computer Organization and Architecture

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

A Lesson on Digital Clocks, One Shots and Counters

Sequential Logic Design Principles.Latches and Flip-Flops

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

Flip-Flops and Sequential Circuit Design

DEPARTMENT OF INFORMATION TECHNLOGY

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

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

Operating Manual Ver.1.1

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

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

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

The components. E3: Digital electronics. Goals:


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

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

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

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Theory of Logic Circuits. Laboratory manual. Exercise 3

ECE380 Digital Logic

CHAPTER 11 LATCHES AND FLIP-FLOPS

Fig1-1 2-bit asynchronous counter

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

Upon completion of unit 1.1, students will be able to

Engr354: Digital Logic Circuits

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Memory Elements. Combinational logic cannot remember

Digital Fundamentals

CpE358/CS381. Switching Theory and Logical Design. Class 10

Digital Electronics Detailed Outline

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

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

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

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

Lab 1: Study of Gates & Flip-flops

A Digital Timer Implementation using 7 Segment Displays

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

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

3-Digit Counter and Display

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

Chapter 5. Sequential Logic

Copyright Peter R. Rony All rights reserved.

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

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

CHAPTER 3 Boolean Algebra and Digital Logic

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

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

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

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

Chapter 2 Logic Gates and Introduction to Computer Architecture

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

Master/Slave Flip Flops

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

8254 PROGRAMMABLE INTERVAL TIMER

74F168*, 74F169 4-bit up/down binary synchronous counter

Digital Logic Elements, Clock, and Memory Elements

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

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

Electronics Merit Badge Class 3. 1/30/2014 Electronics Merit Badge Class 3 1

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

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

CS311 Lecture: Sequential Circuits

DATA SHEET. HEF4017B MSI 5-stage Johnson counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

6-BIT UNIVERSAL UP/DOWN COUNTER

Microprocessor & Assembly Language

Transcription:

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

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