EEE 301 : Digital ELECTRONICS Amina Hasan Abedin Senior lecturer, Dept of EEE, BRAC University.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

DATA REPRESENTATION CONVERSION.
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Chapter 1 Digital Systems and Numbers System
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Number Systems and Arithmetic
Number Systems Lecture 02.
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Number Systems.
Chapter 1 Basic Principles of Digital Systems. 2 Analog vs. Digital Analog: –A way of representing a physical quantity by a proportional continuous voltage.
Numbering systems.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
1-1 Lecture 1 Class Overview and Appendix A -- Number Systems.
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
Number systems, Operations, and Codes
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
Number Systems and Codes
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Digital Systems and Binary Numbers
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computer Number System
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Chapter 1 : Introduction to Binary Systems 1.1. Introduction to Digital Systems 1.2. Binary Numbers 1.3. Number Base Conversion 1.4. Octal and Hexadecimal.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Digital System Design. Objective Distinguish between Two worlds Understand the Properties digital system.
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.
CSE 101 Lesson - 1 Number System & Program Design Sonia corraya (SOC)
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
CSE 260 Digital Logic Design Md. Shamsul Kaonain Khadija Rasul Aniqua Zereen.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
CS2100 Computer Organisation
Unit 1 Introduction Number Systems and Conversion.
Number Systems and Codes
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Digital Systems and Binary Numbers
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Digital Systems and Binary Numbers
Number Systems.
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
COMPUTING FUNDAMENTALS
Number System conversions
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Number Systems and Binary Arithmetic
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
Digital Electronics and Microprocessors
Digital Systems and Binary Numbers
Chapter 2: Number Systems
ECE 301 – Digital Electronics
Data Representation and Organization
COE 202: Digital Logic Design Number Systems Part 2
Presentation transcript:

EEE 301 : Digital ELECTRONICS Amina Hasan Abedin Senior lecturer, Dept of EEE, BRAC University

Objective ► Distinguish between analog and digital system ► Understand the advantage and limitation of digital system ► Understand the meaning of digital logic

Analog vs. Digital ► Analog data can vary over a continuous range of values. Example: speedometer ► Digital quantities can take on only discrete values (0 and 1, high and low). Example: Digital Computer.

Digital System ► A digital system is a combination of devices designed to manipulate physical quantities or information that are represented in digital form.

Advantage of digital system ► Greater accuracy or precision ► Easier to design ► Easier information storage ► Programmability ► Speed ► economical

Limitation of digital technology ► The real world is mainly analog

Overcome the limitation ► Convert the real world analog input data into digital one ► Process this digital data ► Then again convert into analog form

Digital logic ► Digital logic is a term used to denote the design and analysis of digital system ► Digital logic is concerned with the interconnection among digital components and modules ► Digital logic design is engineering and engineering means problem solving

Number systems and codes Digital Systems are built from circuits that process binary digits. BUT very few real-life problems are based on binary numbers. Digital Systems are built from circuits that process binary digits. BUT very few real-life problems are based on binary numbers. SO a digital system designer must establish some correspondence between the binary digits processed by digital circuits and real- life numbers, events and conditions. SO a digital system designer must establish some correspondence between the binary digits processed by digital circuits and real- life numbers, events and conditions.

Information representation  Elementary storage units inside computer are electronic switches. Each switch holds one of two states: on (1) or off (0).  We use a bit (binary digit), 0 or 1, to represent the state. ON OFF

Information representation  Storage units can be grouped together to cater for larger range of numbers. Example: 2 switches to represent 4 values. 0 (00) 1 (01) 2 (10) 3 (11)

Information representation  In general, N bits can represent 2 N different values.  For M values, bits are needed. 1 bit  represents up to 2 values (0 or 1) 2 bits  rep. up to 4 values (00, 01, 10 or 11) 3 bits  rep. up to ? 4 bits  rep. up to ? 32 values  requires ? bits 64 values  requires ? bits 1024 values  requires ? bits 40 values  requires ? bits 100 values  requires ? bits

