ANALOGUE AND DIGITAL ELECTRONICS STUDENT S WORKBOOK U3: DIGITAL ELECTRONICS

Similar documents
Gates and Circuits 1

DIGITAL LOGIC CIRCUITS

Logic diagram: a graphical representation of a circuit

Gates and and Circuits

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

Digital Logic Circuits

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

Binary Addition. Boolean Algebra & Logic Gates. Recap from Monday. CSC 103 September 12, Binary numbers ( 1.1.1) How Computers Work

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Chapter 3 Describing Logic Circuits Dr. Xu

Chapter 1: Digital logic

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Course Outline Cover Page

Lab Report: Digital Logic

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero.

Lesson 4. Unit 2. Home Gardening. Diagramming Numbers

UNIT III. Designing Combinatorial Circuits. Adders

UNIT-IV Combinational Logic

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

What is Digital Logic? Why's it important? What is digital? What is digital logic? Where do we see it? Inputs and Outputs binary

I. Computational Logic and the Five Basic Logic Gates 1

UC Berkeley CS61C : Machine Structures

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Positive and Negative Logic

UC Berkeley CS61C : Machine Structures

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Logic Circuit Design

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

EE100Su08 Lecture #16 (August 1 st 2008)

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

UNIT 2. Digital Signals: The basics of digital encoding and the use of binary systems.

Lecture 2: Digital Logic Basis

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

PREVIEW COPY. Digital Logic Systems. Table of Contents. Digital Logic Fundamentals...3. Logic Building Blocks Medium- and Large-Scale ICs...

Chapter 4 Combinational Logic Circuits

Lab# 13: Introduction to the Digital Logic

Chapter 4 Combinational Logic Circuits

Chapter # 1: Introduction

QUIZ. What do these bits represent?

Lesson 1 6. Algebra: Variables and Expression. Students will be able to evaluate algebraic expressions.

UC Berkeley CS61C : Machine Structures

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

Electronics. Digital Electronics

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Digital Fundamentals. Lab 4 EX-OR Circuits & Combinational Circuit Design

COMPUTER ARCHITECTURE AND ORGANIZATION

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

Department of Electronics and Communication Engineering

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

Logic Gates with Boolean Functions

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

Logic Design I (17.341) Fall Lecture Outline

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Lecture 15 Analysis of Combinational Circuits

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

= (2 3 ) = c LAMC Beginners Circle September 29, Oleg Gleizer. Warm-up

Digital. Design. R. Ananda Natarajan B C D

Fig.16.1: Digital systems and analog systems

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Subject: Analog and Digital Electronics Code:15CS32

Digital Electronics. A. I can list five basic safety rules for electronics. B. I can properly display large and small numbers in proper notation,

LogicBlocks & Digital Logic Introduction

CS302 - Digital Logic Design Glossary By

INTRODUCTION TO DIGITAL CONCEPT

*X025/11/01* X025/11/01 ELECTRONIC AND ELECTRICAL FUNDAMENTALS INTERMEDIATE 2 NATIONAL QUALIFICATIONS 2015 WEDNESDAY, 3 JUNE 9.00 AM 11.

Wheels Diameter / Conversion of Units

Unit level 4 Credit value 15. Introduction. Learning Outcomes

University of Technology

Lesson 21: If-Then Moves with Integer Number Cards

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Mathematics Success Grade 8

LogicBlocks & Digital Logic Introduction a

Encoders. Lecture 23 5

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Data output signals May or may not be same a input signals

Digital Electronics Course Objectives

Mathematics in your head the secrets of mental math

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Satish Chandra, Assistant Professor, P P N College, Kanpur 1

Topic Notes: Digital Logic

Introduction. Reading: Chapter 1. Courtesy of Dr. Dansereau, Dr. Brown, Dr. Vranesic, Dr. Harris, and Dr. Choi.

4:Combinational logic circuits. 3 July

Digital Logic Design ELCT 201

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

CELIA SCHAHCZENSKI. FE Exam Review Computers Oct. 18, 2018

