Symbols and Meaning. Data Representa+on and Encoding. Encoding 1/13/12

Size: px
Start display at page:

Download "Symbols and Meaning. Data Representa+on and Encoding. Encoding 1/13/12"

Transcription

1 Symbols and Meaning Compu+ng and Reasoning Computa+on in the physical world Computa+on as Manipula+ng Symbols Language, mathema+cs and computa+on use symbols to represent concepts and objects Computers manipulate symbols and these manipula+ons mean something Because the symbols mean something In the 1930 s s computer designers began to realize that if they made their computers programmable, they could change what the symbols mean and what the computers did without having to build a new computer for each new problem or applica+on Data Representa+on and Encoding Encoding Computers use binary code (zeros and ones) to record informa+on. Binary digits (bits) can be recorded on different storage media electrically, (on a chip) magne+cally (on a hard drive or magne+c tape) or op+cally (on a DVD). Holes in paper (tape and cards) were once used for data storage. Since all data in all files are reduced to binary codes for recording and storage, any type of file can be recorded on any storage media. The difference is how the informa+on is encoded in binary. You can use any symbols you want, but they are encoded in binary codes to be stored or manipulated by computers. For example, one binary code for text informa+on is the ASCII code. (UTF, ANSI are other text code varia+ons). Other binary codes are used for other types of data INFORMATION ENCODED Images Video JPEG, GIF MPG, AVI UTF, ANSI TO BINARY STORED IN FILES ON STORAGE MEDIA Op+cal Disk/DVD Magne+c Hard Drive Why do computers use binary? It s not inherent in the natural world (that is, we don t have to choose binary) It is technologically simple to have a two state device (1 or 0, on or off) - a switch - to represent in computer circuits (chips) or memory devices Text MP3, WAV Sound USB Key

2 Teletype ASR- 33 input/ output terminal device designed to be compliant with ASCII encoded messages Why do computers use binary? It was adopted by early computers, so this make it easy for new machines and programs to follow the binary schemes already adopted 58 Why do computers use binary? The important observa+on is: no maier what conven+on was chosen (in this case, binary) any symbol system can be encoded or translated into the conven+onal choice It is not necessary to design a new computer for every new language, mathema+cal system or type of computa+on we want to perform; we simple subs+tute or change the encoding and the programs we use 59 An Example of Binary Encoding: ASCII Char Decimal Binary Char Decimal Binary Char Decimal Binary NUL SOH ! A STX " B ETX # C EOT $ D ENQ % E ACK & F BEL G BS ( H TAB ) I LF * J VT K FF , L CR M SO N SI / O DLE P DC Q DC R DC S DC T NAK U SYN V ETB W CAN X EM Y SUB : Z ESC ; [ FS < \ GS = ] RS > ^ US ? _ Char Decimal Binary ` a b c d e f g h I j k l m n o p q r s t u v w x y z { } ~ Δ An example of Binary Encoding: Binary Numbers One hundred fily eight in base 10 (decimal) Numbers can be encoded in binary, using base in the 1 s place (100) 5 in the 10 s place (10 1 ) 1 in the 100 s place (10 2 ) 61 One hundred fily eight in base 2(binary) in the 1 s place (2 0 ) = 0 1 in the 2 s place (2 1 ) = 2 1 in the 4 s place (2 2 ) = 4 1 in the 8 s place (2 3 ) = 8 1 in the 16 s place (2 4 ) = 16 0 in the 32 s place (2 5 ) = 0 0 in the 64 s place (2 6 ) = 0 1 in the 128 s place (2 7 ) = Binary Number Arithme+c one plus one 10 is two 1 with a carry.. 1 one plus one + 1 plus one more 11 is three one hundred fifty eight plus sixty-one is two hundred nineteen

