ASYNCHRONOUS COUNTERS



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

Module 3: Floyd, Digital Fundamental

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

Counters and Decoders

Asynchronous Counters. Asynchronous Counters

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

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

Contents COUNTER. Unit III- Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Digital Logic Design Sequential circuits

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

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

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

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

BINARY CODED DECIMAL: B.C.D.

Lecture 8: Synchronous Digital Systems

Counters & Shift Registers Chapter 8 of R.P Jain

CHAPTER 11: Flip Flops

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

Cascaded Counters. Page 1 BYU

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

Counters. Present State Next State A B A B

Chapter 8. Sequential Circuits for Registers and Counters

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

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

Set-Reset (SR) Latch

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

Memory Elements. Combinational logic cannot remember

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

The components. E3: Digital electronics. Goals:

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

Operating Manual Ver.1.1

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

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

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

Fig1-1 2-bit asynchronous counter

CHAPTER 11 LATCHES AND FLIP-FLOPS

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

DEPARTMENT OF INFORMATION TECHNLOGY

Systems I: Computer Organization and Architecture

6-BIT UNIVERSAL UP/DOWN COUNTER

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

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

Master/Slave Flip Flops

Design Verification & Testing Design for Testability and Scan

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.

Lesson 12 Sequential Circuits: Flip-Flops

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

Copyright Peter R. Rony All rights reserved.

SN54/74LS192 SN54/74LS193

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

Chapter 9 Latches, Flip-Flops, and Timers

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

Theory of Logic Circuits. Laboratory manual. Exercise 3

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

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

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

Flip-Flops and Sequential Circuit Design

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


CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

Digital Controller for Pedestrian Crossing and Traffic Lights

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

7. Latches and Flip-Flops

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

CS311 Lecture: Sequential Circuits

Lecture 11: Sequential Circuit Design

Lecture-3 MEMORY: Development of Memory:

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Lecture 7: Clocking of VLSI Systems

Sequential Logic: Clocks, Registers, etc.

Modeling Latches and Flip-flops

Chapter 2 Logic Gates and Introduction to Computer Architecture

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

74AC191 Up/Down Counter with Preset and Ripple Clock

Layout of Multiple Cells

Lab 1: Study of Gates & Flip-flops

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

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

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Lecture 10: Sequential Circuits

CSE140 Homework #7 - Solution

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

Combinational Logic Design Process

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

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

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

Sequential Logic Design Principles.Latches and Flip-Flops

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

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

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

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

Sequential 4-bit Adder Design Report

EC313 - VHDL State Machine Example

Transcription:

LB no.. SYNCHONOUS COUNTES. Introduction Counters are sequential logic circuits that counts the pulses applied at their clock input. They usually have 4 bits, delivering at the outputs the corresponding binary code of the number of pulses occurred at the input. The counters can be classified according to: - the counting mode: - up counters count up from to the maximum value - down counters count down from the maximum value to - up/down counters count up or down under the control of an up or down selection input (reversible). - the working mode: - asynchronous (ripple) counters - the cells are pipelined and they switch successively - synchronous counters the cells switch simultaneously on the same clock. The basic cell of a counter is the T flip flop. It divides the clock frequency by (when T=logic ). Connecting n cells, a n bit counter is obtained ( n maximum capacity). Such counter is in fact a sequential logic circuit with n states. Its output code can be binary (binary counter), BCD (BCD counter), Gray (Gray counter), exponential (exponential counter).. synchronous binary counter Such a counter has the output of a cell as clock for the next cell k =. In the following figure it represented a 4 bit counter architecture. k in FF FF FF FF eset The first flip flop (FF ) has the counter s clock connected at its clock input. It switches (changes the output state) on every clock s falling edge. The second flip flop (FF ) has as clock the output of FF. It switches on 59

LB no.. every falling edge on the output. The third flip flop (FF ) has as clock the output of FF. It switches on every falling edge on the output. The fourth flip flop (FF ) has as clock the output of FF. It switches on every falling edge on the output. The number of pulses applied at the input can be deduced from the binary code at the outputs: Ni in 4 5 6 7 8 9 4 5 The asynchronous counter can be used in applications where pulses are counted (instruments for measurements). nother application of counters is related to frequency division. nalyzing the waveforms above, the signal on the output has the frequency half besides the clock, is a quarter besides the clock, is one eighth besides the clock and is one sixteenth besides the clock. Thus we can say the counters are frequency dividers. The dividing ratios are the powers of (, 4, 8, 6, etc). If other ratios than n are needed, the counter must count up to the division ratio and then it must be reset. This is achieved with a feedback that detects the final state and reset the counter. Considering the division ratio K, it is transformed in binary k k k k. The outputs i that correspond to the index i for which k i = will be connected through a NND gate at the eset input (active on logic ). fter a delay necessary to the signal propagation through circuits, the counter will be initialized (all outputs in logic ), and the cycle will start again. 6

LB no... Down counter The down counter counts from the maximum value down to zero. If the in V CC FF V CC FF V CC V FF CC FF eset output i is connected to the clock input of the next cell, a down asynchronous counter is obtained. The codes at its outputs will follow in the reverse order (from 5 to ). in 5 4 9 8 7 6 5 4 4. eversible asynchronous counter nalyzing the two counters above, we notice that using a circuit that switches the outputs i or i at a cell s clock input, we can change the counting sense. We can use a multiplexer with inputs connected like in the figure below. The address input of all the multiplexers are connected together at the input Sense. If the input Sens = = Y=I in CBB MUX CBB MUX CBB MUX CBB I I I Y Y Y K I K K K I I eset 6 Sens

LB no.. i i the counter counts up. If the input Sens = = Y=I i i the counter counts down.. Lab work Print the Lab sheet below and complete it according to the indications. 6

LB no.. LB SHEET. Input the asynchronous up counter in MaxPlus II and simulate the circuit (6 states, a state is grid periods). Draw the waveforms on the grid below. Measure the delay times (they are different on each output) and write the logic state on the waveforms. Compare the results with the truth table.. Input the inverters between the counting cells and simulate the circuit as a new project (6 states, a state is grid periods). Draw the waveforms on the grid below. What kind of counter is this?. Input in MaxPlus II the reversible counter and simulate it. Draw the waveforms on the grid below ( states, a state is grid periods). Write the delay times and the logic states on the waveforms. Sens 6