Hardware. ( Not so hard really )

Similar documents
Data Representation and Binary Arithmetic. Lecture 2

Fundamentals of Programming (C)

Chapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

Introduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS)

Chapter 2 Bits, Data Types, and Operations

Fundamentals of Programming

CPS 104 Computer Organization and Programming Lecture-2 : Data representations,

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras

Chapter 2 Bits, Data Types, and Operations

The Binary Number System

Chapter 2 Bits, Data Types, and Operations

Lecture (09) x86 programming 8

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Chapter 2 Bits, Data Types, and Operations

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

CS341 *** TURN OFF ALL CELLPHONES *** Practice NAME

Binary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example

Chapter 2 Number System

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes

Bits and Bytes. Data Representation. A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices.

Number Representations

Number System (Different Ways To Say How Many) Fall 2016

Source coding and compression

Machine Architecture and Number Systems

Oberon Data Types. Matteo Corti. December 5, 2001

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers

Chapter 2 Bits, Data Types, and Operations

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes

Unit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation

Positional Number System

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

Angel International School - Manipay 1 st Term Examination November, 2015 ICT

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 -

Chapter 3. Information Representation

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

ASSIGNMENT 5 TIPS AND TRICKS

Experiment 3. TITLE Optional: Write here the Title of your program.model SMALL This directive defines the memory model used in the program.

Number Systems Base r

UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

Chapter 8. Characters and Strings

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

Introduction to Decision Structures. Boolean & If Statements. Different Types of Decisions. Boolean Logic. Relational Operators

3.1. Unit 3. Binary Representation

5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital

2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

1: History, Generation & Classification. Shobhanjana Kalita, Dept. of CSE, Tezpur University

2D BARCODE SCANNER CA-SC-20200B

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

Chemistry Hour Exam 2

Do not start the test until instructed to do so!

Variables and data types

FA269 - DIGITAL MEDIA AND CULTURE

S-Series Sensor ASCII Protocol v8.1.0

Chapter 9: A Closer Look at System Hardware

Chapter 9: A Closer Look at System Hardware 4

4/14/2015. Architecture of the World Wide Web. During this session we will discuss: Structure of the World Wide Web

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School

Table of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup

Under the Hood: Data Representation. Computer Science 104 Lecture 2

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Do not start the test until instructed to do so!

Universal Asynchronous Receiver Transmitter Communication

Connecting UniOP to Datalogic Barcode Readers

PD1100 STAND-ALONE PROGRAMMING & USER S GUIDE. use the freedom

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, SPRING 2013

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Mounting Dimensions / Viewing 2 Mounting Options 3. Wiring Configuration 4. Quick Set up Procedure 5. Changing Intensity 6.

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

EE 109 Unit 2. Binary Representation Systems

NC-1200 BARCODE SCANNER. Configuration Guide - 1 -

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

FD-011WU. 2D Barcode Reader User Guide V1.6CC

User s Manual. Xi3000 Scanner. Table of Contents

Do not start the test until instructed to do so!

BARCODE SCANNER. Configuration Guide - 1 -

RS-232 Digital Relay I/O

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

User. Application program. Interfaces. Operating system. Hardware

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

Data Representa5on. CSC 2400: Computer Systems. What kinds of data do we need to represent?

RS-422 Code-Operated Switches

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

Acquirer JCB EMV Test Card Set

Xi2000-BT Series Configuration Guide

First Data U.S. Debit Test Card Set. Version 1.20

Configuration Manual PULSAR C CCD SCANNER. Table of Contents

8.2 User Defined Protocol Communication

n NOPn Unary no operation trap U aaa NOP Nonunary no operation trap i

MK D Imager Barcode Scanner Configuration Guide

Digital Representation

Computers in Engineering COMP 208. A Brief History. Mechanical Calculators. A Historic Perspective Michael A. Hawker

Computers in Engineering COMP 208

Serial Communication. Transmit. Receive To EECC250 - Shaaban. From Universal Asynchronous Receiver/Transmitter (UART) Parity Bit

Transcription:

Hardware ( Not so hard really )