3 Encoding different data types Other informa+on types (images, video, music) must have different binary encodings for the informa+on to be stored in files. Some+mes files can have mul+ple types of encodings within the file format. Such as a web browser, which display images and text. In order to display informa+on properly, each applica+on must use the coding appropriate to the file format. Note the numerals can be encoded for text display or for arithme+c (as numbers). This dis+nc+on is important for programs that display both text and numbers. Data and file types Different types of data are encoded, or represented differently. The type or format of a file will olen reflect the encoding of a par+cular type of data stored in the file, such as audio, images, video, or text. One way the file type can be indicated is by providing a filename extension, which conven+onally is the last part of the name following a dot. Some example are: Extension.mp3.wav.mp4.avi.mov.jpg.gif.+ff.zip.html.htm.xml.vrml.exe.pdf.pptx Data type Audio file formats Video file formats image file formats Compressed zip archive Hypertext and media markup formats used for web page source Program code for executable programs (Windows and some other opera+ng systems) Portable document format (Adobe) Microsol powerpoint File type conven+ons Keep in mind that filename extensions are a conven+on, not a property of the data in the file a file can have the wrong file extension different programs may use the same extension for different formats The file format might be different than the extension indicates Microsol Windows desktop tries to launch an associated applica+on when you open a file. This is based on the file name extension..odt Openoffice text Bits and Bytes: data size Storage and Memory In order to represent different type of data or informa+on, groups of bits are olen needed A group of 8 bits is called a byte. (One bit is not very useful encoding unit for most data). Storage, memory capacity and file size are characterized in bytes: KB kilobytes (1000 s) thousands Range of a typical text file MB megabytes ( s) millions Range of a typical digital photo GB gigabytes ( s) billions Range of typical removable media or computer memory TB terabytes (10 12 ) Range of typical large storage device (hard drive) One peculiarity is that computer specifica+ons have a history of coun+ng in base 2 binary. For example, according to that conven+on, the prefix kilo was used for a count of 2 10, which works out to 1024 instead of the standard metric conven+on of kilo meaning of Main memory sizes, for example, use the binary coun+ng conven+on. If you re used to the metric prefix, it seems like you re gerng a liile bit extra. Don t confuse main memory and storage Memory holds data and programs in ac+ve use by the processing components of the computer Typical hardware for this is vola+le RAM RAM = Random Access Memory Vola+le means power- off blanks the memory and requires a re- boot» Laptops have sleep or hibernate modes to keep the memory from blanking More memory more simultaneously ac+ve programs and tasks Storage records data and program permanently (or un+l deliberately deleted) on some storage memory Organized into files in a file system Some recording media involved and a device that records on that media Media can be removable (like DVDs) or fixed (Hard drive) Programs have to be loaded from storage into main memory to run, and data is usually loaded into memory to be manipulated

4 Levels of encoding We can think of levels of encoding to represent something, using different symbols or representa+ons For example, English text can use symbols that are encoded in UTF/ASCII (one level of encoding), which are internally represented or encoded in binary (a second level of encoding): From the screen.. It was the year of Our Lord one thousand seven hundred and seventy-five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and-twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made Encoded into UTF- 8 for the swallowing up of London and Westminster Encoded into binary Into physical media (op+cal/magne+c/electronic) Or a computer program as wriien by a programmer in a computer language.. C- Language Encoded into UTF- 8 UTF- 8 as binary From the screen.. #include <stdio.h>! int main(void)! {!!!printf("hello, world\n");!return 0;! }! Stored on physical media (op+cal/magne+c/electronic) Or a web page as browsed by a web user.. From the screen.. Web page on screen Web page represented in HTM language HTML encoded as UTF- 8 binary codes <!DOCTYPE HTML PUBLIC "- //W3C//DTD HTML 4.01 Transi+onal//EN" "hip:// loose.dtd"> <html> <head> <+tle>become an Undergraduate Student Welcome to Memorial</ +tle> <link href="hip:// brand/2011v1/include/styles/base.css" rel="stylesheet" type="text/css" media="screen" /> <link href="hip:// 2011v1/include/styles/structure.css? " rel="stylesheet" type="text/css" media="screen" /> <link! Stored on physical media or transmiied across the internet

5 1/13/12 Other encoding examples.. Other ideas for encoding Images are made up of pixels: each pixel might be encoded as a Red, Green and Blue intensity (100%, 10%, 0%) = The 3 numbers can then be converted to an 8 bit binary value, so each pixel takes 3 bytes to represent In Class Exercise Encode yourself! Encoding exercise hints and choices Propose an encoding for our class sea+ng plan Use convenient symbols Ul+mately, you must come up with (and explain) an encoding scheme that can indicate which student is in which seat Your encoding must (eventually) be in binary You can incorporate an exis+ng code (ASCII, binary numbers) or make up your own You can iden+fy things (seats, students) using your own symbols or strategy You can start using binary directly Or you can have some levels of symbols before you get to binary Or you can use exis+ng iden++es (such as student names?) You have to convert them to binary eventually 78 Another Hint about file structures.. 79 Reviewing the exercise Some things that weren t specified in the problem: Computer files are generally understood to be sequen+al In other words, there is a first symbol in the file, a second symbol in the file, a third thing and so on For example, if this slide were stored in a file, the word Another is first, then the word Hint Leier A comes first, then n, and so on.. The corresponding binary codes are arranged in the appropriate order in the file containing the slide.. So we don t have to encode which thing comes first or second or third; we put them in the computer file in the right order You may be able to use the order of symbols in the file to make your encoding easier But you can ignore this if its more confusing than helpful 80 Does the encoding scheme have to work for any sea+ng arrangement or only our sea+ng arrangement? Does the encoding scheme have to work for all classrooms, or only our classroom? Does the encoding scheme have to work for all possible groups of students or only our group of students? Does the encoding scheme have to indicate if the seats have been moved around to a new loca+on or not? These are ques+ons about the expressive power of the language or encoding scheme you have created, and they echo basic ques+ons about compu+ng (Hilbert) Does computer provide every thing that can be expressed? (Goedel) Are all true things provable with a computer? (Turing) 81 5

