Professional Documents
Culture Documents
23 - 24 - U1-Lp-Ig8-Data Representation
23 - 24 - U1-Lp-Ig8-Data Representation
REPRESENTATION
Section I
Representation?
H ow
What is c om d oe
put s the
data? the er s
se t
files ore
?
• Recognise the use of binary, denary and Hexadenary numbers in computer systems
• Convert positive denary integers into binary and positive binary integers into denary, Denary to
Hexadenary, Hexadenary to denary (a maximum of 16 bits will be used)
• Show understanding of the concept of a byte and how the byte is used to measure memory size, represent
numbers stored in registers and main memory as hexadecimal
• Use binary in computer registers for a given application (such as in robotics, digital instruments and
counting systems)
• Identify current uses of hexadecimal numbers in computing, such as defining colours in Hypertext
MarkupLanguage (HTML), Media Access Control (MAC) addresses, assembly languages and machine
code, debugging
• Show understanding that sound (music), pictures, video, text and numbers are stored in different formats
1.2 TEXT REPRESENTATION
Computer is processing millions of numbers and text
Lets think how computer process the text, the images and the
audios, the movies?
Video V1
Lets Learn how we can switch from one number system to
another.
Converting denary 155 into 8 bit binary – Method 1
ASSGN 1
Converting denary 155 into 8 bit binary – Method 2
2 155
Denary
Binary
8+4+2 = 14
Ans = (14) 10
Binary – Hexadecimal – Denary equivalent table
Binary Hexadecimal
Now think, How we can convert numbers from Decimal
to Hexadecimal or Hexadecimal to Decimal ???
Decimal Hexadecimal
Lets watch SOME videos
D-H D-B-H
USES OF HEXADECIMAL NUMBER SYSTEM
ERROR CODES
Hexadecimal is often used in error messages on your computer. The hex number refers to the memory
location of the error. This helps programmers to find and then fix problems.
For Eg. In a MAC computer if the computer was over heated then it throws a error C0010FF
USES OF HEXADECIMAL NUMBER SYSTEM
MAC ADDRESS
Here ,
NN:NN:NN – Manufacturer Identity
DD:DD:DD – Device Serial number
USES OF HEXADECIMAL NUMBER SYSTEM
IP ADDRESS
USES OF HEXADECIMAL NUMBER SYSTEM
Eg.
https://www.hexcolortool.com/#401cd4
WS_Binary addition
Note : make sure that the number of digits are the same
BINARY ADDITION…..overflow
ASSGN 9-Activity
1.10(pg 17)
LEFT SHIFT AND RIGHT SHIFT ON 8 BIT BINARY
Note : MSB(Left most bit) – 1 – indicates negative number 0 – indicates Positive number
USING 2’ TO REPRESENT 8 BIT POSITIVE AND
NEGATIVE BINARY INTEGERS
-8+2
-6
Convert a positive binary or denary integer to a
two’s complement 8-bit integer and vice versa
WS_Two’s Complement
Note: For positive numbers it is the same as converting and putting the MSB as 0
Convert a Negative binary integer to a
two’s complement 8-bit integer and vice versa
Note: For negative numbers it is the same as converting and putting the MSB as 1 and substituting with its negative equivalent and solving the equation
Convert a Negative denary integer to binary using
two’s complement 8-bit integer and vice versa
WS_Two’s Complement
0 0 0 0 1 0 0 0 0 0
• Each pixel is given a binary value 0 0 0 1 1 0 0 0 0 0
0 0 1 1 1 0 1 0 0 0
• Each value represents a different
0 1 1 1 1 0 1 1 0 0
colour 1 1 1 1 1 0 1 1 1 0
0 0 0 0 1 0 1 0 0 0
• Using one bit per pixel allows only 2
1 1 1 1 1 1 1 1 1 1
values, 0 and 1 0 1 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 0
• 1 = Black, 0 = White
0 0 0 0 0 0 0 0 0 0
ASSGN 7
Increasing the number of colours
20 pixels
20 pixels
image affect file size?
8 colours
Color or bit depth
The number of combinations (2n) dictates the bit depth and therefore the number of colours that can be represented
A higher bit depth gives a greater range of colour and a better quality of image
• Changing the colour depth of an image will affect the number of colours it
can display, as shown below:
Date created
Author
Info: An image file may also contain metadata describing the type and amount of compression in the image, the software used to
create the file and, if it is a digital photograph, the date and time the image was taken and the camera/lens settings
An image with the CORRECT size metadata – The same data but with the WRONG size
16 x 24 pixels metadata – 24 x 16 pixels
RECAP
https://www.goconqr.com/flashcard/1446377/gcse-computing-4-representation-of-data-in-computer-systems
1.2 SOUND
REPRESENTATION
What is sound?
Now think, How we can convert sound waves which are in
Analogue form into Digital ???
ASSIGNMENT 8
Lets watch some videos