Objectives Data Representation Binary number system Binary Coded Decimal (BCD) Boolean Values Analogue & Digital data Use of ASCII code Memory addressing.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Introduction to Information Technology
Binary Numbers.
ENEL 111 Digital Electronics Richard Nelson G.1.29
Representing Information in Binary (Continued)
Programmable Logic Controllers
Higher Computing Data Representation.
COMP Representing Sound in a ComputerSound Course book - pages
Bits & Bytes: How Computers Represent Data
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 2 Computer Hardware
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
AS LEVEL ICT2 Processing Different Types of Information.
Analogue and Digital Signals SL – Option C.1 HL – Core 14.1.
What is a computer? A computer is a device that:
Types of Data. Numbers Text Pictures Sound Video.
The Hexadecimal Number System and Memory Addressing ISAT 121.
1 3 Computing System Fundamentals 3.5 Data Representation.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
CCNA 1 v3.0 Module 1 Introduction to Networking. Objectives.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
Quiz # 1 Chapters 1,2, & 3.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
Data Representation Conversion 24/04/2017.
Data Representation, Number Systems and Base Conversions
Extending Binary In today’s lesson we will look at: representing different types of numbers possible errors binary coded decimal (BCD) comparing BCD with.
MECH1500 Chapter 3.
Data Representation.
2.1.4 Data Representation Units.
M204 - Data Representation
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
Processing Data. Representing Numbers  Recap on Binary Numbers  Binary digit (1 or 0) – known as a ‘bit’, short for BInary digiT – bits generally grouped.
CSC 3210 Computer Organization and Programming
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
3.1 Denary, Binary and Hexadecimal Number Systems We use the denary (base 10) number system in our daily life for counting and calculation. Computers use.
Computer Science: An Overview Eleventh Edition
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Invitation to Computer Science, C++ Version, Fourth Edition
Number Systems and Codes
Data Representation.
INFS 211: Introduction to Information Technology
3.1 Denary, Binary and Hexadecimal Number Systems
ENEL 111 Digital Electronics
Introduction to Chapter 2
Introduction to Computers
Digital Electronics Jess 2008.
Intermediate 2 Computing
Invitation to Computer Science, Java Version, Third Edition
Data Representation Question: Characters
Data Representation Conversion 05/12/2018.
Chapter Four Data Representation in Computers By Bezawit E.
Option: Data Representation
Option: Data Representation
WJEC GCSE Computer Science
ENEL 111 Digital Electronics
Presentation transcript:

Objectives Data Representation Binary number system Binary Coded Decimal (BCD) Boolean Values Analogue & Digital data Use of ASCII code Memory addressing

Data Representation Character coding schemes ASCII, Unicode Unicode – International 16-bit coding system which can represent different characters Binary number system Binary Coded Decimal (BCD) each decimal digit has its own 4-bit binary code Boolean values only True or False Digitised sound MIDI Bit-mapped graphics

Number systems Denary system ‘134’ represents one hundred, three tens and four ones = = 134 Binary system = = 134

Binary number system Numbers can be represented in a computer in a number of different ways, e.g. 25 in ASCII would be: Alternatively in pure binary draw a table of powers of 2. Then find the largest power of 2<=25 (16). Subtract 16 from 25 and repeat Value = 25 To translate from binary to decimal perform same process backwards Value = 69

Binary Coded Decimal (BCD) In the BCD system each decimal represented with own 4-bit binary code is coded as DecimalBinaryDecimalBinary

Advantages & disadvantages of BCD Advantage - ease of conversion from BCD to decimal and vice versa. E.g. when binary numbers have to be decoded for a calculator display, a number held in BCD has simply to have each bit converted into decimal. Another advantage - BCD does not “round” numbers - uses as many bits as reqd. Disadvantage - calculations with BCD numbers are more complex. E.g adding 1 and The first digit 1, is wrong and 1010 is an invalid code Error occurs because only 10 out of 16 combinations of 4 bits used. Whenever sum greater than 9, 6 has to be added to result in order to skip over codes i.e. 20 in BCD which is correct

Boolean Values A Boolean variable can only have one of two values, true or false Represented by a 1 or a 0 Useful to be able to use a binary bit to show if something is true or false, e.g: – To show whether a disk drive is connected – To show if the ‘break’ key is pressed’ Single bits used in this way are called Flags

Analogue & Digital data Almost everything in the world can be described or represented in one of two forms: analogue or digital. Principal feature of analogue representations is that they are continuous. Digital representations consist of values measured at discrete intervals. Digital watches are digital because they go from one value to the next without displaying all intermediate values. Display a finite number of times of the day. In contrast, watches with hands are analogue, because hands move continuously around the clock face.

Digitised sound Sound can be input via microphone, CD or electronic keyboard with MIDI (Musical Interchange Digital Interface) Since sound waves are continuously variable or Analogue – an analogue to digital converter is needed to transform analogue input into to a digital form, i.e. a binary pattern Undesirable sounds such as scratches can be edited Sound in analogue form can be represented by wave forms – Height of wave forms sampled at regular time intervals – Height may be represented by, say, a 16-bit code which is format used for standard audio, 8-bit slightly better than normal AM radio. – More frequently samples taken – better the sound quality

The ASCII code Binary digit (1 or 0) known as a ‘bit’, short for BInary digiT bits generally grouped together in 8-bit bytes a byte can hold 2 8 combinations of 0s and 1s This means that, for example, 256 different characters can be represented.

Sample ASCII codes Charac ASCIICharac ASCIICharac ASCIICharac ASCII A K U a B L V b C M W c D N X d E O Y e F P Z f G Q [ g H R \ h I S ] i J T ^ j

Memory addressing The memory of a computer can be thought of as a series of boxes, each containing 8 bits (1 byte), and each with its own unique address, counting from zero upwards. Memory capacity is measured in thousand byte units Kb, Mb, Gb. These are all powers of 2 thus although often thought of as being 1000 bytes, actually 1024 bytes bytes = 1024 = 1Kb 2 20 bytes = 1024 x 1024 = 1Mb 2 30 bytes = 1024 x 1024 x 1024 = 1Gb