Registers and Counters

Slides:



Advertisements
Similar presentations
Counters and Registers
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
A presentation on Counters (second)
Lecture 23: Registers and Counters (2)
CSE 205: Digital Logic Design
Registers and Counters
Counters and Registers
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
Sequential PLD timing Registers Counters Shift registers
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Sequential Circuit Introduction to Counter
A.Abhari CPS2131 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:
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.
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.
Electronics Technology
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
Electronics Technology
Rabie A. Ramadan Lecture 3
Synchronous Counters with SSI Gates
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
Counters By Taweesak Reungpeerakul
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
CHAPTER 8 - COUNTER -.
Counter Circuits and VHDL State Machines
Sequential logic circuits
Registers and Counters
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
COUNTERS Why do we need counters?
Counters.
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
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
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.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Synchronous Counter with MSI Gates
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Sequential Circuit: Counter
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
Registers and Counters
Digital Fundamentals with PLD Programming Floyd Chapter 10
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.
Synchronous Counters with MSI Gates
Counters and Registers
Synchronous Counters with MSI Gates
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Chapter 8 Counters Changjiang Zhang
CHAPTER 4 COUNTER.
Switching Theory and Logic Design Chapter 5:
Registers and Register Transfers
Outline Registers Counters 5/11/2019.
Digital Electronics and Logic Design
Presentation transcript:

Registers and Counters Chapter 12 Registers and Counters Ilsub Chung (2007. 11. 26)

Analysis and Design of Combinational Logic Outline Last Time Flip-flops Flip-flop Timing Specifications Simple Counters

General Simple Counters Digital counter consists of a collection of flip-flops Change states in prescribed sequence Flip-flops are commonly used to design counters Most straightforward counter is ripple divider Use T FF or Toggle FF J-K flip-flop can be converted to a T or toggle flip-flop By connecting together J and K inputs

Divide by 2 Counter Simple Counters Clock input can be used as a data input Divide by 2 circuit divides input CK by 2 J, K inputs are connected together and pulled up to Vcc Force excitation inputs “high” Causing FF to toggle on every CK If negative edge pulse is used

Divide by 4 Counters Simple Counters Divide by 4 Counter requires 2 FFs Divide by 4 counter divides the input CK frequency by “4” Both J-K FFs are connected To form toggle FF with Q output of 1st FF Providing the input to the second 2nd FF divides the Q output from 1st FF by 2 Thereby dividing the input frequency “4”

Divide 8 Counters Simple Counters Requires 3 FFs Each FF is connected as a toggle flip-flop All J-K FFs are connected to toggle with Q output of 1st FF Providing the input to 2nd FF, Q output to 3rd input Asynchronous counter Modulo-n counters N states : terminal count Modulo-8 counter has 8 states

Johnson Counter Simple Counters Connecting output of one FF to input of another FF FF Offset by a CK pulse from preceding FF output Produce a series of outputs from each FF Offset by one CK pulse from preceding FF output Synchronous operation CK pulse cause FF action at the same CK time Q’D is fed back to DA

Johnson Counter Simple Counters Initially reset all FF Negative edge of 1st set FF A : QA is “1” The states of other FFs do not change No input change 2nd CK pulse set FF B, 3rd set FF C, etc. 4th CH set FF D : QD is “1” Q’D is “0” Changing QA Johnson Counter can be used to produce time delay

Ring Counter Simple Counters Ring counter produces a continuous pattern from FF outputs Ability to load particular state Synchronous operation Initialized using “PRE and RESET 00101101 Active low input : FF3, FF5, FF6, FF8 Others are reset Data are shifted from one FF to next on Negative edge of CK pulse

Ring Counter Simple Counters Assume 10001100 is preloaded 1st negative CK pulse : Q1 goes to “0” Q2 change its state also : “0”->”1” Generate a repeating n-bit pattern LSB output is connected to MSB input

MSI Integrated Circuits Flip-Flops, Simple Counters, and Resisters MSI Integrated Circuits Various counter is possible Simple ripple binary counters Synchronous up-down decade counters

MSI Asynchronous Counters MSI Integrated Circuit Counters MSI Asynchronous Counters SN74176 is a TTL MSI decade or BCD counter 2 Clock inputs Asynchronous 1st CK input is present only for 1st FF FF can be used as a high speed prescaler Divide by 2 Q output of FF A is not connected to others Allow user to connect it to 2nd CK input Or use the single FF separately from remaining 3 FFs FF B and D are triggered by the CK 2 inputs FF C is triggered by QB

