Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

Similar documents
ENG2410 Digital Design Introduction to Digital Systems. Fall 2017 S. Areibi School of Engineering University of Guelph

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Week No. 06: Numbering Systems

Mark Redekopp, All rights reserved. Lecture 1 Slides. Intro Number Systems Logic Functions

Binary addition example worked out

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

ECE260: Fundamentals of Computer Engineering

Digital Electronics Final Examination. Part A

of Digital Electronics

Q: Examine the relationship between X and the Next state. How would you describe this circuit? A: An inverter which is synched with a clock signal.

12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System?

Digital Circuits ECS 371

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Exam for Physics 4051, October 31, 2008

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Chapter 9 - Number Systems

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

CSCI 2150 Intro to State Machines

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

CHW 261: Logic Design

5 Binary to Gray and Gray to Binary converters:

ELCT201: DIGITAL LOGIC DESIGN

Digital Fundamentals

A Guide. Logic Library

Digital Electronics. Part A

Introduction to digital systems. Juan P Bello

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

CHAPTER 7. Exercises 17/ / /2 2 0

ECE 341. Lecture # 3

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

Number Representation and Waveform Quantization

Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

Sequential Circuits Sequential circuits combinational circuits state gate delay

Laboratory II. Exploring Digital Logic

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

VELA. Getting started with the VELA Versatile Laboratory Aid. Paul Vernon

CSE 241 Digital Systems Spring 2013

Learning Objectives:

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Digital Design through Arduino

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Why digital? Overview. Number Systems. Binary to Decimal conversion

Random Number Generator Digital Design - Demo

Numbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

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

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Prelaboratory. EE223 Laboratory #1 Digital to Analog Converter

CHAPTER 2 NUMBER SYSTEMS

Experiment 7: Magnitude comparators

ECE380 Digital Logic. Positional representation

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Digital Systems Overview. Unit 1 Numbering Systems. Why Digital Systems? Levels of Design Abstraction. Dissecting Decimal Numbers

Chapter 5 Synchronous Sequential Logic

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

Gates and Flip-Flops

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Design at the Register Transfer Level

CSC9R6 Computer Design. Practical Digital Logic

Cs302 Quiz for MID TERM Exam Solved

Digital Fundamentals

Digital Electronic Meters

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

CSEN102 Introduction to Computer Science

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

E11 Lecture 1: The Big Picture & Digital Systems. Profs. David Money Harris & Sarah Harris Fall 2011

THE LOGIC OF COMPOUND STATEMENTS

PGT104 Digital Electronics. PGT104 Digital Electronics

E. K. A. ADVANCED PHYSICS LABORATORY STATISTICS OF COUNTING WITH A GEIGER COUNTER ARTIFICIAL RADIOACTIVITY

Logic Theory in Designing of Digital Circuit & Microprocessor

Base Number Systems. Honors Precalculus Mr. Velazquez

ELCT201: DIGITAL LOGIC DESIGN

Digital Design through Pi

8-BIT SYNCHRONOUS BINARY UP COUNTER

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Digital Electronics Part 1: Binary Logic

You separate binary numbers into columns in a similar fashion. 2 5 = 32

Exercise booklet - Logic

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

EXPERIMENT 2 Reaction Time Objectives Theory

Menu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems

ENGIN 112 Intro to Electrical and Computer Engineering

A Gray Code Based Time-to-Digital Converter Architecture and its FPGA Implementation

Practice Final Exam Solutions

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

Make purchases and calculate change for purchases of up to ten dollars.

Transcription:

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II Administration: o Prayer Electricity and Electronics, Section 20.1, Digital Fundamentals: o Fundamentals: Two major fields of electronics: Analog: o A system of continuous change without interruption. o Example: Potentiometer to control an LED Digital: o A system that has discrete values. o Example: Digital thermometer or DMM Advantages of digital over analog systems: Less expensive compared to analog systems Information easier to store Digital data can be processed and transmitted more efficiently and reliably Compatible to computer systems Less temperature effect resulting in more stable operation Less sensitive to noise sources. In digital systems, the voltages are limited to the logic HIGH voltage (Vdd = +5V for our discussion) and logic LOW voltage (GND = 0V). Remember that GND (ground) is the universal reference voltage that all other voltages are measured or compared. In digital systems, the logic HIGH voltages (Vdd) and the logic LOW voltages (GND) are just for supplying power to the circuit, they also represent information. Digital signals that are used to move data are a collection of these two voltage states (Vdd and GND). Systems that use two state data to move information are commonly known as binary systems. Analog-to-digital converters (ADC) Microphone to ADC to CD (many other steps involved) Digital-to-analog converters (DAC) CD to DAC to speakers 1

