EKT 221 : Digital 2 COUNTERS.

Slides:



Advertisements
Similar presentations
Lecture 23: Registers and Counters (2)
Advertisements

Registers and Counters
Registers and Counters
Chapter 7 Henry Hexmoor Registers and RTL
Registers and Counters
Logic and Computer Design Fundamentals Registers and Counters
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
ECE 331 – Digital System Design Counters (Lecture #18)
Sequential Circuit Introduction to Counter
KU College of Engineering Elec 204: Digital Systems Design
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
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
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.
ECE 301 – Digital Electronics Counters (Lecture #16)
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
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.
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.
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
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
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.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
6.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Instructor: Alexander Stoytchev
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
Sequential Circuit: Counter
Chapter 7 – Registers and Register Transfers
Copyright Joanne DeGroat, ECE, OSU
Sequential Circuit - Counter -
Instructor: Alexander Stoytchev
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.
Counters and Registers
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Computer Architecture and Organization: L02: Logic design Review
EET107/3 DIGITAL ELECTRONICS 1
Chapter 8 Counters Changjiang Zhang
CHAPTER 4 COUNTER.
6. Registers and Counters
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Counters.
Digital Electronics and Logic Design
Presentation transcript:

EKT 221 : Digital 2 COUNTERS

Synchronous Counter To eliminate the "ripple" effects, a common clock pulse for each flip-flop and a combinational circuit are used to generate the next state. For an up-counter (counts up by 1), an incrementer is used.

Synchronous Counter

Synchronous Counter Serial Gating

Synchronous Counter Internal Logic XOR complements each bit AND chain causes complement of a bit if all bits toward LSB from it equal 1 Count Enable Forces all outputs of AND chain to 0 to “hold” the state Carry Out Added as part of incrementer Connect to Count Enable of additional 4-bit counters to form larger counters

1 1 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 0110 1 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

1 1 1 1 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1 1

1 1 1 1 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 1 Present State NEXT STATE E = 1 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1 1

Binary Counter with Parallel Load Add path for input data, Di enabled for Load = 1 Add logic to : Disable count logic for Load = 1 Disable feedback from outputs for Load = 1 Enable count logic for Load = 0 & Count = 1 Load Count Action Hold Stored Value 1 Count Up Stored Value X Load D

4-bit Binary Counter with Parallel Load Clock Carry Output, CO Count Load 4-bit Binary Counter with Parallel Load Load Count Action Hold Stored Value 1 Count Up Stored Value X Load D

Converting parallel load counter into synchronous BCD counter Connect an external AND gate to LOAD Counter starts with all-zero output (0000) COUNT input always HIGH (1)

Converting parallel load counter into synchronous BCD counter AND gate = 0 (LOAD = 0), BCD counts from 0000 to 1001 Output = 1001, Q0 and Q3 in HIGH, AND gate = 1 (LOAD = 1) Next clock transition, counter load inputs (D0  D3) = 0000 following 1001 into counter. 1 1 1

Converting parallel load counter into synchronous BCD counter

Synchronous BCD Counter Y = 1, when present state = 1001 FF input equations Obtained from next – state values Simplify using K – map 1010 ~ 1111  don’t care Y = Q1Q8

Modulo – N Counter A counter that goes through a repeated sequence of N states Maximum decimal number to be counted : If Mod N = 2n then the max decimal counted is N-1 If Mod 16, then the max decimal number is 15 To determine the required number of flip- flops: n flip-flop 2n output = Mod N

Modulo – 7 Counter Use a synchronous 4 – bit binary counter with a synchronous LOAD and C LOAD – detect count “6” and load “0” Gives count of (0, 1, 2, 3, 4, 5, 6, 0, 1, …) Using don’t care for states above 0110 Detect number “6” when LOAD = Q2Q1

Modulo – 7 Counter 1 1 1

Modulo – 6 Counter : Special requirement Synchronously preset “9” on RESET and LOAD “9” on terminal count “14” Use a synchronous, 4 – bit counter with a synchronous LOAD Use LOAD signal to : preset count to “9” detect count “14” Give count of (9, 10, 11, 12, 13, 14, 9, 10, …)

Modulo – 6 Counter : Special requirement Synchronously preset “9” on RESET and LOAD “9” on terminal count “14” 1 1 1 1

Arbitrary Count Sequence Design a counter with sequence of six states as in Table 7-10

Arbitrary Count Sequence 2 states are not included : 011 and 111 Simplified equations :

Arbitrary Count Sequence Logic diagram of the arbitrary counter

THE END