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

Similar documents
Asynchronous (Ripple) Counters

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

RS flip-flop using NOR gate

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

RS flip-flop using NOR gate

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

Unit 11. Latches and Flip-Flops

Chapter 4. Logic Design

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

Counter dan Register

Logic Design. Flip Flops, Registers and Counters

Experiment 8 Introduction to Latches and Flip-Flops and registers

Chapter 7 Counters and Registers

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

Registers and Counters

Counters

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

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

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

LATCHES & FLIP-FLOP. Chapter 7

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Other Flip-Flops. Lecture 27 1

EKT 121/4 ELEKTRONIK DIGIT 1

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

Logic Design Viva Question Bank Compiled By Channveer Patil

Module -5 Sequential Logic Design

EET2411 DIGITAL ELECTRONICS

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

Registers and Counters

Lecture 8: Sequential Logic

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

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

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

CHAPTER 1 LATCHES & FLIP-FLOPS

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

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

Chapter. Synchronous Sequential Circuits

Digital Fundamentals: A Systems Approach

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

CHAPTER 4: Logic Circuits

Scanned by CamScanner

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

DIGITAL ELECTRONICS MCQs

CHAPTER 6 COUNTERS & REGISTERS

Chapter 5 Flip-Flops and Related Devices

ELCT201: DIGITAL LOGIC DESIGN

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

MC9211 Computer Organization

Rangkaian Sekuensial. Flip-flop

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Serial In/Serial Left/Serial Out Operation

ASYNCHRONOUS COUNTER CIRCUITS

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

UNIVERSITI TEKNOLOGI MALAYSIA

MODULE 3. Combinational & Sequential logic

The NOR latch is similar to the NAND latch

Review of digital electronics. Storage units Sequential circuits Counters Shifters

CHAPTER 4: Logic Circuits

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

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

Asynchronous Counter

Chapter 2. Digital Circuits

Digital Circuits ECS 371

EKT 121/4 ELEKTRONIK DIGIT 1

Decade Counters Mod-5 counter: Decade Counter:

Introduction to Sequential Circuits

UNIT V 8051 Microcontroller based Systems Design

FLIP-FLOPS AND RELATED DEVICES

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

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

UNIT IV. Sequential circuit

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

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

Flip-Flops and Sequential Circuit Design

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

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

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

Synchronous Sequential Logic

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).

ECE 263 Digital Systems, Fall 2015

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

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Digital Fundamentals: A Systems Approach

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Synchronous sequential circuits

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

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

Digital Logic Design ENEE x. Lecture 19

ME 515 Mechatronics. Introduction to Digital Electronics

Lecture 12. Amirali Baniasadi

CPS311 Lecture: Sequential Circuits

Sequential Logic and Clocked Circuits

Universal Asynchronous Receiver- Transmitter (UART)

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.

Transcription:

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters. Design simple sequential circuits using state transition diagrams. Study the basic architecture of microprocessors and microcontrollers. Introduce the basics of mechatronics. 1

Sequential logic differs from combinational logic in that the output of the logic device is dependent not only on the present inputs to the device, but also on past inputs; i.e., the output Figure of a sequential logic device 14.1 depends on its present internal state and the present inputs. This implies that a sequential logic device has some kind of memory of at least part of its history (i.e., its previous inputs). See to the right RS flip-flop symbol and truth table 2

Timing diagram for the RS flip-flop Figure 14.2 3

The RS Flip-Flop P = 1 means S = 1 Clock Figure 14.4 C = 1 means Reset 4

D Flip Flop D CLK Q 0 0 1 1 Figure 14.5 Positive-edge triggered 5

The D Flip-Flop Figure 14.6 6

JK Flip Flop The JK flip flop is the most versatile flip-flop, and the most commonly used flip flop when discrete devices are used to implement arbitrary state machines. Like the RS flip-flop, it has two data inputs, J and K, and a clock input. It has no undefined states or race condition. It is always edge triggered; normally on the falling edge. See to the right: Figure 14.7 The JK flip-flop: 7

If one input (J or K) is at logic 0, and the other is at logic 1, then the output is set or reset (by J and K respectively), just like the RS flip-flop, but on the (falling) clock edge. If both inputs are 0, then it remains in the same state as it was before the clock pulse occurred; again like the RS flip flop. If both inputs are high, however the flipflop changes state whenever the (falling) edge of a clock pulse occurs; i.e., the clock pulse toggles the flipflop. Figure 14.8 See to the right Truth table for the JK flip-flop 8

Counters A common requirement in digital circuits is counting, both forward and backward. Digital clocks and watches are everywhere, timers are found in a range of appliances from microwave ovens to VCRs, and counters for other reasons are found in everything from automobiles to test equipment. The following figure shows a ripple counter. Figure 14.12 9

Three-Bit Synchronous Counter The synchronous counter is similar to a ripple counter with two exceptions: The clock pulses are applied to each FF, and additional gates are added to ensure that the flip flops toggle in the proper sequence. Figure 14.16 10

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. The following is a 4-bit ring counter constructed from D flip-flops. The output of each stage is shifted into the next stage on the positive edge of a clock pulse. If the CLEAR signal is high, all the flip-flops except the first one are reset to 0. The first one is preset to 1 instead. Figure 14.17 11