6 An alerword Machine Code Simplified computer architecture diagram There is one special code machine code - that is built into the computer processor Machine code is the binary code that indicates which circuits the computer should ac+vate to run a computer program Computer circuits correspond to opera+ons on binary symbols; for example there are circuits for add, subtract, compare, copy, and moving binary values in and out of computer memory and storage. So machine code already has a meaning within the machine those binary code symbols mean the computer circuits to ac+vate. The meaning of each code (what the corresponding circuit does) is referred to as an instruc0on To create a computer program, these codes have to be arranged (or compiled) into the correct sequence to produce the desired result To run a computer program, the processor(s) takes a sequence of machine coded instruc+ons and ac+vates the corresponding circuits in sequence order. When they re not being used, the coded program instruc+ons (which as a whole comprise a program) are kept in a file on a storage medium (such as a hard drive or usb key), just like any other informa+on on the computer. Computer Architecture refers to the organiza+on of hardware (the physical parts) of the computer Electronic circuits on computer boards and chips include these components: The processor contains the circuits ac+vated by machine code Memory stores the data (including the machine code) currently in use by a running program Controllers are circuits that control computer devices (such as screens, hard drives, usb keys, wireless receivers) according to the binary codes that are sent to them. Each controller is designed to control par+cular devices according to its own codes. A bus is a pathway of wires for sending binary coded signals among components (for example, from a storage controller to memory). A storage device contains data (and programs) organizing into files and recorded on a storage media. A tradi+onal name for storage is Secondary Memory. Processor Memory Controller Controller Controller BUS Controller Storage Storage Programmers don t write in machine code (anymore) Binary machine code is good for designing machines that run programs, not so good for human programmers to understand Instead, humans write programs in formalized programming languages (like C or Java), and a program translator translates them into machine code Programming languages are a kind of middle ground: easier to read and write than machine code (for humans), and easier to translate into machine code than English (for computers) Don t confuse encoding (represen+ng concepts or symbols using coding symbols) with transla0on (changing from one encoding to another encoding). In the computer world, these are different ideas. 84 Program transla+on is not encoding #include <stdio.h>! int main(void)! {!!!printf("hello, world \n");! return 0;! }! Source program: in this example, C- Language code is one thing stored in one file, which can be viewed in different ways, including its binary representa+on Program transla+on Machine- Language program: this is a different thing which can be stored in a different file. It it the transla+on of the program that can be run on a 85 computer as a program. Final thoughts on symbols and encoding.. Concepts are represented by symbols Computa+on is performed by manipula+on of the symbols We have to decide what the symbols mean There is a sense in which it doesn t maier what symbols you use Because we can always encode using other symbols As long as we are careful about the encoding Computers use binary, but we can encode whatever we want into binary using our own code What you decide the symbols represent (that is, their meaning) does maier a great deal It might determine what is possible or impossible to compute (or, in scien+fic terms, to model) 86 6

Fundamentals of Programming (C)

Fundamentals of Programming (C) Borrowed from lecturer notes by Omid Jafarinezhad Fundamentals of Programming (C) Group 8 Lecturer: Vahid Khodabakhshi Lecture Number Systems Department of Computer Engineering Outline Numeral Systems

More information

FA269 - DIGITAL MEDIA AND CULTURE

FA269 - DIGITAL MEDIA AND CULTURE FA269 - DIGITAL MEDIA AND CULTURE ST. LAWRENCE UNIVERSITY a. hauber http://blogs.stlawu.edu/digitalmedia DIGITAL TECHNICAL PRIMER INCLUDED HERE ARE THE FOLLOWING TOPICS A. WHAT IS A COMPUTER? B. THE DIFFERENCE

More information

Fundamentals of Programming

Fundamentals of Programming Fundamentals of Programming Lecture 2 Number Systems & Arithmetic Lecturer : Ebrahim Jahandar Some Parts borrowed from slides by IETC1011-Yourk University Common Number Systems System Base Symbols Used

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize

More information

Data Representation and Binary Arithmetic. Lecture 2

