Computer Organization
|
|
- Austen McKinney
- 7 years ago
- Views:
Transcription
1 Computer Organization Douglas Comer Computer Science Department Purue University 250 N. University Street West Lafayette, IN Copyright All rights reserve. This ocument may not be reprouce by any means without written consent of the author.
2 III Data An Program Representation CS Chapt
3 Digital Logic Built on two-value logic system Can be interprete as Five volts an zero volts High an low True an false CS Chapt
4 Data Representation Buils on igital logic Applies familiar abstractions Interprets sets of Boolean values as Numbers Characters Aresses CS Chapt
5 Binary Digit (Bit) Direct representation of igital logic values Assigne mathematical interpretation 0 an 1 Multiple bits use to represent complex ata item CS Chapt
6 Byte Set of multiple bits Size epens on computer Examples of byte sizes CDC: 6-bit byte BBN: 10-bit byte IBM: 8-bit byte On many computers, smallest aressable unit of storage Note: following most moern computers, we will assume an 8-bit byte CS Chapt
7 Byte Size An Values Number of bits per byte etermines range of values that can be store Byte of k bits can store 2 k values Examples Six-bit byte can store 64 possible values Eight-bit byte can store 256 possible values CS Chapt
8 Binary Representation All possible combinations of three bits CS Chapt
9 Meaning Of Bits Bits themselves have no intrinsic meaning Byte merely stores string of 0 s an 1 s All interpretation etermine by use CS Chapt
10 Example Of Interpretation Assume three bits use for status of peripheral evices First bit has the value 1 if a isk is connecte Secon bit has the value 1 if a printer is connecte Thir bit has the value 1 if a keyboar is connecte CS Chapt
11 Arithmetic Values Combination of bits interprete as an integer Positional representation uses base 2 Note: interpretation must specify orer of bits CS Chapt
12 Illustration Of Positional Interpretation 2 5 = = = = = = 1 Example: is interprete as: = 21 CS Chapt
13 The Range Of Values A set of k bits can be interprete to represent a binary integer. When conventional positional notation is use, the values that can be represente with k bits range from 0 through 2 k 1. CS Chapt
14 Hexaecimal Notation Convenient way to represent binary ata Uses base 16 Each hex igit encoes four bits CS Chapt
15 Hexaecimal Digits Hex Digit Binary Value Decimal Equivalent A B C D E F CS Chapt
16 Hexaecimal Constants Supporte in some programming languages Typical syntax: constant begins with 0x Example: 0xDEC90949 CS Chapt
17 Character Sets Symbols for upper an lower case letters, igits, an punctuation marks Set of symbols efine by computer system Each symbol assigne unique bit pattern Typically, character set size etermine by byte size CS Chapt
18 Example Character Encoings EBCDIC ASCII Unicoe CS Chapt
19 EBCDIC Extene Binary Coe Decimal Interchange Coe Define by IBM Popular in 1960s Still use on IBM mainframe computers Example encoing: lower case letter a assigne binary value CS Chapt
20 ASCII American Stanar Coe for Information Interchange Venor inepenent: efine by American National Stanars Institute (ANSI) Aopte by PC manufacturers Specifies 128 characters Example encoing: lower case letter a assigne binary value CS Chapt
21 Full ASCII Character Set 00 nul 01 soh 02 stx 03 etx 04 eot 05 enq 06 ack 07 bel 08 bs 09 ht 0A lf 0B vt 0C np 0D cr 0E so 0F si 10 le 11 c1 12 c2 13 c3 14 c4 15 nak 16 syn 17 etb 18 can 19 em 1A sub 1B esc 1C fs 1D gs 1e rs 1F us 20 sp 21! 22 " 23 # 24 $ 25 % 26 & ( 29 ) 2A * 2B + 2C, 2D 2E. 2F / A : 3B ; 3C < 3D = 3E > 3F? 41 A 42 B 43 C 44 D 45 E 46 F 47 G 48 H 49 I 4A J 4B K 4C L 4D M 4E N 4F O 50 P 51 Q 52 R 53 S 54 T 55 U 56 V 57 W 58 X 59 Y 5A Z 5B [ 5C \ 5D ] 5E ^ 5F _ a 62 b 63 c e 66 f 67 g 68 h 69 i 6A j 6B k 6C l 6D m 6E n 6F o 70 p 71 q 72 r 73 s 74 t 75 u 76 v 77 w 78 x 79 y 7A z 7B { 7C 7D } 7E ~ 7F el CS Chapt
22 Unicoe Each character is 16 bits long Can represent larger set of characters Motivation: accommoate languages such as Chinese CS Chapt
23 Integer Representation In Binary Each binary integer represente in k bits Computers have use k = 8, 16, 32, 60, an 64 Many computers support multiple integer sizes (e.g., 16 an 32 bit integers) 2 k possible bit combinations exist for k bits Positional interpretation prouces unsigne integers CS Chapt
24 Unsigne Integers Straightforwar positional interpretation Each successive bit represents next power of 2 No provision for negative values Arithmetic operations can prouce overflow or unerflow (result cannot be represente in k bits) Hanle with wraparoun an carry bit CS Chapt
25 Illustration Of Overflow overflow result Values wrap aroun aress space Harware recors overflow in separate carry inicator CS Chapt
26 Signe Values Most programs nee signe values Several representations possible Each has been use in at least one computer Some bit patterns use for negative values (typically half) Traeoff: unsigne representation cannot store negative values, but can store integers that are twice as large as a signe representation CS Chapt
27 Example Signe Integer Representations Sign magnitue One s complement Two s complement Note: each has interesting quirks CS Chapt
28 Sign Magnitue Representation Familiar to humans First bit represents sign Successive bits represent absolute value of integer Interesting quirk: can create negative zero CS Chapt
29 One s Complement Representation Positive number uses positional representation Negative number forme by inverting all bits of positive value Example: 4-bit representation represents represents -2 Interesting quirk: two representations for zero (all 0 s an all 1 s) CS Chapt
30 Two s complement Representation Positive number uses positional representation Negative number forme by subtracting 1 from positive value an inverting all bits of result Example: 4-bit representation represents represents -2 High-orer bit is set if number is negative Interesting quirk: one more negative values than positive values CS Chapt
31 Example Of Values In Unsigne An Two s Complement Representations Binary Unsigne Two s Complement Value Equivalent Equivalent CS Chapt
32 Implementation Of Unsigne An Two s Complement A computer can use a single piece of harware to provie unsigne or two s complement integer arithmetic; software running on the computer can choose an interpretation for each integer. Example ( k = 4 ) Aing 1 to binary prouces Unsigne interpretation goes from 9 to 10 Two s complement interpretation goes from -7 to -6 CS Chapt
33 Sign Extension Neee when computer has multiple sizes of integers Works for unsigne an two s complement representations Extens high-orer bit (known as sign bit) CS Chapt
34 Sign Extension Assume computer Supports 32-bit an 64-bit integers Uses two s complement representation When 32-bit integer assigne to 64-bit integer, correct numeric value requires upper sixteen bits to be fille with zeroes for positive number or ones for negative number In essence, sign bit from short integer must be extene CS Chapt
35 Example Of Sign Extension During Assignment The 8-bit version of integer -3 is: The 16-bit version of integer -3 is: During assignment to a larger integer, harware copies all bits of smaller integer an then replicates the high-orer (sign) bit in remaining bits CS Chapt
36 Example Of Sign Extension During Shift Right shift of a negative value shoul prouce a negative value Example Shifting -4 one bit shoul prouce -2 (ivie by 2) Using sixteen-bit representation, -4 is: After right shift of one bit, value is -2: Solution: replicate high-orer bit uring right shift CS Chapt
37 Summary Of Sign Extension Sign extension: in two s complement arithmetic, when an integer Q compose of K bits is copie to an integer of more than K bits, the aitional high-orer bits are mae equal to the top bit of Q. Extening the sign bit means the numeric value remains the same. CS Chapt
38 A Consequence For Programmers Because two s complement harware performs sign extension, copying an unsigne integer to a larger unsigne integer changes the value; to prevent such errors from occurring, a programmer or a compiler must a coe to mask off the extene sign bits. CS Chapt
39 Numbering Bits An Bytes Nee to choose orer for Storage in physical memory system Transmission over serial meium (e.g., a ata network) Bit orer Hanle by harware Usually hien from programmer Byte orer Affects multi-byte ata items such as integers Visible an important to programmer CS Chapt
40 Possible Byte Orer Least significant byte of integer in lowest memory location Known as little enian Most significant byte of integer in lowest memory location Known as big enian Other orerings Digital Equipment Corporation once use an orering with sixteen-bit wors in big enian orer an bytes within the wors in little enian orer. Note: only big an little enian storage are popular CS Chapt
41 Illustration Of Big An Little Enian Byte Orer x00 0x00 0x00 0x01 Big Enian x00 0x00 0x00 0x01 Little Enian Note: ifference is especially important when transferring ata between computers for which the byte orering iffers CS Chapt
42 Floating Point Basic iea: follow stanar scientific representation Store two basic items Example: Avogaro s number CS Chapt
43 Floating Point Representation Use base 2 instea of base 10 Keep two conceptual items Exponent that specifies the orer of magnitue in a base Mantissa that specifies most significant part of value CS Chapt
44 Optimizing Floating Point Value is normalize Leaing bit is implicit Exponent is biase to allow negative values Normalization eliminates leaing zeroes No nee to store leaing bit (0 is special case) CS Chapt
45 Example Floating Point Representation: IEEE Stanar 754 Specifies single-precision an ouble-precision representations Wiely aopte by computer architects S expon. mantissa (bits 0-22) S exponent mantissa (bits 0-51) CS Chapt
46 Special Values In IEEE Floating Point Zero Positive infinity Negative infinity Note: infinity values hanle cases such as ivie by zero CS Chapt
47 Range Of Values In IEEE Floating Point Single precision range is: to Decimal equivalent is approximately: to Double precision range is: to CS Chapt
48 Data Aggregates Typically arrange in contiguous memory Example: three integers integer #1 integer #2 integer #3 More etails later in the course CS Chapt
49 Summary Basic output from igital logic is a bit Bits groupe into sets to represent Integers Characters Floating point values Integers can be represente as Sign magnitue One s complement Two s complement CS Chapt
50 Summary One piece of harware can be use for both Two s complement arithmetic Unsigne arithmetic Bytes of integer can be numbere in Big-enian orer Little-enian orer Organizations such as ANSI an IEEE efine stanars for ata representation CS Chapt
51 Questions?
Memory is implemented as an array of electronic switches
Memory Structure Memory is implemented as an array of electronic switches Each switch can be in one of two states 0 or 1, on or off, true or false, purple or gold, sitting or standing BInary digits (bits)
More informationplc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums
plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;
More informationNumeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:
Numeral Systems Which number is larger? 25 8 We need to distinguish between numbers and the symbols that represent them, called numerals. The number 25 is larger than 8, but the numeral 8 above is larger
More informationASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot
ASCII Code Data coding Morse code was the first code used for long-distance communication. Samuel F.B. Morse invented it in 1844. This code is made up of dots and dashes (a sort of binary code). It was
More informationChapter 5. Binary, octal and hexadecimal numbers
Chapter 5. Binary, octal and hexadecimal numbers A place to look for some of this material is the Wikipedia page http://en.wikipedia.org/wiki/binary_numeral_system#counting_in_binary Another place that
More informationChapter 1. Binary, octal and hexadecimal numbers
Chapter 1. Binary, octal and hexadecimal numbers This material is covered in the books: Nelson Magor Cooke et al, Basic mathematics for electronics (7th edition), Glencoe, Lake Forest, Ill., 1992. [Hamilton
More informationURL encoding uses hex code prefixed by %. Quoted Printable encoding uses hex code prefixed by =.
ASCII = American National Standard Code for Information Interchange ANSI X3.4 1986 (R1997) (PDF), ANSI INCITS 4 1986 (R1997) (Printed Edition) Coded Character Set 7 Bit American National Standard Code
More informationData Storage 3.1. Foundations of Computer Science Cengage Learning
3 Data Storage 3.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List five different data types used in a computer. Describe how
More informationDigital Logic Design. Introduction
Digital Logic Design Introduction A digital computer stores data in terms of digits (numbers) and proceeds in discrete steps from one state to the next. The states of a digital computer typically involve
More informationVoyager 9520/40 Voyager GS9590 Eclipse 5145
Voyager 9520/40 Voyager GS9590 Eclipse 5145 Quick Start Guide Aller à www.honeywellaidc.com pour le français. Vai a www.honeywellaidc.com per l'italiano. Gehe zu www.honeywellaidc.com für Deutsch. Ir a
More informationLevent EREN levent.eren@ieu.edu.tr A-306 Office Phone:488-9882 INTRODUCTION TO DIGITAL LOGIC
Levent EREN levent.eren@ieu.edu.tr A-306 Office Phone:488-9882 1 Number Systems Representation Positive radix, positional number systems A number with radix r is represented by a string of digits: A n
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems - Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
More informationData Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:
Chapter 3 Data Storage Objectives After studying this chapter, students should be able to: List five different data types used in a computer. Describe how integers are stored in a computer. Describe how
More informationThis is great when speed is important and relatively few words are necessary, but Max would be a terrible language for writing a text editor.
Dealing With ASCII ASCII, of course, is the numeric representation of letters used in most computers. In ASCII, there is a number for each character in a message. Max does not use ACSII very much. In the
More informationXi2000 Series Configuration Guide
U.S. Default Settings Sequence Reset Scanner Xi2000 Series Configuration Guide Auto-Sense Mode ON UPC-A Convert to EAN-13 OFF UPC-E Lead Zero ON Save Changes POS-X, Inc. 2130 Grant St. Bellingham, WA 98225
More informationCommand Emulator STAR Line Mode Command Specifications
Line Thermal Printer Command Emulator STAR Line Mode Command Specifications Revision 0.01 Star Micronics Co., Ltd. Special Products Division Table of Contents 1. Command Emulator 2 1-1) Command List 2
More informationDEBT COLLECTION SYSTEM ACCOUNT SUBMISSION FILE
CAPITAL RESOLVE LTD. DEBT COLLECTION SYSTEM ACCOUNT SUBMISSION FILE (DCS-ASF1107-7a) For further technical support, please contact Clive Hudson (IT Dept.), 01386 421995 13/02/2012 Account Submission File
More informationThe ASCII Character Set
The ASCII Character Set The American Standard Code for Information Interchange or ASCII assigns values between 0 and 255 for upper and lower case letters, numeric digits, punctuation marks and other symbols.
More informationBARCODE READER V 2.1 EN USER MANUAL
BARCODE READER V 2.1 EN USER MANUAL INSTALLATION OF YOUR DEVICE PS-2 Connection RS-232 Connection (need 5Volts power supply) 1 INSTALLATION OF YOUR DEVICE USB Connection 2 USING THIS MANUAL TO SETUP YOUR
More informationNumber Representation
Number Representation CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Topics to be Discussed How are numeric data
More informationSymbols in subject lines. An in-depth look at symbols
An in-depth look at symbols What is the advantage of using symbols in subject lines? The age of personal emails has changed significantly due to the social media boom, and instead, people are receving
More informationRepresentação de Caracteres
Representação de Caracteres IFBA Instituto Federal de Educ. Ciencia e Tec Bahia Curso de Analise e Desenvolvimento de Sistemas Introdução à Ciência da Computação Prof. Msc. Antonio Carlos Souza Coletânea
More informationNumbering Systems. InThisAppendix...
G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal
More informationESPA 4.4.4 Nov 1984 PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION
PROPOSAL FOR SERIAL DATA INTERFACE FOR PAGING EQUIPMENT CONTENTS 1. INTRODUCTION 2. CHARACTER DESCRIPTION 2.1 CHARACTER STRUCTURE 2.2 THE CHARACTER SET 2.3 CONTROL CHARACTERS 2.3.1 Transmission control
More informationComputer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
More informationThe Answer to the 14 Most Frequently Asked Modbus Questions
Modbus Frequently Asked Questions WP-34-REV0-0609-1/7 The Answer to the 14 Most Frequently Asked Modbus Questions Exactly what is Modbus? Modbus is an open serial communications protocol widely used in
More informationBAR CODE 39 ELFRING FONTS INC.
ELFRING FONTS INC. BAR CODE 39 This package includes 18 versions of a bar code 39 font in scalable TrueType and PostScript formats, a Windows utility, Bar39.exe, that helps you make bar codes, and Visual
More informationASCII Characters. 146 CHAPTER 3 Information Representation. The sign bit is 1, so the number is negative. Converting to decimal gives
146 CHAPTER 3 Information Representation The sign bit is 1, so the number is negative. Converting to decimal gives 37A (hex) = 134 (dec) Notice that the hexadecimal number is not written with a negative
More informationCHAPTER 8 BAR CODE CONTROL
CHAPTER 8 BAR CODE CONTROL CHAPTER 8 BAR CODE CONTROL - 1 CONTENTS 1. INTRODUCTION...3 2. PRINT BAR CODES OR EXPANDED CHARACTERS... 4 3. DEFINITION OF PARAMETERS... 5 3.1. Bar Code Mode... 5 3.2. Bar Code
More informationThe string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
More informationOct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8
ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also
More informationCreate!form Barcodes. User Guide
Create!form Barcodes User Guide Barcodes User Guide Version 6.3 Copyright Bottomline Technologies, Inc. 2008. All Rights Reserved Printed in the United States of America Information in this document is
More informationBI-300. Barcode configuration and commands Manual
BI-300 Barcode configuration and commands Manual 1. Introduction This instruction manual is designed to set-up bar code scanner particularly to optimize the function of BI-300 bar code scanner. Terminal
More informationHOMEWORK # 2 SOLUTIO
HOMEWORK # 2 SOLUTIO Problem 1 (2 points) a. There are 313 characters in the Tamil language. If every character is to be encoded into a unique bit pattern, what is the minimum number of bits required to
More informationSolution for Homework 2
Solution for Homework 2 Problem 1 a. What is the minimum number of bits that are required to uniquely represent the characters of English alphabet? (Consider upper case characters alone) The number of
More information2011, The McGraw-Hill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through
More informationECE 0142 Computer Organization. Lecture 3 Floating Point Representations
ECE 0142 Computer Organization Lecture 3 Floating Point Representations 1 Floating-point arithmetic We often incur floating-point programming. Floating point greatly simplifies working with large (e.g.,
More informationDNA Data and Program Representation. Alexandre David 1.2.05 adavid@cs.aau.dk
DNA Data and Program Representation Alexandre David 1.2.05 adavid@cs.aau.dk Introduction Very important to understand how data is represented. operations limits precision Digital logic built on 2-valued
More informationChapter 1: Digital Systems and Binary Numbers
Chapter 1: Digital Systems and Binary Numbers Digital age and information age Digital computers general purposes many scientific, industrial and commercial applications Digital systems telephone switching
More informationMath 230.01, Fall 2012: HW 1 Solutions
Math 3., Fall : HW Solutions Problem (p.9 #). Suppose a wor is picke at ranom from this sentence. Fin: a) the chance the wor has at least letters; SOLUTION: All wors are equally likely to be chosen. The
More informationBinary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.
Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must be able to handle more than just values for real world problems
More informationASCII CODES WITH GREEK CHARACTERS
ASCII CODES WITH GREEK CHARACTERS Dec Hex Char Description 0 0 NUL (Null) 1 1 SOH (Start of Header) 2 2 STX (Start of Text) 3 3 ETX (End of Text) 4 4 EOT (End of Transmission) 5 5 ENQ (Enquiry) 6 6 ACK
More information2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal
2/9/9 Binary number system Computer (electronic) systems prefer binary numbers Binary number: represent a number in base-2 Binary numbers 2 3 + 7 + 5 Some terminology Bit: a binary digit ( or ) Hexadecimal
More information1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:
Exercises 1 - number representations Questions 1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal: (a) 3012 (b) - 435 2. For each of
More informationEncoding Text with a Small Alphabet
Chapter 2 Encoding Text with a Small Alphabet Given the nature of the Internet, we can break the process of understanding how information is transmitted into two components. First, we have to figure out
More informationCDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012
CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 Outline Data Representation Binary Codes Why 6-3-1-1 and Excess-3? Data Representation (1/2) Each numbering
More informationSecurity Protection of Software Programs by Information Sharing and Authentication Techniques Using Invisible ASCII Control Codes
International Journal of Network Security, Vol.10, No.1, PP.1 10, Jan. 2010 1 Security Protection of Software Programs by Information Sharing and Authentication Techniques Using Invisible ASCII Control
More informationBachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)
Unit- I Introduction to c Language: C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating
More informationChapter 4: Computer Codes
Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence 36 Slide 2/30 Data
More informationDivide: Paper & Pencil. Computer Architecture ALU Design : Division and Floating Point. Divide algorithm. DIVIDE HARDWARE Version 1
Divide: Paper & Pencil Computer Architecture ALU Design : Division and Floating Point 1001 Quotient Divisor 1000 1001010 Dividend 1000 10 101 1010 1000 10 (or Modulo result) See how big a number can be
More informationThe Subnet Training Guide
The Subnet Training Guide A Step By Step Guide on Understanding and Solving Subnetting Problems by Brendan Choi v25 easysubnetcom The Subnet Training Guide v25 easysubnetcom Chapter 1 Understanding IP
More informationTo convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:
Binary Numbers In computer science we deal almost exclusively with binary numbers. it will be very helpful to memorize some binary constants and their decimal and English equivalents. By English equivalents
More informationLSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology
LSN 2 Number Systems Department of Engineering Technology LSN 2 Decimal Number System Decimal number system has 10 digits (0-9) Base 10 weighting system... 10 5 10 4 10 3 10 2 10 1 10 0. 10-1 10-2 10-3
More informationBinary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit
Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend -480 41-36 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until
More informationComputers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer
Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.
More informationEE 261 Introduction to Logic Circuits. Module #2 Number Systems
EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook
More informationThis 3-digit ASCII string could also be calculated as n = (Data[2]-0x30) +10*((Data[1]-0x30)+10*(Data[0]-0x30));
Introduction to Embedded Microcomputer Systems Lecture 5.1 2.9. Conversions ASCII to binary n = 100*(Data[0]-0x30) + 10*(Data[1]-0x30) + (Data[2]-0x30); This 3-digit ASCII string could also be calculated
More informationLecture 2. Binary and Hexadecimal Numbers
Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations
More informationTELOCATOR ALPHANUMERIC PROTOCOL (TAP)
TELOCATOR ALPHANUMERIC PROTOCOL (TAP) Version 1.8 February 4, 1997 TABLE OF CONTENTS 1.0 Introduction...1 2.0 TAP Operating Environment...1 3.0 Recommended Sequence Of Call Delivery From An Entry Device...2
More informationBarcode Magstripe. Decoder & Scanner. Programming Manual
Barcode Magstripe Decoder & Scanner Programming Manual CONTENTS Getting Started... 2 Setup Procedures... 3 Setup Flow Chart...4 Group 0 : Interface Selection... 5 Group 1 : Device Selection for keyboard
More informationAchieving quality audio testing for mobile phones
Test & Measurement Achieving quality auio testing for mobile phones The auio capabilities of a cellular hanset provie the funamental interface between the user an the raio transceiver. Just as RF testing
More informationBinary Numbers. Binary Octal Hexadecimal
Binary Numbers Binary Octal Hexadecimal Binary Numbers COUNTING SYSTEMS UNLIMITED... Since you have been using the 10 different digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 all your life, you may wonder how
More informationManagement Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?
Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers
More informationNumerical Matrix Analysis
Numerical Matrix Analysis Lecture Notes #10 Conditioning and / Peter Blomgren, blomgren.peter@gmail.com Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research
More informationToday. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic
Today Binary addition Representing negative numbers 2 Binary Addition Consider the following binary numbers: 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 How do we add these numbers? 3 Binary Addition 0 0 1 0 0 1 1
More informationPemrograman Dasar. Basic Elements Of Java
Pemrograman Dasar Basic Elements Of Java Compiling and Running a Java Application 2 Portable Java Application 3 Java Platform Platform: hardware or software environment in which a program runs. Oracle
More informationCharacters & Strings Lesson 1 Outline
Outline 1. Outline 2. Numeric Encoding of Non-numeric Data #1 3. Numeric Encoding of Non-numeric Data #2 4. Representing Characters 5. How Characters Are Represented #1 6. How Characters Are Represented
More informationBinary Representation
Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must tbe able to handle more than just values for real world problems
More informationBase Conversion written by Cathy Saxton
Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,
More informationPart No. : MUL-53221-07 PROGRAMMING GUIDE
Part No. : MUL-53221-07 PROGRAMMING GUIDE PROGRAMMING GUIDE for BARCODE SCANNERS The guide can be used as keyboard emulation, RS- 232C serial interface, and USB 1.1 interface and wand emulation. IMPORTANT
More informationTechnical Support Bulletin Nr.18 Modbus Tips
Technical Support Bulletin Nr.18 Modbus Tips Contents! Definitions! Implemented commands! Examples of commands or frames! Calculating the logical area! Reading a signed variable! Example of commands supported
More informationInverse Trig Functions
Inverse Trig Functions c A Math Support Center Capsule February, 009 Introuction Just as trig functions arise in many applications, so o the inverse trig functions. What may be most surprising is that
More informationModel 200 / 250 / 260 Programming Guide
Model 200 / 250 / 260 Programming Guide E-SEEK Inc. R & D Center 9471 Ridgehaven Court #E San Diego, CA 92123 Tel: 858-495-1900 Fax: 858-495-1901 Sales & Marketing 245 Fischer Ave #D5 Costa Mesa, CA 92626
More informationThe science of computing
The science of computing first edition by Carl Burch Copyright c 2004, by Carl Burch. This publication may be redistributed, in part or in whole, provided that this page is included. A complete version,
More informationCSI 333 Lecture 1 Number Systems
CSI 333 Lecture 1 Number Systems 1 1 / 23 Basics of Number Systems Ref: Appendix C of Deitel & Deitel. Weighted Positional Notation: 192 = 2 10 0 + 9 10 1 + 1 10 2 General: Digit sequence : d n 1 d n 2...
More informationLecture L25-3D Rigid Body Kinematics
J. Peraire, S. Winall 16.07 Dynamics Fall 2008 Version 2.0 Lecture L25-3D Rigi Boy Kinematics In this lecture, we consier the motion of a 3D rigi boy. We shall see that in the general three-imensional
More informationThe programming language C. sws1 1
The programming language C sws1 1 The programming language C invented by Dennis Ritchie in early 1970s who used it to write the first Hello World program C was used to write UNIX Standardised as K&C (Kernighan
More informationMK-SERIE 1000/1500/2000 AllOfBarcode.de Michael Krug - 83278Traunstein BARCODE SCANNER
MK-SERIE 1000/1500/2000 AllOfBarcode.de Michael Krug - 83278Traunstein BARCODE SCANNER Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up
More information1. Convert the following base 10 numbers into 8-bit 2 s complement notation 0, -1, -12
C5 Solutions 1. Convert the following base 10 numbers into 8-bit 2 s complement notation 0, -1, -12 To Compute 0 0 = 00000000 To Compute 1 Step 1. Convert 1 to binary 00000001 Step 2. Flip the bits 11111110
More informationEnter/Exit programming
P/N: MUL-53247-02 Enter/Exit programming (This barcode is also found at back cover page.) Framed values are default values. All Rights Reserved This guide is designed for advanced settings of Hand Free
More informationApplied Data Communication Lecture 14
Applied Data Communication Lecture 14 Character oriented Data Link Character-oriented data link control Asynchronous Synchronous Kristjan Sillmann reaalajasüsteemide õppetool TTÜ automaatikainstituut character-oriented
More information7-Bit coded Character Set
Standard ECMA-6 6 th Edition - December 1991 Reprinted in electronic form in August 1997 Standardizing Information and Communication Systems 7-Bit coded Character Set Phone: +41 22 849.60.00 - Fax: +41
More informationC Examples! Jennifer Rexford!
C Examples! Jennifer Rexford! 1 Goals of this Lecture! Help you learn about:! The fundamentals of C! Deterministic finite state automata (DFA)! Expectations for programming assignments! Why?! The fundamentals
More informationA Data Placement Strategy in Scientific Cloud Workflows
A Data Placement Strategy in Scientific Clou Workflows Dong Yuan, Yun Yang, Xiao Liu, Jinjun Chen Faculty of Information an Communication Technologies, Swinburne University of Technology Hawthorn, Melbourne,
More informationIBM Emulation Mode Printer Commands
IBM Emulation Mode Printer Commands Section 3 This section provides a detailed description of IBM emulation mode commands you can use with your printer. Control Codes Control codes are one-character printer
More informationDL910 SERIES. Instruction Manual
DL910 SERIES Instruction Manual DL910 SERIES INSTRUCTION MANUAL ALL RIGHTS RESERVED Datalogic reserves the right to make modifications and improvements without prior notification. Datalogic shall not
More informationINTERNATIONAL STANDARD
INTERNATIONAL STANDARD ISO/IEC 18004 First edition 2000-06-15 Information technology Automatic identification and data capture techniques Bar code symbology QR Code Technologies de l'information Techniques
More informationIndex...1. Introduction...3. Installation- Keyboard Wedge...3 RS-232...3 USB...3. Default Setting for each barcode shown as below:...
Index Index...1 Introduction...3 Installation- Keyboard Wedge...3 RS-232...3 USB...3 Default Setting for each barcode shown as below:...4 Programming the MS320...5 Interface Selection...7 Keyboard wedge...8
More informationCPU Organization and Assembly Language
COS 140 Foundations of Computer Science School of Computing and Information Science University of Maine October 2, 2015 Outline 1 2 3 4 5 6 7 8 Homework and announcements Reading: Chapter 12 Homework:
More informationHow To Understand The Structure Of A Can (Can)
Thi t t ith F M k 4 0 4 BOSCH CAN Specification Version 2.0 1991, Robert Bosch GmbH, Postfach 50, D-7000 Stuttgart 1 The ocument as a whole may be copie an istribute without restrictions. However, the
More informationBOSCH. CAN Specification. Version 2.0. 1991, Robert Bosch GmbH, Postfach 30 02 40, D-70442 Stuttgart
CAN Specification Version 2.0 1991, Robert Bosch GmbH, Postfach 30 02 40, D-70442 Stuttgart CAN Specification 2.0 page 1 Recital The acceptance an introuction of serial communication to more an more applications
More informationMeasures of distance between samples: Euclidean
4- Chapter 4 Measures of istance between samples: Eucliean We will be talking a lot about istances in this book. The concept of istance between two samples or between two variables is funamental in multivariate
More informationA single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc
Other architectures Example. Accumulator-based machines A single register, called the accumulator, stores the operand before the operation, and stores the result after the operation. Load x # into acc
More informationMIPS Assembly Language Programming CS50 Discussion and Project Book. Daniel J. Ellard
MIPS Assembly Language Programming CS50 Discussion and Project Book Daniel J. Ellard September, 1994 Contents 1 Data Representation 1 1.1 Representing Integers........................... 1 1.1.1 Unsigned
More informationDIFFRACTION AND INTERFERENCE
DIFFRACTION AND INTERFERENCE In this experiment you will emonstrate the wave nature of light by investigating how it bens aroun eges an how it interferes constructively an estructively. You will observe
More informationModelling and Resolving Software Dependencies
June 15, 2005 Abstract Many Linux istributions an other moern operating systems feature the explicit eclaration of (often complex) epenency relationships between the pieces of software
More informationBRMO 80 / ETH-IP. User Manual. Réf : MU-BRMO 80-ETH-IP-1.4-EN
User Manual Réf : MU-BRMO 80-ETH-IP-1.4-EN BALOGH SA 189, rue d Aubervilliers - C.P. 97 75886 PARIS Cedex 18 France Tél : 33 (0)1 44 65 65 00 Fax : 33 (0)1 44 65 65 10 e-mail : balogh@balogh-group.com
More informationThis post is not eligible for sponsorship and applicants must be eligible to work in the UK under present visa arrangements.
WMG 7.60 per hour Ref: WMG005/15 Fixe Term Contract: 4 Weeks Full Time to be unertaken in summer 2015 (with the possibility of a further 4 weeks employment, applicants must therefore be available for the
More informationCS201: Architecture and Assembly Language
CS201: Architecture and Assembly Language Lecture Three Brendan Burns CS201: Lecture Three p.1/27 Arithmetic for computers Previously we saw how we could represent unsigned numbers in binary and how binary
More informationBinary Number System. 16. Binary Numbers. Base 10 digits: 0 1 2 3 4 5 6 7 8 9. Base 2 digits: 0 1
Binary Number System 1 Base 10 digits: 0 1 2 3 4 5 6 7 8 9 Base 2 digits: 0 1 Recall that in base 10, the digits of a number are just coefficients of powers of the base (10): 417 = 4 * 10 2 + 1 * 10 1
More information