Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, 2012. All rights reserved.

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

EET 1131 Unit 7 Arithmetic Operations and Circuits
Number Bases Informatics INFO I101 February 9, 2004 John C. Paolillo, Instructor.
Number Representation and Logic Design CS 3220 Fall 2014 Hadi Esmaeilzadeh Georgia Institute of Technology Some slides adopted from.
EE1A2 Microprocessor Systems & Digital Logic Part I Digital Electronic System Design Dr. T. Collins.
Basic Electricity and Electronics Mr. McClean Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Chapter 4 Gates and Circuits.
University College Cork IRELAND Number Systems, Data Types, Codes Logic Gates: An Introduction.
Lecture 3. Boolean Algebra, Logic Gates
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
3. DIGITAL ELECTRONICS..
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Programmable Logic Controllers
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Chapter 4 Gates and Circuits.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Intro to Digital Electronics. Classifications of Electronic Circuits Switching Circuits – by turning electricity on and off. – Figure 1 – Known as the.
How Computers Work Dr. John P. Abraham Professor UTPA.
Basic Arithmetic (adding and subtracting)
Digital Electronics. Digital circuits work on the basis of a transistor being used as a switch. Consider a light switch, a transistor can be considered.
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Basic Arithmetic (adding and subtracting)
Computer Math. The Decimal System How do we represent “One Hundred and Twenty Five”? How do we represent “One Hundred and Twenty Five”? Simple: 125 !!!
Chapter 2: The Logic of Compound Statements 2.5 Application: Number Systems and Circuits for Addition 1 Counting in binary is just like counting in decimal.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Digital Electronics and Computer Interfacing
Chapter 2 Number Systems: Decimal, Binary, and Hex.
CHAPTER-2 Fundamentals of Digital Logic. Digital Logic Digital electronic circuits are used to build computer hardware as well as other products (digital.
Binary, Hexadecimal, Decimal, and How They Relate.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
Programming Logic Controllers Number Systems and Codes - Chapter 3.
Universal college of engineering & technology. .By Harsh Patel)
Discrete Mathematics Numbering System.
Computer Science 101 More Devices: Arithmetic. From 1-Bit Equality to N-Bit Equality = A B A = B Two bit strings.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
NUMBER SYSTEMS.
Computer Architecture
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Unit - 3 NUMBER SYSTEM AND CODES
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
Introduction to Digital Electronics Lecture 2: Number Systems.
Basic Electricity and Electronics Module Three Microprocessor Basics Copyright © Texas Education Agency, All rights reserved.
Number Representation (Part 2) Computer Architecture (Fall 2006)
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Electronics Merit Badge Class 3 3/13/2016Electronics Merit Badge Class 31.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
Residential Audio & Video Systems Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Presentation 15 – Digital Audio and Video.
Programmable Logic Controller
ECE 3130 Digital Electronics and Design
Discrete Mathematics Numbering System.
Introduction Molecules: made up of atoms of individual elements.
Number System conversions
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Number Systems Decimal (base 10) { }
For OCR GCSE Computing Unit 1 - Theory
Binary Lesson 3 Hexadecimal
DIGITAL ELECTRONICS B.SC FY
AWIM Series Lawndale High School Experiment 6 Dec, 2017
Binary Lesson 3 Hexadecimal
The basics of any electronic device means either electricity is flowing or it is not i.e. a switch is either on or off Computers are electronic devices.
Table 1.1 Powers of Two.
Copyright © Cengage Learning. All rights reserved.
Further binary, Logic diagrams and truth tables
Our Number System.
Presentation transcript:

Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.

Transistor Basics A semiconductor device A semiconductor device Conductivity is controlled by current Conductivity is controlled by current Made from a silicon crystal Made from a silicon crystal Copyright © Texas Education Agency, All rights reserved.

I B << I C I B << I C Here is the same circuit, shown using schematic symbols: Here is the same circuit, shown using schematic symbols: ICIC IBIB RBRB RCRC V BB V CC Copyright © Texas Education Agency, All rights reserved.

Here is the same circuit, shown slightly different: Here is the same circuit, shown slightly different: This is a standard transistor switch This is a standard transistor switch Used in computers and other electronic devices Used in computers and other electronic devices Signal In Power Supply (V CC ) Output RCRC Copyright © Texas Education Agency, All rights reserved.

Signal In = 0 Transistor Off V CC = 1 V O = V CC = 1 Signal In = 1 Transistor On V O = 0 V CC The two states of a switch – on and off This circuit is called an inverter: When the input is one the output is zero, when the input is zero the output is one Copyright © Texas Education Agency, All rights reserved.

We Use Transistors All logic uses transistors All logic uses transistors We use voltage to represent binary We use voltage to represent binary TTL (transistor – transistor logic) is common: TTL (transistor – transistor logic) is common: + 5 V = binary V = binary 1 0 V = binary 0 0 V = binary 0 These voltages will turn on or off transistors These voltages will turn on or off transistors Copyright © Texas Education Agency, All rights reserved.

The Truth Table A tool used to understand binary logic A tool used to understand binary logic Shows every possible input Shows every possible input Shows the output for each input Shows the output for each input InputAOutputX 0110 What circuit does this represent? An Inverter! Copyright © Texas Education Agency, All rights reserved.

Binary Logic A set of rules that applies to a digital circuit A set of rules that applies to a digital circuit Logic defines the way the circuit will act Logic defines the way the circuit will act Given a set of inputs, the output will produce a specific outcome Given a set of inputs, the output will produce a specific outcome Always acts exactly the same way Always acts exactly the same way We use a truth table to help us define how we want the logic circuit to act We use a truth table to help us define how we want the logic circuit to act Copyright © Texas Education Agency, All rights reserved.

