Digital Computers and Information Chapter 1 Mano and Kime.

Slides:



Advertisements
Similar presentations
Introduction to Computer Engineering by Richard E. Haskell BCD Arithmetic Module M16.5 Section 10.4.
Advertisements

ECE 331 – Digital System Design
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
James Tam Beyond Base 10: Non-decimal Based Number Systems What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
ECE 301 – Digital Electronics Memory (Lecture #21)
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Memory and Programmable Logic
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
SYEN 3330 Digital Systems Jung H. Kim Chapter 1 1 SYEN 3330 Digital Systems Chapter 1.
Memory ROM, PROM, EEPROM Mano and Kime Section 6-6.
Overview Digital Systems, Computers, and Beyond
1 EE 365 Adders Multipliers Read-Only Memories 2 Equality Comparators 1-bit comparator 4-bit comparator EQ_L.
Digital Computers and Information Chapter 1 Mano and Kime.
Number System Conversions Lecture L2.2 Section 2.3.
Digital Computers and Information
Number Systems and Codes
Chapter 1 Digital Computers and Information. CSC 480 – Winter 2002 Digital Computer Basics Digital values represented as voltage values, e.g. Logic 1.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 1 – Digital Systems and Information Logic.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
COMPUTER NUMBER SYSTEMS & DIGITAL DEVICES By: Sohaib Rehman.
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Chapter 3 Data Representation
Binary Arithmetic & Data representation
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number Systems What is the Standard Base we
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Number Systems and Codes
Internal Memory.
Digital Design: Principles and Practices
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
Data Representation, Number Systems and Base Conversions
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
The character data type char. Character type char is used to represent alpha-numerical information (characters) inside the computer uses 2 bytes of memory.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #9 Math Units ROMs.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 1 Tom Kaminski & Charles R.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Number System Base b Use only digits of 0, 1, 2,…., b-1 Positional weights X = a n-1 b n-1 + a n-2 b n-2 + …. + a 0 b = 1x x10 1 +
Microprocessors CSE 341 Lecture Md. Omar Faruqe UB 1228
Logic and Computer Design Fundamentals, Fifth Edition Mano | Kime | Martin Copyright ©2016, 2008, 2004 by Pearson Education, Inc. All rights reserved.
Overview 1-1 Information Representation
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Chapter 1 – Digital Systems and Information Logic and Computer Design Fundamentals.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary and Hard Disk PEOPLE Program
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Number Systems and Codes
Digital Systems and Number Systems
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Internal Memory.
CHAPTER 1 : INTRODUCTION
Data Transfer ASCII FILES.
Chapter 3 Data Representation
Data Encoding Characters.
University of Gujrat Department of Computer Science
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
Number Systems and Codes
CNET 315 Microprocessors & Assembly Language
Digital Electronics and Microprocessors
Beyond Base 10: Non-decimal Based Number Systems
FIGURE 1-1 Examples of Voltage Ranges and Waveforms for Binary Signals
Presentation transcript:

Digital Computers and Information Chapter 1 Mano and Kime

Digital Computers and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Alphanumeric Codes

Block Diagram of Computer

Memory ROMs and PROMs EPROMs, EEPROMs and Flash Memory Static RAMs and Dynamic RAMs

ROMs and PROMs ROM –Read-Only Memory PROM –Programmable Read-Only Memory

EPROMs, EEPROMs and Flash Memory EPROM –Erasable Programmable Read-Only Memory –Erase with ultraviolet light EEPROM –Electrically-Erasable Programmable Read-Only Memory Flash Memory –Electrically-Erasable in bulk

RAMs RAM –Random-Access Memory –Read-Write Memory Static RAM –Needs 4 transistors per bit to make a latch –Data lost when power is turned off Dynamic RAM –One transistor per bit –Data stored as charge on a capacitor –Data must be continually refreshed

W8X Microcontroller Control Unit Datapath

The W8Z Microprocessor

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Alphanumeric Codes

Powers of 2

Numbers with Different Bases

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 3 x x x x x = =

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 1 x x x x x x 2 -2 = /2 + 1/4 = Binary

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b AB.6 16 = 1 x A x B x x = 1 x x x 1 + 6/16 = = Hex

Number Systems N =...P 3 P 2 P 1 P 0. P -1 P -2 P =... + P 3 b 3 + P 2 b 2 + P 1 b 1 + P 0 b 0 + P -1 b -1 + P -2 b -2 + P -3 b = 1 x x x x x 8 -2 = 1 x x x 1 + 2/8 + 5/64 = = Octal

Problem 1-4 Convert the following binary numbers to decimal:

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Alphanumeric Codes

Recall Full Adder Truth Table C i A i B i S i C i A B C Final carry = 0

Binary Addition E Dec Hex Binary

Recall Full Subtractor Truth Table C i A i B i D i C i A B C Final borrow = E Hex

Binary Subtraction B5 - 6F 46 Dec Hex Binary Final borrow = 0

Number System Conversions Hex, Binary, and Octal to Decimal Binary Hex Binary Octal Hex Octal Decimal to Hex, Octal, and Binary

Hex to Decimal 87C987C9 x x 16 2, ,172 x 16 34, ,761

Binary Hex A8. F 5 C

Binary Octal

Hex Octal Go through Binary A8. F 5 C

Convert Decimal to any Base Integer Part: Divide by the base, keep track of the remainder, and read up , ,172rem rem 12 = C 16 8 rem 7 0 rem 8 Read up 34, = 87C9 16

Convert Decimal to any Base Fractional Part: Multiply by the base, keep track of the integer part, and read down x 16 = 12.5 int = 12 = C 0.5 x 16 = 8.0 int = 8 Read down = 0.C8 16

Convert Decimal to any Base Fractional Part: Multiply by the base, keep track of the integer part, and read down. 0.1 x 2 = 0.2 int = x 2 = 0.4 int = x 2 = 0.8 int = x 2 = 1.6 int = x 2 = 1.2 int = x 2 = 0.4 int = x 2 = 0.8 int = 0 Read down =

Problem 1-7 Convert the following numbers from the given base to the other three bases listed in the table: DecimalBinaryOctalHex ??? ? ?? ??326.5? ???F3C7.A

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Alphanumeric Codes

Binary Coded Decimal Code decimal numbers using the binary digits, That is, Can NOT use the hex digits A - F. For example, the DECIMAL number 3582 would be coded in BCD as While this looks like the HEX number 3582H in BCD we interpret it as the DECIMAL number 3582.

BCD Addition Binary 35H H CH Decimal (BCD) 35H H H B0 35 MOV AL,35H ;AL = 35H ADD AL,47H ;AL = AL+47H DAA ;Decimal adjust

Digital Computer and Information Digital Computers Number Systems Arithmetic Operations Decimal Codes Alphanumeric Codes

American Standard Code for Information Interchange (ASCII)

First 256 Codes for Unicode (Unicode, Inc. The Unicode Standard: Worldwide Character Encoding, Version 1.0 © 1990, 1991 by Unicode, Inc. Reprinted with permission of Addison- Wesley Publishing Company, Inc.)