o Decimal Number System: Based upon us having ten fingers Decimal has 10 numerals (0, 1, 2,3,4,5,6,7,8, and 9). Example: 306 Complete LAB 1 Counting in Decimal When the symbols for the first digit are exhausted, the next-higher digit (to the left) is incremented, and counting starts over at 0. In decimal, counting proceeds like so: 000, 001, 002,,007 008, 009, 010, (rightmost digit starts over, and the next digit to the left (in bold) is incremented) 011, 012,...... 098, 099, (rightmost two digits start over, and next digit to the left (in bold) is incremented) 100, 101, 102,... After a digit reaches 9, an increment resets it to 0 but also causes an increment of the next digit to the left. Decimal numbering system is a weighted system. That is, the position of each digit in a decimal number is assigned a weight. Weight here refers to the relative importance granted to something The leftmost digit is the Most Significant Digit (MSD) and the rightmost digit is the Least Significant Digit (LSD). The MSD in a number is the digit that has the greatest effect on that number. The LSD in a number is the digit that has the least effect on that number. The rightmost bit (LSB) in a decimal number has a weight of 10 0 = 1. Each bit to the left increases the weight by a power of ten. Positive Powers of Ten (Whole Numbers) Position of Digit Left to Right 8 7 6 5 4 3 2 1 0 Decimal Weight 10 8 10 7 10 6 10 5 10 4 10 3 10 2 10 1 10 0 Decimal Equivalent 100,000,000 10,000,000 1,000,000 100,000 10,000 1,000 100 10 1 Recall that: o For any integer a, a 0 = 1. o For any integer a, a 1 = a. o 10 4 = 10 x 10 x 10 x 10 = 10,000. For whole numbers, each position is given a positive power of ten, e.g., 10 3 A decimal number is the sum of the weights of each digit. Example: The number 306 = (3 x 10 2 ) + (0 x 10 1 ) + (6 x 10 0 ) = (3 x 100) + (0 x 10) + (6 x 1) = 300 + 0 + 6 = 306 2

o Binary Numbering System: Introduction: Digital electronic circuits can be in only two states, on or off. This two state system is called binary and is suited for computers. 2-Way switches are simpler than 10-way switches. The binary numbering system has only 2 different numerals (0 and 1). To distinguish a binary number from a decimal number, the prefix % will be added to a binary number, e.g., %1100111. So 1,100,111 is a decimal number and %1100111 is a binary number (1,100,111 does not equal %1100111). Counting in Binary: Binary has only 2 different numerals (0 and 1), unlike decimal which has 10 numerals (0,1,2,3,4,5,6,7,8, and 9). Counting in binary is similar to counting in any other number system. Beginning with a single digit, counting proceeds through each symbol, in increasing order. Decimal counting uses the symbols 0 through 9, while binary only uses the symbols 0 and 1. Each 0 or 1 is a binary digit, or bit. In binary, counting is the same except that only the two symbols 0 and 1 are used. Thus after a digit reaches 1 in binary, an increment resets it to 0 but also causes an increment of the next digit to the left: %000, %001, %010, (rightmost digit starts over, and next digit to the left (in bold) is incremented) %011, %100, (rightmost two digits start over, and next digit to the left (in bold) is incremented) %101,... From http://en.wikipedia.org/wiki/binary_numeral_system#counting_in_binary Complete LAB 2 Counting in Binary Complete LAB 3 LED Display of Binary Numbers Binary numbering system is a weighted system, Like a decimal number, the position of each digit in a binary number is assigned a weight. For whole numbers, the leftmost bit is the Most Significant Bit (MSB) and the rightmost digit is the Least Significant Digit (LSB). For whole numbers, each position is given a positive power of two, e.g., 2 3 The rightmost bit (LSB) in a binary number has a weight of 2 0 = 1. Each bit to the left increases the weight by a power of two. Positive Powers of Two (Whole Numbers) Position of Bit Left to Right 7 6 5 4 3 2 1 0 This table only shows eight bit positions. Many more bits may be added to the left if needed. Not all binary codes are weighed. Two codes that will be covered in later lessons are unweighed, the ASCII and 7-segment codes. 3