Data Representation and Binary Arithmetic. Lecture 2 Data Representation and Binary Arithmetic Lecture 2 Computer Data Data is stored as binary; 0 s and 1 s Because two-state ( 0 & 1 ) logic elements can be manufactured easily Bit: binary digit (smallest

More information

Hardware. ( Not so hard really )

Hardware. ( Not so hard really ) 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

More information

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

Binary Numbers. The Basics. Base 10 Number. What is a Number? = Binary Number Example. Binary Number Example The Basics Binary Numbers Part Bit of This and a Bit of That What is a Number? Base Number We use the Hindu-Arabic Number System positional grouping system each position represents a power of Binary numbers

More information

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. 9 February 2011 CSE-1520R Test #1 [7F] w/ answers p. 1 of 8 CSE-1520R Test #1 Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 45 minutes Term: Winter 2011 The

More information

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. 9 February 2011 CSE-1520R Test #1 [B4] p. 1 of 8 CSE-1520R Test #1 Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 45 minutes Term: Winter 2011 The exam is closed

More information

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? CSC 2400: Computer Systems Data Representa5on What kinds of data do we need to represent? - Numbers signed, unsigned, integers, floating point, complex, rational, irrational, - Text characters, strings,

More information

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

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras Numbers and Computers Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras 1 Think of a number between 1 and 15 8 9 10 11 12 13 14 15 4 5 6 7 12 13 14 15 2 3 6 7 10 11 14 15

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter Bits, Data Types, and Operations How do we represent data in a computer? At the lowest level, a computer is an electronic machine. works by controlling the flow of electrons Easy to recognize two

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox, Colorado State University How do we represent data in a computer?!

More information

Chapter 3. Information Representation

Chapter 3. Information Representation Chapter 3 Information Representation Instruction Set Architecture APPLICATION LEVEL HIGH-ORDER LANGUAGE LEVEL ASSEMBLY LEVEL OPERATING SYSTEM LEVEL INSTRUCTION SET ARCHITECTURE LEVEL 3 MICROCODE LEVEL

More information

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS Chapter 1. 1.1. INTRODUCTION Digital computers have brought about the information age that we live in today. Computers are important tools because they can locate and process enormous amounts of information

More information

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

Number System (Different Ways To Say How Many) Fall 2016 Number System (Different Ways To Say How Many) Fall 2016 Introduction to Information and Communication Technologies CSD 102 Email: mehwish.fatima@ciitlahore.edu.pk Website: https://sites.google.com/a/ciitlahore.edu.pk/ict/

More information

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? CSC 2400: Computer Systems Data Representa5on What kinds of data do we need to represent? - Numbers signed, unsigned, integers, floating point, complex, rational, irrational, - Text characters, strings,

More information

ASSIGNMENT 5 TIPS AND TRICKS

ASSIGNMENT 5 TIPS AND TRICKS ASSIGNMENT 5 TIPS AND TRICKS linear-feedback shift registers Java implementation a simple encryption scheme http://princeton.edu/~cos26 Last updated on /26/7 : PM Goals OOP: implement a data type; write

More information

The Binary Number System

The Binary Number System The Binary Number System Robert B. Heckendorn University of Idaho August 24, 2017 Numbers are said to be represented by a place-value system, where the value of a symbol depends on where it is... its place.

More information

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

Chapter 1. Hardware. Introduction to Computers and Programming. Chapter 1.2 Chapter Introduction to Computers and Programming Hardware Chapter.2 Hardware Categories Input Devices Process Devices Output Devices Store Devices /2/27 Sacramento State - CSc A 3 Storage Devices Primary

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations Original slides from Gregory Byrd, North Carolina State University Modified by Chris Wilcox, S. Rajopadhye Colorado State University How do we represent data

More information

Lecture (09) x86 programming 8

Lecture (09) x86 programming 8 Lecture (09) x86 programming 8 By: Dr. Ahmed ElShafee 1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.

More information

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

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Pradip Vallathol and Junaid Khalid Midterm Examination 1 In Class (50 minutes) Friday, September

More information

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

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Junaid Khalid and Pradip Vallathol Midterm Examination 1 In Class (50 minutes) Friday, September

More information

Chapter 2 Bits, Data Types, and Operations

Chapter 2 Bits, Data Types, and Operations Chapter 2 Bits, Data Types, and Operations Computer is a binary digital system. Digital system: finite number of symbols Binary (base two) system: has two states: 0 and 1 Basic unit of information is the

More information

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

2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme 2a. Codes and number systems (continued) How to get the binary representation of an integer: special case of application of the inverse Horner scheme repeated (integer) division by two. Example: What is

More information

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

Number Systems for Computers. Outline of Introduction. Binary, Octal and Hexadecimal numbers. Issues for Binary Representation of Numbers Outline of Introduction Administrivia What is computer architecture? What do computers do? Representing high level things in binary Data objects: integers, decimals, characters, etc. Memory locations (We

More information

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

Under the Hood: Data Representation. Computer Science 104 Lecture 2 Under the Hood: Data Representation Computer Science 104 Lecture 2 Admin Piazza, Sakai Up Everyone should have access Homework 1 Posted Due Feb 6 PDF or Plain Text Only: No Word or RTF Recommended: Learn

More information

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

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART) EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: To understand and apply USART command for sending and receiving data Introduction Universal Serial Asynchronous

More information

Chapter 8. Characters and Strings

Chapter 8. Characters and Strings Chapter 8 Characters and s OJECTIVES After you have read and studied this chapter, you should be able to Declare and manipulate data of the char data type. Write string processing programs using and uffer

More information

Number Representations

Number Representations Simple Arithmetic [Arithm Notes] Number representations Signed numbers Sign-magnitude, ones and twos complement Arithmetic Addition, subtraction, negation, overflow MIPS instructions Logic operations MIPS

More information

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

5/17/2009. Digitizing Discrete Information. Ordering Symbols. Analog vs. Digital Chapter 8: Bits and the "Why" of Bytes: Representing Information Digitally Digitizing Discrete Information Fluency with Information Technology Third Edition by Lawrence Snyder Copyright 2008 Pearson Education,

More information

EE 109 Unit 2. Binary Representation Systems

EE 109 Unit 2. Binary Representation Systems EE 09 Unit 2 Binary Representation Systems ANALOG VS. DIGITAL 2 3 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based

More information

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.

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. Bits and Bytes 1 A binary digit or bit has a value of either 0 or 1; these are the values we can store in hardware devices. A byte is a sequence of 8 bits. A byte is also the fundamental unit of storage

More information

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

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes 1 DATA REPRESENTATION Data Types Complements Fixed Point Representations Floating Point Representations Other Binary Codes Error Detection Codes 2 Data Types DATA REPRESENTATION Information that a Computer

More information

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

CPS 104 Computer Organization and Programming Lecture-2 : Data representations, CPS 104 Computer Organization and Programming Lecture-2 : Data representations, Sep. 1, 1999 Dietolf Ramm http://www.cs.duke.edu/~dr/cps104.html CPS104 Lec2.1 GK&DR Fall 1999 Data Representation Computers

More information

Source coding and compression

Source coding and compression Computer Mathematics Week 5 Source coding and compression College of Information Science and Engineering Ritsumeikan University last week binary representations of signed numbers sign-magnitude, biased

More information

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

Introduction. Chapter 1. Hardware. Introduction. Creators of Software. Hardware. Introduction to Computers and Programming (Fall 2015, CSUS) Chapter Introduction Introduction to Computers and Programming (Fall 25, CSUS) Chapter. Introduction Creators of Software Computers perform any job that their programs tell them to do A program is a set

More information

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

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums plc numbers - 3. 3. NUMBERS AND DATA Topics: Number bases; binary, octal,, hexa Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;

More information

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

Experiment 3. TITLE Optional: Write here the Title of your program.model SMALL This directive defines the memory model used in the program. Experiment 3 Introduction: In this experiment the students are exposed to the structure of an assembly language program and the definition of data variables and constants. Objectives: Assembly language

More information

CSC 8400: Computer Systems. Represen3ng and Manipula3ng Informa3on. Background: Number Systems

CSC 8400: Computer Systems. Represen3ng and Manipula3ng Informa3on. Background: Number Systems CSC 8400: Computer Systems Represen3ng and Manipula3ng Informa3on Background: Number Systems 1 Analog vs. Digital System q Analog Signals - Value varies con1nuously q Digital Signals - Value limited to

More information

Introduc)on to Compu)ng. Heng Sovannarith

