Counters

Similar documents
Asynchronous (Ripple) Counters

Counter dan Register

Digital Fundamentals: A Systems Approach

ASYNCHRONOUS COUNTER CIRCUITS

CHAPTER 6 COUNTERS & REGISTERS

RS flip-flop using NOR gate

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Logic Design. Flip Flops, Registers and Counters

EKT 121/4 ELEKTRONIK DIGIT 1

Registers and Counters

Decade Counters Mod-5 counter: Decade Counter:

RS flip-flop using NOR gate

Digital Logic Design ENEE x. Lecture 19

Registers and Counters

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Vignana Bharathi Institute of Technology UNIT 4 DLD

Module -5 Sequential Logic Design

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

Chapter 7 Counters and Registers

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

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

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

Sequential Logic Counters and Registers

Chapter 3 Unit Combinational

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

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

Chapter 2. Digital Circuits

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Asynchronous Counter

UNIT IV. Sequential circuit

CHAPTER 4: Logic Circuits

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Introduction. Serial In - Serial Out Shift Registers (SISO)

Other Flip-Flops. Lecture 27 1

MC9211 Computer Organization

Chapter 4. Logic Design

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

CHAPTER 4: Logic Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

LATCHES & FLIP-FLOP. Chapter 7

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

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003

Unit 11. Latches and Flip-Flops

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

MODULE 3. Combinational & Sequential logic

ELE2120 Digital Circuits and Systems. Tutorial Note 8

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

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

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

Chapter 6 Registers and Counters

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

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Flip-Flops and Sequential Circuit Design

The NOR latch is similar to the NAND latch

Lecture 8: Sequential Logic

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

EET2411 DIGITAL ELECTRONICS

Universal Asynchronous Receiver- Transmitter (UART)

Scanned by CamScanner

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

UNIVERSITI TEKNOLOGI MALAYSIA

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

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

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

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

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Introduction to Sequential Circuits

CHAPTER1: Digital Logic Circuits

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

LSN 12 Shift Registers

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

Introduction to Microprocessor & Digital Logic

Chapter 9. Design of Counters

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

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

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Serial In/Serial Left/Serial Out Operation

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

Analysis of Sequential Circuits

Computer Organization & Architecture Lecture #5

Chapter 11 Latches and Flip-Flops

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

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

Operating Manual Ver.1.1

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

MC54/74F568 MC54/74F569 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS) 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS)

MC54/74F568 MC54/74F569 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS) 4-BIT BIDIRECTIONAL COUNTERS (WITH 3-STATE OUTPUTS)

Digital Fundamentals: A Systems Approach

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

Chapter 5 Flip-Flops and Related Devices

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

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Transcription:

Counters A counter is the most versatile and useful subsystems in the digital system. A counter driven by a clock can be used to count the number of clock cycles. Since clock pulses occur at known intervals, the counter can be used as an instrument for measuring time and therefore period and frequency.there are two types of counters: synchronous and asynchronous. All processors contain a program counter, or PC. Programs consist of a list of instructions that are to be executed one after another (for the most part). The PC keeps track of the instruction currently being executed. The PC increments once on each clock cycle, and the next program instruction is then executed. Counters could be serial or parallel counters or combination of both. Counters could be asynchronous or synchronous counters. Counters operate in Count up mode Count down mode When counters are cleared, then all the flip flops are cleared and they contain zero. Counter are preset such that the contents of the flip flop represent any desired binary number. Asynchronous counter Events that do not have fixed time relationship with each other and generally, do not occur at the same time.

Asynchronous Counter is a digital circuit in which flip-flops (FF) within the counter do not change states at exactly the same time because they do not have a common clock pulse. When the output of a flip-flop is used as the clock input for the next flip-flop, we call the counter a ripple counter, or asynchronous counter. A binary ripple counter can be constructed using clocked JK flip-flops. 4Bit Asynchronous Binary Counter An Application Specific Integrated Circuit (ASIC) dedicated for 4 Bit Asynchronous Binary Counting. It has 4 internal JK FFs. A 2 Input NAND Gate for clearing all FFs. The 2 Input NAND Gate can be wired to the Q1 and Q3 to form a Modulus 12 counter

