Counter dan Register

Similar documents
Asynchronous (Ripple) Counters

Counters

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

Digital Fundamentals: A Systems Approach

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

ASYNCHRONOUS COUNTER CIRCUITS

Introduction. Serial In - Serial Out Shift Registers (SISO)

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

RS flip-flop using NOR gate

RS flip-flop using NOR gate

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Sequential Logic Counters and Registers

Universal Asynchronous Receiver- Transmitter (UART)

Module -5 Sequential Logic Design

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003

EKT 121/4 ELEKTRONIK DIGIT 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Analysis of Sequential Circuits

Registers and Counters

Digital Logic Design ENEE x. Lecture 19

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

Registers and Counters

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

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

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

Logic Design. Flip Flops, Registers and Counters

UNIT IV. Sequential circuit

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

Other Flip-Flops. Lecture 27 1

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Chapter 7 Counters and Registers

LSN 12 Shift Registers

Serial In/Serial Left/Serial Out Operation

MC9211 Computer Organization

Asynchronous Counter

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

Lecture 8: Sequential Logic

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

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.

Review of digital electronics. Storage units Sequential circuits Counters Shifters

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

Lecture 12. Amirali Baniasadi

Scanned by CamScanner

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

Computer Organization & Architecture Lecture #5

Chapter 4. Logic Design

CHAPTER 4: Logic Circuits

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

UNIVERSITI TEKNOLOGI MALAYSIA

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

CHAPTER 6 COUNTERS & REGISTERS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

CHAPTER 4: Logic Circuits

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

EET2411 DIGITAL ELECTRONICS

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

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

LATCHES & FLIP-FLOP. Chapter 7

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Logic Design Viva Question Bank Compiled By Channveer Patil

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Chapter 6 Registers and Counters

Unit 11. Latches and Flip-Flops

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Introduction to Microprocessor & Digital Logic

Synchronous Sequential Logic

SEMESTER ONE EXAMINATIONS 2002

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

MODULE 3. Combinational & Sequential logic

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

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

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

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

Chapter 2. Digital Circuits

Chapter 8 Registers & Counters

Chapter 9. Design of Counters

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Chapter 5 Flip-Flops and Related Devices

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

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

CprE 281: Digital Logic

Digital Circuits 4: Sequential Circuits

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

CprE 281: Digital Logic

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

D Latch (Transparent Latch)

Registers and Counters

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

Unit-5 Sequential Circuits - 1

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Sequential Logic and Clocked Circuits

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EE292: Fundamentals of ECE

DIGITAL ELECTRONICS MCQs

Flip-Flops and Sequential Circuit Design

Transcription:

Counter dan Register

Introduction Circuits for counting events are frequently used in computers and other digital systems. Since a counter circuit must remember its past states, it has to possess memory. The chapter about flip-flops introduced how flipflops are connected to make a counter. The number of flip-flops used and how they are connected determine the number of states and the sequence of the states that the counter goes through in each complete cycle.

Counters Classification Counters can be classified into two broad categories according to the way they are clocked: Asynchronous (Ripple) Counters; the first flip-flop is clocked by the external clock pulse, and then each successive flip-flop is clocked by the Q or Q' output of the previous flip-flop Synchronous Counters; all memory elements are simultaneously triggered by the same clock

Asynchronous (Ripple) Counters (twobits) A two-bit asynchronous counter is shown on the right. The external clock is connected to the clock input of the first flip-flop (FF0) only.

Asynchronous (Ripple) Counters (two-bits) FF0 changes state at the falling edge of each clock pulse, but FF1 changes only when triggered by the falling edge of the Q output of FF0. Because of the inherent propagation delay through a flipflop, the transition of the input clock pulse and a transition of the Q output of FF0 can never occur at exactly the same time. Therefore, the flip-flops cannot be triggered simultaneously, producing an asynchronous operation. Note that for simplicity, the transitions of Q0, Q1 and CLK in the timing diagram above are shown as simultaneous even though this is an asynchronous counter. Actually, there is some small delay between the CLK, Q0 and Q1 transitions.

Asynchronous (Ripple) Counters (two-bits) The 2-bit ripple counter circuit above has four different states, each one corresponding to a count value. Similarly, a counter with n flip-flops can have 2 to the power n (2 n ) states. The number of states in a counter is known as its mod (modulo) number. Thus a 2-bit counter is a mod-4 counter.

Asynchronous (Ripple) Counters (threebits) It works exactly the same way as a two-bit asynchronous binary counter mentioned above, except it has eight states due to the third flip-flop.