Introduc)on to Compu)ng. Heng Sovannarith Introduc)on to Compu)ng Heng Sovannarith heng_sovannarith@yahoo.com Introduc)on Computers play an increasingly important and nearly indispensable role in everyday life. Computers are used all over the

More information

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

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL EE 9 Unit Binary Representation Systems ANALOG VS. DIGITAL Analog vs. Digital The analog world is based on continuous events. Observations can take on any (real) value. The digital world is based on discrete

More information

Do not start the test until instructed to do so!

Do not start the test until instructed to do so! Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices

More information

3.1. Unit 3. Binary Representation

3.1. Unit 3. Binary Representation 3.1 Unit 3 Binary Representation ANALOG VS. DIGITAL 3.2 3.3 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based on discrete

More information

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

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART) EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART) Objective: Introduction To understand and apply USART command for sending and receiving data Universal Serial Asynchronous

More information

[301] Bits and Memory. Tyler Caraza-Harter

[301] Bits and Memory. Tyler Caraza-Harter [301] Bits and Memory Tyler Caraza-Harter Ones and Zeros 01111111110101011000110010011011000010010001100110101101 01000101110110000000110011101011101111000110101010010011 00011000100110001010111010110001010011101000100110100000

More information

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

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL 3. 3. EE 9 Unit 3 Binary Representation Systems ANALOG VS. DIGITAL 3.3 3. Analog vs. Digital The analog world is based on continuous events. Observations can take on any (real) value. The digital world

More information

Digital Representation

