Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.

Slides:



Advertisements
Similar presentations
Counters and Registers
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
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.
Asynchronous and Synchronous Counters
Counters and Registers Wen-Hung Liao, Ph.D.. Objectives Understand several types of schemes used to decode different types of counters. Anticipate and.
Sequential Circuit Introduction to Counter
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
Registers and Counters
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.
Chapter 9 Counters.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
A presentation on Counters
Electronics Technology
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuit - Counter -
Lecture 27 Counters Give qualifications of instructors: DAP
Registers and Counters
Electronics Technology
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I 14.
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
Introduction to Chapter 7
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counters By Taweesak Reungpeerakul
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
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.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
Counter Circuits and VHDL State Machines
Sequential logic circuits
Counters and Registers
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.
Counters.
Basic terminology associated with counters Technician Series
Modulo-N Counters According to how they handle input transitions –Synchronous –Asynchronous.
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
Chap 5. Registers and Counters
THEME 6: Frequency dividers. Digital counters with reduced counting modulus. Programmable digital counters. If the input pulses are more than K, the counter.
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
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.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Counters and Registers
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Counters and Registers
EET107/3 DIGITAL ELECTRONICS 1
14 Digital Systems.
Counters.
Presentation transcript:

Counters and Registers Synchronous Counters

7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters work and how they differ from the asychronous counters in the specficiations and the propagation time delay.  Synchronous counters can be converted to down and up/down counters  The following circuit works as a synchronous Down counter by using the inverted FF outputs to drive the J-K inputs  In the previous lecture, we’ve learned how synchronous counters work and how they differ from the asychronous counters in the specficiations and the propagation time delay.  Synchronous counters can be converted to down and up/down counters  The following circuit works as a synchronous Down counter by using the inverted FF outputs to drive the J-K inputs

Synchronous Down Counter

7-8 Presettable Counters  Many synchronous counters that are available as ICs are designed to be presettable.  Presettable means that the counters can be preset to any desired starting count.  The presetting operation is also referred to as parallel loading the counter.  Many synchronous counters that are available as ICs are designed to be presettable.  Presettable means that the counters can be preset to any desired starting count.  The presetting operation is also referred to as parallel loading the counter.

7-8 Presettable Counters

 to perform asynchronous presetting. The counter is loaded with any desired count at any time by doing the following: 1.Apply the desired count to the parallel data inputs, P 2, P 1, and P 0. 2.Apply a LOW pulse to the PARALLEL LOAD input, PL.  to perform asynchronous presetting. The counter is loaded with any desired count at any time by doing the following: 1.Apply the desired count to the parallel data inputs, P 2, P 1, and P 0. 2.Apply a LOW pulse to the PARALLEL LOAD input, PL.

7-13 Cascading BCD Counters  BCD counters are often used whenever pulses are to be counted and the results displayed in decimal.  A single BCD counter counts from 0 to 9 and then recycles to 0.  To count to a larger number than 9, we should cascade a multiple of BCD counters  BCD counters are often used whenever pulses are to be counted and the results displayed in decimal.  A single BCD counter counts from 0 to 9 and then recycles to 0.  To count to a larger number than 9, we should cascade a multiple of BCD counters

 For example, to construct a BCD counter operation that counts from 000 to 999 we should proceed with the following design: 7-13 Cascading BCD Counters

1.Initially all counters are reset to 0. 2.Each input pulse advances the first counter once. 3.The 10th input pulse causes the counter to recycle, which advances the second counter 1. 4.This continues until the second counter (10’s digit) recycles, which advances the third counter 1. 5.The cycle repeat until 999 is reached and all three counters start again at zero. 1.Initially all counters are reset to 0. 2.Each input pulse advances the first counter once. 3.The 10th input pulse causes the counter to recycle, which advances the second counter 1. 4.This continues until the second counter (10’s digit) recycles, which advances the third counter 1. 5.The cycle repeat until 999 is reached and all three counters start again at zero.