Positional Notations ► Decimal number system, symbols = { 0, 1, 2, 3, …, 9 } ► Position is important ► Example:(7594) 10 = (7x10 3 ) + (5x10 2 ) + (9x10 1 ) + (4x10 0 ) ► In general, (a n a n-1 … a 0 ) 10 = (a n x 10 n ) + (a n-1 x 10 n-1 ) + … + (a 0 x 10 0 ) ► (2.75) 10 = (2 x 10 0 ) + (7 x ) + (5 x ) ► In general, (a n a n-1 … a 0. f 1 f 2 … f m ) 10 = (a n x 10 n ) + (a n-1 x10 n-1 ) + … + (a 0 x 10 0 ) + (f 1 x ) + (f 2 x ) + … + (f m x 10 -m ) Ex. 1

Other Number Systems  Binary (base 2): weights in powers-of-2. Binary digits (bits): 0,1.  Octal (base 8): weights in powers-of-8. Octal digits: 0,1,2,3,4,5,6,7  Hexadecimal (base 16): weights in powers- of-16. Hexadecimal digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Ex. 2

Base-R to Decimal Conversion  ( ) 2 = 1      2 -3 = = (13.625) 10 = (13.625) 10  (572.6) 8 = 5     8 -1 = = (378.75) 10  (2A.8) 16 = 2    = = (42.5) 10  (341.24) 5 = 3      5 -2 = = (96.56) 10 Ex. 3 Ex. 4

Decimal-to-Binary Conversion  Method 1: Sum-of-Weights Method  Method 2:  Repeated Division-by-2 Method (for whole numbers)  Repeated Multiplication-by-2 Method (for fractions)

Sum-of-Weights Method  Determine the set of binary weights whose sum is equal to the decimal number. (9) 10 = = = (1001) 2 (9) 10 = = = (1001) 2 (18) 10 = = = (10010) 2 (18) 10 = = = (10010) 2 (58) 10 = = (58) 10 = = = (111010) 2 = (111010) 2 (0.625) 10 = = (0.625) 10 = = = (0.101) 2 = (0.101) 2 Ex. 5

Repeated Division-by-2 Method  To convert a whole number to binary, use successive division by 2 until the quotient is 0. The remainders form the answer, with the first remainder as the least significant bit (LSB) and the last as the most significant bit (MSB). (43) 10 = (101011) 2 (43) 10 = (101011) 2

Repeated Multiplication-by-2 Method  To convert decimal fractions to binary, repeated multiplication by 2 is used, until the fractional product is 0 (or until the desired number of decimal places). The carried digits, or carries, produce the answer, with the first carry as the MSB, and the last as the LSB. (0.3125) 10 = (.0101) 2 (0.3125) 10 = (.0101) 2 Ex. 6

Conversion between Decimal and other Bases  Decimal to base-R  whole numbers: repeated division-by-R  fractions: repeated multiplication-by-R

Conversion between Bases ► In general, conversion between bases can be done via decimal: Base-2Base-3 Base-4DecimalBase-4 … ….Base-R

► Octal and Hexadecimal Numbers The conversion of binary, octal and hexadecimal plays an important part in digital computers. Each octal digit corresponds to three digits and each hexadecimal digit corresponds to four binary digits. The conversion from binary to octal is easily accomplished by partitioning the binary number into groups of three each, starting from the binary point and proceeding to the left and to the right. Conversion from binary to hxadecimal is similar. The conversion of binary, octal and hexadecimal plays an important part in digital computers. Each octal digit corresponds to three digits and each hexadecimal digit corresponds to four binary digits. The conversion from binary to octal is easily accomplished by partitioning the binary number into groups of three each, starting from the binary point and proceeding to the left and to the right. Conversion from binary to hxadecimal is similar. ► Conversion from the octal or hexadecimal to binary is done by procedure reverse to the above.

Binary-Octal/Hexadecimal Conversion  Binary  Octal: Partition in groups of 3 ( ) 2 = ??  Octal  Binary: reverse ( ) 8 = ??  Binary  Hexadecimal: Partition in groups of 4 ( ) 2 = ??  Hexadecimal  Binary: reverse (5D9.B8) 16 = ?? HW