Wednesday 14 November 2012

Computer Logic (part 1)

What is a 2-state device??

A  2-state device is like a switch on the wall, it can be only one of two possible states at any given time. i.e it may be either ON or OFF


Binary

Binary is a number system. It is the ideal number system to represent two-state device because it has only two digits : O ,  1 . It is imp. to notice that in the number system we use everyday life (called decimal system) ten digits are used: 0,1,2,3,4,5,6,7,8,9.

Binary, then, with its 0s and 1s, is a very convenient method of representing the two internal states of a computer's electronic components. Binary digits do not actually exist inside computers, only electrical charges. So, for example +5 volts can be represented by binary 1 and the absence of charge (zero volts) by binary 0.


Bit - stores 0 , 1
Byte - 8 bits = 1 character
Kilobyte-1024 byte
Megabyte- 1024 x 1024
Gigabyte - 1024 x 1024 x 1024
Terabyte - 1024 x 1024 x 1024 x 1024

So there is the BINARY the DECIMAL
So lets say we want to convert from binary to decimal
and
from decimal to binary


Continue in the next part..... :)





No comments:

Post a Comment