7493A 2 reset inputs are active low. High at both the reset inputs resets all flip flops simultaneously. This will occur regardless of the clock.

Decoding Gates: A decoding gate can be connected to the outputs of a counter in such a way that the output of the gate will be high (or low) only when the counter contents are equal to a given state. Synchronous Counters: Events that have fixed time relationship with each other and generally, occur at the same time. Digital Circuit s clock inputs are all wired together. With all clock inputs wired together, propagation delay is assumed to be equal. Propagation Delay occurs from the triggering edge of the input clock pulse. Each FF s Q-outputs toggle simultaneously Response time for a Synchronous counter is faster than Asynchronous circuit. A 2 Bit Binary Synchronous Counter can be built quite easily.

The flip-flop delay time and possibility of glitches are overcome by the use of a synchronous or parallel counter. Every flip-flop is triggered in synchronism with the clock. 2Bit binary synchronous counter The flip-flop delay time and possibility of glitches are overcome by the use of a synchronous or parallel counter. Every flip-flop is triggered in synchronism with the clock.

Changing the counter modulus Counters are said to have a natural count of 2 n. A counter having a modulus of 3 or 5 would be useful and such counters are said to have a modified count.

Decade Counters A Mod-5 counter: A MOD-10 Counter A 2x5 or a 5x2 will form a mod-10 counter, or a decade counter.

UP/DOWN 3 BIT SYNCHRONOUS COUNTER An Up/Down 3 Bit Counter is capable of progressing in either direction through a certain sequence. An Up/Down Counter is also known as bidirectional counter. A 3 Bit Binary counter advances upward in sequence (0,1,2,3,4,5,6,7). It advances downward in reverse sequence (7,6,5,4,3,2,1,0). The counter advances to next output state on the positive edge of the input clock.

Presettable Counters A basic 3-bit up/down synchronous counter

The 74HC/HCT163 are synchronous presettable binary counters which feature an internal look-ahead carry and can be used for high-speed counting. Synchronous operation is provided by having all flip-flops clocked simultaneously on the positive-going edge of the clock (CP).The outputs (Q0 to Q3) of the counters may be preset to a HIGH or LOW level. A LOW level at the parallel enable input (PE) disables the counting action and causes the data at the data inputs (D0 to D3) to be loaded into the counter on the positive-going edge of the clock (providing that the set-up and hold time requirements for PE are met). Preset takes place regardless of the levels at count enable inputs (CEP and CET). For the 163 the clear function is synchronous. A LOW level at the master reset input (MR) sets all four outputs of the flip-flops (Q0 to Q3) to LOW level after the next positive-going transition on the clock (CP) input (provided that the set-up and hold time requirements for MR are met). This action occurs regardless of the levels at PE, CET and CEP inputs. This synchronous reset feature enables the designer to modify the maximum count with only one external NAND gate. The look-ahead carry simplifies serial cascading of the counters. Both count enable inputs (CEP and CET) must be HIGH to count. The CET input is fed forward to enable the terminal count output (TC). The TC output thus enabled will produce a HIGH output pulse of a duration approximately equal to a HIGH level output of Q0. This pulse can be used to enable the next cascaded stage.

Synchronous Up-Down counter: Counter design as a synthesis problem Let us try to design a modulo-6 counter, the counting states (memory values) of which are shown in state transition diagram. We need three memory element or flip-flops for this as with n flip-flop we can get at most 2n number of different counting states. 000 101 001 100 010 011

Our next objective is to get logic equation for each flip-flop input as a function of present state of the counter. C n B n A n 0 0 0 1 1 1 1 0 C n B n A n 0 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 1 J C = A n K C = A n C n B n A n 0 0 0 1 1 1 1 0 C n B n A n 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 0 00 1 _ J B = C n A n K B = A n

The final step is to draw the circuit diagram from the design equations, which is shown. 1 J A A J B B J C C 1 K A _ A 1 K B _ B K C _ C CLK Y