Two Bit Binary Adder Adds two binary bits Adds two binary bits Binary can only have two values, 0 and 1 Binary can only have two values, 0 and = 2, which is not valid binary = 2, which is not valid binary Carry 1 Copyright © Texas Education Agency, All rights reserved.

Truth Table for Binary Addition We have two inputs We have two inputs We generate two outputs We generate two outputs InputAInputBOutput Σ (sum) Carry C o How do we do this? First, we have to understand binary! Copyright © Texas Education Agency, All rights reserved.

Binary Numbers Binary only has two values, 0 and 1 Binary only has two values, 0 and 1 The decimal number system has ten values, 0 through 9 The decimal number system has ten values, 0 through 9 How do we count higher than 9 in decimal? How do we count higher than 9 in decimal? -We add decimal places -We add decimal places How do we count higher than one in binary? How do we count higher than one in binary? -We add binary bits -We add binary bits Copyright © Texas Education Agency, All rights reserved.

Decimal places are each multiples of ten Decimal places are each multiples of ten Binary bits are each multiples of two Binary bits are each multiples of two 10 0 = 1 (ones) 10 1 = 10 (tens) 10 2 = 100 (hundreds) 10 3 = 1000 (thousands) 2 0 = 1 (ones) 2 1 = 2 (twos) 2 2 = 4 (fours) 2 3 = 8 (eights) Copyright © Texas Education Agency, All rights reserved.

Reading Binary Numbers A decimal number like 9437 reads: A decimal number like 9437 reads: Nine thousand, four hundred, thirty, seven. Nine thousand, four hundred, thirty, seven. The binary number 1011 has values: The binary number 1011 has values: One eight, no fours, one two, one one. One eight, no fours, one two, one one has a decimal value of 11 (eleven) 1011 has a decimal value of 11 (eleven) How do read the binary 1111? How do read the binary 1111? Decimal Fifteen Decimal Fifteen How do you count higher than fifteen? How do you count higher than fifteen? Add more binary bits (decimal places) Add more binary bits (decimal places) Copyright © Texas Education Agency, All rights reserved.

Binary Bit Values To count up to 1000 (decimal) you need ten binary bits To count up to 1000 (decimal) you need ten binary bits To count higher, you need more binary bits To count higher, you need more binary bits Bit number Decimal value Copyright © Texas Education Agency, All rights reserved.

Binary to Decimal The binary number: The binary number: Has a decimal value: Has a decimal value: This process involves addition This process involves addition = Copyright © Texas Education Agency, All rights reserved.

Decimal to Binary Decimal to binary is a little harder Decimal to binary is a little harder The process involves subtraction The process involves subtraction For example, consider the decimal number: For example, consider the decimal number: Go back to the binary count: Go back to the binary count: Copyright © Texas Education Agency, All rights reserved.

equals equals Copyright © Texas Education Agency, All rights reserved.

82 10 equals = ? equals = ? Copyright © Texas Education Agency, All rights reserved.

82 10 equals = equals = Copyright © Texas Education Agency, All rights reserved.

equals = ? equals = ? Copyright © Texas Education Agency, All rights reserved.

equals equals Copyright © Texas Education Agency, All rights reserved.

Binary Count The easiest way to show all possible input values is a binary count The easiest way to show all possible input values is a binary count Keep adding one to the previous value Keep adding one to the previous value Everyone should be able to count in binary Everyone should be able to count in binary D = 1, C = 2, B = 4, A = 8 D = 1, C = 2, B = 4, A = 8 ABCDDeciHex ABCDEF Copyright © Texas Education Agency, All rights reserved.

ABCDDeciHex ABCDEF What happens if you have to keep counting? FFF Copyright © Texas Education Agency, All rights reserved.

Hexadecimal Computers and electronic devices communicate in binary Computers and electronic devices communicate in binary All those 1’s and 0’s are confusing All those 1’s and 0’s are confusing Is there an easy way to tell what the binary values are? Is there an easy way to tell what the binary values are? YES – it’s called Hexadecimal YES – it’s called Hexadecimal Hexadecimal is a base 16 number system Hexadecimal is a base 16 number system Hexadecimal exactly represents 4 binary bits Hexadecimal exactly represents 4 binary bits Copyright © Texas Education Agency, All rights reserved.

Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: or Copyright © Texas Education Agency, All rights reserved.

Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: or Copyright © Texas Education Agency, All rights reserved.

Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: = = ? Copyright © Texas Education Agency, All rights reserved.

Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: = = 2BD 16 Copyright © Texas Education Agency, All rights reserved.

There are several ways to indicate the hex number system: Use the subscript 16 Use a lower case h right after the number Use a dollar sign, e.g. $2BD Hex is a shorthand way of representing binary The hex number always exactly represents 4 binary bits Copyright © Texas Education Agency, All rights reserved.

Back to Addition Add 2 4-bit binary numbers: Add 2 4-bit binary numbers: = 2, which is written 10 in binary = 2, which is written 10 in binary This 1 is a carry into the next bit Copyright © Texas Education Agency, All rights reserved.

2 Bit Binary Adder Lets go back to the truth table for a binary adder: Lets go back to the truth table for a binary adder: InputAInputBOutput Σ (sum) Carry C o Now that we understand binary, we can figure out how to do this! Copyright © Texas Education Agency, All rights reserved.