Introduction to Computers What is a computer? Why use a computer anyway? Do they have limitations? What s next?

A bit of history Mechanical Early 1614 1643 1673 Abacus Slide Rule (John Napier) Adding and Subtracting machine (Pascal) Multiplying Machine (von Leibnitz)

A bit more History Sophisticated Mechanical 1820 Difference Engine (Babbage) Designed to calculate polynomials of the form x2+3x+20 to 6 decimal places 1840 Analytical Engine (Babbage) Machine to calculate any arithmetic operation. Important idea was that it could store the series of operations to be made (elementary program). Unable to be built because technology required was too advanced.

Even more history Electronic 1939 Electronic Computer (Atanasoff) Solved small systems of linear equations. 300 vaccuum tubes. 1946 Eniac (Eckert, Mauchly) Electronic Numerical Integrator And Computer. Stored program was used. > 18,000 vacuum tubes used.

Nearly there Transistor Based 1947 1959 Second Generation The invention of the transistor replaced the vacuum tubes but were much smaller and required less power. Third Generation The transistor was replaced by the integrated circuit. Reduction in size, increase in speed, and reduction of power. 1975+ Fourth Generation Large Scale Integration. Whole microprocessors on a single chip.

Modern times Powerful CPUs Multiple CPUs Networking Clusters

Towards 3000 Where are computers heading? Where is the technology heading? What is being done at Griffith?

A first look at a computer Computers do not think. Data Computer Information The computer needs the data in a form that it can understand.

Data representation The processing in the computer and the processing instructions with the data is stored in the memory. The memory is made up of millions of tiny transistor circuits. The transistor circuits act as tiny switches. The switches can be either ON or OFF. ON is 5V and is represented by a 1. aside: 3.3V, 1.2V as well OFF is 0V and is represented by a 0.

A bit of information This is a binary (base 2) system. Each 1 or 0 is called a bit (binary digit) Therefore the computers requires its world to be represented as binary. All inputs, outputs, and processing instructions must be represented as binary in the computer.

Binary Base 2 Written as a b following the word eg 10b. Counts from 0 to 1 before requiring another column. Each column is significant since it 2 times the previous column. 1b = 1 decimal 10b = 2 decimal 100b = 4 decimal

It counts Dec 0 1 2 3 4 5 6 7 8 Binary 0 1 10 11 100 101 110 111 1000

It counts Dependant upon powers of 2. 2 0 = 1b = 1 2 1 = 10b = 2 2 2 = 100b = 4 2 n = 1 with n zeros in binary.

A bit of humour (perhaps) There are 10 types of people that understand binary : Those that do And Those that don t

Binary to decimal 101b= (1 x 2 2 ) + (0 x 2 1 ) + (1 x 2 0 ) = (4) + (0) + (1) = 5 (decimal)

Decimal to Binary divide the decimal by 2 until the result is 0. the remainder from each division gives the binary result. the binary number is built from the right.

Example 53 = 1 1 0 1 0 1 b division result remainder 53 / 2 26 1 RHS 26 / 2 13 0 13 / 2 6 1 6 / 2 3 0 3 / 2 1 1 1 / 2 0 1 LHS

Hexadecimal Large binary numbers can be too unwieldy for humans to use. It is easier to group the binary numbers into the more manageable size of 4 bits. Hexadecimal is base 16. i.e. 24 = 16h. Written as an h following the number or a 0x preceding the number eg 23h or 0x23. Counts from 0 to F before requiring another column. Each column is significant since it 16 times the previous column.

Hex counts too! Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Hexadecimal 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10

The power of the hex Dependant upon powers of 16. 16 0 = 1h = 1 16 1 = 10h = 16 16 2 = 100h = 256 16 3 = 1000h = 4096 16 n = 1 with n zeros in hexadecimal.

Binary / Hex conversions Binary to hex 1010 1111 0010 0011 b A F 2 3 h Hex to binary A F 2 3 h 1010 1111 0010 0011 b

Dec / hex conversions Hex to dec FA2h = (F x 16 2 ) + (A x 16 1 ) + (2 x 16 0 ) = (15 x 256) + (10 x 16) + (2 x 1) = (3840) + (160) + (2) = 4002 Hex to dec

