Bits, Bytes, Words Digital signal. Digital Signals The amplitude of a digital signal varies between a logical “0” and logical “1”. – The information in.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Information Representation
ICS312 Set 2 Representation of Numbers and Characters.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
BCD to 7-Segment Display
SIMS-201 Representing Information in Binary. 2  Overview Chapter 3: The search for an appropriate code Bits as building blocks of information Binary.
Number Systems and Codes In PLC
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
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.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Computers Organization & Assembly Language
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
CSC212 – Computer Organization and Design
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
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.
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Binary Code.
Chapter 2 – Number Systems and Codes Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
ICS312 Set 1 Representation of Numbers and Characters.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
1 3 Computing System Fundamentals 3.5 Data Representation.
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.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
MECH1500 Chapter 3.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
AGBell – EECT by Andrew G. Bell (260) Lecture 2.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Digital Systems: Number Systems and Codes Wen-Hung Liao, Ph.D.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Understanding Computers
Chapter Nine: Data Transmission. Introduction Binary data is transmitted by either by serial or parallel methods Data transmission over long distances.
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.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
Programmable Logic Controller
Some basic concepts underlying computer archi­tecture
Data Representation COE 308 Computer Architecture
Understanding binary Understanding Computers.
Number Systems and Codes
Data Representation ICS 233
Lec 3: Data Representation
Data Representation.
Lecture No. 4 Number Systems
CHAPTER 1 : INTRODUCTION
Introduction Molecules: made up of atoms of individual elements.
Introduction to Chapter 2
2 Number Systems and Codes Edited by Jerry Bernardini.
Data Representation COE 301 Computer Organization
Number Systems and Codes
Digital Systems: Number Systems and Codes
Data Representation Conversion 05/12/2018.
Chapter Nine: Data Transmission
Sequential Design Example
Data Representation ICS 233
Chap. 2 Number Systems and Codes
Computer Architecture CST 250
ASCII and Unicode.
Data Representation COE 308 Computer Architecture
Presentation transcript:

Bits, Bytes, Words Digital signal

Digital Signals The amplitude of a digital signal varies between a logical “0” and logical “1”. – The information in the signal is encoded in the combination: of the length of time that the signal is held at each logical state and frequency of the clock (or clock speed), which is the frequency of the fastest oscillation between logical levels that is allowed by the digital system.

A bit A single piece of digital information – Either a logical “0” or a logical “1” “1101” is a 4 bit number Since digital electronic circuits output voltages not bits, we assign a voltage range to be equal to a logical “0” and a different voltage range to be a logical “1” – Different logic families assign a different range of voltages to be equal to a logical “0” and a logical “1”. – For example: » TTL “0”→ 0 – 0.7V; “1”→ 2 – 5V » CMOS“0”→ 0 – 1.5V; “1”→ 3.5 – 5V

Is the data the same or different? Whether the lower digital signal is “ ” or “1010” or some other variation on this pattern depends on the clock speed – the minimum length of time that the system can output a logical state as it switches from one state to another.

Base 2 As there are only two types of bits, “0” and “1”, the number system commonly used in digital electronics is base 2. – Task: Convert the following base 10 numbers into the equivalent number in base 2. Observations: – Numbers that are odd end with a “1”. – Numbers that are divisible by 2 n with no remainder are written with a 1 followed by n zeros. Base Base 2

Grouping of Bits Byte: Composed of 8 bits String: Sequential set of bits of arbitrary length Nibble: Composed of 4 bits or half a byte – Nibbles are occasionally written as hexadecimals to make the data more readable – Hexadecimals are the numbers in base 16 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F Word: The standard memory bus width in the microprocessor or computer architecture – 16-bit, 32-bit, or 64-bit architecture

ASCII American Standard Code for Information Interchange – Encodes each of the 26 characters from the English alphabet, numbers between 0-9, a space, symbols (! for example), and other actions that are necessary when typing (e.g., a horizontal) into a 7 bit string ASCII code has 128 different 7-bit strings (2 7 )

Parity bit An extra bit at the beginning or end of a string of bits that is used to check if the data received is reasonably correct – 8-bit ASCII has an extra bit added at the beginning of each 7-bit string. In even parity checking, the sum of all bits in the byte will be even and the value chosen for the eighth bit is selected based upon the sum of the other 7 bits. In odd parity checking, the sum of all bits in the byte will be odd and the value chosen for the eighth bit is selected based upon the sum of the other 7 bits.

Parity checking Parity Check Parity bit MSBLSBACSII Even e Odd e Even Line feed Odd Line feed Even Delete Odd Delete MSB: Most significant bit LSB: Least significant bit Choose “0” or “1” for the parity bit for even or odd parity checking.

Chinese Binary Chinese binary for transmission of text is based on Chinese Telex – It is composed of two bytes where each byte has a parity bit followed by a 7-bit string

Standards Committees Standards committees are established to document a system that will be used by all manufacturers so that products can work together. – The Institute of Electrical and Electronics Engineers (IEEE), your professional society, organizes standards committees with engineers from various manufacturers’ providing input on the pros and cons of their protocols. For example: There was a standards committee to determine the voltage levels, data transmission speed, maximum current on the bus, and shape of the connectors for products with USB outputs.

Flag A flag is a single bit whose state indicates the status of the digital system – A state can be: High: the value of the bit is a logical “1” Low: the value of the bit is a logical “0” – Sometimes there is an output pin for the flag that is tied (or connected) to an LED. The state of the flag can easily be determined by looking to see if the LED is turned on or off – LED: Light-emitting diode