Electronics Technology

Slides:



Advertisements
Similar presentations
Counters and Registers
Advertisements

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
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Counter Circuits and VHDL State Machines
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.
Flip-Flops and Related Devices
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.
Sequential Circuit Introduction to Counter
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:
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
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.
Digital Fundamentals with PLD Programming Floyd Chapter 10
A presentation on Counters
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Lecture 27 Counters Give qualifications of instructors: DAP
Principles & Applications
Electronics Technology
Rabie A. Ramadan Lecture 3
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.
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
 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.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Chapter 1 Counters. Counters Counters are sequential circuits which "count” through a specific state sequence. They can count up, count down, or count.
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 and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Counters.
Basic terminology associated with counters Technician Series
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
THEME 6: Frequency dividers. Digital counters with reduced counting modulus. Programmable digital counters. If the input pulses are more than K, the counter.
Counters In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process.
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.
Principles & Applications
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Electronics Technology
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Principles & Applications
Sequential Circuit - Counter -
Digital Fundamentals with PLD Programming Floyd Chapter 10
Counters and Registers
Principles & Applications
14 Digital Systems.
Digital Electronics and Logic Design
Presentation transcript:

Electronics Technology Digital Electronics Electronics Technology RINKESH KURKURE In an as ROCK FRANCIS Counters

Counter Competencies 29. Given the schematic diagram of a counter circuit, the student will determine if this counter is synchronous or asynchronous. 30. Given a schematic of an asynchronous counter, the student will identify the LSB flip-flop. 31. Given a schematic of a synchronous counter, the student will identify the LSB flip-flop. 32. Given the schematic of a counter and the value currently on the counter, the student will determine the new counter value if an instructor specified number of pulses are applied to the counter

Counter Competencies 33. Given a modulus number from 16 to 32, the student will draw a schematic of flip-flops and NAND gates that will count this modulus starting with zero. 34. Given the schematic diagram of a synchronous counter circuit, the student will determine the modulus of the counter. 35. Given the schematic diagram of a synchronous counter circuit, the student will determine the counting sequence and list the sequence in decimal. 36. Given the schematic diagram of a counter and the clock input frequency, the student will determine the output frequency of the counter.

COUNTER UNIT Asynchronous up and down counters Asynchronous modulus counters Seven segment displays/ BCD coding Synchronous Counters Pre-settable Counters Ring Counters

COUNTERS CHARACTERISTICS 1. MODULUS- number of counts in one cycle 2. Up or down count 3. Asynchronous or synchronous operation 4. Free running or self stopping

ASYNCHRONOUS COUNTERS Only LSB flip-flop controlled by the clock input Also known as a RIPPLE COUNTER Two or more “T” flip-flops interconnected, output of each flip-flop connected to clock input of the next. Modulus- number of stable states in each flip-flop cycle Modulus = N= number of flip-flops Highest number in count =

BUILD A 4 BIT RIPPLE COUNTER 1. 4 JK flip-flops in toggle mode- all JK inputs tied high 2. Q outputs connected to clock input of following flip-flop 3. FF A = LSB (one with clock input); toggles when input clock toggles from high to low; FF D = MSB 4. FF B, C, D do not toggle till receive NGT from proceeding FF 5. Direction of count can be reversed by complementing each FF’s output or complementing each FF’s input

TEST 1. What is the term for the number of counts in one counter cycle? Modulus of the counter 2. How is the modulus determined? 3. Since only the first flip-flop of a ripple counter is controlled by a clock, the counter is ____________________? Asynchronous 4. What is the mod number of a counter containing 5 flip-flops? 32 5. What is the highest count of a four bit counter? 31

PROGRAMMING A RIPPLE COUNTER Counters may be made to recycle after any desired count by using a gate to reset the counter. CONVERT MOD 8 TO MOD6 UNSTABLE STATE

HOW TO BUILD A COUNTER TO GO FROM ZERO TO MOD NUMBER X 1. Determine smallest number of FF’s such that 2. Connect a NAND gate output to asynchronous clears of all FF’s 3. Determine which FF’s will be high at count = X Connect the Q outputs of these FF’s to NAND gate inputs