Learning Log Title: CHAPTER 6: DIVIDING AND BUILDING EXPRESSIONS. Date: Lesson: Chapter 6: Dividing and Building Expressions

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

BOOLEAN ALGEBRA AND LOGIC FAMILIES

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Digital Fundamentals

Combinational Logic Circuits. Combinational Logic

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

Subtractor Logic Schematic

Exercise 2: OR/NOR Logic Functions

ECE380 Digital Logic

Transcription:

NLOGUE ND DIGITL ELECTRONICS STUDENT S WORKBOOK U3: DIGITL ELECTRONICS Joaquim Crisol Llicència D, Generalitat de Catalunya NILE Norwich, pril of 211

Table of contents Table of contents 3 DIGITL ELECTRONICS.... 2 3.1 The binary numeral system.... 2 3.2 Boolean logic. Logic gates.... 4 3.3 Logic circuits.... 8 3.4 Simulation work.... 13 3.4.1 Logisim basics.... 13 3.4.2 utomatic design of logic circuits.... 14 3.4.3 dding and visualising.... 15 Student s workbook Page 1

3 DIGITL ELECTRONICS. 3.1 The binary numeral system. The DECIML system, or base-1, represents numeric values using 1 symbols:, 1, 2, 3, 4, 5, 6, 7, 8 and 9. The BINRY numeral system, or base-2 number system, represents numeric values using two symbols, and 1. Binary numbers are closely related to digital electronics. With digital electronics a 1 means that a voltage signal is high and means it is low. The binary system is used internally by all modern computers. 1 What electronic component can work as a binary switch?... When we put together many of them in a single piece of silicon it is called... In computing and telecommunications a binary digit is called a _. It is the basic unit of information in a binary system. 2a The binary system is positional, like the decimal one. To count in binary we put in ones from the right. Look at the table on the right and try to figure out the rule. Fill in the missing digits. 2b It is easy to CONVERT any binary number to decimal because each position has a weight. Look at the example and convert binary numbers b), c) and d) to decimal. Check the answers with your partner. Binary Decimal Binary Decimal 1 1 11 1 1_ 1_ 1 11 1 2 3 4 5 6 7 8 9 1 1 1 111 11 1 1 111 1111 1 1 8 9 1 11 12 13 14 15 16 17 Binary Binary weight 32 16 8 4 2 1 Decimal a) 11 1 1 8+4=12 b) 111 c) 111 d) 11 What is the decimal equivalent of one one zero? Student s workbook Page 2

2c In order to convert from decimal to binary you have to do the inverse process. Convert the following numbers and check your answers with your partner orally. Decimal a) 41 b) 2 c) 33 d) 63 Binary weight 32 16 8 4 2 1 Binary dding binary numbers is a very simple task. s with decimal numbers, you start by adding the bits (digits) from right to left: Rules + = 1+ = 1 +1 = 1 1+1 = 1 1+1+1 = 11 Examples 11 1 11 111 111 1111 + 11 + 1111 + 1111 --------- --------- --------- 11111 1111 11111 It is also possible to subtract, multiply and divide. This is how electronic devices operate. 3a dd the following numbers. Your teacher will ask some of you to read the additions to all the class. Follow the example and practise reading the procedure to prepare. 1 1 (1) + 11 (4+1=5) ----- 11 (4+2=6) One plus one equals zero and I carry one. One plus zero plus zero equals one. Zero plus one equals one. The result is one one zero in binary, which is six in decimal. a) 11 + 11 ------ b) 111 + 111 ------ Student s workbook Page 3