o Converting Binary to Decimal: Like a decimal number, a binary number is the sum of the weights of each digit. Example: The binary number %101 = (1 x 2 2 ) + (0 x 2 1 ) + (1 x 2 0 ) = (1 x 4) + (0 x 2) + (1 x 1) = 4 + 0 + 1 = 5 See: http://elm.eeng.dcu.ie/~digital1/afdez/java++/decimal/decimal.html Convert the number %101 to a decimal using a Binary Weight Table: Binary Number 1 0 1 Decimal Value 4 0 1 Summing the decimal values, 4+0+1=5 Therefore, %101 = 5 Convert the number %10110111 to a decimal using a Binary Weight Table: Binary Number 1 0 1 1 0 1 1 1 Decimal Value 128 0 32 16 0 4 2 1 Summing the decimal values, 128+0+32+16+0+4+2+1=183 Therefore, %10110111 = 183 Complete LAB 4 Converting Binary to Decimal An easy way to convert back and forth from binary to decimal is to use Microsoft Windows Calculator. You can find this program in the Accessories menu of your Programs. To perform the conversion, you must first place the calculator in scientific mode by clicking on the View menu and selecting Scientific mode. Then click on the "Bin" check box and enter the binary number. Now click on the Dec check box and the calculator will convert the binary number to the equivalent decimal number. Decimal to binary conversions may be performed using the reverse process. 4

Summary of Binary Conditions: On Off 1 0 True False Vdd = +5 Volts (may be less) GND = 0 Volts 5

o Logic Gates: Digital Waveforms: Pulses illustrate the voltage levels (HIGH and LOW) with respect to time. Positive Going Pulse (Rising) Negative Going Pulse (Falling) Periodic and Non-periodic Pulses: Periodic Pulse, Period T1 = Period T2 = Period T3 Non-Periodic Pulse, Periods Are Not Equal Clock Waveforms: o In digital systems, all waveforms are synchronized by a timing waveform called a clock. o A clock waveform is periodic o Example: Clock Waveform with Associated Waveform A o The clock waveform is a basic timing waveform that synchronizes all waveforms in digital circuits. 6

Electronics Technology and Robotics II Digital Fundamentals LAB 1 Counting in Decimal Purpose: The purpose of this lab is to develop the student s awareness that when counting in decimal number system, as digits are exhausted the digit to the left is incremented. Materials: o 1 - Pencil Procedure: o In Table 1, complete counting from 0 to 20. o In Table 2, complete counting from 90 to 110. o In Table 3, complete counting from 990 to 1010. Results: Tens Ones Hundreds Tens Ones Thousands Hundreds Tens Ones 10 1 10 0 10 2 10 1 10 0 10 3 10 2 10 1 10 0 0 0 0 9 0 0 9 9 0 0 1 0 9 1 0 9 9 1 2 0 1 1 0 1 0 1 0 Table 1 Table 2 Table 3 Discussion: o Notice that when all of the number combinations to the right have been exhausted, the digit to the left is incremented. 7

Electronics Technology and Robotics II Digital Fundamentals LAB 2 Counting in Binary Purpose: The purpose of this lab is to develop the student s skill in counting in binary. Materials: o 1 - Pencil Procedure: o In Table 1, fill in the binary equivalent for the decimal given: o In Table 2, fill in the next binary number if you are counting: Results: Decimal Number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Binary Number Table 1 Binary Number %1001 Binary Number %0001101 Binary Number %100100111 Binary Number %00001111 Binary Number %10001001010 Binary Number %11111111111 Table 2 8

Electronics Technology and Robotics II Digital Fundamentals LAB 3 LED Display of Binary Numbers Purpose: The purpose of this lab is to let the student see a visual representation of binary numbers and to show the student several ways of demonstrating a binary state. Materials: o 1 Analog/Digital Trainer Procedure: o Connect four consecutive HI/LOW toggle switches to four consecutive LEDs on the analog/digital trainer. o Remember that 0 is represented by an off or LOW state (0V) and a 1 is represented by an on or HIGH state (+5V). o Give an LED display for each of the following binary numbers: %0000 %0001 %0101 %1111 %1000 9

Electronics Technology and Robotics II Digital Fundamentals LAB 4 Converting Binary to Decimal Purpose: The purpose of this lab is to develop the student s skill in converting binary numbers to decimal numbers. Materials: o 1 Pencil Procedure: o Convert each binary number to a decimal number. Show results below: %111 %1001 %001001 %101010 %010111 %11100011 %11111111 o Use the Binary Weight Tables as guides: Binary Number Decimal Value Binary Number Decimal Value Binary Number Decimal Value Results: %111 = %1001 = %001001 = %101010 = %010111 = %11100011 = %11111111 = 10