BUILD A COUNTER THAT COUNTS FROM ZERO TO NINE (X=MOD 10) 1. Determine smallest number of FF’s such that thus 4 FF’s are required 2. Connect a NAND gate to asynchronous clears of all FF’s 3. Determine which FF’s will be high at count = X Connect the Q outputs of these FF’s to NAND gate inputs 1

SELF-STOPPING COUNTER Counters may be made to stop counting after any desired count by using a gate to inhibit the clock. Stop at desired count: D B C A

PROGRAMMING COUNTERS USING JK INPUTS Counters can be controlled using the JK inputs Low on JK of 1st FF will cause it to stop toggling on any count High or low at JK inputs forces counter to skip states

ASYNCHRONOUS DOWN COUNTER Direction of count can be reversed by (a) complementing each FF’s output or (b) complementing each FF’s input

COUNTER PROBLEM 1. What is the value of the last usable state before the NAND gate resets the circuitry? 2. What value does the NAND gate reset the value to? 3. What is the modulus of this counter? 4. If count starts at decimal 11 and receives seven clock pulses, what is the new value on the counter? 5. What is the unstable state of the counter?

COUNTER PROBLEM 1. What is the value of the unstable state, in decimal? 2. At what value does the NAND gate set the counter to? 3. If QA=1, QB=1, and QC=0, and 5 clock pulses are applied: QC= QB= QA= 4. What is the modulus of this counter?

IC ASYNCHRONOUS COUNTERS

7493 AS A MOD-16 COUNTER

Build a MOD 10 counter with a 7493 TEST Build a MOD 10 counter with a 7493

BCD COUNTER Binary counter that counts from 0000 to 1001 before it recycles (MOD-10). Widespread applications where pulses or events are to be counted and the results displayed on a decimal numerical read-out. Also used for dividing a pulse frequency exactly by 10. Cascading BCD counters to count and display from 000 to 999.

Two 7493s can be combined to produce a MOD-60 Counter

DIGITAL CLOCK

COUNTERS ASYNCHRONOUS SYNCHRONOUS

SYNCHRONOUS COUNTERS Two or more FF’s connected as “T” FF’s. All FF’s in the counter are clocked at the same time. Advantage over the ripple counter is speed and accuracy but more complex.

SYNCHRONOUS COUNTERS MOD <2 A NAND control gate is used to clear the counter before the full count.

SYNCHRONOUS COUNTERS UP/DOWN

PRESETTABLE COUNTERS Can be preset to any desired count. To operate: 1. Apply desired count to parallel data inputs P2, P1, P0. 2. Apply a low pulse to the parallel load input PL.

COUNTER TYPES Asynchronous Counter (a.k.a. Ripple or Serial Counter): each FF is triggered one at a time with output of one FF serving as clock input of next FF in the chain. Synchronous Counter (a.k.a. Parallel Counter): all the FF’s in the counter are clocked at the same time. Up Counter: counter counts from zero to a maximum count. Down Counter: counter counts from a maximum count down to zero. BCD Counter: counter counts from 0000 to 1001 before it recycles. Pre-settable Counter: counter that can be preset to any starting count either synchronously or asynchronously Ring Counter: shift register in which the output of the last FF is connected back to the input of the first FF. Johnson Counter: shift register in which the inverted output of the last FF is connected to the input of the first FF.

MOD-16 PRESETTABLE UP/DOWN COUNTER

RING COUNTER Shift register counter with feedback from Q of last FF back to first FF input

JOHNSON COUNTER Shift register in which the inverted output of the last FF is fed back to the input of the first FF.

A PROGRAMMABLE COUNTER Lab 18. A PROGRAMMABLE COUNTER Design a four-bit counter controlled by two control lines X and Y that behaves according to the truth table.

A PROGRAMMABLE COUNTER Lab 18. A PROGRAMMABLE 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