Binary and Data Representation
Binary and Data Representation
Data representation
memory size
• Use binary in computer registers for a given application (such as in robotics, digital
instruments and counting systems)
• Represent integers as hexadecimal numbers
• convert positive hexadecimal integers to and from denary
• convert positive hexadecimal integers to and from binary
• Show understanding of the reasons for choosing hexadecimal to represent numbers
• Represent numbers stored in registers and main memory as hexadecimal
• Identify current uses of hexadecimal numbers in computing
ICT IGCSE Theory – Revision Presentation
Data representation
In binary we have only two digits 0 and 1 so we call this base-2. Computers as we
know them today are electronic machines which at their most basic level are simply a
collection of billions and billions of switches which can be either on (represented by
the digit 1) and off (represented by the digit 0).
Convert positive denary integers into binary and positive binary integers into denary.
Binary to Denary
Chapter 1: Data representation
Example
Chapter 1: Data representation
• First we write out the number and assign a denary value to each bit, like this:
32 16 8 4 2 1
1 0 0 1 0 1
• Finally we add together all of the values where we have a binary 1, so:
32
4
+ 1
---
37
---
Denary to Binary
Chapter 1: Data representation
Example
Convert the denary number 73 in to binary.
• First I write out the denary place values from right to left:
128 64 32 16 8 4 2 1
Chapter 1: Data representation
• I don't need to use the 128 as it is too high, so I write a 0 under it:
128 64 32 16 8 4 2 1
0
• With only 9 left I don't need the 32 or the 16, but I do need the 8:
128 64 32 16 8 4 2 1
0 1 0 0 1
Show understanding of the concept of a byte and how the byte is used to measure
memory size
The smallest unit of data storage possible is a bit (b). The following table shows larger
Chapter 1: Data representation
Use binary in computer registers for a given application (such as in robotics, digital
instruments and counting systems)
A register is a group of bits, often represented in a grid. The following grid shows an
Chapter 1: Data representation
8-bit register.
1 1 0 1 1 0 1 1
Computers (or microprocessors) are used to control devices, such as robots, industrial
or household environments. Registers are used as part of the control system. Each bit
in the register will control a different part of the system. For example, suppose a
microprocessor controls a household security system. The register could be setup as
follows:
1 0 1 0 1 0 1 1
Kitchen Kitchen Send
Kitchen Kitchen Sound Silence Autocall
camera camera notificati
light on light off alarm alarm Police
on off on
In this state, the kitchen light would be triggered ON, the camera would be triggered
ON, the alarm would be triggered ON, the notification would be sent, and the police
would be autocalled. When another register is send to the control system, the state of
each part can be changed by adjusting the bits in the register.
ICT IGCSE Theory – Revision Presentation
Data representation
To Hexadecimal
Chapter 1: Data representation
From Hexadecimal
1.Convert each hexadecimal numeral into its denary value.
2.Convert each denary number into 4-bit binary.
3.Join the 4-bit numbers together to create a single binary number.
4.Convert this binary number to denary.
ICT IGCSE Theory – Revision Presentation
Data representation
colour codes. In HTML colours are defined by how much red, green and blue
there is on a scale of 0 to 255. The range 0 to 255 was chosen because that
is the range of numbers that can be fitted into a single byte and a single byte
can be represented as two hexadecimal numerals.
MAC Addresses
All network adapters and network devices have a Media Access Control (MAC)
Chapter 1: Data representation
address. This is also known as the 'physical address' and is a unique address
determined during the manufacture of each device. This address is given as a
set of 6 pairs of hexadecimal numbers.
ipconfig /all