ME 515 Mechatronics. Introduction to Digital Electronics

Similar documents
TYPICAL QUESTIONS & ANSWERS

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

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

MC9211 Computer Organization

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

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

Laboratory Objectives and outcomes for Digital Design Lab

Computer Architecture and Organization

WINTER 15 EXAMINATION Model Answer

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

MODULE 3. Combinational & Sequential logic

EE292: Fundamentals of ECE

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

Contents Circuits... 1

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

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

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

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

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

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

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

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Chapter 4. Logic Design

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

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

St. MARTIN S ENGINEERING COLLEGE

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

PURBANCHAL UNIVERSITY

AIM: To study and verify the truth table of logic gates

Vignana Bharathi Institute of Technology UNIT 4 DLD

DIGITAL ELECTRONICS MCQs

Subject : EE6301 DIGITAL LOGIC CIRCUITS

[2 credit course- 3 hours per week]

Minnesota State College Southeast

WINTER 14 EXAMINATION

Department of Computer Science and Engineering Question Bank- Even Semester:

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

Registers and Counters

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Analogue Versus Digital [5 M]

Introduction to Digital Electronics

Question Bank. Unit 1. Digital Principles, Digital Logic

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

CHAPTER 4: Logic Circuits

Section 6.8 Synthesis of Sequential Logic Page 1 of 8

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

EECS 270 Midterm 2 Exam Closed book portion Fall 2014

Chapter 2. Digital Circuits

VU Mobile Powered by S NO Group

Decade Counters Mod-5 counter: Decade Counter:

Lecture 12. Amirali Baniasadi

Theory Lecture Day Topic Practical Day. Week. number systems and their inter-conversion Decimal, Binary. 3rd. 1st. 1st

THE KENYA POLYTECHNIC

DHANALAKSHMI SRINIVASAN INSTITUTE OF RESEARCH AND TECHNOLOGY CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN. I Year/ II Sem PART-A TWO MARKS UNIT-I

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

SEMESTER ONE EXAMINATIONS 2002

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Physics 323. Experiment # 10 - Digital Circuits

EKT 121/4 ELEKTRONIK DIGIT 1

Chapter 6 Registers and Counters

Counter dan Register

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

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

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

CprE 281: Digital Logic

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Principles of Computer Architecture. Appendix A: Digital Logic

UNIVERSITI TEKNOLOGI MALAYSIA

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

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

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

REPEAT EXAMINATIONS 2002

S.K.P. Engineering College, Tiruvannamalai UNIT I

CHAPTER 4: Logic Circuits

Sequential Logic Basics

AE/AC/AT54 LINEAR ICs & DIGITAL ELECTRONICS DEC 2014

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).


LESSON PLAN. Sub Code: EE2255 Sub Name: DIGITAL LOGIC CIRCUITS Unit: I Branch: EEE Semester: IV

Saturated Non Saturated PMOS NMOS CMOS RTL Schottky TTL ECL DTL I I L TTL

Asynchronous (Ripple) Counters

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Registers and Counters

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Helping Material of CS302

Scanned by CamScanner

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Transcription:

ME 55 Mechatronics /5/26 ME 55 Mechatronics Digital Electronics Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: 8239 (3627) Email: asangar@pdn.ac.lk Introduction to Digital Electronics Digital circuits are evolved from transistor circuits being able to output at one of the two voltage levels depending on the levels at its inputs. The two levels, usually or 5 V are the low and high signals and represented by and. Therefore, binary number system is widely used with digital circuitry. 5 October 26 Asanga Ratnaweera, Department of 2

ME 55 Mechatronics /5/26 Boolean Expressions, Logic Gates & Truth Tables Z=A.B Z=A+B AND OR A B Z A B Z Z A = A B Z B XOR Z Z=A NOT 5 October 26 Asanga Ratnaweera, Department of A Z 3 Boolean Expressions, Logic Gates & Truth Tables Z=A+B NOR A B Z F = AB NAND F F = A F BUF 5 October 26 Asanga Ratnaweera, Department of 4 2