Dec / hex conversions cont Hex to dec find the highest power of 16 that divides the decimal number to give a number less than 16. divide the remainder by the next lowest power of 16 etc the result of each division gives the hexadecimal digit. 12 = 12 * 1 = Ch 18 = 1*16 + 2*1 = 12h 128 = 8*16 + 0*1 = 80h 253 = 15*16 + 13*1 = FDh

ASCII Codes (ANSI X3.4) DEL ~ } { z y x w v u t s r q p 7 o n m l k j i h 9 f e d c b a ' 6 - ^ ] \ [ Z Y X W V U T S R Q P 5 O N M L K J I H G F E D C B A @ 4? > = < ; : 9 8 7 6 5 4 3 2 1 0 3 /. -, + * ) ( ' & % $ # ''! space 2 US RS GS FS ESC SUB EM CAN ETB SYN NAK DC4 DC3 DC2 DC1 DEL 1 Sl SO CR FF VT LF HT BS BEL ACK ENQ EOT ETX STX SOH NUL 0 F E D C B A 9 8 7 6 5 4 3 2 1 0 *

Extended ASCII Codes

Conceptual Computer Application Software Operating System Hardware

Hardware: Model

Memory - Ram Data in (write) Clock (synchronous) FF www.pctechguide.com Data out (read) A single flip-flop does not hold enough information. Therefore memory is a large collection of flip-flops. eg. 8 x 8388608 bits = 8 Meg. Memory arranged into more manageable sizes. Bytes or words Data In Data Out Clock

Memory Sizes A BYTE is a collection of 8 bits. A WORD is machine dependant and is usually 16 or 32 or 64 bits. 1K is 1,024 bytes. 1M is 1024K bytes 1G is 1024M bytes

Read Memory Address Bus Data Bus Read / Write Lines Memory Address passed to memory on the address lines (BUS). A read command is issued. Memory puts the contents of the byte on the data bus.

Write Memory Address Bus Memory Address passed to memory on the address lines (BUS). Data Bus Read / Write Lines A write command is issued. The data on the data bus is written to the memory.

CPU Irv Englander, The Architecture of Computer Hardware and Systems Software www.pctechguide.com

Program Execution ADDRESS INSTRUCTION DATA 2000 BB 00 01 1. Fetch instruction 2003 8A 07 2. Decode 2005 43 3. Fetch data if required 2006 2008 200A 8B FB 43 07 08 4. Execute 5. Point to next instruction 200B 88 07

Storage Disk Type Platters Heads Cylinders Sectors Block Size (bytes) Speed (rpm) Seek Time (msec) Latency (msec) Transfer Rate (bytes/sec) 3.5 floppy 1 2 80 18 512 360 95 83 54K 100MB Zip 1 1 360 56 512 2941 29 10 1.4M 4.3GB HDD 8 15 8912 63 512 5400 10.5 5.5 2.8M 20.4GB HDD 3 6 13328 250 1K 7200 8.5 4.2 66M DVD 1 1 spiral var 2352 var 250 var 2.5MB Irv Englander, The Architecture of Computer Hardware and Systems Software

Storage: HDD www.pctechguide.com

Storage: HDD www.pctechguide.com

Storage: CD Irv Englander, The Architecture of Computer Hardware and Systems Software CDR www.pctechguide.com CDRW

Storage: CD CD HDD Irv Englander, The Architecture of Computer Hardware and Systems Software

Storage: DVD www.pctechguide.com

Storage: Raid Level 0: Data Striping at block level Level 1: Disk Mirroring Level 3: Same as level 0 but uses parity disk www.pctechguide.com Level 5: Data striping and parity at byte level

Input: Keyboard A 0100 0001 To computer www.pctechguide.com

Input: Mouse www.pctechguide.com

Output: Monitor www.karbosguide.com

Output: CRT Phosphor Dot Electron Gun X & Y Deflection Plates Screen

Output: LCD www.pctechguide.com

Computer System Irv Englander, The Architecture of Computer Hardware and Systems Software

Computer System: Motherboard www.build-a-computer-guide.com

Real Computer System