Principles & Applications

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

Lecture 23: Registers and Counters (2)
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Figure 7–1 Two versions of SET-RESET (S-R) latches
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 14 Connecting with Analog.
Counter Circuits and VHDL State Machines
Counters and Registers
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Asynchronous and Synchronous Counters
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Lab 5 :JK Flip Flop and Counter Fundamentals:
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
A presentation on Counters
Electronics Technology
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
Principles & Applications
Electronics Technology
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
Introduction to Chapter 7
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Counters By Taweesak Reungpeerakul
Counter Classification Count modulus (MOD) – total number of states in the counter sequence Counter triggering technique – positive edge or negative edge.
Counters - I. Outline  Introduction: Counters  Asynchronous (Ripple) Counters  Asynchronous Counters with MOD number < 2 n  Asynchronous Down Counters.
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Introduction to Chapter 5  Logic circuits studied so far have outputs that respond immediately to inputs at some instant in time.  We now introduce the.
Counter Circuits and VHDL State Machines
Sequential logic circuits
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Counters.
Counters.
Basic terminology associated with counters Technician Series
Digital System Design using VHDL
EKT 121 / 4 ELEKTRONIK DIGIT I
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 1 Digital Electronics.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Date: 01/12/2014 Asynchronous (Ripple) Counters Patel Siddhi P rd SEM Computer Science and Engneering B.M.C.E.T Subject Name: Digital Electronics.
Principles & Applications
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Electronics Technology
Asynchronous Counters with SSI Gates
Principles & Applications
INTRODUCTION Overview of Shift Registers
Flip-Flop.
Principles & Applications
Asynchronous Counters with SSI Gates
Counters and Registers
Principles & Applications
Presentation transcript:

Principles & Applications Digital Electronics Principles & Applications Seventh Edition Roger L. Tokheim Chapter 8 Counters ©2008 The McGraw-Hill Companies, Inc. All rights reserved.

INTRODUCTION Overview of Counters Characteristics of Counters Ripple Up Counter Ripple Counter with Waveforms Ripple Down Counter Self-stopping Counter Frequency Division using Counters Using Counter ICs Magnitude Comparators Troubleshooting Hints

Overview of Counters Counter-by definition One input (clock) Outputs follow defined sequence Common tasks of counter Count up or down Increment or decrement count Sequence events Divide frequency Address memory As temporary memory

QUIZ 1. A digital counter has a single clock input with many outputs and the counter follows defined sequence such as 000, 001, 010, 011, 100, 101, 110, 111, 000, etc. (True or False) True Several common tasks of a counter are to count up or down, divide frequency, or as temporary memory. (True or False) True

Characteristics of Counters Number of bits (4-bit, 8-bit, etc.) Maximum count 4 bit = 24 = 0000 to 1111 in binary 8 bit = 28 = 0000 0000 to 1111 1111 in binary Modulus of counter-number of states Decade counter 4-bit 8-bit Up or down counter Asynchronous or synchronous counter Presettable counter Self-stopping counter

QUIZ 1. A 4-bit counter will count from binary 0000 to __________. 1111 2. The modulus of a counter is the number of states it will cycle through such as a decade counter has a modulus of __________. 10 3. Counters can be designed to count up or downward or devised to be self-stopping. (True or False) True 4. A 4-bit counter would have modulus of 4 (mod-4 counter) because it is constructed using four flip-flops. (True or False) False

Ripple Counter Binary Output Clock Input 1 0 0 0 0 1 1 1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 1 0 1 Pulse 5 Pulse 6 Pulse 8 Pulse 4 Pulse 7 Pulse 1 Pulse 2 Pulse 3 This 4-bit counter has 16 states and will count from binary 0000 through 1111 and then reset back to 0000. The counter has a modulus of 16. On the next clock pulse (8) all FFs will toggle because each will receive a H-to-L pulse- one after another. Watch the count ripple thru the counter. All J-K flip-flops in the TOGGLE MODE PS and CLR inputs are INACTIVE

Ripple Counter With Waveforms Binary Output Clock Input 0 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 0 1 0 0 0 0 Pulse 5 Pulse 4 Pulse 2 Pulse 3 Pulse 1 Clock input 1s output 2s output 4s output FFs triggered on H-to-L pulse. CLK toggles 1s FF. 1s FF toggles 2s FF. 2s FF toggles 4s FF.

QUIZ Q#1- After pulse 1 the output of the mod-16 counter will be binary ___. Q#2- After pulse 2 the output of the mod-16 counter will be binary ___. Q#3- After pulse 8 the output of the mod-16 counter will be binary ___. Q#4- After pulse 15 the output of the mod-16 counter will be binary ___. 1 1 1 1 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 Pulse 15 Pulse 8 Pulse 2 Pulse 1 Input Pulses

Decade Counter All J & K inputs = 1 All PR inputs = 1 0 0 0 1 0 0 0 0 Initial count at 0111 Binary Output Clock Input 0 0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 0 1 0 0 0 0 1 1 Pulse 8 Pulse 2 Pulse 1 Pulse 4 Pulse 3 Pulse 7 Pulse 6 Pulse 5 To clear input of each FF Short negative pulse All J & K inputs = 1 All PR inputs = 1 Count is at 1001. Next clock pulse will increment counter for a short time to 1010 which will activate the NAND gate and reset the counter to 0000. To change mod-16 counter to decade counter: Reset count to 0000 after 1001 (9) count. When count hits 1010 reset to 0000. See added 2-input NAND gate that clears all JK FFs to 0 when count hits 1010.