3.2 Boolean logic. Logic gates. In the last lesson you used BINRY DIGITS to represent NUMERIC VLUES. BINRY DIGITS can also be used to represent LOGIC STTES like true (1) or false (). BOOLEN LOGIC (or Boolean algebra) is a complete system for logical mathematical operations. It was developed by the English Mathematician and philosopher George Boole in the 184s. Boolean logic has many applications in electronics, computer hardware and software, and is the basis of all modern digital electronics. George Boole (1815-1864) These are examples of Boolean operations: 1 or = 1 1 and = not =1 1 and 1= 1 or = not 1 = 4a Read the text about Boolean operation representation and fill in the table with the expressions below. Boolean algebra is based on these logical operations: conjunction x y (ND), disjunction x y (OR), and complement or negation x (NOT). In electronics, the ND is represented as a multiplication, the OR is represented as an addition, and the NOT is represented with an overbar General Maths Electronics a ND b a OR b NOT a a b a a b a a + b a b Digital circuits are built from simple on/off switches called GTES. These gates have two states: logic high (ON or 1) and logic low (OFF or ). TRUTH TBLES are used to analyse all the possible alternative states of a digital circuit. You can see the gates symbols on next page. There are two sets of symbols for gates: The traditional ones from merica and the new square symbols, a standard by the IEC (International Electrotechnical Commission). You should use the IEC symbols. nyway the traditional ones are still widely used for simple gates. Student s workbook Page 4

4b Read the gate descriptions and fill in the truth table for each one. NOT gate: NOT gate or inverter has just one input. The output is ON if the input is OFF, and OFF if the input is ON. Y= NOT symbol 1 NOT IEC symbol Y 1 Y ND gate: The output is ON (1) if both input signals are ON (1). Y= B B ND symbol ND IEC symbol & Y B Y 1 1 1 1 OR gate: The output is ON if either or both inputs are ON. Y=+B B 1 ND symbol ND IEC symbol Y B Y 1 1 1 1 NND gate: The output is ON unless both inputs are ON. Y= B B NND symbol NND IEC symbol & Y B Y 1 1 1 1 NOR gate: The output is ON if both inputs are OFF. Y= +B 1 NOR symbol B NOR IEC symbol Y B Y 1 1 1 1 Student s workbook Page 5

XOR gate: The output is ON if one input is ON and the other is OFF, but will not work if both are ON. B Y =1 Y Y= + B B 1 XOR symbol XOR IEC symbol 1 1 1 4c Let s test if you remember the IEC symbols and the truth tables. In turns, choose one gate and ask your partner for the function description and the IEC symbol gate. Here you have an example: Can you explain how a NND gate works? What is the symbol of a NND Gate? In a NND gate the output is when both inputs are 1. It is a square with a & symbol inside and with a small circle at the output. 4d It is possible to represent logic functions with Venn diagrams. Look at the examples. Then identify the 8 diagrams as a b, a b, a+b, a+b, a+b, a + b, a b, a+b. a b a a Student s workbook Page 6

5 Logic functions can be implemented electrically with switches as in these examples. a) b) B B a) ND: The output will only be on when both switches and B are on. b) OR: The output will go on if either switch or B is on. Real electronic gates are implemented with transistors. High voltage means 1 and low voltage means. These are simplified circuits of a NND and a NOR gate. Think how the circuits work and fill in the blanks with these words: parallel high low NND series NOR B +B In circuit a both transistors are connected in. The output will go low only when both inputs are. So it is a gate. In circuit b both transistors are connected in. If either input goes up the output goes. So it is a gate. a) Vcc b) Vcc Y Y B B - Student s workbook Page 7

3.3 Logic circuits. Logic circuits can have many gates, many inputs and more than one output. In this lesson we are going to work with circuits that have a maximum of 3 inputs and 1 output. 6a The diagram below shows a complex logic gate combining two simple gates. There are three inputs and eight possible outcomes. To complete a truth table go row by row. For each combination of input find first D and then Q. The two first combinations of the truth table are done as an example. Complete the 6 remaining values. Expression: Q= B+C 1 Q= +=+= 1 Q= +1=+1=1 B C Q 1 1 1 1 1 1 1 1 1 1 1 1 1 6b For the next circuit find the expression, draw the gate diagram with the traditional symbols and complete the truth table. IEC diagram Traditional diagram Student s workbook Page 8

