Computer Logic. Analogue & Digital Data. Analogue. An analogue/continuous devise is one which data is represented by some quantity which is continuously.

Slides:



Advertisements
Similar presentations
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Advertisements

1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Lecture 9: D/A and A/D Converters
Analogue and Digital Data Analogue Data Water flowing down a stream is uncountable.  Data obtained by measurement is called continuous/analogue data.
Data Storage – Part 1 CS 1 Introduction to Computers and Computer Technology Rick Graziani Fall 2013.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
CHAPTER 2: Number Systems
Introduction to Management Information Systems Chapter 3 Computer Basics HTM 304 Spring 06.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
DIGITAL ELECTRONICS CIRCUIT P.K.NAYAK P.K.NAYAK ASST. PROFESSOR SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY.
Bits and Bytes.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Logic and data representation Revision. AND gate A B A B All inputs have to be true ( i.e 1) for the output of the gate to be high, in all other cases.
Intro to Digital Electronics. Classifications of Electronic Circuits Switching Circuits – by turning electricity on and off. – Figure 1 – Known as the.
Engineering Lecture1: Logic Circuits & Concepts about basic Electrical Engineering Devices by Christin Sander.
CS101 Introduction to Computing Lecture 8 Binary Numbers & Logic Operations.
Test #1 rescheduled to next Tuesday, 09/20/05 The contents will cover chapter 1, 2, and part of Chapter 4. The contents will cover chapter 1, 2, and part.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Logic and Digital System Design - CS 303
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
4. Electrons and electronics 4.5 Digital electronics.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
CMP 100 Introduction to Computing Lecture Binary Numbers & Logic Operations.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Chapter 1: Binary Systems
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Minute Paper 4/4/04 Z=50+j86.7=100
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
 A transistor is the basic building block of electronic components.  The average computer may have millions of them within its circuits.  Essentially,
PHYSICS – Digital electronics. LEARNING OBJECTIVES Core Supplement Explain and use the terms analogue and digital in terms of continuous variation and.
Programmable Logic Controller
Invitation to Computer Science, C++ Version, Fourth Edition
Unit 1 Logical operators.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Creating logic gates with Minecraft
Logic Gates.
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Introduction Molecules: made up of atoms of individual elements.
COMP 1321 Digital Infrastructure
CSCI-100 Introduction to Computing
Chapter 2.3 Binary Logic.
Digital electronics and logic gates
University of Gujrat Department of Computer Science
Invitation to Computer Science, Java Version, Third Edition
BINARY STORAGE AND REGISTERS
SOLIDS AND SEMICONDUCTOR DEVICES - IV
For OCR GCSE Computing Unit 1 - Theory
Binary / Hex Binary and Hex The number systems of Computer Science.
JC Technology Logic Gates.
COMP 1321 Digital Infrastructure
Logic Gates.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Chapter Four Data Representation in Computers By Bezawit E.
CMSC250 Fall 2018 Circuits 1 1.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
UNIT – 3 & 4. Data Representation and Internal
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Computer Logic

Analogue & Digital Data. Analogue. An analogue/continuous devise is one which data is represented by some quantity which is continuously changing. In analogue data any value can be represented because the quantity can take any value in the range used. Examples of analogue data:  Watches, where hands move round a dial. The time is represented by the positions of the hands on the dial.  A dimmer switch.  An electric motor.

Discrete/Digital data. Lets take a water tap. Since small drops are falling one at a time we can count the number of drops falling per minute.Data that is found by a set of pulses and can be counted is called discrete/digital data. This can take one of fixed number of states. Examples of digital data:  The display of the calculator is the digital with the numbers in decimal. Each can have any of ten separate states:0,1,2,3,4,5,6,7,8,9. This makes it clear that the calculator can display 10 varieties when it comes to characters.  A switch can be on or off.

Multiple Stable states Multiple stable states are electronic devices that can be more than two states. Electronic devices which have multiple stable states are difficult to produce cheaply and reliably. Bi-Stable States. Bi-stable states are electronic devices which can be in one of two states. We think of these bi-stable states as being On and Off states (the device can be an electronic switch). These two states can represent anything which can take one of two possible values, such as voltage or the binary digits/bits O and 1.

Convert Analogue to Digital. An analogue-to-digital converter is an inter face to convert an analogue signal to a digital one. This conversion is sometimes called demodulation. Processor A-D Converter Controlled Device Digital Signals Analogue Signal

Convert Digital to Analogue. A digital-to-analogue(D-A) converter is an interface to convert a digital signal to an analogue one. It converts a set of binary signals to one single varying voltage. Processor D-A converter Controlled Device Digital Control Signals Analogue Signal

Binary Numbers. A digital signal can be 1 out of 2 possible states. This is signal is called BIT (binary digit). A bit can be represent One of Two possible values. Using just one bit, we can represent any data that can only have 2 possible states. E.g. 1 and 0, True and False, Male or Female, On or Off. Male or Female 1 or 0 * * FalseTrue True or False Table

Definition: Binary/Bit~a 1 or a 0 used to represent data. The term is also uses for the smallest unit of storage,which just stores a 1 or 0. The units of storage is the Bit.

Using 2 bits. Lets say we would like to represent the seasons: there are 4 seasons so how could we represent with one bit? We have to use 2 bits. The bit on the left is the most significant while the bit on the right is the least significant. Two bits gives us 4 possible patterns that is 4 seasons. The seasons are in digital form. Inside the computer they will be as binary form. Winter11 Autumn01 Spring10 Summer00 MeaningLeast Significant Bit Most Significant Bit

To represent the days of the week 2 bits aren’t enough. So we have to use more than 2 bits we use 3 bits. With 3 bits we can represent 8 values. Example: Consider 3 bulbs: use 1 to represent On and 0 will represent Off Bulb3Bulb 2Bulb is a decimal and the most significant is the 6 and the least significant is the 9

Total number of variations that can be represented in a number of bits can be found using the formula 2 n The range of numbers that can be presented is represented by n - 1

Truth tables. A truth table is a notation used in Boolean(0&1) algebra for defining the output of a logic gate for all possible combinations of inputs. By looking at a truth table, one is able to know the output of any possible combination of inputs. Logic Gates. A logic gate is a hardware item that has one or more input and one output. Logic gates work with binary numbers, therefore the output must always be a 1 or a 0. The output of a logic gate depends on the input of the gate. And Gate Or gate Not Gate

Situation: A parent tells her son that if he gets a 3 marks more than 80 in his annuals exams, and comes home early from his grad party she will get him digital cable for the summer. Which gate? Write the truth table and represent it in a gate. Uses 1 & O to represent. Gate:AND Digital Cable? Come home early 3 marks:80+

When the input is: (0,0),(0,1),(1,0) the output is always 0. In this case if the switch represents the numbers, the bulb is off in this situation. When the input is: (1,1) the output is 1. In this case the bulb is on because the switches represent 1 and 1

Situation: A parent tells her son that if he reads Harry Potter Book1 or Harry Potter book 2, she’ll buy him the 3 rd one. Which gate? Write the truth table and represent it in a gate. Uses 1 & O to represent. Gate :OR Harry Potter 3? Harry Potter 2 Harry Potter 1

If the input is: (0,0). The output will be 0. In this situation the bulb will be off. The switches represent the numbers. If the input is: (0,1),(1,0)or(1,1). The output is 1. In this case the bulb will be turned on.

Situation: A teacher corrects exam papers. If a student passes he needn’t do the revision homework but if he doesn’t pass he must do it. Which gate? Write the truth table and represent it in a gate. Uses 1 & O to represent. Gate: NOT FalseTrue This is a not gate.