Digital Representation Special guests today: Informatics students: Benji Schwartz-Gilbert Ryan Musgrave DevynJones Announcements Why is BYTE spelled with a Y? Why "BYTE" The Engineers at IBM were looking for a word for a quantity

More information

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

Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions. Mr. Dave Clausen La Cañada High School Unit 3, Lesson 2 Data Types, Arithmetic,Variables, Input, Constants, & Library Functions Mr. Dave Clausen La Cañada High School Vocabulary Variable- A variable holds data that can change while the program

More information

CPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation

CPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation CPSC 301: Computing in the Life Sciences Lecture Notes 16: Data Representation George Tsiknis University of British Columbia Department of Computer Science Winter Term 2, 2015-2016 Last updated: 04/04/2016

More information

Do not start the test until instructed to do so!

Do not start the test until instructed to do so! Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices

More information

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

CS341 *** TURN OFF ALL CELLPHONES *** Practice NAME CS341 *** TURN OFF ALL CELLPHONES *** Practice Final Exam B. Wilson NAME OPEN BOOK / OPEN NOTES: I GIVE PARTIAL CREDIT! SHOW ALL WORK! 1. Processor Architecture (20 points) a. In a Harvard architecture

More information

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

Unit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation 3.1 3.2 Unit 3 Binary Representation ANALOG VS. DIGITAL 3.3 3.4 Analog vs. Digital The analog world is based on continuous events. Observations can take on (real) any value. The digital world is based

More information

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

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

More information

Chapter 2 Number System

Chapter 2 Number System Chapter 2 Number System Embedded Systems with ARM Cortext-M Updated: Tuesday, January 16, 2018 What you should know.. Before coming to this class Decimal Binary Octal Hex 0 0000 00 0x0 1 0001 01 0x1 2

More information

2D BARCODE SCANNER CA-SC-20200B

2D BARCODE SCANNER CA-SC-20200B D BARCODE SCANNER CA-SC-B Quick Start Guide Getting Familiar with Your Device Thank you for choosing Capture Bar Code Scanner. All Devices deliver world-class performance for a broad range of applications

More information

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

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso 1 Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Binary to Decimal Converting

More information

marson MT8200S 2D Handheld Scanner User Manual V / 6 / 25 - I -

marson MT8200S 2D Handheld Scanner User Manual V / 6 / 25 - I - marson MT8200S 2D Handheld Scanner User Manual V1.1 2018 / 6 / 25 - I - Table of Contents 1 Gettting Started...1 1.1 Introduction...1 1.2 Configuring MT8200S...1 1.2.1 Barcode Configurability...1 1.2.2

More information

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

PureScan - ML1. Configuration Guide. Wireless Linear Imager Wireless Laser scanner - 1 - PureScan - ML1 Wireless Linear Imager Wireless Laser scanner Configuration Guide - 1 - Table of Contents Chapter 1 System Information 1.1 About this manual 3 1.2 How to set up the parameter 3 Chapter 2

More information

Do not start the test until instructed to do so!

Do not start the test until instructed to do so! Instructions: Print your name in the space provided below. This examination is closed book and closed notes, aside from the permitted one-page formula sheet. No calculators or other electronic devices

More information

15110 Principles of Computing, Carnegie Mellon University - CORTINA. Digital Data

15110 Principles of Computing, Carnegie Mellon University - CORTINA. Digital Data UNIT 7A Data Representa1on: Numbers and Text 1 Digital Data 10010101011110101010110101001110 What does this binary sequence represent? It could be: an integer a floa1ng point number text encoded with ASCII

More information

INTRODUCTION TO COMPUTERS

INTRODUCTION TO COMPUTERS INTRODUCTION TO COMPUTERS When we talk about computers, we really are talking about a Computer System. Computer System: It is a combination of Hardware and Software. This combination allows a computer

More information

Fundamental Data Types

Fundamental Data Types Fundamental Data Types Lecture 4 Sections 2.7-2.10 Robb T. Koether Hampden-Sydney College Mon, Sep 3, 2018 Robb T. Koether (Hampden-Sydney College) Fundamental Data Types Mon, Sep 3, 2018 1 / 25 1 Integers

More information

Oberon Data Types. Matteo Corti. December 5, 2001

Oberon Data Types. Matteo Corti. December 5, 2001 Oberon Data Types Matteo Corti corti@inf.ethz.ch December 5, 2001 1 Introduction This document is aimed at students without any previous programming experience. We briefly describe some data types of the

More information

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

Number Systems II MA1S1. Tristan McLoughlin. November 30, 2013 Number Systems II MA1S1 Tristan McLoughlin November 30, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/18 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii

More information

Variables and data types

Variables and data types Programming with Python Module 1 Variables and data types Theoretical part Contents 1 Module overview 4 2 Writing computer programs 4 2.1 Computer programs consist of data and instructions......... 4 2.2