Expression: B C Q 7 You have to describe orally a logic circuit from the /B worksheet to your partner. Your partner will describe one for you. Draw the diagram using IEC symbols. Then you must find the logic expression and fill in the logic table. Finally check results with your partner. This is an example of descriptions for the circuit in exercise 6b: Input is fed to an inverter. The output from the inverter is called D. Inputs B and C are fed into a NOR gate, whose output is called E. D and E are fed through an ND gate to output Q. Circuit: B C Q Expression: Q= 8 For the next circuit find the expression, draw the gate diagram with the traditional symbols and complete the truth table. Student s workbook Page 9

Expression: B C Q Traditional diagram: Look at the example in order to do exercise 9. DESIGN LOGIC SYSTEM to control heating like this: In automatic mode heating must be on when it is cold and there is somebody inside. In forced mode heating is always on. Inputs: : temperature ( cold, 1 warm) B: presence ( nobody, 1 somebody) C: mode ( automatic, 1 forced) Design process: Output: Q= heating ( off, 1 on) Heating= (NOT temperature ND presence) OR mode Q=( B ) + C Translate statements into a logic expression Design the logic diagram B C Q 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Fill in the truth table to test all combinations. No Ok? END Yes Student s workbook Page 1

9a Design a logic system to control an automatic light like this: The light must come on when it is dark and somebody passes in front of it. Inputs: : presence ( nobody, 1 somebody) B: light_sensor ( dark, 1 light) Output: Q= light ( off, 1 on) Expression: Diagram: B Q 1 1 1 1 9b Design a logic system to control an alarm bell like this: the alarm bell must ring when the alarm switch is on and either the window or the door are opened. Inputs: : window_open( closed, 1 open) B: door_open ( closed, 1 open) C: alarm_switch ( off, 1 on) Expression: Output: Q= alarm_bell ( off, 1 on) B C Q Diagram: Student s workbook Page 11

SELF SSESSMENT: Before you move on make sure that you can answer yes to all these questions. QUESTION No More or less Yes Can I convert between decimal and binary? Can I add binary numbers? Can I operate using Boole algebra? Can I translate logical expressions to gates? Can I obtain truth tables from a logic system? Can I use simulators to analyse logic systems? Can I design logic circuits in order to solve simple technological problems? Student s workbook Page 12

3.4 Simulation work. You are going to simulate logic systems with the logisim free software. You can download it from this web page: http://ozark.hendrix.edu/~burch/logisim/index.html. 3.4.1 Logisim basics. Practice 1: Follow your teacher s instructions to build a XOR gate with ND, OR and NOT gates. Label the final design with your name. Practice 2: system. Build and simulate the design you did in activity 9b to control an alarm Student s workbook Page 13

3.4.2 utomatic design of logic circuits. Practice 3: Enter this expression: Q= B C+B into logisim and use the Combinational analysis tool to build the circuit automatically. Practice 4: Design a detector of prime numbers. The input will consist of four binary digits and the output has to be 1 when the input combination is a prime number (2, 3, 5, 7, 11 or 13). Use the Combinational analysis tool to set the truth table and get the circuit automatically. Student s workbook Page 14

3.4.3 dding and visualising. Practice 5: Using libraries with integrated circuits. Electronic gates are implemented in integrated circuits. The 74XX series of logic gates is built with bipolar transistors. Follow your teacher s instructions to download the 74XX library from http://ozark.hendrix.edu/~burch/logisim/. It is called 74 series Logisim library from Ben Oztalay. Load it on logisim. You have to find out what pins and what circuits to use to build this logic function: Q = ( NOR B) ND (NOT C) These are the microchips you may need to use: 74: quad 2-input NND. 744: hex inverter. 742: quad 2-input NOR gate. 748: quad 2-input ND gate. 7432: quad 2-input OR gate. Practice 6: Using dding binary numbers with logisim. Build the circuit in the picture. You will need: Normal inputs and outputs set to 4 bits. n adder from the rithmetic folder. Three hex digit display from the Input/output folder. The hexadecimal code has 16 different digits. What are they? Student s workbook Page 15