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



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

Counters and Decoders

Digital Logic Design Sequential circuits

Systems I: Computer Organization and Architecture

Module 3: Floyd, Digital Fundamental

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.

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

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

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

Flip-Flops and Sequential Circuit Design

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

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

Chapter 8. Sequential Circuits for Registers and Counters

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

ASYNCHRONOUS COUNTERS

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

Lecture-3 MEMORY: Development of Memory:

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

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

Lecture 8: Synchronous Digital Systems

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

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

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Registers & Counters

BINARY CODED DECIMAL: B.C.D.

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

Operating Manual Ver.1.1

Contents COUNTER. Unit III- Counters

Cascaded Counters. Page 1 BYU

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

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

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

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

Upon completion of unit 1.1, students will be able to

ECE380 Digital Logic

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

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

Counters. Present State Next State A B A B

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

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

Copyright Peter R. Rony All rights reserved.

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

Lesson 12 Sequential Circuits: Flip-Flops

Memory Elements. Combinational logic cannot remember

DEPARTMENT OF INFORMATION TECHNLOGY

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

74AC191 Up/Down Counter with Preset and Ripple Clock

Engr354: Digital Logic Circuits

Digital Electronics Detailed Outline

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

Theory of Logic Circuits. Laboratory manual. Exercise 3

SN54/74LS192 SN54/74LS193

Design: a mod-8 Counter

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

ANALOG & DIGITAL ELECTRONICS

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

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

CHAPTER 11: Flip Flops

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Set-Reset (SR) Latch


DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

COMBINATIONAL CIRCUITS

The components. E3: Digital electronics. Goals:

A Digital Timer Implementation using 7 Segment Displays

A Lesson on Digital Clocks, One Shots and Counters

Modeling Registers and Counters

A Lesson on Digital Clocks, One Shots and Counters

Chapter 9 Latches, Flip-Flops, and Timers

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

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Binary Adders: Half Adders and Full Adders

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

Microprocessor & Assembly Language

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

Memory unit. 2 k words. n bits per word

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

Digital Fundamentals

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

Sequential Logic Design Principles.Latches and Flip-Flops

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

Fig1-1 2-bit asynchronous counter

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

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.

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

54191 DM54191 DM74191 Synchronous Up Down 4-Bit Binary Counter with Mode Control

Transcription:

Design Eample: ers er: a sequential circuit that repeats a specified sequence of output upon clock pulses. A,B,C,, Z. G, O, T, E, R, P, S,!.,,,,,,,7. 7,,,,,,,.,,,,,,,,,,,. Binary counter: follows the binary sequence. -bit (up) binary counter:,,,. -bit down binary counter: 7,,,,,,, Design Eample: ers Other useful counters: Decimal counter (e.g. BCD counter),,,,,,,, Modulo-k counter Modulo- counter:,,,,,,,, M-to-N counter -to-8 counter:,,,,7,8,,, Ripple counter Ring counter and ohnson counter -Bit Binary er -Bit Binary er (t) (t+) T current state net state flip-flop inputs A B C A B C TA TB TC Flip-flop input functions TA = BC TB = C TC = T A T B T C Figure. gives a -bit binary counter. When =C, =B, =A, delete, set enable bit to be constant, it becomes this -bit counter.

Binary er with Flip-Flops E A -Down Binary er E A (t) (t+) when E = and goes from to : A A A A A A A A A A Eercise: Verify that the circuit is a binary counter that counts down from to, and then back to again. A A A A A A A A Summary Binary er with Parallel Sequential circuit design eample Shift registers Basic counters Net time Binary counter with parallel Ripple counter ohnson counter Net Monday: Eam IV PLD, Chapter, 7., 7. Discussion on Wednesday s class control signals, modes: ( i =D i ) = (up) =, = No change =, = (change, or count, happens only at positive edge of the clock pulse.) Carry Out: if and only if the counter is in count mode with content. Read Figure. for the detailed implementation. D D

9 7 8 modulo- Modulo-7 er 7 9 8 modulo-7 (when to ) D D 9 7 8 modulo- -To-8 er D D -to-8 (when and what to ) 7 9 8 Design Eample Eam IV 8-bit counter with two ers D D D D 7 PLD Timing diagram for basic latch/flip-flop Sequential circuit analysis Sequential circuit design Registers and counters

Ripple er Synchronous counter: the signal of all flipflops are from the common clock. Ripple counter: the of some flip-flops are from other flip-flops (and through logic gates). Ripple counter is asynchronous Binary ripple (up) counter (read Figure.) Binary ripple down counter Where the signal comes from? (By default, flip-flop is positive edge triggered.) BCD Ripple er Verify the following circuit is a BCD Ripple counter triggered by negative edge. 8 BCD Ripple er Verify the following circuit is a BCD Ripple counter triggered by negative edge. Ring er Ring counter: a circular shift register (with k flipflops) that at any time, only one flip-flop is set (having value ) and all others are cleared (with value ). It is used to generate k (periodic) timing signals. Eample: see Figure.7 for circuit. A D 8 C B

Ring er as er + Decoder ohnson er To generate (periodic) timing signals, we need a -bit ring counter, or a -bit counter and a decoder. -bit count decoder D C B A ohnson counter: a k-bit circular shift register with the complement of the last flip-flop connected to the input of the first flip-flop, and k decoding gates. It is used to generate k (periodic) timing signals. AND gates for decoding S S S D D D ohnson er S S S D D D states AND gate for output S S S T T T T T T AND gates for decoding S S S T = S S T = S S T = S S T = S S T = S S T = S S