EKT 121/4 ELEKTRONIK DIGIT 1

Similar documents
Counters. ENT 263 Digital Electronics

Asynchronous (Ripple) Counters

Digital Fundamentals: A Systems Approach

Counter dan Register

Counters

ASYNCHRONOUS COUNTER CIRCUITS

Experiment 8 Introduction to Latches and Flip-Flops and registers

EKT 121/4 ELEKTRONIK DIGIT 1

RS flip-flop using NOR gate

RS flip-flop using NOR gate

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

CHAPTER 6 COUNTERS & REGISTERS

Registers and Counters

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Chapter 7 Counters and Registers

Vignana Bharathi Institute of Technology UNIT 4 DLD

Digital Logic Design ENEE x. Lecture 19

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Registers and Counters

Lecture 8: Sequential Logic

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

UNIVERSITI TEKNOLOGI MALAYSIA

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Module -5 Sequential Logic Design

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Chapter 4. Logic Design

Scanned by CamScanner

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Asynchronous Counter

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

MC9211 Computer Organization

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

MODULE 3. Combinational & Sequential logic

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

CHAPTER 4: Logic Circuits

IT T35 Digital system desigm y - ii /s - iii

CHAPTER 4: Logic Circuits

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Unit 11. Latches and Flip-Flops

Sequential Logic Counters and Registers

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Logic Design. Flip Flops, Registers and Counters

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Asynchronous counters

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

Chapter 3 Unit Combinational

Digital Fundamentals: A Systems Approach

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

DIGITAL ELECTRONICS MCQs

Decade Counters Mod-5 counter: Decade Counter:

(Refer Slide Time: 2:00)

LATCHES & FLIP-FLOP. Chapter 7

Serial In/Serial Left/Serial Out Operation

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Chapter 9. Design of Counters

Sequential Logic Basics

Digital Fundamentals

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Other Flip-Flops. Lecture 27 1

D Latch (Transparent Latch)

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

CHAPTER 1 LATCHES & FLIP-FLOPS

INC 253 Digital and electronics laboratory I

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

VU Mobile Powered by S NO Group

Flip-Flops and Sequential Circuit Design

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Chapter 11 Latches and Flip-Flops

Chapter 2. Digital Circuits

Lecture 12. Amirali Baniasadi

Sequential Logic and Clocked Circuits

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Universal Asynchronous Receiver- Transmitter (UART)

Chapter 6 Registers and Counters

ECE 263 Digital Systems, Fall 2015

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

1. Convert the decimal number to binary, octal, and hexadecimal.

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

EET2411 DIGITAL ELECTRONICS

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Transcription:

EKT 2/4 ELEKTRONIK DIGIT Kolej Universiti Kejuruteraan Utara Malaysia Sequential Logic Circuits - COUNTERS -

LATCHES (review)

S-R R Latch

S-R R Latch Active-LOW input INPUTS OUTPUTS S R Q Q COMMENTS Q Q No change (Latch in hold condition) Latch SET Latch RESET Not allowed (Invalid) Active-HIGH input

Gated S-R S R Latch ) In order for the SET and RESET inputs to change the latch, the gate input must be active HIGH (ENABLE) 2) When the gate input is LOW, the latch remains in the HOLD condition

Gated D Latch

Synchronous Flip-Flop Flop (review)

J-K K Flip-Flop Flop (Positive Edge-Triggered)

J-K K Flip-Flop Flop (Negative Edge-Triggered)

S-R R Flip-Flop Flop (Positive Edge-Triggered) INPUTS OUTPUTS S R CLK Q Q COMMENTS Q Q NO CHANGE (Latch in hold condition) Latch SET Latch RESET NOT ALLOWED (Invalid)

D Flip-Flop Flop (Positive Edge-Triggered) Output, Q will follow input, D when CLK is positive edge-triggered

Master-Slave J-K J K flip-flop flop (Pulse Triggered)

Master-Slave J-K J K flip-flop flop (Pulse Triggered)

Master-Slave J-K J K Flip Flop (Truth Table) J K CLK Q Q Comments Q Q HOLD RESET SET Q Q TOGGLE (opposite state)