More information

Connecting UniOP to Datalogic Barcode Readers

Connecting UniOP to Datalogic Barcode Readers Connecting UniOP to Datalogic Barcode Readers This Technical Note contains the information needed to connect UniOP to Datalogic Barcode Scanners. Contents 1. Introduction...1 2. Designer setup...1 2.1

More information

System Unit Components Chapter2

System Unit Components Chapter2 System Unit Components Chapter2 ITBIS105 IS-IT-UOB 2013 The System Unit What is the system unit? Case that contains electronic components of the computer used to process data Sometimes called the chassis

More information

What is the typical configuration of a computer sold today? 1-1

What is the typical configuration of a computer sold today? 1-1 What is the typical configuration of a computer sold today? 1-1 Computer Hardware Components In this chapter: How did the computer become known as the stored-program computer? Do they all have the same

More information

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200 RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200 Biamp Systems, 14130 N.W. Science Park, Portland, Oregon 97229 U.S.A. (503) 641-7287 an affiliate of Rauland-Borg Corp. Introduction

More information

Characters Lesson Outline

Characters Lesson 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 information

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

4/14/2015. Architecture of the World Wide Web. During this session we will discuss: Structure of the World Wide Web Internet Gambling Investigations Architecture of the World Wide Web Ω Objectives During this session we will discuss: The term world wide web User interaction on the world wide web The purpose of gateways

More information

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

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012 CMSC 33 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 2, FALL 22 TOPICS TODAY Bits of Memory Data formats for negative numbers Modulo arithmetic & two s complement Floating point formats

More information

1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1

1. Character/String Data, Expressions & Intrinsic Functions. Numeric Representation of Non-numeric Values. (CHARACTER Data Type), Part 1 Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 1. Character/String Data, Expressions Intrinsic Functions (CHARACTER Data Type), Part 1 2. Numeric Representation of

More information

Homeschool Enrichment. The System Unit: Processing & Memory

Homeschool Enrichment. The System Unit: Processing & Memory Homeschool Enrichment The System Unit: Processing & Memory Overview This chapter covers: How computers represent data and programs How the CPU, memory, and other components are arranged inside the system

More information

Introduc)on to Compu)ng (SE- 101)

Introduc)on to Compu)ng (SE- 101) Introduc)on to Compu)ng (SE- 101) Ali Ameer Gondal Assistant Professor So?ware Engineering Department University Of Engineering & Technology Taxila, Pakistan ali.ameer@uettaxila.edu.pk Introducing Computer

More information

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

FD-011WU. 2D Barcode Reader User Guide V1.6CC FD-011WU 2D Barcode Reader User Guide V1.6CC Table of Contents 1 Getting Started... 1 1.1 Factory Defaults... 1 2 Communication Interfaces...2 2.1 TTL-232 Interface... 2 2.2 Baud Rate... 3 2.3 Data Bit

More information

Simple Data Types in C. Alan L. Cox

Simple Data Types in C. Alan L. Cox Simple Data Types in C Alan L. Cox alc@rice.edu Objectives Be able to explain to others what a data type is Be able to use basic data types in C programs Be able to see the inaccuracies and limitations

More information

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

Table of Contents Sleep Settings How to Configure the Scanner. 7 Chapter 2 System Setup Table of Contents Chapter 1 System Information 1.1 Setup Scanner with PC 1.2 Setup Scanner with Mobile Device 1.3 Configure ios On-Screen Keyboard 1.4 Memory Mode 3 4 4 5 1.5 Sleep Settings 6 1.6 How to

More information

S-Series Sensor ASCII Protocol v8.1.0

S-Series Sensor ASCII Protocol v8.1.0 S-Series Sensor v8.1.0 Legend: ADR Node/Slave Address TIME STAT Status Byte ERR CTRL Control Byte SP # POS Position DATA TARG Target CHAR VEL Velocity OFF SN CODE PAR # Serial Number Security Code Parameter

More information

Terminology, Types of Computers & Computer Hardware

Terminology, Types of Computers & Computer Hardware Terminology, Types of Computers & Computer Hardware Basic Terminology 1.Computer A device that accepts input, processes data, stores data, and produces output, all according to a series of stored instructions.

More information

The type of all data used in a C (or C++) program must be specified

The type of all data used in a C (or C++) program must be specified The type of all data used in a C (or C++) program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values

More information

Week 1 / Lecture 2 8 March 2017 NWEN 241 C Fundamentals. Alvin Valera. School of Engineering and Computer Science Victoria University of Wellington

Week 1 / Lecture 2 8 March 2017 NWEN 241 C Fundamentals. Alvin Valera. School of Engineering and Computer Science Victoria University of Wellington Week 1 / Lecture 2 8 March 2017 NWEN 241 C Fundamentals Alvin Valera School of Engineering and Computer Science Victoria University of Wellington Admin stuff People Course Coordinator Lecturer Alvin Valera