QUIZ 0 1 1 0 Q#1- This is a ___ (mod-10, mod-16) up counter. Q#2- This circuit can be described as a ___ (decade, 4-bit) up counter. Q#3- The ___ gate generates a very short LOW pulse when the count reaches 1010 and resets to counter to 0000. Q#4- After 0110, the counting sequence would be 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, 0000, etc. (T or F) ANS: mod-10 ANS: decade ANS: NAND ANS: False 0 1 1 0 Input pulses To clear input of each FF

Down Counter Initial count set at binary 111 0 1 1 0 1 0 1 0 0 1 0 1 1 1 0 1 1 1 Pulse 2 Pulse 5 Pulse 4 Pulse 1 Pulse 3 Changes from Ripple Up Counter are wiring from Q’ outputs (instead of Q outputs) to the CLK input of the next FF.

QUIZ 1 1 1 Q#1- This circuit can be described as a 3-bit ripple ___ (down-counter, up-counter). Q#2- This circuit is a self-stopping 3-bit ripple down counter. (T or F) Q#3- The counting sequence of this circuit is 111, 110, 101, 100, 011, 010, 001, 000, 111, 110, 101, 100, etc. (T or F) ANS: down-counter ANS: False ANS: True 1 1 1 Input pulses

Self-Stopping Down Counter Watch count on Pulse 8. The count remained at binary 000. 0 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 1 1 0 1 1 1 Pulse 8 Pulse 1 Pulse 7 Pulse 2 Pulse 6 Pulse 5 Pulse 4 Pulse 3 This is a 3-bit down counter. The 1s FF is in TOGGLE mode when counting (J & K = 1). The 1s FF switches to HOLD mode when the J and K inputs are forced LOW by the OR gate when the count decrements to 000. The count stops at 000.

QUIZ 1 1 1 Q#1- This circuit could be described as a 3-bit ___ (decade, self-stopping) ripple counter. Q#2- The 3-input OR gate generates a ___ (HIGH, LOW) when the count decreases to 000 which stops the count at 000. Q#3- With the count at 111, the OR gate outputs a HIGH which places the left FF in the toggle mode. (T or F) ANS: self-stopping ANS: LOW ANS: True 1 1 1 Input pulses

Counter Used for Frequency Division  4 200 Hz  8 400 Hz 100 Hz 50 Hz  2  16 Clock Input 800 Hz

QUIZ Frequency? Frequency? Frequency? Frequency? Frequency? 3200 Hz Q#1- What is the output frequency from the 1s J-K flip-flop with an input frequency of 3200 Hz? Q#2- What is the output frequency from the 2s J-K flip-flop with an input frequency of 3200 Hz? Q#3- What is the output frequency from the 4s J-K flip-flop with an input frequency of 3200 Hz? Q#4- What is the output frequency from the 8s J-K flip-flop with an input frequency of 3200 Hz? Q#5- The 8s output from the 4-bit counter is referred to as the ___ (divide-by-4, divide-by-16) output. ANS: 1600 ANS: 800 ANS: 400 ANS: 200 ANS: divide-by-16 Frequency? Frequency? Frequency? Frequency? Frequency? Clock Input 3200 Hz

Using the 7493 Counter IC Counters are available in IC form. Either ripple (7493 IC) or synchronous (74192 IC) counters are available. ? Hz 400 Hz 100 Hz ? Hz ? Hz 800 Hz 1600 Hz 7493 Counter IC wired as a 4-bit binary counter

Magnitude Comparator A magnitude comparator is a combinational logic device that compares the value of two binary numbers and responds with one of three outputs (A=B or A>B or A<B). 74HC85 Magnitude Comparator A = B A < B A > B A(0) A(1) A(2) A(3) B(0) B(1) B(2) B(3) Input binary 0111 Input binary 1111 Input binary 0001 HIGH HIGH Input binary 0110 Input binary 0111 Input binary 1100 HIGH

QUIZ Q#1- The 74HC85 Comparator IC compares two 4-bit ___ (binary, decimal) numbers (A and B) and generates one of three outputs including (1) A = B, (2) A > B, or (3) A < B. Q#2- Which output of the comparator IC will be activated with these two 4-bit binary numbers as inputs? Q#3- Which output of the comparator IC will be activated with these two 4-bit binary numbers as inputs? Q#4- Which output of the comparator IC will be activated with these two 4-bit binary numbers as inputs? ANS: binary ANS: A = B ANS: A < B ANS: A > B 74HC85 Magnitude Comparator A = B A < B A > B A(0) A(1) A(2) A(3) B(0) B(1) B(2) B(3) 0101 0101 1101 ? 0101 1011 1010

Simple Troubleshooting Hints Feel top of IC to determine if it is hot Look for broken connections, signs of excessive heat Smell for overheating Check power source Trace path of logic through circuit Know the normal operation of the circuit

QUIZ 1. The first three steps in troubleshooting are the use of your senses to (1) feel the top of the ICs for overheating, (2) to __________ for broken connections, and (3) to smell for signs of overheating. look 2. The forth step in troubleshooting is to use a simple handheld instrument called a __________ to check the power sources at each IC. logic probe 3. Your knowledge of the normal operation of the circuit and equipment is very important in troubleshooting. (True or False) True

REVIEW Overview of Counters Characteristics of Counters Ripple Up Counter Ripple Counter with Waveforms Ripple Down Counter Self-stopping Counter Frequency Division using Counters Using Counter ICs Magnitude Comparators Troubleshooting Hints