0% found this document useful (0 votes)
727 views5 pages

1.1.1 Binary Systems Worksheet

The document discusses binary number systems and data representation using binary. It provides examples of converting decimal numbers to binary and using binary representations in registers to control systems like a robot vacuum and chemical process. Binary numbers are made up of zeros and ones and can be used to represent on/off states or other true/false conditions. Registers hold binary values that can indicate states of components like motors, valves, heaters and mixers to control devices.

Uploaded by

Jamal Al Mahhari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
727 views5 pages

1.1.1 Binary Systems Worksheet

The document discusses binary number systems and data representation using binary. It provides examples of converting decimal numbers to binary and using binary representations in registers to control systems like a robot vacuum and chemical process. Binary numbers are made up of zeros and ones and can be used to represent on/off states or other true/false conditions. Registers hold binary values that can indicate states of components like motors, valves, heaters and mixers to control devices.

Uploaded by

Jamal Al Mahhari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Computer Science

1.1 Data Representation - 1.1.1 Binary systems


8 4 2 1 Working Out Space Denary
1 0 1 1 1+2+8 11
0 0 1 1 1+2 3
0 0 1 1 1+2 3
1 0 1 0 2+8 10
1 0 1 0 2+8 10

128 64 32 16 8 4 2 1 Working Out Space Denary


1 0 1 0 1 0 1 1 1+2+8+32+128 171
Theory of Computer Science

0 1 0 1 0 0 1 1 1+2+16+64 83
0 1 0 0 0 0 1 1 1+2+64 67
1 0 1 0 0 1 0 0 4+32+128 164
1 0 1 1 1 1 0 0 4+8+16+32+128 188
0 1 0 1 1 0 1 0 2+8+16+64 90
0 1 0 1 1 0 1 0 2+8+16+64 90

2048 1024 512 256 128 64 32 16 8 4 2 1


1 0 1 0 0 1 1 0 0 1 0 1
Working out Space: 1+4+32+64+512+2048
Denary: 2661

2048 1024 512 256 128 64 32 16 8 4 2 1


1 0 1 0 0 1 1 0 0 1 0 1
Working out Space: 1+4+32+64+512+2048
Denary: 2661

2048 1024 512 256 128 64 32 16 8 4 2 1


1 0 1 0 0 1 1 0 0 1 0 1
Working out Space: 1+4+32+64+512+2048
Denary: 2661

www.yahmad.co.u
k
Computer Science
1.1 Data Representation - 1.1.1 Binary systems
Converting Denary (Decimal) Numbers to Binary Numbers
Convert 147 to Binary
128 64 32 16 8 4 2 1
1 0 0 1 0 0 1 1
Remainder 19 Remainder 3 Remainder 1

Convert the following denary numbers to binary.


8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
1 8 6 1
Theory of Computer Science

5 4
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
1 7 2 9
2
Convert 152 to Binary
128 64 32 16 8 4 2 1

Convert 178 to Binary


128 64 32 16 8 4 2 1

Convert 255 to Binary


128 64 32 16 8 4 2 1

Convert 202 to Binary


128 64 32 16 8 4 2 1

Convert 17 to Binary
128 64 32 16 8 4 2 1

www.yahmad.co.u
k
Computer Science
1.1 Data Representation - 1.1.1 Binary systems
Converting Denary (Decimal) Numbers to Binary Numbers

Convert 4095 to Binary


2048 1024 512 256 128 64 32 16 8 4 2 1

Working Out

Convert 2522 to Binary


Theory of Computer Science

2048 1024 512 256 128 64 32 16 8 4 2 1

Working Out

Convert 3096 to Binary


2048 1024 512 256 128 64 32 16 8 4 2 1

Working Out

Convert 1160 to Binary


2048 1024 512 256 128 64 32 16 8 4 2 1

Working Out

Convert 1160 to Binary


2048 1024 512 256 128 64 32 16 8 4 2 1

Working Out

www.yahmad.co.u
k
Computer Science
1.1 Data Representation - 1.1.1 Binary systems
A register may hold an instruction, a storage address,
or any kind of data

An 8 Bit Register is used to control the movement of the Robot


Vacuum cleaner:

Motor A Motor B Motor A Motor B


Theory of Computer Science

ON OFF FW FW
Motor A Motor B Motor A Motor B
OFF ON BW BW
Enter the values into the register to move the robot
forwards and backwards

Forwards
Working out
Space:
Denary
Backwards
Working out
Space:
Denary

www.yahmad.co.u
k
Computer Science
1.1 Data Representation - 1.1.1 Binary systems
A chemical process is controlled by a microprocessor. The
process utilises two valves, A and B, to control the chemical
addition. There is also a mixer and a heater which can be
turned on or off as required.

An 8-bit register is used to show the condition of the two


valves, heater and mixer.
Theory of Computer Science

1 – means the condition is True


0 – means the condition is False

Valve A Valve B Heater Mixer


Closed Closed Off Off
Valve A Valve B Heater Mixer
Open Open On On

1) What is indicated by: 10100110

2) Give the Register contents if Valve A is open, Valve B is


closed, and the heater and mixer are both on.

3) What would the following register contents indicate:


01010101

www.yahmad.co.u
k

You might also like