ENEL 111 Digital Electronics Richard Nelson G.1.29

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

© 2004, Robert K. Moniot Binary and Hex How to count like a computer.
Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
HEXADECIMAL NUMBERS Code
CS 61C L02 Number Representation (1)Harvey / Wawrzynek Fall 2003 © UCB 8/27/2003  Brian Harvey ( John Wawrzynek  (Warznek) (
Binary Representation
CS 61C L02 Number Representation (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C.
EE 231 Digital Electronics Fall 01 week 1-slide 1 Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad.
Number Representation (1) Fall 2005 Lecture 12: Number Representation Integers and Computer Arithmetic.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Number Systems and Codes In PLC
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
COMPUTER FUNDAMENTALS David Samuel Bhatti
Agenda Data Representation Purpose Numbering Systems Binary, Octal, Hexadecimal (Hex) Numbering System Conversions Binary to Octal, Octal to Binary Binary.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
BR 8/99 Digital Devices Integrated Circuits that operate on Digital Data are in 95% of every electrical powered device in the U.S. The theory of operation.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Computers Organization & Assembly Language
IT253: Computer Organization
Chapter 3 Data Representation
Objectives Data Representation Binary number system Binary Coded Decimal (BCD) Boolean Values Analogue & Digital data Use of ASCII code Memory addressing.
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
Number Systems ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
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.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
1 Basic Digital Logic. Prof Jess 2008 ◊Digital Electronics ◊Number Systems and Logic ◊Electronic Gates ◊Combinational Logic ◊Sequential Circuits.
Data Representation Conversion 24/04/2017.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Data Representation, Number Systems and Base Conversions
ACOE2511 Assembly Language for the 80X86/Pentium Intel Microprocessors Lecturer: Dr. Konstantinos Tatas.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
Digital Systems Digital Logic and Design Dr. Musab Bassam Zghool Text Book: Mano Morris M. “ Digital Logic And Computer Design ”
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
ECE 2110: Introduction to Digital Systems
Digital Logic & Design Adil Waheed Lecture 03. Range of Binary Numbers Processors can handle 64-bit unsigned binary values. Maximum unsigned decimal number.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Unit 1 Introduction Number Systems and Conversion.
Chapter 3 Data Representation
Topic: Binary Encoding – Part 1
Number Systems and Codes
NUMBER SYSTEMS.
Lec 3: Data Representation
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Digital Logic and Computer Organization
ENEL 111 Digital Electronics
Digital Electronics Jess 2008.
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
University of Gujrat Department of Computer Science
CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS
Number Systems and Codes
Ch2: Data Representation
Data Representation Conversion 05/12/2018.
Digital Electronics and Microprocessors
Number Systems Lecture 2.
UNIT – 3 & 4. Data Representation and Internal
ENEL 111 Digital Electronics
Presentation transcript:

ENEL 111 Digital Electronics Richard Nelson G.1.29

Second Half of ENEL 111 Digital Electronics  Number Systems and Logic  Electronic Gates  Combinational Logic  Sequential Circuits  ADC – DAC circuits  Memory and Microprocessors  Hardware Description Languages

Weekly Structure Lectures Monday, Tuesday, Wednesday Slides in ppt and pdf format on support website:   (follow link from course website) Friday Tutorials - Sample Questions on website.

The lecture today Digital vs Analog data Binary inputs and outputs Binary, octal, decimal and hexadecimal number systems Other uses of binary coding.

Analog/Analogue Systems Analogue Systems  V(t) can have any value between its minimum and maximum value V(t)

Digital Systems  V(t) must take a value selected from a set of values called an alphabet  Binary digital systems form the basis of almost all hardware systems currently V(t) For example, Binary Alphabet: 0,

Slide example Consider a child’s slide in a playground: continuous movement a set of discrete steps levels

Relationship between Analogue and Digital systems Advantages of Digital Systems  Analogue systems: slight error in input yields large error in output  Digital systems more accurate and reliable  Computers use digital circuits internally  Interface circuits (for instance, sensors and actuators) are often analogue 5 Volt 0 Volt Input Range for 1 Input Range for 0 Output Range for 0 Output Range for 1

Exercise Explain whether the following are analog or digital:  A photograph or painting  A scanned image  Sound from a computer’s loud speaker  Sound file stored on disc

Binary Inputs and Outputs Coding:  A single binary input can only have two values: True or False (Yes or No) (1 or 0)

Binary More bits = more combinations Each additional input doubles the number of combinations we can represent i.e. with n inputs it is possible to represent 2 n combinations

Combinations Example 1:  How many combinations are possible with 10 binary inputs? Example 2:  What is the minimum number of bits needed to represent the digits ‘0’ to ‘9’ as a binary code?”

Decimal systems Number Representation  Difficult to represent Decimal numbers directly in a digital system  Easier to convert them to binary  There is a weighting system: eg 403 = 4 x x x 1 or in, powers of 10: = 4x x x10 0 =

Binary Inputs and Outputs  Both Decimal and Binary numbers use a positional weighting system, eg: = 1x2 3 +0x2 2 +1x2 1 +0x2 0 = 1x8 + 0x4 + 1x2 + 0x1 = decimal100 (10 2 )10 (10 1 )1 (10 0 ) binary8 (2 3 )4 (2 2 )2 (2 1 )1 (2 0 )

Binary to decimal Multiply each 1 bit by the appropriate power of 2 and add them together. ?? = ………………. 10 ? = …………………… 10 ?

Binary Inputs and Outputs Number Representation - Binary to decimal A decimal number can be converted to binary by repeated division by 2 number/2remainder Least Significant Bit Most Significant bit =

Decimal to Binary An alternative way is to use the “placement” method 128 goes into 155 once leaving 27 to be placed So 64 and 32 are too big (make them zero) 16 goes in once leaving 11 and so on…

Representations There are different ways of representing decimal numbers in a binary coding BCD or Binary Coded Decimal is one example. Each decimal digit is replaced by 4 binary digits

Binary Inputs and Outputs  6 of the possible 16 values unused  example = BCD  Note that BCD code is longer than a direct representation in natural binary code:  453 =

Binary Inputs and Outputs Hexadecimal and Octal  Writing binary numbers as strings of 1s and 0s can be very tedious  Octal (base 8) and Hexadecimal (base 16) notations can be used to reduce a long string of binary digits. octal512 (8 3 )64 (8 2 )8 (8 1 )1 (8 0 ) hexadecimal256 (16 2 )16 (16 1 )1 (16 0 ) 1AF Notice that hexadecimal requires 15 symbols (each number system needs 0 – base-1 symbols) and therefore A – F are used after 9.

Octal as shorthand for Binary Each octal digit corresponds to 3 binary bits binaryoctal To convert a binary string: Split into groups of 3: Thus =

Similarly with Hexadecimal Each hex digit corresponds to 4 binary bits binaryhex To convert a binary string: Split into groups of 4: Thus = …………… 16 ? binaryhex A 1011B 1100C 1101D 1110E 1111F

Binary inputs and outputs Colour codes You often see hex used in graphic design programs for the red, blue and green components of a colour: FF0000 represents red, for example. How many bits are used to represent each colour? How many different colours can be represented?

Binary Inputs and Outputs Characters  Three main coding schemes used: ASCII (widespread use), EBCDIC (not used often) and UNICODE (new)  ASCII table (in hex) :

Gray Codes Other codes exist for specific purposes Gray codes provide a sequence where only one bit changes for each increment Allows increments without ambiguity due to bits changing at different times.  E.g. changing from 3 to 4, normal binary has all three bits changing 011 -> 100. Depending on the order in which the bits change any intermediate value may be created. DecGray

Summary Support website Analogue and Digital Binary Number Systems Coding schemes considered were:  Natural Binary  BCD  Octal representation  Hexadecimal representation  ASCII

Exercises You should practice conversions between binary, octal, decimal and hexadecimal. You should be able to code decimal to BCD (and BCD to decimal). You should be able to explain and give examples of digital and analogue data.