ME 55 Mechatronics /5/26 Commercial Logic ICs +Vcc 4 3 2 9 8 +Vcc 4 3 2 9 8 748 7432 2 3 4 5 6 7 Gnd (V) 2 3 4 5 6 7 Gnd ( V ) 5 October 26 Asanga Ratnaweera, Department of 5 Logic Families Description Code Supply voltage Max. supply current TTL 74XX, 74LSXX 4.75-5.25 V - ma Input Output CMOS 4XX or 74HCXX 5-5 V -.2 ma Input Output state Voltage / V.8.5.5.5 Current / ma -.4 8 -..5 state Voltage / V 2. 2.7 3.5 V 4.95 Current / ma.2 -.4. -.2 Max. Op. frequency Active power Cons. 33 MHz 8 mw 5 October 26 Asanga Ratnaweera, Department of MHz. mw 6 3

ME 55 Mechatronics /5/26 Classification of Digital circuits Digital electronics is classified as: Combinational logic circuits Combination logic output depends only on the inputs levels. Sequential logic circuits. The output of sequential logic depends on both stored levels and the input levels. Therefore, sequential logic is capable of remembering a particular state. 5 October 26 Asanga Ratnaweera, Department of 7 Combinational logic circuits A B C Z Z = A.B.C Z = A.B.C Therefore; Z = A.B.C or A.B.C Z = A.B.C + A.B.C Truth Table 5 October 26 Asanga Ratnaweera, Department of 8 4

ME 55 Mechatronics /5/26 Combinational logic circuits Producing Boolean expressions from truth table: Find the s in the Z column Write the Boolean expression for each ( logic high output) Write the expressions out in words, e.g. Z = ( A AND NOT B AND C) OR (A AND B AND C) Write out the inputs, e.g. A, B C Draw in any NOT gates Draw in the AND gates Finally draw in the OR gates if required 5 October 26 Asanga Ratnaweera, Department of 9 Combinational logic circuits A B C Z Z = A.B.C + A.B.C A B C Z 5 October 26 Asanga Ratnaweera, Department of 5

ME 55 Mechatronics /5/26 Combinational logic circuits Pin-out Diagrams & Drawing Circuits You must be able to select suitable logic ICs (chips) and draw in the connections for a given logic system. An example is given below. Don t forget to draw in the connections for +Vcc ( the positive supply voltage) and v. Remember you don t need to use all the logic gates in a chip if you only need one, you only use one! 5 October 26 Asanga Ratnaweera, Department of Combinational logic circuits +Vcc +Vcc 4 3 2 9 8 +Vcc 4 3 2 9 8 748 7432 2 3 4 5 6 7 Input A Input B Gnd (V) 2 3 4 5 6 7 OUTPUT Gnd (V) v 5 October 26 Asanga Ratnaweera, Department of 2 6

ME 55 Mechatronics /5/26 Combinational logic circuits Boolean simplification De Morgan s theorem x y = x + y x + y = x y Karnaugh Map A grid of 2 N squares where N is the number of input variables in the Boolean expressions. K-maps are usually used for minimization expressions with six or fewer variables 5 October 26 Asanga Ratnaweera, Department of 3 Combinational logic circuits Ex: For three variables Each square represents one minterm Only one variable changes between adjacent squares The maps are constructed to wrap around so that top and bottom corresponding squares are adjacent 5 October 26 Asanga Ratnaweera, Department of 4 7

ME 55 Mechatronics /5/26 Combinational logic circuits For two variables For four variables 2 4 = 6 5 October 26 Asanga Ratnaweera, Department of 5 Combinational logic circuits Filling out K-Map The adjacent squares that have s are combined in groups of 2, 4 or 8. When squares can be chosen as several groups, the largest group has to be selected and each square should be used only once 5 October 26 Asanga Ratnaweera, Department of 6 8

