Principles & Applications

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

Synchronous Counters with SSI Gates
Lecture 23: Registers and Counters (2)
Counters Chapter 17 Subject: Digital System Year: 2009.
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
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
Counters and Registers
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
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.
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.
Electronics Technology
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 7 Counters and Registers
Principles & Applications
Electronics Technology
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
 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.
Sequential logic circuits
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Counters.
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
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
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Flip-Flops and Related Devices
Electronics Technology
Asynchronous Counters with SSI Gates
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Sequential Logic.
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Sequential Logic Counters and Registers
Principles & Applications
INTRODUCTION Overview of Shift Registers
Principles & Applications
Flip-Flop.
Principles & Applications
D Flip-Flop.
Introduction to Sequential Logic Design
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital Fundamentals with PLD Programming Floyd Chapter 10
LECTURE 15 – DIGITAL ELECTRONICS
Asynchronous Counters with SSI Gates
Counters and Registers
Counters and Registers
Unit 7 Sequential Circuits (Flip Flop)
Principles & Applications
CHAPTER 4 COUNTER.
FLIP-FLOPS.
Switching Theory and Logic Design Chapter 5:
14 Digital Systems.
Week 11 Flip flop & Latches.
Presentation transcript:

Principles & Applications Digital Electronics Principles & Applications Fifth Edition Roger L. Tokheim Chapter 8 Counters ©1999 Glencoe/McGraw-Hill

CHAPTER 8 PREVIEW 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 Equipment 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 memory

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

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 3 Pulse 2 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. PS and CLR input are INACTIVE All J-K flip-flops in the TOGGLE MODE

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.

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.

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.

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.

COUNTER USED FOR FREQUENCY DIVISION  4 200 Hz  8 400 Hz 100 Hz 50 Hz  2  16 Clock Input 800 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

TROUBLESHOOTING EQUIPMENT Logic Probe Logic Pulser Logic Clip (logic monitor) Digital IC Tester DMM/Logic Probe DMM or VOM Dual-trace Oscilloscope Logic Analyzer

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