7-14 Synchronous Counter Design 1.Determine desired number of bits and desired counting sequence 2.Draw the state transition diagram showing all possible states 3.Use the diagram to create a table listing all PRESENT states and their NEXT states 4.Add a column for each JK input. Indicate the level required at each J and K in order to produce transition to the NEXT state. 5.Design the logic circuits to generate levels required at each JK input. 6.Implement the final expressions. 1.Determine desired number of bits and desired counting sequence 2.Draw the state transition diagram showing all possible states 3.Use the diagram to create a table listing all PRESENT states and their NEXT states 4.Add a column for each JK input. Indicate the level required at each J and K in order to produce transition to the NEXT state. 5.Design the logic circuits to generate levels required at each JK input. 6.Implement the final expressions.

Example  STEP 1: determine the desired number of bits (flip-flops) and the desired counting sequence.  We will use 3 JK Flip-flops to count from 000 to 100 “I.e from 0 - 4”  STEP 2: Draw the state transition diagram showing all possible states, including the undesired states.  The undesired states should go back to 000  STEP 1: determine the desired number of bits (flip-flops) and the desired counting sequence.  We will use 3 JK Flip-flops to count from 000 to 100 “I.e from 0 - 4”  STEP 2: Draw the state transition diagram showing all possible states, including the undesired states.  The undesired states should go back to 000

Example  STEP 3: Use the state transition diagram to set up a table that lists all PRESENT states and their NEXT state.

Example  STEP 4: Add a column to the previous table for each j and k input (Excitation table)

Example  Remember for a JK flip-flop the truth table Is : Output TransitionsFlip-Flop Inputs QNQN Q N+1 JK 000x 011x 10 X 1 11 X 0

Example  STEP 5: Design the logic circuits to generate the levels required at each j and k input.  Using Karnaugh Map “K-Map”  STEP 5: Design the logic circuits to generate the levels required at each j and k input.  Using Karnaugh Map “K-Map”

Example

 STEP 6: Implement the final expressions  J A = C’K A = 1  J B = C’ AK B = C+A  J C = B AK C = 1  STEP 6: Implement the final expressions  J A = C’K A = 1  J B = C’ AK B = C+A  J C = B AK C = 1

Example 2  Implement The Same Counter using D Flip- flops.

Example 2

Example 3

7-15 Shift Register Counters  Ring Counter (circulating shift register)  Last FF shifts its value to first FF  Uses D-type FFs (JK FFs can also be used)  Must start with only one FF in the 1 state and all others in the 0 state.  Ring Counter: MOD-4, 4 distinct states  Does not count in normally binary sequence, but it is still a counter  Each FF output waveform frequency equals one- fourth of the clock frequency  Ring Counter (circulating shift register)  Last FF shifts its value to first FF  Uses D-type FFs (JK FFs can also be used)  Must start with only one FF in the 1 state and all others in the 0 state.  Ring Counter: MOD-4, 4 distinct states  Does not count in normally binary sequence, but it is still a counter  Each FF output waveform frequency equals one- fourth of the clock frequency

Johnson’s Counter  Johnson counter (Twisted ring counter)  Same as ring counter but the inverted output of the last FF is connected to input of the first FF  MOD is twice the number of FF (Example is MOD 6)  Does not count normal binary sequence  Six distinct states: 000, 100, 110, 111, 011, 001 before it repeats the sequence  Waveform of each FF is a square wave (50% duty cycle) at 1/6 the frequency of the clock  Johnson counter (Twisted ring counter)  Same as ring counter but the inverted output of the last FF is connected to input of the first FF  MOD is twice the number of FF (Example is MOD 6)  Does not count normal binary sequence  Six distinct states: 000, 100, 110, 111, 011, 001 before it repeats the sequence  Waveform of each FF is a square wave (50% duty cycle) at 1/6 the frequency of the clock

Counter Applications Car Parking Control  The counter controls the gate activation for lowering and rising the gate depending on the number of parked cars  Each car enters the parking will ascend the counter by one “up”  Each car exists the parking will descend the counter by one “down”  The counter controls the gate activation for lowering and rising the gate depending on the number of parked cars  Each car enters the parking will ascend the counter by one “up”  Each car exists the parking will descend the counter by one “down”

Car Parking Control Entrance Sensor Exit Sensor UP Down Interface Gate Activation Display Lower/Rise Available / Full