ME 55 Mechatronics /5/26 Combinational logic circuits AC BC AB Identify the variables which do not change within the cluster and write them down as a Boolean expression X = BC +AC + AB 5 October 26 Asanga Ratnaweera, Department of 7 Combinational logic circuits More examples CD AB 5 October 26 Asanga Ratnaweera, Department of 8 9

ME 55 Mechatronics /5/26 Design of Combination Logic circuits Ex: Three push buttons are provided to turn on a machine in an automobile assembly plant. For safety purposes, the machine is to be turned on, only if at least two of the buttons are pushed. Obtain a suitable Logic Circuit. 5 October 26 Asanga Ratnaweera, Department of 9 Applications of Combinational circuits Adders / substructures Half adder Full adder 5 October 26 Asanga Ratnaweera, Department of 2

ME 55 Mechatronics /5/26 Applications of Combinational circuits Encoders A binary encoder generates a binary code corresponding to the input value presented at its inputs Ex: 8 bit encoder If 5 is pressed, binary number should be generated at the output of the encoder 5 October 26 Asanga Ratnaweera, Department of 2 Applications of Combinational circuits Encoders 5 October 26 Asanga Ratnaweera, Department of 22

ME 55 Mechatronics /5/26 Applications of Combinational circuits Decoders A binary decoder converts binary information to discrete outputs. 5 October 26 Asanga Ratnaweera, Department of 23 Applications of Combinational circuits Decoders 5 October 26 Asanga Ratnaweera, Department of 24 2

ME 55 Mechatronics /5/26 Applications of Combinational circuits Multiplexers A multiplexer selects binary information from one of many input lines and directs it to a single output line. 5 October 26 Asanga Ratnaweera, Department of 25 Applications of Combinational circuits Multiplexers 5 October 26 Asanga Ratnaweera, Department of 26 3

ME 55 Mechatronics /5/26 Applications of Combinational circuits De-multiplexers A de-multiplexer receives binary information on a single input line and passes this information to one of its many output lines. 5 October 26 Asanga Ratnaweera, Department of 27 Sequential logic circuits The output of a sequential logic device depends on its present internal state and the present inputs. Sequential logic device has some kind of memory of at least part of its ``history'' (i.e., its previous inputs). The memory elements in a sequential circuit are called flip-flops. 5 October 26 Asanga Ratnaweera, Department of 28 4

ME 55 Mechatronics /5/26 Flop-Flops A flip-flop circuit can be constructed from two NAND gates or two NOR gates. 5 October 26 Asanga Ratnaweera, Department of 29 Flop-Flops Clocked SR Flip-Flop Information from the S and R inputs passes through to the basic flip-flop only when the clock pulse goes to. With both S= and R=, the occurrence of a clock pulse causes both outputs to momentarily go to. 5 October 26 Asanga Ratnaweera, Department of 3 5

ME 55 Mechatronics /5/26 Flop-Flops D Flip-Flop The D input goes directly into the S input and the complement of the D input goes to the R input. The D input is sampled during the occurrence of a clock pulse. If it is, the flip-flop is switched to the set state (unless it was already set). If it is, the flip-flop switches to the clear state. 5 October 26 Asanga Ratnaweera, Department of 3 Flop-Flops JK Flip-Flop A JK flip-flop is a refinement of the SR flipflop in that the indeterminate state of the SR type is defined in the JK type. 5 October 26 Asanga Ratnaweera, Department of 32 6

ME 55 Mechatronics /5/26 Flop-Flops T Flip-Flop The T flip-flop is a single input version of the JK flip-flop. The output of the T flip-flop "toggles" with each clock pulse. 5 October 26 Asanga Ratnaweera, Department of 33 Flop-Flops Triggering of Flip-flops The clock pulse goes through two signal transitions: from to and the return from to. The positive transition is defined as the positive edge and the negative transition as the negative edge. These flipflops are termed edge-triggered flip-flops 5 October 26 Asanga Ratnaweera, Department of 34 7