MSI Asynchronous Counters

MSI Integrated Circuit Counters Configurable Counter

MSI Integrated Circuit Counters Binary Counter

MSI Synchronous Counter MSI Integrated Circuit Counters MSI Synchronous Counter Synchronous counters have all CK inputs to FF connected together State changes occur simultaneously Synchronous operation Initialized using “PRE and RESET 00101101 Active low input : FF3, FF5, FF6, FF8 Others are reset Data are shifted from one FF to next on Negative edge of CK pulse

MSI Synchronous Counter MSI Integrated Circuit Counters MSI Synchronous Counter To provide even longer count sequences : Cascade ENP, ENT, and RCO lines RCO is an output signal asserted when terminal count is reached It is used to link a lower order decade counter to next higher order ENT and ENP are input enable signals : Control counting counter Connecting RCO-ENT : cascading Common CK is presented to all of ICs in parallel Ripple carry from one decade to another is provided by RCO-ENT ENT signal is used to control the entire counter

MSI Synchronous Counter MSI Integrated Circuit Counters MSI Synchronous Counter

Sequential Circuit Models MSI Integrated Circuit Counters Sequential Circuit Models

Flip-Flops, Simple Counters, and Registers Chapter 5 Flip-Flops, Simple Counters, and Registers Ilsub Chung (2002. 11. 19)

Outline Last Time Simple Counters Register

General Simple Counters Digital counter consists of a collection of flip-flops Change states in prescribed sequence Flip-flops are commonly used to design counters Most straightforward counter is ripple divider Use T FF or Toggle FF J-K flip-flop can be converted to a T or toggle flip-flop By connecting together J and K inputs

Divide by 2 Counter Simple Counters Clock input can be used as a data input Divide by 2 circuit divides input CK by 2 J, K inputs are connected together and pulled up to Vcc Force excitation inputs “high” Causing FF to toggle on every CK If negative edge pulse is used

Divide by 4 Counters Simple Counters Divide by 4 Counter requires 2 FFs Divide by 4 counter divides the input CK frequency by “4” Both J-K FFs are connected To form toggle FF with Q output of 1st FF Providing the input to the second 2nd FF divides the Q output from 1st FF by 2 Thereby dividing the input frequency “4”

Divide 8 Counters Simple Counters Requires 3 FFs Each FF is connected as a toggle flip-flop All J-K FFs are connected to toggle with Q output of 1st FF Providing the input to 2nd FF, Q output to 3rd input Asynchronous counter Modulo-n counters N states : terminal count Modulo-8 counter has 8 states

Johnson Counter Simple Counters Connecting output of one FF to input of another FF Offset by a CK pulse from preceding FF output Produce a series of outputs from each FF Offset by one CK pulse from preceding FF output Synchronous operation CK pulse cause FF action at the same CK time Q’D is fed back to DA

Johnson Counter Simple Counters Initially reset all FF Negative edge of 1st set FF A : QA is “1” The states of other FFs do not change No input change 2nd CK pulse set FF B, 3rd set FF C, etc. 4th CH set FF D : QD is “1” Q’D is “0” Changing QA Johnson Counter can be used to produce time delay

Ring Counter Simple Counters Ring counter produces a continuous pattern from FF outputs Ability to load particular state Synchronous operation Initialized using “PRE and RESET 00101101 Active low input : FF3, FF5, FF6, FF8 Others are reset Data are shifted from one FF to next on Negative edge of CK pulse

Ring Counter Simple Counters Assume 10001100 is preloaded 1st negative CK pulse : Q1 goes to “0” Q2 change its state also : “0”->”1” Generate a repeating n-bit pattern LSB output is connected to MSB input

MSI Integrated Circuits Flip-Flops, Simple Counters, and Resisters MSI Integrated Circuits Various counter is possible Simple ripple binary counters Synchronous up-down decade counters

MSI Asynchronous Counters MSI Integrated Circuit Counters MSI Asynchronous Counters SN741176 is a TTL MSI decade or BCD counter 2 Clock inputs Asynchronous 1st CK input is present only for 1st FF FF can be used as a high speed prescaler Divide by 2 Q output of FF A is not connected to others Allow user to connect it to 2nd CK input Or use the single FF separately from remaining 3 FFs FF B and D are triggered by the CK 2 inputs FF C is triggered by QB

MSI Asynchronous Counters