Asynchronous Flip-Flop Flop (review)

J-K K Flip-Flop Flop With Asynchronous Input Why ASYNCHRONOUS input???

INTRODUCTION COUNTER A group of flip-flops connected together to perform counting operations The number of flip-flops used and the way in which they are connected determine the number of states (Modulus) Normally, uses JK/T flip-flops. D flip-flop also can be used but required many basic gates. Two broad categories according to the way they are clocked :. Asynchronous Counter (Pembilang tak segerak) 2. Synchronous Counter (Pembilang Segerak)

ASYNCHRONOUS COUNTER (Pembilang Tak Segerak) Also referred as ripple counter because the input clock pulse is first felt by first flip-flop. flop. This effect cannot get to next flip-flop flop immediately because propagation delay through first flip-flop. flop. One in which the flip-flops flops within the counter do not change states at exactly the same because they do not have a common clock pulse. The clock is applied only for the first flip-flip which is always LSB and the second flip-flip is triggered by the Q output of first flip-flop flop and so on. Because of the input of clock pulses for first flip-flop flop and second flip-flop flop are not at the exact same time then it will cause inherent propagation delay time (tp( tp)

Asynchronous counter can be built by using JK flip-flop flop connected in series. Modulus counter (Mod) is the number of unique states that the counter will sequence through Maximum decimal number to be counted : If Mod 6, then the max decimal number is 5 If Mod N = 2 n then the max decimal counted is N-N To determine the required number of flip-flops flops : n flip-flop flop 2 n output = Mod N Counter can be designed to have a number of states in their sequence that is less maximum number and it is called truncated sequence

A 2-bit asynchronous binary counter Both flip-flops flops are assumed to be initially RESET (Q low) In digital logic, Q is always the LSB unless otherwise specified

The Timing diagram for 2 bit for 2 bit Asynchronous Binary Counter This is a complete timing diagram & propagation delay time are not indicated. Overall timing diagram they are normally omitted for simplicity but it is very important in design & troubleshooting purposes

The Binary State Sequence for 2 bit Asynchronous Binary Counter CLOCK PULSE Initially 2 3 4 (recycles) Q Q

3-bit asynchronous binary counter and its timing diagram for one cycle.

Propagation delays in a 3-bit asynchronous (ripple-clocked) binary counter.

The Binary State Sequence for a 3-bit Binary Counter CLOCK PULSE Initially 2 3 4 5 6 7 8 (recycles) Q 2 Q Q

Four-bit asynchronous binary counter and its timing diagram.

An asynchronously clocked decade counter with asynchronous recycling. From to there is no states where Q and Q3 are HIGH at the same time

The 74LS93A 4-bit asynchronous binary counter logic diagram. Specific IC for Asynchronous Counter To reset input (Pin numbers are in parentheses, and all J and K inputs are internally connected HIGH.)

Two configurations of the 74LS93A asynchronous counter. (The qualifying label, CTR DIV n, indicates a counter with n states.)

74LS93A connected as a modulus-2 counter. Immediate after counter goes to count 2 (), it is RESET to

SYNCHRONOUS COUNTERS (Pembilang Segerak) All the flip-flops flops in the counter are clocked at the same time by a common clock pulse (external clock) 2 advantages compared to Asynchronous Counter : ) Very less propagation delay time 2) Able to perform counting in random mode (eg :,,3,5,8,,,,3,5,8,..)

A 2-bit synchronous binary counter. Assumed initial in binary states meaning that both flip-flops flops are in RESET condition

Timing details for the 2-bit synchronous counter operation (the propagation delays of both flipflops are assumed to be equal)

Timing diagram for 2-bit synchronous counter

A 3-bit synchronous binary counter.

Timing diagram for the counter

A 4-bit synchronous binary counter and timing diagram. Points where the AND gate outputs are HIGH are indicated by the shaded areas Shades area indicate point the AND gate output HIGH

A synchronous BCD decade counter. Counting from till and then reset to at clock pulse

Timing diagram for the BCD decade counter (Q is the LSB)

The 74HC63 4-bit synchronous binary counter. (The qualifying label CTR DIV 6 indicates a counter with sixteen states.)