ME 55 Mechatronics /5/26 Triggering of Flip-flops Edge-triggered flip-flops Ex: Positive edge triggered SR flip-flop Truth table Timing diagram 5 October 26 Asanga Ratnaweera, Department of 35 Triggering of Flip-flops Level-triggered flip-flops Level-triggered flip-flops respond to their inputs while the clock signal is at a high level and retain their output values after the level change Timing diagram Truth table 5 October 26 Asanga Ratnaweera, Department of 36 8

ME 55 Mechatronics /5/26 Clock pulse generation 555 timer 5 October 26 Asanga Ratnaweera, Department of 37 Clock pulse generation 5 October 26 Asanga Ratnaweera, Department of 38 9

ME 55 Mechatronics /5/26 Clock pulse generation 555 timer T =.7 (R + 2R2) C f =.4 (R + 2R2) C T = time period in seconds (s) f = frequency in hertz (Hz) R = resistance in ohms ( ) R2 = resistance in ohms ( ) C = capacitance in farads (F) The time period can be split into two parts: T = Tm + Ts Mark time (output high): Tm =.7 (R + R2) C Space time (output low): Ts =.7 R2 C 5 October 26 Asanga Ratnaweera, Department of 39 Clock pulse generation 555 timer 5 October 26 Asanga Ratnaweera, Department of 4 2

ME 55 Mechatronics /5/26 Flop-Flop ICs Flip-flops are commercially available as IC packages 5 October 26 Asanga Ratnaweera, Department of 4 State Machine A state machine is a device that stores the status of something at a given time and can operate on input to change the status and/or cause an action or output to take place for any given change. Ex: computer. 5 October 26 Asanga Ratnaweera, Department of 42 2

ME 55 Mechatronics /5/26 State Machine Ex: Design of a modulo-4 up-down counter State transition diagram 5 October 26 Asanga Ratnaweera, Department of 43 Design of an up-down counter Ex: Design of a modulo-4 up-down counter State Table Input x Current state / q 5 October 26 Asanga Ratnaweera, Department of Current state / q 2 Next state / Q Next state / Q 2 44 22

ME 55 Mechatronics /5/26 Design of an up-down counter Ex: Design of a modulo-4 up-down counter State Transition Table with SR flip flops x q q 2 Q Q 2 S R S 2 R 2 d d d d 5 October 26 Asanga Ratnaweera, Department of 45 Design of an up-down counter Use K-maps for simplification 5 October 26 Asanga Ratnaweera, Department of 46 23

ME 55 Mechatronics /5/26 Design of an up-down counter Logic circuit 5 October 26 Asanga Ratnaweera, Department of 47 Applications of Digital Electronics Binary counters 5 October 26 Asanga Ratnaweera, Department of 48 24

ME 55 Mechatronics /5/26 Applications of Digital Electronics Decade counters Use to perform binary counting A negative edge-triggered counter and the output is binary coded decimal (BCD) consists of four bits. Ex: LS 749 IC Output sequence 5 October 26 Asanga Ratnaweera, Department of 49 Applications of Digital Electronics Decade counters Timing diagram Remember: this is a negative edge-triggered counter 5 October 26 Asanga Ratnaweera, Department of 5 25

ME 55 Mechatronics /5/26 Applications of Digital Electronics Decade counters BCD counters can be cascaded in order to count in powers of. Output D can be used as the clock input for the second decade counter (749) Cascading two together in order to raise the range for counting from to 99. 5 October 26 Asanga Ratnaweera, Department of 5 Applications of Digital Electronics Decade counters Note:IC 7447 negative logic seven segment LED code (LED Switches ON when output is low) 5 October 26 Asanga Ratnaweera, Department of 52 26

ME 55 Mechatronics /5/26 Applications of Digital Electronics Data registers 5 October 26 Asanga Ratnaweera, Department of 53 Applications of Digital Electronics Serial & Parallel Interfaces 5 October 26 Asanga Ratnaweera, Department of 54 27

ME 55 Mechatronics /5/26 Applications of Digital Electronics Serial & Parallel Interfaces 5 October 26 Asanga Ratnaweera, Department of 55 28