Hybrid Electronics Laboratory

Similar documents
SE311: Design of Digital Systems

Chapter 1. Digital Systems and Binary Numbers


EE292: Fundamentals of ECE

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

Korea University of Technology and Education

Injntu.com Injntu.com Injntu.com R16

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

LOGIC CIRCUITS. Kirti P_Didital Design 1


Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

Review of Number Systems

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Digital Systems and Binary Numbers

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Invitation to Computer Science, C++ Version, Third Edition

Ms Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES. 1.1 Introduction

Chapter 4. Combinational Logic

2.6 BOOLEAN FUNCTIONS

TWO-LEVEL COMBINATIONAL LOGIC

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

ENEL 353: Digital Circuits Midterm Examination

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Lecture (03) Binary Codes Registers and Logic Gates

DIGITAL SYSTEM DESIGN

Chapter 4. Combinational Logic. Dr. Abu-Arqoub

Number System. Introduction. Decimal Numbers

Digital Systems and Binary Numbers

Computer Logical Organization Tutorial

Code No: R Set No. 1

Module -7. Karnaugh Maps

R07

D I G I T A L C I R C U I T S E E

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

DKT 122/3 DIGITAL SYSTEM 1

Chapter 2 Combinational Logic Circuits

END-TERM EXAMINATION

This tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.

Code No: 07A3EC03 Set No. 1

Module -10. Encoder. Table of Contents

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-II COMBINATIONAL CIRCUITS

in this web service Cambridge University Press

EEE130 Digital Electronics I Lecture #4_1

Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

Lecture (02) Operations on numbering systems

Numbering systems. Dr Abu Arqoub

Code No: R Set No. 1

Chapter 1 Review of Number Systems

Digital Systems COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Summary. Boolean Addition

the absence of a signal. produce a result at one or more of their outputs. parallel. Y= AB. interconnected. connected. changed.

R10. II B. Tech I Semester, Supplementary Examinations, May

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Lecture 2: Number Systems

CHAPTER 2 (b) : AND CODES

Experiment 4 Boolean Functions Implementation

Chap 1. Digital Computers and Information

Gate Level Minimization Map Method

Number Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010

CS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Code No: R Set No. 1

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

Hours / 100 Marks Seat No.

Digital Fundamentals

Programmable Logic Devices

CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

Lecture 5. Chapter 2: Sections 4-7

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

1. Mark the correct statement(s)

UNIT- V COMBINATIONAL LOGIC DESIGN

Combinational Digital Design. Laboratory Manual. Experiment #3. Boolean Algebra Continued

Basic Definition INTEGER DATA. Unsigned Binary and Binary-Coded Decimal. BCD: Binary-Coded Decimal

ECE 20B, Winter Purpose of Course. Introduction to Electrical Engineering, II. Administration

Combinational Logic Circuits

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Computer Organization

Decoders Wilfrid Laurier University

Digital Techniques. Lecture 1. 1 st Class

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

Chapter Three. Digital Components

Binary Codes. Dr. Mudathir A. Fagiri


CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

Scheme G. Sample Test Paper-I

Combinational Logic Use the Boolean Algebra and the minimization techniques to design useful circuits No feedback, no memory Just n inputs, m outputs

SECTION-A

COMBINATIONAL LOGIC CIRCUITS

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

Electronics Engineering ECE / E & T

Binary. Hexadecimal BINARY CODED DECIMAL

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

DE Solution Set QP Code : 00904

Digital Fundamentals

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Transcription:

Hybrid Electronics Laboratory Design and Simulation of Various Code Converters Aim: To Design and Simulate Binary to Gray, Gray to Binary, BCD to Excess 3, Excess 3 to BCD code converters. Objectives: 1. To understand different codes 2. To design various Code converters using logic gates 3. To simulate various code converters 4. To understand the importance of code converters in real life applications Theory Binary Codes A symbolic representation of data/ information is called code. The base or radix of the binary number is 2. Hence, it has two independent symbols. The symbols used are 0 and 1. A binary digit is called as a bit. A binary number consists of sequence of bits, each of which is either a 0 or 1. Each bit carries a weight based on its position relative to the binary point. The weight of each bit position is one power of 2 greater than the weight of the position to its immediate right. e. g. of binary number is 100011 which is equivalent to decimal number 35. BCD Codes Numeric codes represent numeric information i.e. only numbers as a series of 0 s and 1 s. Numeric codes used to represent decimal digits are called Binary Coded Decimal (BCD) codes. A BCD code is one, in which the digits of a decimal number are encoded-one at a time into group of four binary digits. There are a large number of BCD codes in order to represent decimal digits0, 1, 2 9, it is necessary to use a sequence of at least four binary digits. Such a sequence of binary digits which represents a decimal digit is called code word. Gray Codes It is a non-weighted code; therefore, it is not a suitable for arithmetic operations. It is a cyclic code because successive code words in this code differ in one bit position only i.e. it is a unit distance code. Applications of Gray Code:

In instrumentation and data acquisition systems, where linear or angular displacement is measured. In shaft encoders, input-output devices, A/D converters and the other peripheral equipment. Excess-3 code It is a non-weighted code. It is also a self-complementing BCD code used in decimal arithmetic units. The Excess-3 code for the decimal number is performed in the same manner as BCD except that decimal number 3 is added to the each decimal unit before encoding it to binary. Code Converters The availability of a large variety of codes for the same discrete elements of information results in the use of different codes by different digital systems. It is some time necessary to use the output of one system as the input to the other. The conversion circuit must be inserted between the two systems if each uses different codes for the same information. Thus a code converter is a circuit that makes the two systems compatible even though each uses the different code. Binary to Gray code Truth Table:

Equations: Diagram: Logic diagram for Binary to Gray Convertor is given below:

Equations: Diagram:

BCD to Excess-3: To convert from binary code A to binary code B, the input lines must supply the bit combination of elements as specified by code A and the output lines must generate the corresponding bit combination of code B. A combinational circuit performs this transformation by means of logic gates. As we want to design 4-bit code, we must use four input variables and four output variables. Designate the four input binary variables by the symbols A,B,C,D, and the four output variables by w, x, y, and z. The truth table relating the input and output variables is as shown. A two-level logic diagram may be obtained directly from the Boolean expressions derived by the maps. The expressions obtained may be manipulated for the purpose of using common gates for two or more outputs. This manipulation illustrates flexibility obtained with multiple-output systems when implemented with three or more levels of gates. Truth table: Equations: z = D y = CD+C D =CD(C+D) x = B C+B D+BC D = B (C+D) +BC D x = B (C+D) +B(C+D) w= A+BC+BD=A+B(C+D)

Diagram: Logic Diagram for BCD to Excess-3 Code Converter Excess-3 to BCD : The truth table relating the input and output variables is as shown. Equations:

Diagram: Logic Diagram for Excess-3 to BCD Code Converter Procedure: 1. Select appropriate code converter from tab menu. 2. Run / execute the simulation by pressing the run button and observe the output of code converters on the output LED. 3. Repeat the procedure for different inputs and note down the corresponding outputs.

Screen Shots:

Results Binary to gray, gray to binary, Binary coded decimal (BCD) to Ex-3 code converter are simulated and the truth table are verified. Conclusion Using basic logic gates, universal logic gates and derived logic gates different code converters can be implemented and simulated. Assignment 1. Design a code converter that converts a decimal digit from 8,4, -2,-1 code to BCD 2. Design a 5211 to 4211 code converter 3. Design 8 bit Binary to gray code converter and vice versa. Also explain its typical application.