Flip-Flop Applications Asynchronous (Ripple) Counters Q 3 Q 2 Q 1 Q 0 0111 1100 12

Every trailing edge of the clock pulse changes the state of FF; hence, the output frequency of FF is half the clock frequency. Because this output is used as a clock for the next FF, the frequency is again divided by 2, and so on down the counter. Each FF output drives the CLK input of the next FF. FFs do not change states in exact synchronism with the applied clock pulses. There is delay between the responses of successive FFS. It is also often referred to as a ripple counter due to the way the FFs respond one after another in a kind of rippling effect. 13

MOD Number The counter in previous Figure has 16 distinct states, therefore, it is a MOD-16 ripple counter. The MOD number can be increased simply by adding more FFs to the counter. That is MOD number = 2 N A counter is needed that will count the number of items passing on a conveyor belt. A photocell and light source combination is used to generate a single pulse each time an item crosses its path. The counter must be able to count as many as one thousand items. How many FFs are required? 14

Frequency Division In any counter, the signal at the output of the last FF will have a frequency equal to the input clock frequency divided by the MOD number of the counter. Such circuits are known as divide-by-n counters. Divide by 2 Divide by 4 Divide by 8 Divide by 16 15

Digital Clock: The first step involved in building a digital clock is to take the 60-Hz signal and feed it into a Schmitt-trigger, pulse-shaping circuit to produce a square wave as illustrated in the following Figure. The 60 Hz square wave is then put into a MOD-60 counter, which is used to divide the 60-Hz frequency by 60 to produce a 1-Hz waveform. This 1-Hz waveform is fed to a series of counters, which then count seconds, minutes, hours, and so on. By the way, how many FFs are required for the MOD-60 counter? 16

Changing the MOD Number Determine the MOD number of the counter in the following Figure. Also determine the frequency at the D output 17

Decade Counters/BCD Counters Decade counter: Any counter has 10 distinct states, no matter what the sequence. BCD counter: A decade counter counts in sequence from 0000(zero) through 1001(decimal 9). MOD-60 Counter 18

IC Asynchronous Counters 19

A 4-Bit Parallel Register A register is a group of storage elements read or written as a unit. The simplest way to construct a register is by grouping together as many D flip-flops as the need to obtain the desired bit width. Figure 14.22 20

A 3-Bit Binary Counter and State Diagram Figure 14.26 21

0 Structure of a Digital Data Acquisition and Control System Figure 14.30 22

Microcontrollers, as the name suggests, are small controllers. They are like single chip computers that are often embedded into other systems to function as processing/controlling unit. For example, the remote control has microcontrollers inside that do decoding and other controlling functions. They are also used in automobiles, washing machines, microwave ovens, toys... etc, where automation is needed. Figure 14.33 See to the right (a) High-level block diagram of microcontroller; (b) internal organization of microcontroller 23

Applications in Mechatronics Mechatronics is an interdisciplinary area of engineering that combines mechanical and electrical engineering and computer science. A typical mechatronic system picks up signals from the environment, processes them to generate output signals, transforming them for example into forces, motions and actions. You find applications of mechatronics in: Aircraft: Flight control and navigation system Automobile: Electrical fuel injection, antilock brake system, digitally controlled combustion engines, and automated guided vehicles. Automated manufacturing and robots Home appliances 24

The simplest definition of mechatronics is that it is a branch of engineering that deals with combined mechanical, electronic and software systems. The elements of mechatronics systems include sensors, actuators, microcontrollers (or microprocessors) and real-time control software. The actuators are mainly high precision electric motors and solenoids. Any of a large number of sensor types are used according to the intended application, including light, acceleration, weight, color, temperature and image. One of the features which distinguishes mechatronic systems or products from earlier electromechanical systems or products is the replacement of some mechanical functions with electronic and software ones. This results in much greater flexibility of both design and operation. Another is increased speed and precision of performance. A third is the ability to conduct automated data collection and reporting. In addition, advanced mechatronics systems now have the ability to implement distributed control in complex systems. 25

Example of Mechatronic Systems Photocopy Machine Analog Circuits: Controlling lamps, heaters, and power circuits. Digital Circuits: Digital displays, indicator lights, buttons, and switches. Microprocessor: Coordinating all the functions of the machine. Optical Sensors and Microswitches: Detecting the presence or absence of papers and proper positioning of papers, doors and latches. Encoder: Tracking motor rotation. Servo and Stepper Motors: Loading and transporting the paper, turning the drum, and indexing the sorter. 26

Hard Disk: A Mechatronic System A hard disk uses round, flat disks called platters, coated on both sides with a special media material designed to store information in the form of magnetic patterns. The platters are mounted by cutting a hole in the center and stacking them onto a spindle. The platters rotate at high speed, driven by a special spindle motor connected to the spindle. Special electromagnetic read/write devices called heads are mounted onto sliders and used to either record information onto the disk or read information from it. The sliders are mounted onto arms, all of which are mechanically connected into a single assembly and positioned over the surface of the disk by a device called an actuator. A logic board controls the activity of the other components and communicates with the rest of the computer. 27

http://www.storagereview.com/guide2000/ref/hdd/op/over.html 28