Timing example for a 74HC63.

The 74LS6 synchronous BCD decade counter. (The qualifying label CTR DIV indicates a counter with ten states.)

Timing example for a 74LS6.

A basic 3-bit up/down synchronous counter. 2 3 4

Up/Down Synchronous Counter Up Synchronous Counter : UP is set to and AND gate is active causing output OR gate is HIGH. This will cause Q output toggling. The AND gate 2 also active causes Q 2 toggling Because of JK connection from Q output, the counting sequence is UP. Down Synchronous Counter : DOWN is set to and AND gate 3 is active causing output OR gate is HIGH. This will cause Q output toggling. The AND gate 4 also active causes Q 2 toggling Because of JK connection from Q output, the counting sequence is UP

Timing Diagram Up/Down Synchronous Counter

The 74HC9 up/down synchronous decade counter.

Timing example for a 74HC9.

General clocked sequential circuit. Information stored on memory & combinational logic is required proper operation of the circuit The memory is called present states at any given time and will advance to a next state on a clock pulse as determined by conditions on the excitation lines

State diagram for a 3-bit Gray code counter.

Next-state table for a 3-bit Gray code counter. Q Q Q 2 Q Q Q 2 Next State Present State

Next-state table for a 3-bit Gray code counter. Output Transitions Flip-flop Inputs Q N Q N+ J K X X X X

Examples of the mapping procedure for the counter sequence represented in previous tables

K-Maps for present-state J and K inputs.

Three-bit Gray code counter.

Example: Design a counter with the irregular binary count sequence as shown in the state diagram. Use J-K flip-flops

Next-state table Present State Next State Q 2 Q Q Q 2 Q Q

Next-state table for a 3-bit Gray code counter. Output Transitions Flip-flop Inputs Q N Q N+ J K X X X X

State diagram for a 3-bit up/down Gray code counter. Refer to the next- state table page 486 from your text book

J and K maps for Table 9-. The UP/DOWN control input, Y, is treated as a fourth variable.

Three-bit up/down Gray code counter.

Cascaded Counter Counter can be connected in cascade to achieve higher- modulus operation The circuit is called CASCADED when an output from last flip-flop flop is connected to input of first flip-flop flop from the following counter. When synchronous counter is connected in cascaded mode, it will produce a propagation delay time. To overcome this problem, most of the synchronous counter is added another input called Enable Input and one output called Terminal Count/ Ripple Clock/ Carry Output Enable Input enabling the process of counting occurs Terminal Count - to synchronous the next counter

Two cascaded counters (all J and K inputs are HIGH).

Timing diagram for the cascaded counter configuration

A modulus- counter using two cascaded decade counters.

Three cascaded decade counters forming a divide-by- frequency divider with intermediate divide- by- and divide-by- outputs.

Example: Determine the overall modulus of the two cascaded counter for (a) and (b) - For (a) the overall modulus for the 3 counter configuration is 8 x 2 x 6 = 536 - For (b) the overall modulus for the 4 counter configuration is x 4 x 7 x 5 = 4

A divide-by- counter using two 74LS6 decade counters.

A divide-by-4, counter using 74HC6 4-bit binary counters. Note that each of the parallel data inputs is shown in binary order (the right-most bit D is the LSB in each counter).

A 3-bit counter with active-high decoding of count 2 and count 7.

A basic decade (BCD) counter and decoder.

Outputs with glitches from the previous decoder. Glitch widths are exaggerated for illustration and are usually only a few nanoseconds wide.

The basic decade counter and decoder with strobing to eliminate glitches.

Strobed decoder outputs for the circuit

Simplified logic diagram for a 2-hour digital clock.

Logic diagram of typical divide-by-6 counter using 74LS6A synchronous decade counters. Note that the outputs are in binary order (the right-most bit is the LSB).

Logic diagram for hours counter and decoders. Note that on the counter inputs and outputs, the right-most bit is the LSB.

Functional block diagram for parking garage control.

Logic diagram for modulus- up/down counter for automobile parking control.

Parallel-to-serial data conversion logic.

Example : parallel-to-serial conversion timing for the previous circuit

Next week Shift Registers - Thank you -