Lecture 7. Binary Codes Gray Code(s)  Unweighted code  Code values for successive decimal digits differ in exactly one bit.  Example: 2-bit Gray Code.

Slides:



Advertisements
Similar presentations
ECE 442 Power Electronics1 Two Devices on a Common Heat Sink Thermal Model.
Advertisements

Lecture no 6. Two's Complement Given a negative number (N), represented using the Two's Complement representation (N*), the magnitude of the number (P)
Lecture 9: Character and String
Data Storage and manipulation. Data Storage Computers store and manipulate data in the form of electronic pulses (high and Low voltages). This digitised.
KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
ENGIN112 L4: Number Codes and Registers ENGIN 112 Intro to Electrical and Computer Engineering Lecture 4 Number Codes and Registers.
ECE 331 – Digital System Design
CS 151 Digital Systems Design Lecture 4 Number Codes and Registers.
Processing Data.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
ASCII & Gray Codes.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
1.6 Signed Binary Numbers.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Bits & Bytes: How Computers Represent Data
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Binary Arithmetic & Data representation
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
The Digital Codes.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Binary Code.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
BINARY CODE – Digital Circuit 1 Choopan Rattanapoka.
COMPSCI 210 Semester Tutorial 1
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Summer 2012ETE Digital Electronics1 Binary Arithmetic of Signed Binary Numbers.
©Contrinex JDC PPT_XF_BinHexDecASCII Encoding information J.-D. Chatelain.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
ECE 301 – Digital Electronics Representation of Negative Numbers, Binary Arithmetic of Negative Numbers, and Binary Codes (Lecture #11) The slides included.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.
Business Programming I Fall – 2000 By Jim Payne Lecture 05Jim Payne - University of Tulsa2 Alphanumeric Storage Numbers that are not numbers? Alphabetic.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
Digital Logic & Design Adil Waheed Lecture 03. Range of Binary Numbers Processors can handle 64-bit unsigned binary values. Maximum unsigned decimal number.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
1.4 Representation of data in computer systems Character.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Unit 18: Computational Thinking
CSCI 198: Lecture 4: Data Representation
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
RFID - EN Encoding information Encoding information J.-D. Chatelain.
COUNTING IN BINARY Binary weightings 0 x x x x 8
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Computers & Programming Languages
Diminished Radii Complement and codes
Presenting information as bit patterns
COUNTING IN BINARY Binary weightings 0 x x x x 8
Table 1.1 Powers of Two.
Learning Intention I will learn how computers store text.
ECE 331 – Digital System Design
C Programming Language
Presentation transcript:

Lecture 7

Binary Codes Gray Code(s)  Unweighted code  Code values for successive decimal digits differ in exactly one bit.  Example: 2-bit Gray Code DecimalBinaryGray Code ECE Digital Electronics2

3-bit Gray Code ECE Digital Electronics3 Decimal

4-bit Gray Code ECE Digital Electronics4

Binary Code ASCII Code  American Standard Code for Information Interchange  Common code used for the storage and transfer of alphanumeric characters.  7-bit Weighted Code Can represent a total of 128 characters  Used to represent letters, numbers and other characters (e.g. special control characters)  Any word or number can be represented (and stored or transferred) using its ASCII Code. ECE Digital Electronics5

ASCII Code ECE Digital Electronics6