More information

Wireless 2D Pocket barcode scanner

Wireless 2D Pocket barcode scanner * Wireless 2D Pocket barcode scanner Quick Guide Model no.: i DC9607L Introduction Designed primarily for P.O.S. retail environments, the idc9607l is a wireless pocket barcode scanner that allows you to

More information

Lecture 1: What is a computer?

Lecture 1: What is a computer? 02-201, Fall 2015, Carl Kingsford Lecture 1: What is a computer? 0. Today's Topics Basic computer architecture How the computer represents data 1. What is a computer? A modern computer is a collection

More information

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

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes Multiple-byte data CMSC 313 Lecture 03 big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes UMBC, CMSC313, Richard Chang 4-5 Chapter

More information

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3

Example 1: Denary = 1. Answer: Binary = (1 * 1) = 1. Example 2: Denary = 3. Answer: Binary = (1 * 1) + (2 * 1) = 3 1.1.1 Binary systems In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system, or base-2 numeral system, which represents numeric values using two different

More information

Wearable 2D Pocket barcode scanner

Wearable 2D Pocket barcode scanner * Wearable 2D Pocket barcode scanner Quick Guide Model no.: idc9607lw Introduction Designed primarily for P.O.S. retail environments, the idc9607lw is a Wearable pocket barcode scanner that allows you

More information

Programmable #182 Parallel Interface Cash Drawer Manual

Programmable #182 Parallel Interface Cash Drawer Manual Programmable #182 Parallel Interface Cash Drawer Manual The following warning is required by the FCC for all Class A computing devices which have been tested and comply with the standard indicated: Warning:

More information

CSE 30 Winter 2014 Final Exam

CSE 30 Winter 2014 Final Exam Signature Login: cs30x Name Student ID By filling in the above and signing my name, I confirm I will complete this exam with the utmost integrity and in accordance with the Policy on Integrity of Scholarship.

More information

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

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey 4: Serial I/O CET360 Microprocessor Engineering J. Sumey Introduction serial, i.e. bit-at-a-time, interfacing techniques are useful when parallel interfacing limitations become problematic distance limitations

More information

Delivery content * Pocket Barcode scanner x 1 * Mini USB cable x 1 (for charging only) * Quick instructions x 1 * Strap x 1

Delivery content * Pocket Barcode scanner x 1 * Mini USB cable x 1 (for charging only) * Quick instructions x 1 * Strap x 1 Bluetooth 2D Pocket barcode scanner Quick Guide M o de l no.: idc9607l Introduction Designed primarily for P.O.S. retail environments, the idc9607l is a Bluetooth pocket barcode scanner that allows you

More information

Universal Asynchronous Receiver Transmitter Communication

Universal Asynchronous Receiver Transmitter Communication Universal Asynchronous Receiver Transmitter Communication 13 October 2011 Synchronous Serial Standard SPI I 2 C Asynchronous Serial Standard UART Asynchronous Resynchronization Asynchronous Data Transmission

More information

CSE 30 Fall 2013 Final Exam

CSE 30 Fall 2013 Final Exam Login: cs30x Student ID Name Signature By filling in the above and signing my name, I confirm I will complete this exam with the utmost integrity and in accordance with the Policy on Integrity of Scholarship.

More information

RS-232 Digital Relay I/O

RS-232 Digital Relay I/O RS-232 Digital Relay I/O Model 232DRIO Documentation Number 232DRIO1005 pn#4520-r2 This product Designed and Manufactured In Ottawa, Illinois USA of domestic and imported parts by B&B Electronics Mfg.

More information

CSC 170 Introduction to Computers and Their Applications. Lecture #1 Digital Basics. Data Representation

CSC 170 Introduction to Computers and Their Applications. Lecture #1 Digital Basics. Data Representation CSC 170 Introduction to Computers and Their Applications Lecture #1 Digital Basics Data Representation Data refers to the symbols that represent people, events, things, and ideas. Data can be a name, a

More information

What is Data Storage?

What is Data Storage? What is Data Storage? When we talk about storing data, we mean putting the data in a known place. We can later come back to that place and get our data back again. Writing data or saving data are other

More information

Quick Start Guide Bar Code Fonts for the Macintosh

Quick Start Guide Bar Code Fonts for the Macintosh Quick Start Guide Bar Code Fonts for the Macintosh Bitstream s Bar Code font collection includes fonts for the following bar code standards. Each of these fonts come with a utility to create and format

More information

Application Note #2437

Application Note #2437 Application Note #2437 The CW Command This application note describes the CW Galil command. The CW command has three uses: it (1) prints the controller s copyright message, (2) sets or clears the most

More information