Professional Documents
Culture Documents
The Binary System
The Binary System
The positive integers represented by the sequence of 1s and 0s are known as the binary numbers or the
base 2 numbers.
Whereas the base 10 numbers are known as denary numbers.
A typical binary value is a string of 0s and 1s e.g. 0101010000
Computer has to translate every single instruction into Binary
Base 10 Headings:
Base 2 Headings:
128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
1 1 0 1 0 1
32 16 0 4 0 1
32+16+0+4+0+1= 53
107-64 =43 So 64 1
43- 32 =11 So 32 1
So 16 0
11-8 =3 So 8 1
So 4 0
3-2 =1 So 2 1
1-1 =0 So 1 1
Measuring memory size
Register:
Small piece of memory built in CPU where values and instructions can be temporarily stored
Small in capacity, extremely fast read and write rate
Types:
o Processor registers. Program counter PC, accumulator, memory address register MAR
o Hardware registers. Used to convey signals. Example: in robot to open and close the grip, a signal(1/0) is
sent to the motor.
Example use of binary
If the register contains 1 0 1 0 1 0 1 0 this means ‘motor B is ON and motor C is ON
and both motors are turning to produce FORWARDS motion’. Effectively, the
101111100001
Hexadecimal A 0 2 B
Denary 10 0 2 11