Asynchronous Decade Counters The binary counters previously introduced have two to the power n (2 n ) states. But counters with states less than this number are also possible. They are designed to have the number of states in their sequences, which are called truncated sequences. A common modulus for counters with truncated sequences is ten. A counter with ten states in its sequence is called a decade counter.

Asynchronous Decade Counters Once the counter counts to ten (1010), all the flip-flops are being cleared. Notice that only Q1 and Q3 are used to decode the count of ten. This is called partial decoding, as none of the other states (zero to nine) have both Q1 and Q3 HIGH at the same time.

Asynchronous Decade Counters The sequence of the decade counter is shown in the table below:

Asynchronous Up-Down Counters In certain applications a counter must be able to count both up and down. The circuit below is a 3-bit up-down counter. It counts up or down depending on the status of the control signals UP and DOWN.

Synchronous Counters In synchronous counters, the clock inputs of all the flip-flops are connected together and are triggered by the input pulses. Thus, all the flip-flops change state simultaneously (in parallel).

Synchronous Counters

Synchronous Counters The most important advantage of synchronous counters is that there is no cumulative time delay because all flip-flops are triggered in parallel. Thus, the maximum operating frequency for this counter will be significantly higher than for the corresponding ripple counter.

Synchronous Decade Counters Similar to an asynchronous decade counter, a synchronous decade counter counts from 0 to 9 and then recycles to 0 again. This is done by forcing the 1010 state back to the 0000 state.

Synchronous Decade Counters From the sequence on the left, we notice that: Q0 toggles on each clock pulse. Q1 changes on the next clock pulse each time Q0=1 and Q3=0. Q2 changes on the next clock pulse each time Q0=Q1=1. Q3 changes on the next clock pulse each time Q0=1, Q1=1 and Q2=1 (count 7), or when Q0=1 and Q3=1 (count 9).

Synchronous Up-Down Counters A circuit of a 3-bit synchronous up-down counter and a table of its sequence are shown below.

Applications Digital counters are very useful in many applications. They can be easily found in digital clocks and parallel-to-serial data conversion (multiplexing). A group of bits appearing simultaneously on parallel lines is called parallel data. A group of bits appearing on a single line in a time sequence is called serial data. Parallel-to-serial conversion is normally accomplished by the use of a counter to provide a binary sequence for the data-select inputs of a multiplexer.

Parallel-to-serial conversion

Register Types The basic types of shift registers Serial In - Serial Out Serial In - Parallel Out Parallel In - Serial Out Parallel In - Parallel Out bidirectional shift registers A special form of counter - the shift register counter

Serial In - Serial Out Shift Registers (1) A basic four-bit shift register can be constructed using four D flip-flops

Serial In - Serial Out Shift Registers (2) In order to get the data out of the register, they must be shifted out serially destructive readout, the original data is lost and at the end of the read cycle, all flip-flops are reset to zero

Serial In - Serial Out Shift Registers (3) To avoid the loss of data, an arrangement for a non-destructive reading can be done by adding two AND gates, an OR gate and an inverter to the system. The data is loaded to the register when the control line is HIGH (ie WRITE). The data can be shifted out of the register when the control line is LOW (ie READ).

Serial In - Parallel Out Shift Registers Data bits are entered serially Once the data are stored, each bit appears on its respective output line, and all bits are available simultaneously

Parallel In - Serial Out Shift Registers The circuit uses D flip-flops and NAND gates for entering data (ie writing) to the register

Parallel In - Parallel Out Shift Registers All data bits appear on the parallel outputs immediately following the simultaneous entry of the data bits The following circuit is a four-bit parallel in - parallel out shift register constructed by D flip-flops

Bidirectional Shift Registers (1) The registers discussed so far involved only right shift operations Each right shift operation has the effect of successively dividing the binary number by two If the operation is reversed (left shift), this has the effect of multiplying the number by two A bidirectional, or reversible, shift register is one in which the data can be shift either left or right

Bidirectional Shift Registers (2) A four-bit bidirectional shift register using D flipflops is shown below

Shift Register Counters (Ring Counter) A ring counter is basically a circulating shift register in which the output of the most significant stage is fed back to the input of the least significant stage

Shift Register Counters (Johnson Counter) Inverted output of the last stage fed back to the input of the first stage They are also known as twisted ring counters

Applications To produce time delay The serial in -serial out shift register can be used as a time delay device. The amount of delay can be controlled by: the number of stages in the register the clock frequency To convert serial data to parallel data Use a serial in - parallel out register